makeapps-transformer 1.0.0

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 (174) hide show
  1. package/.vscode/settings.json +3 -0
  2. package/dist/index.d.ts +7 -0
  3. package/dist/index.js +4 -0
  4. package/dist/lib-public/FA3-generator.js +50 -0
  5. package/dist/lib-public/enums/invoice.enums.js +9 -0
  6. package/dist/lib-public/generate-invoice.js +21 -0
  7. package/dist/lib-public/generators/FA2/Adnotacje.js +174 -0
  8. package/dist/lib-public/generators/FA2/Adres.js +23 -0
  9. package/dist/lib-public/generators/FA2/DodatkoweInformacje.js +69 -0
  10. package/dist/lib-public/generators/FA2/Platnosc.js +91 -0
  11. package/dist/lib-public/generators/FA2/Podmiot1.js +32 -0
  12. package/dist/lib-public/generators/FA2/Podmiot1Podmiot1K.js +63 -0
  13. package/dist/lib-public/generators/FA2/Podmiot2.js +28 -0
  14. package/dist/lib-public/generators/FA2/Podmiot2Podmiot2k.js +62 -0
  15. package/dist/lib-public/generators/FA2/Podmiot3.js +37 -0
  16. package/dist/lib-public/generators/FA2/Podmiot3Podmiot2k.js +57 -0
  17. package/dist/lib-public/generators/FA2/PodmiotAdres.js +14 -0
  18. package/dist/lib-public/generators/FA2/PodmiotDaneIdentyfikacyjneTPodmiot1Dto.js +10 -0
  19. package/dist/lib-public/generators/FA2/PodmiotDaneIdentyfikacyjneTPodmiot2Dto.js +34 -0
  20. package/dist/lib-public/generators/FA2/PodmiotDaneIdentyfikacyjneTPodmiot3Dto.js +44 -0
  21. package/dist/lib-public/generators/FA2/PodmiotDaneKontaktowe.js +13 -0
  22. package/dist/lib-public/generators/FA2/PodmiotUpowazniony.js +29 -0
  23. package/dist/lib-public/generators/FA2/PodmiotUpowaznionyDaneKontaktowe.js +28 -0
  24. package/dist/lib-public/generators/FA2/Podmioty.js +92 -0
  25. package/dist/lib-public/generators/FA2/PodsumowanieStawekPodatkuVat.js +260 -0
  26. package/dist/lib-public/generators/FA2/Przewoznik.js +17 -0
  27. package/dist/lib-public/generators/FA2/Rabat.js +57 -0
  28. package/dist/lib-public/generators/FA2/RachunekBankowy.js +54 -0
  29. package/dist/lib-public/generators/FA2/Szczegoly.js +138 -0
  30. package/dist/lib-public/generators/FA2/Transport.js +78 -0
  31. package/dist/lib-public/generators/FA2/WarunkiTransakcji.js +68 -0
  32. package/dist/lib-public/generators/FA2/Wiersze.js +140 -0
  33. package/dist/lib-public/generators/FA2/Zamowienie.js +148 -0
  34. package/dist/lib-public/generators/FA3/Adnotacje.js +185 -0
  35. package/dist/lib-public/generators/FA3/Adres.js +23 -0
  36. package/dist/lib-public/generators/FA3/DodatkoweInformacje.js +69 -0
  37. package/dist/lib-public/generators/FA3/Platnosc.js +105 -0
  38. package/dist/lib-public/generators/FA3/Podmiot1.js +32 -0
  39. package/dist/lib-public/generators/FA3/Podmiot1Podmiot1K.js +67 -0
  40. package/dist/lib-public/generators/FA3/Podmiot2.js +34 -0
  41. package/dist/lib-public/generators/FA3/Podmiot2Podmiot2k.js +49 -0
  42. package/dist/lib-public/generators/FA3/Podmiot3.js +37 -0
  43. package/dist/lib-public/generators/FA3/Podmiot3Podmiot2k.js +57 -0
  44. package/dist/lib-public/generators/FA3/PodmiotAdres.js +14 -0
  45. package/dist/lib-public/generators/FA3/PodmiotDaneIdentyfikacyjneTPodmiot1Dto.js +10 -0
  46. package/dist/lib-public/generators/FA3/PodmiotDaneIdentyfikacyjneTPodmiot2Dto.js +34 -0
  47. package/dist/lib-public/generators/FA3/PodmiotDaneIdentyfikacyjneTPodmiot3Dto.js +44 -0
  48. package/dist/lib-public/generators/FA3/PodmiotDaneKontaktowe.js +13 -0
  49. package/dist/lib-public/generators/FA3/PodmiotUpowazniony.js +29 -0
  50. package/dist/lib-public/generators/FA3/PodmiotUpowaznionyDaneKontaktowe.js +28 -0
  51. package/dist/lib-public/generators/FA3/Podmioty.js +92 -0
  52. package/dist/lib-public/generators/FA3/PodsumowanieStawekPodatkuVat.js +264 -0
  53. package/dist/lib-public/generators/FA3/Przewoznik.js +17 -0
  54. package/dist/lib-public/generators/FA3/Rabat.js +57 -0
  55. package/dist/lib-public/generators/FA3/RachunekBankowy.js +58 -0
  56. package/dist/lib-public/generators/FA3/Szczegoly.js +138 -0
  57. package/dist/lib-public/generators/FA3/Transport.js +78 -0
  58. package/dist/lib-public/generators/FA3/WarunkiTransakcji.js +68 -0
  59. package/dist/lib-public/generators/FA3/Wiersze.js +140 -0
  60. package/dist/lib-public/generators/FA3/Zamowienie.js +148 -0
  61. package/dist/lib-public/generators/common/DaneFaKorygowanej.js +74 -0
  62. package/dist/lib-public/generators/common/Naglowek.js +100 -0
  63. package/dist/lib-public/generators/common/Rozliczenie.js +120 -0
  64. package/dist/lib-public/generators/common/Stopka.js +113 -0
  65. package/dist/lib-public/generators/common/Wiersze.js +28 -0
  66. package/dist/lib-public/generators/common/Zalaczniki.js +182 -0
  67. package/dist/lib-public/index.js +5 -0
  68. package/dist/lib-public/types/common.types.js +2 -0
  69. package/dist/lib-public/types/fa1-additional-types.js +2 -0
  70. package/dist/lib-public/types/fa1.types.js +2 -0
  71. package/dist/lib-public/types/fa2-additional-types.js +2 -0
  72. package/dist/lib-public/types/fa2.types.js +2 -0
  73. package/dist/lib-public/types/fa2Podmiot3DaneIdentyfikacyjne.types.js +2 -0
  74. package/dist/lib-public/types/fa3.types.js +2 -0
  75. package/dist/lib-public/types/fa3Podmiot3DaneIdentyfikacyjne.types.js +2 -0
  76. package/dist/lib-public/types/tax-summary.types.js +2 -0
  77. package/dist/lib-public/types/upo-v4_2.types.js +2 -0
  78. package/dist/shared/PDF-functions.js +429 -0
  79. package/dist/shared/XML-parser.js +21 -0
  80. package/dist/shared/consts/const.js +390 -0
  81. package/dist/shared/enums/common.enum.js +48 -0
  82. package/dist/shared/enums/invoice.enums.js +13 -0
  83. package/dist/shared/generators/common/functions.js +95 -0
  84. package/dist/shared/types/additional-data.types.js +2 -0
  85. package/dist/shared/types/pdf-types.js +2 -0
  86. package/dist/shared/types/universal.types.js +2 -0
  87. package/package.json +21 -0
  88. package/src/index.d.ts +7 -0
  89. package/src/index.ts +2 -0
  90. package/src/lib-public/FA3-generator.ts +56 -0
  91. package/src/lib-public/enums/invoice.enums.ts +5 -0
  92. package/src/lib-public/generate-invoice.ts +32 -0
  93. package/src/lib-public/generators/FA2/Adnotacje.ts +206 -0
  94. package/src/lib-public/generators/FA2/Adres.ts +20 -0
  95. package/src/lib-public/generators/FA2/DodatkoweInformacje.ts +97 -0
  96. package/src/lib-public/generators/FA2/Platnosc.ts +131 -0
  97. package/src/lib-public/generators/FA2/Podmiot1.ts +40 -0
  98. package/src/lib-public/generators/FA2/Podmiot1Podmiot1K.ts +73 -0
  99. package/src/lib-public/generators/FA2/Podmiot2.ts +42 -0
  100. package/src/lib-public/generators/FA2/Podmiot2Podmiot2k.ts +74 -0
  101. package/src/lib-public/generators/FA2/Podmiot3.ts +50 -0
  102. package/src/lib-public/generators/FA2/Podmiot3Podmiot2k.ts +77 -0
  103. package/src/lib-public/generators/FA2/PodmiotAdres.ts +19 -0
  104. package/src/lib-public/generators/FA2/PodmiotDaneIdentyfikacyjneTPodmiot1Dto.ts +10 -0
  105. package/src/lib-public/generators/FA2/PodmiotDaneIdentyfikacyjneTPodmiot2Dto.ts +37 -0
  106. package/src/lib-public/generators/FA2/PodmiotDaneIdentyfikacyjneTPodmiot3Dto.ts +44 -0
  107. package/src/lib-public/generators/FA2/PodmiotDaneKontaktowe.ts +12 -0
  108. package/src/lib-public/generators/FA2/PodmiotUpowazniony.ts +31 -0
  109. package/src/lib-public/generators/FA2/PodmiotUpowaznionyDaneKontaktowe.ts +34 -0
  110. package/src/lib-public/generators/FA2/Podmioty.ts +96 -0
  111. package/src/lib-public/generators/FA2/PodsumowanieStawekPodatkuVat.ts +294 -0
  112. package/src/lib-public/generators/FA2/Przewoznik.ts +21 -0
  113. package/src/lib-public/generators/FA2/Rabat.ts +47 -0
  114. package/src/lib-public/generators/FA2/RachunekBankowy.ts +60 -0
  115. package/src/lib-public/generators/FA2/Szczegoly.ts +187 -0
  116. package/src/lib-public/generators/FA2/Transport.ts +108 -0
  117. package/src/lib-public/generators/FA2/WarunkiTransakcji.ts +105 -0
  118. package/src/lib-public/generators/FA2/Wiersze.ts +126 -0
  119. package/src/lib-public/generators/FA2/Zamowienie.ts +144 -0
  120. package/src/lib-public/generators/FA3/Adnotacje.ts +249 -0
  121. package/src/lib-public/generators/FA3/Adres.ts +20 -0
  122. package/src/lib-public/generators/FA3/DodatkoweInformacje.ts +92 -0
  123. package/src/lib-public/generators/FA3/Platnosc.ts +144 -0
  124. package/src/lib-public/generators/FA3/Podmiot1.ts +40 -0
  125. package/src/lib-public/generators/FA3/Podmiot1Podmiot1K.ts +78 -0
  126. package/src/lib-public/generators/FA3/Podmiot2.ts +55 -0
  127. package/src/lib-public/generators/FA3/Podmiot2Podmiot2k.ts +59 -0
  128. package/src/lib-public/generators/FA3/Podmiot3.ts +50 -0
  129. package/src/lib-public/generators/FA3/Podmiot3Podmiot2k.ts +78 -0
  130. package/src/lib-public/generators/FA3/PodmiotAdres.ts +19 -0
  131. package/src/lib-public/generators/FA3/PodmiotDaneIdentyfikacyjneTPodmiot1Dto.ts +10 -0
  132. package/src/lib-public/generators/FA3/PodmiotDaneIdentyfikacyjneTPodmiot2Dto.ts +37 -0
  133. package/src/lib-public/generators/FA3/PodmiotDaneIdentyfikacyjneTPodmiot3Dto.ts +44 -0
  134. package/src/lib-public/generators/FA3/PodmiotDaneKontaktowe.ts +12 -0
  135. package/src/lib-public/generators/FA3/PodmiotUpowazniony.ts +31 -0
  136. package/src/lib-public/generators/FA3/PodmiotUpowaznionyDaneKontaktowe.ts +34 -0
  137. package/src/lib-public/generators/FA3/Podmioty.ts +96 -0
  138. package/src/lib-public/generators/FA3/PodsumowanieStawekPodatkuVat.ts +298 -0
  139. package/src/lib-public/generators/FA3/Przewoznik.ts +24 -0
  140. package/src/lib-public/generators/FA3/Rabat.ts +45 -0
  141. package/src/lib-public/generators/FA3/RachunekBankowy.ts +60 -0
  142. package/src/lib-public/generators/FA3/Szczegoly.ts +184 -0
  143. package/src/lib-public/generators/FA3/Transport.ts +108 -0
  144. package/src/lib-public/generators/FA3/WarunkiTransakcji.ts +100 -0
  145. package/src/lib-public/generators/FA3/Wiersze.ts +126 -0
  146. package/src/lib-public/generators/FA3/Zamowienie.ts +143 -0
  147. package/src/lib-public/generators/common/DaneFaKorygowanej.ts +91 -0
  148. package/src/lib-public/generators/common/Naglowek.ts +84 -0
  149. package/src/lib-public/generators/common/Rozliczenie.ts +119 -0
  150. package/src/lib-public/generators/common/Stopka.ts +161 -0
  151. package/src/lib-public/generators/common/Wiersze.ts +32 -0
  152. package/src/lib-public/generators/common/Zalaczniki.ts +232 -0
  153. package/src/lib-public/index.ts +3 -0
  154. package/src/lib-public/types/common.types.ts +29 -0
  155. package/src/lib-public/types/fa1-additional-types.ts +26 -0
  156. package/src/lib-public/types/fa1.types.ts +299 -0
  157. package/src/lib-public/types/fa2-additional-types.ts +30 -0
  158. package/src/lib-public/types/fa2.types.ts +307 -0
  159. package/src/lib-public/types/fa2Podmiot3DaneIdentyfikacyjne.types.ts +12 -0
  160. package/src/lib-public/types/fa3.types.ts +384 -0
  161. package/src/lib-public/types/fa3Podmiot3DaneIdentyfikacyjne.types.ts +12 -0
  162. package/src/lib-public/types/tax-summary.types.ts +8 -0
  163. package/src/lib-public/types/upo-v4_2.types.ts +68 -0
  164. package/src/shared/PDF-functions.ts +466 -0
  165. package/src/shared/XML-parser.ts +42 -0
  166. package/src/shared/consts/const.ts +406 -0
  167. package/src/shared/enums/common.enum.ts +45 -0
  168. package/src/shared/enums/invoice.enums.ts +9 -0
  169. package/src/shared/generators/common/functions.ts +101 -0
  170. package/src/shared/types/additional-data.types.ts +15 -0
  171. package/src/shared/types/pdf-types.ts +58 -0
  172. package/src/shared/types/universal.types.ts +16 -0
  173. package/transformer.code-workspace +45 -0
  174. package/tsconfig.json +16 -0
@@ -0,0 +1,299 @@
1
+ export interface Faktura {
2
+ _attributes?: FakturaAttributes;
3
+ Naglowek?: Naglowek;
4
+ Podmiot1?: Podmiot1;
5
+ Podmiot2?: Podmiot2;
6
+ Podmiot3?: Podmiot3[];
7
+ PodmiotUpowazniony?: PodmiotUpowazniony;
8
+ Fa?: Fa;
9
+ Stopka?: Stopka;
10
+ }
11
+
12
+ export interface Fa {
13
+ KodWaluty?: FP;
14
+ P_1?: FP;
15
+ P_1M?: FP;
16
+ P_2?: FP;
17
+ WZ?: FP[];
18
+ P_6?: FP;
19
+ OkresFa?: Record<string, FP>;
20
+ P_13_1?: FP;
21
+ P_14_1?: FP;
22
+ P_14_1W?: FP;
23
+ P_13_2?: FP;
24
+ P_14_2?: FP;
25
+ P_14_2W?: FP;
26
+ P_13_3?: FP;
27
+ P_14_3?: FP;
28
+ P_14_3W?: FP;
29
+ P_13_4?: FP;
30
+ P_14_4?: FP;
31
+ P_14_4W?: FP;
32
+ P_13_5?: FP;
33
+ P_14_5?: FP;
34
+ P_13_6?: FP;
35
+ P_13_7?: FP;
36
+ P_15?: FP;
37
+ Adnotacje?: Adnotacje;
38
+ RodzajFaktury?: FP;
39
+ PrzyczynaKorekty?: FP;
40
+ TypKorekty?: FP;
41
+ DaneFaKorygowanej?: DaneFaKorygowanej[];
42
+ OkresFaKorygowanej?: FP;
43
+ NrFaKorygowany?: FP;
44
+ Podmiot1K?: Podmiot1K;
45
+ Podmiot2K?: Podmiot2K[];
46
+ FP?: FP;
47
+ TP?: FP;
48
+ DodatkowyOpis?: DodatkowyOpi[];
49
+ NrFaZaliczkowej?: FP[];
50
+ ZwrotAkcyzy?: FP;
51
+ FaWiersze?: FaWiersze;
52
+ Rozliczenie?: Rozliczenie;
53
+ Platnosc?: Platnosc;
54
+ WarunkiTransakcji?: WarunkiTransakcji;
55
+ Zamowienie?: Zamowienie;
56
+ }
57
+
58
+ export interface FP {
59
+ _text?: string;
60
+ }
61
+
62
+ export interface Adnotacje extends Record<string, FP | undefined> {
63
+ P_16?: FP;
64
+ P_17?: FP;
65
+ P_18?: FP;
66
+ P_18A?: FP;
67
+ P_19?: FP;
68
+ P_19A?: FP;
69
+ P_19B?: FP;
70
+ P_19C?: FP;
71
+ P_19N?: FP;
72
+ P_23?: FP;
73
+ P_PMarzy?: FP;
74
+ P_PMarzy_2?: FP;
75
+ P_PMarzy_3_1?: FP;
76
+ P_PMarzy_3_2?: FP;
77
+ P_PMarzy_3_3?: FP;
78
+ P_PMarzyN?: FP;
79
+ }
80
+
81
+ export interface DaneFaKorygowanej {
82
+ DataWystFaKorygowanej?: FP;
83
+ NrFaKorygowanej?: FP;
84
+ NrKSeFFaKorygowanej?: FP;
85
+ }
86
+
87
+ export interface DodatkowyOpi {
88
+ Klucz?: FP;
89
+ Wartosc?: FP;
90
+ }
91
+
92
+ export interface FaWiersze {
93
+ LiczbaWierszyFaktury?: FP;
94
+ WartoscWierszyFaktury1?: FP;
95
+ WartoscWierszyFaktury2?: FP;
96
+ FaWiersz?: Record<string, FP>[];
97
+ }
98
+
99
+ export interface Platnosc {
100
+ Zaplacono?: FP;
101
+ DataZaplaty?: FP;
102
+ ZaplataCzesciowa?: FP;
103
+ PlatnosciCzesciowe?: PlatnosciCzesciowe[];
104
+ TerminyPlatnosci?: TerminyPlatnosci[];
105
+ FormaPlatnosci?: FP;
106
+ PlatnoscInna?: FP;
107
+ OpisPlatnosci?: FP;
108
+ RachunekBankowy?: Record<string, FP>[];
109
+ RachunekBankowyFaktora?: Record<string, FP>[];
110
+ Skonto?: Skonto;
111
+ }
112
+
113
+ export interface PlatnosciCzesciowe {
114
+ KwotaZaplatyCzesciowej?: FP;
115
+ DataZaplatyCzesciowej?: FP;
116
+ }
117
+
118
+ export interface Skonto {
119
+ WarunkiSkonta?: FP;
120
+ WysokoscSkonta?: FP;
121
+ }
122
+
123
+ export interface TerminyPlatnosci {
124
+ TerminPlatnosci?: FP;
125
+ TerminPlatnosciOpis?: FP;
126
+ }
127
+
128
+ export interface Podmiot1K {
129
+ PrefiksPodatnika?: FP;
130
+ DaneIdentyfikacyjne?: DaneIdentyfikacyjne;
131
+ Adres?: Adres;
132
+ }
133
+
134
+ export interface Adres {
135
+ AdresPol?: Record<string, FP>;
136
+ AdresZagr?: Record<string, FP>;
137
+ }
138
+
139
+ export interface DaneIdentyfikacyjne {
140
+ NIP?: FP;
141
+ ImiePierwsze?: FP;
142
+ Nazwisko?: FP;
143
+ PelnaNazwa?: FP;
144
+ NazwaHandlowa?: FP;
145
+ }
146
+
147
+ export interface Podmiot2K {
148
+ PrefiksNabywcy?: FP;
149
+ DaneIdentyfikacyjne?: Record<string, FP>;
150
+ Adres?: Adres;
151
+ }
152
+
153
+ export interface Rozliczenie {
154
+ Obciazenia?: Zenia[];
155
+ SumaObciazen?: FP;
156
+ Odliczenia?: Zenia[];
157
+ SumaOdliczen?: FP;
158
+ DoZaplaty?: FP;
159
+ DoRozliczenia?: FP;
160
+ }
161
+
162
+ export interface Zenia {
163
+ Kwota?: FP;
164
+ Powod?: FP;
165
+ }
166
+
167
+ export interface WarunkiTransakcji {
168
+ Umowy?: Umowy[];
169
+ Zamowienia?: Zamowienia[];
170
+ NrPartiiTowaru?: FP[];
171
+ WarunkiDostawy?: FP;
172
+ KursUmowny?: FP;
173
+ WalutaUmowna?: FP;
174
+ Transport?: Transport[];
175
+ PodmiotPosredniczacy?: FP;
176
+ }
177
+
178
+ export interface Transport {
179
+ RodzajTransportu?: FP;
180
+ TransportInny?: FP;
181
+ OpisInnegoTransportu?: FP;
182
+ Przewoznik?: Przewoznik;
183
+ NrZleceniaTransportu?: FP;
184
+ OpisLadunku?: FP;
185
+ LadunekInny?: FP;
186
+ OpisInnegoLadunku?: FP;
187
+ JednostkaOpakowania?: FP;
188
+ DataGodzRozpTransportu?: FP;
189
+ DataGodzZakTransportu?: FP;
190
+ WysylkaZ?: Adres;
191
+ WysylkaPrzez?: Adres[];
192
+ WysylkaDo?: Adres;
193
+ }
194
+
195
+ export interface Przewoznik {
196
+ DaneIdentyfikacyjne?: Record<string, FP>;
197
+ AdresPrzewoznika?: Adres;
198
+ }
199
+
200
+ export interface Umowy {
201
+ DataUmowy?: FP;
202
+ NrUmowy?: FP;
203
+ }
204
+
205
+ export interface Zamowienia {
206
+ DataZamowienia?: FP;
207
+ NrZamowienia?: FP;
208
+ }
209
+
210
+ export interface Zamowienie {
211
+ LiczbaWierszyZamowienia?: FP;
212
+ WartoscZamowienia?: FP;
213
+ ZamowienieWiersz?: Record<string, FP>[];
214
+ }
215
+
216
+ export interface Naglowek {
217
+ KodFormularza?: KodFormularza;
218
+ WariantFormularza?: FP;
219
+ DataWytworzeniaFa?: FP;
220
+ SystemInfo?: FP;
221
+ }
222
+
223
+ export interface KodFormularza {
224
+ _attributes?: KodFormularzaAttributes;
225
+ _text?: string;
226
+ }
227
+
228
+ export interface KodFormularzaAttributes {
229
+ kodSystemowy?: string;
230
+ wersjaSchemy?: string;
231
+ }
232
+
233
+ export interface Podmiot1 {
234
+ PrefiksPodatnika?: FP;
235
+ NrEORI?: FP;
236
+ DaneIdentyfikacyjne?: DaneIdentyfikacyjne;
237
+ Adres?: Adres;
238
+ AdresKoresp?: Adres;
239
+ Email?: FP;
240
+ Telefon?: FP[];
241
+ StatusInfoPodatnika?: FP;
242
+ }
243
+
244
+ export interface Podmiot2 {
245
+ PrefiksNabywcy?: FP;
246
+ NrEORI?: FP;
247
+ DaneIdentyfikacyjne?: Record<string, FP>;
248
+ Adres?: Adres;
249
+ AdresKoresp?: Adres;
250
+ Email?: FP;
251
+ Telefon?: FP[];
252
+ NrKlienta?: FP;
253
+ }
254
+
255
+ export interface Podmiot3 {
256
+ NrEORI?: FP;
257
+ DaneIdentyfikacyjne?: Record<string, FP>;
258
+ Adres?: Adres;
259
+ AdresKoresp?: Adres;
260
+ Email?: FP;
261
+ Telefon?: FP[];
262
+ Rola?: FP;
263
+ RolaInna?: FP;
264
+ OpisRoli?: FP;
265
+ Udzial?: FP;
266
+ NrKlienta?: FP;
267
+ }
268
+
269
+ export interface PodmiotUpowazniony {
270
+ NrEORI?: FP;
271
+ DaneIdentyfikacyjne?: Record<string, FP>;
272
+ Adres?: Adres;
273
+ AdresKoresp?: Adres;
274
+ EmailPU?: FP;
275
+ TelefonPU?: FP[];
276
+ RolaPU?: FP;
277
+ }
278
+
279
+ export interface Stopka {
280
+ Informacje?: Informacje[];
281
+ Rejestry?: Rejestry[];
282
+ }
283
+
284
+ export interface Informacje {
285
+ StopkaFaktury?: FP;
286
+ }
287
+
288
+ export interface Rejestry {
289
+ PelnaNazwa?: FP;
290
+ KRS?: FP;
291
+ REGON?: FP;
292
+ BDO?: FP;
293
+ }
294
+
295
+ export interface FakturaAttributes {
296
+ tns?: string;
297
+ xsi?: string;
298
+ schemaLocation?: string;
299
+ }
@@ -0,0 +1,30 @@
1
+ import { Podmiot3 } from './fa2.types';
2
+ import { FP, Podmiot2K } from './fa1.types';
3
+
4
+ export interface Podmiot3Podmiot2KDto {
5
+ podmiot2KDto?: Podmiot2K;
6
+ fakturaPodmiotNDto: Podmiot3;
7
+ }
8
+
9
+ export interface DaneIdentyfikacyjneTPodmiot2Dto {
10
+ NIP?: FP;
11
+ KodUE?: FP;
12
+ KodKraju?: FP;
13
+ BrakID?: FP;
14
+ PelnaNazwa?: FP;
15
+ NazwaHandlowa?: FP;
16
+ ImiePierwsze?: FP;
17
+ Nazwisko?: FP;
18
+ NrID?: FP;
19
+ NrVatUE?: FP;
20
+ }
21
+
22
+ export interface DaneIdentyfikacyjneTPodmiot2Dto {
23
+ NIP?: FP;
24
+ KodUE?: FP;
25
+ KodKraju?: FP;
26
+ BrakID?: FP;
27
+ Nazwa?: FP;
28
+ NrID?: FP;
29
+ NrVatUE?: FP;
30
+ }
@@ -0,0 +1,307 @@
1
+ import {
2
+ DaneFaKorygowanej,
3
+ FakturaAttributes as FakturaAttributesFa1,
4
+ KodFormularza as KodFormularzaFa1,
5
+ Stopka as StopkaFa1,
6
+ Umowy as UmowyFa1,
7
+ Zamowienia as ZamowieniaFa1,
8
+ Zenia as ZeniaFa1,
9
+ } from './fa1.types';
10
+
11
+ export interface Faktura {
12
+ _attributes?: FakturaAttributes;
13
+ Naglowek?: Naglowek;
14
+ Podmiot1?: Podmiot1;
15
+ Podmiot2?: Podmiot2;
16
+ Podmiot3?: Podmiot3[];
17
+ PodmiotUpowazniony?: PodmiotUpowazniony;
18
+ Fa?: Fa;
19
+ Stopka?: Stopka;
20
+ }
21
+
22
+ export interface Fa {
23
+ KodWaluty?: FP;
24
+ P_1?: FP;
25
+ P_1M?: FP;
26
+ P_2?: FP;
27
+ WZ?: FP[];
28
+ P_6?: FP;
29
+ OkresFa?: Record<string, FP>;
30
+ P_13_1?: FP;
31
+ P_14_1?: FP;
32
+ P_14_1W?: FP;
33
+ P_13_2?: FP;
34
+ P_14_2?: FP;
35
+ P_14_2W?: FP;
36
+ P_13_3?: FP;
37
+ P_14_3?: FP;
38
+ P_14_3W?: FP;
39
+ P_13_4?: FP;
40
+ P_14_4?: FP;
41
+ P_14_4W?: FP;
42
+ P_13_5?: FP;
43
+ P_14_5?: FP;
44
+ P_13_6_1?: FP;
45
+ P_13_6_2?: FP;
46
+ P_13_6_3?: FP;
47
+ P_13_7?: FP;
48
+ P_13_8?: FP;
49
+ P_13_9?: FP;
50
+ P_13_10?: FP;
51
+ P_13_11?: FP;
52
+ P_15?: FP;
53
+ KursWalutyZ?: FP;
54
+ Adnotacje?: Adnotacje;
55
+ RodzajFaktury?: FP;
56
+ PrzyczynaKorekty?: FP;
57
+ TypKorekty?: FP;
58
+ DaneFaKorygowanej?: DaneFaKorygowanej;
59
+ OkresFaKorygowanej?: FP;
60
+ NrFaKorygowany?: FP;
61
+ Podmiot1K?: Podmiot1K;
62
+ Podmiot2K?: Podmiot2K[];
63
+ P_15ZK?: FP;
64
+ KursWalutyZK?: FP;
65
+ ZaliczkaCzesciowa?: ZaliczkaCzesciowa[];
66
+ FP?: FP;
67
+ TP?: FP;
68
+ DodatkowyOpis?: DodatkowyOpi[];
69
+ FakturaZaliczkowa?: Record<string, FP>[];
70
+ ZwrotAkcyzy?: FP;
71
+ FaWiersz?: Record<string, FP>[];
72
+ Rozliczenie?: Rozliczenie;
73
+ Platnosc?: Platnosc;
74
+ WarunkiTransakcji?: WarunkiTransakcji;
75
+ Zamowienie?: Zamowienie;
76
+ }
77
+
78
+ export interface Adnotacje {
79
+ P_16?: FP;
80
+ P_17?: FP;
81
+ P_18?: FP;
82
+ P_18A?: FP;
83
+ Zwolnienie?: Zwolnienie;
84
+ NoweSrodkiTransportu?: NoweSrodkiTransportu;
85
+ P_23?: FP;
86
+ PMarzy?: PMarzy;
87
+ }
88
+
89
+ export interface NoweSrodkiTransportu {
90
+ P_22?: FP;
91
+ P_42_5?: FP;
92
+ NowySrodekTransportu?: Record<string, FP>[];
93
+ P_22N?: FP;
94
+ }
95
+
96
+ export interface FP {
97
+ _text?: string;
98
+ }
99
+
100
+ export interface PMarzy {
101
+ P_PMarzy?: FP;
102
+ P_PMarzy_2?: FP;
103
+ P_PMarzy_3_1?: FP;
104
+ P_PMarzy_3_2?: FP;
105
+ P_PMarzy_3_3?: FP;
106
+ P_PMarzyN?: FP;
107
+ }
108
+
109
+ export interface Zwolnienie {
110
+ P_19?: FP;
111
+ P_19A?: FP;
112
+ P_19B?: FP;
113
+ P_19C?: FP;
114
+ P_19N?: FP;
115
+ }
116
+
117
+ export interface DodatkowyOpi {
118
+ NrWiersza?: FP;
119
+ Klucz?: FP;
120
+ Wartosc?: FP;
121
+ }
122
+
123
+ export interface Platnosc {
124
+ Zaplacono?: FP;
125
+ DataZaplaty?: FP;
126
+ ZnacznikZaplatyCzesciowej?: FP;
127
+ ZaplataCzesciowa?: ZaplataCzesciowa[];
128
+ TerminPlatnosci?: TerminPlatnosci[];
129
+ FormaPlatnosci?: FP;
130
+ PlatnoscInna?: FP;
131
+ OpisPlatnosci?: FP;
132
+ RachunekBankowy?: RachunekBankowy[];
133
+ RachunekBankowyFaktora?: RachunekBankowy[];
134
+ Skonto?: Skonto;
135
+ }
136
+
137
+ export interface RachunekBankowy {
138
+ NrRB?: FP;
139
+ SWIFT?: FP;
140
+ RachunekWlasnyBanku?: FP;
141
+ NazwaBanku?: FP;
142
+ OpisRachunku?: FP;
143
+ }
144
+
145
+ export interface Skonto {
146
+ WarunkiSkonta?: FP;
147
+ WysokoscSkonta?: FP;
148
+ }
149
+
150
+ export interface TerminPlatnosci {
151
+ Termin?: FP;
152
+ TerminOpis?: FP;
153
+ }
154
+
155
+ export interface ZaplataCzesciowa {
156
+ KwotaZaplatyCzesciowej?: FP;
157
+ DataZaplatyCzesciowej?: FP;
158
+ }
159
+
160
+ export interface Podmiot1K {
161
+ PrefiksPodatnika?: FP;
162
+ DaneIdentyfikacyjne?: DaneIdentyfikacyjne;
163
+ Adres?: Adres;
164
+ }
165
+
166
+ export interface Adres {
167
+ KodKraju?: FP;
168
+ AdresL1?: FP;
169
+ AdresL2?: FP;
170
+ GLN?: FP;
171
+ }
172
+
173
+ export interface DaneIdentyfikacyjne {
174
+ NIP?: FP;
175
+ Nazwa?: FP;
176
+ }
177
+
178
+ export interface Podmiot2K {
179
+ DaneIdentyfikacyjne?: Record<string, FP>;
180
+ Adres?: Adres;
181
+ IDNabywcy?: FP;
182
+ }
183
+
184
+ export interface Rozliczenie {
185
+ Obciazenia?: Zenia[];
186
+ SumaObciazen?: FP;
187
+ Odliczenia?: Zenia[];
188
+ SumaOdliczen?: FP;
189
+ DoZaplaty?: FP;
190
+ DoRozliczenia?: FP;
191
+ }
192
+
193
+ export interface Zenia extends ZeniaFa1 {}
194
+
195
+ export interface WarunkiTransakcji {
196
+ Umowy?: Umowy[];
197
+ Zamowienia?: Zamowienia[];
198
+ NrPartiiTowaru?: FP[];
199
+ WarunkiDostawy?: FP;
200
+ KursUmowny?: FP;
201
+ WalutaUmowna?: FP;
202
+ Transport?: Transport[];
203
+ PodmiotPosredniczacy?: FP;
204
+ }
205
+
206
+ export interface Transport {
207
+ RodzajTransportu?: FP;
208
+ TransportInny?: FP;
209
+ OpisInnegoTransportu?: FP;
210
+ Przewoznik?: Przewoznik;
211
+ NrZleceniaTransportu?: FP;
212
+ OpisLadunku?: FP;
213
+ LadunekInny?: FP;
214
+ OpisInnegoLadunku?: FP;
215
+ JednostkaOpakowania?: FP;
216
+ DataGodzRozpTransportu?: FP;
217
+ DataGodzZakTransportu?: FP;
218
+ WysylkaZ?: Adres;
219
+ WysylkaPrzez?: Adres[];
220
+ WysylkaDo?: Adres;
221
+ }
222
+
223
+ export interface Przewoznik {
224
+ DaneIdentyfikacyjne?: Record<string, FP>;
225
+ AdresPrzewoznika?: Adres;
226
+ }
227
+
228
+ export interface Umowy extends UmowyFa1 {}
229
+
230
+ export interface Zamowienia extends ZamowieniaFa1 {}
231
+
232
+ export interface ZaliczkaCzesciowa {
233
+ P_6Z?: FP;
234
+ P_15Z?: FP;
235
+ KursWalutyZW?: FP;
236
+ }
237
+
238
+ export interface Zamowienie {
239
+ WartoscZamowienia?: FP;
240
+ ZamowienieWiersz?: Record<string, FP>[];
241
+ }
242
+
243
+ export interface Naglowek {
244
+ KodFormularza?: KodFormularza;
245
+ WariantFormularza?: FP;
246
+ DataWytworzeniaFa?: FP;
247
+ SystemInfo?: FP;
248
+ }
249
+
250
+ export interface KodFormularza extends KodFormularzaFa1 {}
251
+
252
+ export interface Podmiot1 {
253
+ PrefiksPodatnika?: FP;
254
+ NrEORI?: FP;
255
+ DaneIdentyfikacyjne?: DaneIdentyfikacyjne;
256
+ Adres?: Adres;
257
+ AdresKoresp?: Adres;
258
+ DaneKontaktowe?: Podmiot1DaneKontaktowe[];
259
+ StatusInfoPodatnika?: FP;
260
+ }
261
+
262
+ export interface Podmiot1DaneKontaktowe {
263
+ Email?: FP;
264
+ Telefon?: FP;
265
+ }
266
+
267
+ export interface Podmiot2 {
268
+ NrEORI?: FP;
269
+ DaneIdentyfikacyjne?: Record<string, FP>;
270
+ Adres?: Adres;
271
+ AdresKoresp?: Adres;
272
+ DaneKontaktowe?: Podmiot1DaneKontaktowe[];
273
+ NrKlienta?: FP;
274
+ IDNabywcy?: FP;
275
+ }
276
+
277
+ export interface Podmiot3 {
278
+ IDNabywcy?: FP;
279
+ NrEORI?: FP;
280
+ DaneIdentyfikacyjne?: Record<string, FP>;
281
+ Adres?: Adres;
282
+ AdresKoresp?: Adres;
283
+ DaneKontaktowe?: Podmiot1DaneKontaktowe[];
284
+ Rola?: FP;
285
+ RolaInna?: FP;
286
+ OpisRoli?: FP;
287
+ Udzial?: FP;
288
+ NrKlienta?: FP;
289
+ }
290
+
291
+ export interface PodmiotUpowazniony {
292
+ NrEORI?: FP;
293
+ DaneIdentyfikacyjne?: DaneIdentyfikacyjne;
294
+ Adres?: Adres;
295
+ AdresKoresp?: Adres;
296
+ DaneKontaktowe?: PodmiotUpowaznionyDaneKontaktowe[];
297
+ RolaPU?: FP;
298
+ }
299
+
300
+ export interface PodmiotUpowaznionyDaneKontaktowe {
301
+ EmailPU?: FP;
302
+ TelefonPU?: FP;
303
+ }
304
+
305
+ export interface Stopka extends StopkaFa1 {}
306
+
307
+ export interface FakturaAttributes extends FakturaAttributesFa1 {}
@@ -0,0 +1,12 @@
1
+ import { FP } from './fa2.types';
2
+
3
+ export interface Podmiot3DaneIdentyfikacyjne {
4
+ NIP?: FP;
5
+ IDWew?: FP;
6
+ KodUE?: FP;
7
+ NrVatUE?: FP;
8
+ KodKraju?: FP;
9
+ NrID?: FP;
10
+ BrakID?: FP;
11
+ Nazwa?: FP;
12
+ }