@ayasofyazilim/saas 0.0.90 → 0.0.91

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.
@@ -6,7 +6,7 @@ import { FetchHttpRequest } from './core/FetchHttpRequest';
6
6
  import { AbpApiDefinitionService } from './services.gen';
7
7
  import { AbpApplicationConfigurationService } from './services.gen';
8
8
  import { AbpApplicationLocalizationService } from './services.gen';
9
- import { BillingService } from './services.gen';
9
+ import { VatStatementHeaderService } from './services.gen';
10
10
 
11
11
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
12
12
 
@@ -15,7 +15,7 @@ export class FinanceServiceClient {
15
15
  public readonly abpApiDefinition: AbpApiDefinitionService;
16
16
  public readonly abpApplicationConfiguration: AbpApplicationConfigurationService;
17
17
  public readonly abpApplicationLocalization: AbpApplicationLocalizationService;
18
- public readonly billing: BillingService;
18
+ public readonly vatStatementHeader: VatStatementHeaderService;
19
19
 
20
20
  public readonly request: BaseHttpRequest;
21
21
 
@@ -39,6 +39,6 @@ export class FinanceServiceClient {
39
39
  this.abpApiDefinition = new AbpApiDefinitionService(this.request);
40
40
  this.abpApplicationConfiguration = new AbpApplicationConfigurationService(this.request);
41
41
  this.abpApplicationLocalization = new AbpApplicationLocalizationService(this.request);
42
- this.billing = new BillingService(this.request);
42
+ this.vatStatementHeader = new VatStatementHeaderService(this.request);
43
43
  }
44
44
  }
@@ -1,56 +1,56 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
 
3
- export const $PagedResultDto_BillingDto = {
3
+ export const $PagedResultDto_VATStatementHeaderForListDto = {
4
4
  type: 'object',
5
5
  properties: {
6
6
  items: {
7
7
  type: 'array',
8
8
  items: {
9
- required: ['date', 'dueDate', 'merchantId', 'number', 'paymentStatus', 'period', 'status', 'total', 'unpaid'],
9
+ required: ['dueDate', 'id', 'invoiceNumber', 'merchantId', 'merchantName', 'paymentStatus', 'status', 'tagCount', 'total', 'unpaid', 'vatStatementDate'],
10
10
  type: 'object',
11
11
  properties: {
12
12
  id: {
13
13
  type: 'string',
14
14
  format: 'uuid'
15
15
  },
16
+ invoiceNumber: {
17
+ minLength: 1,
18
+ type: 'string'
19
+ },
16
20
  merchantId: {
17
21
  type: 'string',
18
22
  format: 'uuid'
19
23
  },
24
+ tagCount: {
25
+ type: 'integer',
26
+ format: 'int32'
27
+ },
20
28
  merchantName: {
21
- type: 'string',
22
- nullable: true
29
+ minLength: 1,
30
+ type: 'string'
23
31
  },
24
- date: {
32
+ vatStatementDate: {
25
33
  type: 'string',
26
34
  format: 'date-time'
27
35
  },
28
- number: {
29
- type: 'integer',
30
- format: 'int32'
31
- },
32
36
  dueDate: {
33
37
  type: 'string',
34
38
  format: 'date-time'
35
39
  },
36
40
  total: {
37
41
  type: 'number',
38
- format: 'float'
42
+ format: 'double'
39
43
  },
40
44
  unpaid: {
41
45
  type: 'number',
42
- format: 'float'
46
+ format: 'double'
43
47
  },
44
48
  status: {
45
- enum: ['PAID', 'CREDITNOTE', 'CANCELLED', 'UNFINISHED', 'SENT'],
46
- type: 'string'
47
- },
48
- period: {
49
- enum: ['ONETIMEPERMONTH', 'TWOTIMESPERMONTH', 'ONETIMEPERWEEK'],
49
+ enum: ['Unfinished', 'Approved', 'Processing', 'Error', 'Sent', 'PaymentReminder1', 'PaymentReminder2', 'PaymentReminder3', 'DebtCollection', 'Cancelled', 'CreditNote', 'Paid'],
50
50
  type: 'string'
51
51
  },
52
52
  paymentStatus: {
53
- enum: ['PAID', 'NOTPAID', 'PARTIALLYPAID'],
53
+ enum: ['NotPaid', 'PartlyPaid', 'Paid', 'OverPaid'],
54
54
  type: 'string'
55
55
  }
56
56
  },
@@ -66,159 +66,578 @@ export const $PagedResultDto_BillingDto = {
66
66
  additionalProperties: false
67
67
  } as const;
68
68
 
69
- export const $UniRefund_FinanceService_Billings_BillingDto = {
70
- required: ['date', 'dueDate', 'merchantId', 'number', 'paymentStatus', 'period', 'status', 'total', 'unpaid'],
69
+ export const $UniRefund_ContractService_Enums_InvoiceChannel = {
70
+ enum: ['ElectronicInvoice', 'Email', 'PaperInvoice'],
71
+ type: 'string'
72
+ } as const;
73
+
74
+ export const $UniRefund_ContractService_Enums_InvoicingFrequency = {
75
+ enum: ['OneTimePerMonth', 'TwoTimesPerMonth'],
76
+ type: 'string'
77
+ } as const;
78
+
79
+ export const $UniRefund_FinanceService_Enums_PaymentStatus = {
80
+ enum: ['NotPaid', 'PartlyPaid', 'Paid', 'OverPaid'],
81
+ type: 'string'
82
+ } as const;
83
+
84
+ export const $UniRefund_FinanceService_Enums_VATStatementStatus = {
85
+ enum: ['Unfinished', 'Approved', 'Processing', 'Error', 'Sent', 'PaymentReminder1', 'PaymentReminder2', 'PaymentReminder3', 'DebtCollection', 'Cancelled', 'CreditNote', 'Paid'],
86
+ type: 'string'
87
+ } as const;
88
+
89
+ export const $UniRefund_FinanceService_VATStatementHeaders_VATStatementHeaderCreateDto = {
90
+ required: ['merchantId', 'month', 'vatStatementDate', 'year'],
71
91
  type: 'object',
72
92
  properties: {
73
- id: {
93
+ extraProperties: {
94
+ type: 'object',
95
+ additionalProperties: {},
96
+ nullable: true,
97
+ readOnly: true
98
+ },
99
+ merchantId: {
74
100
  type: 'string',
75
101
  format: 'uuid'
76
102
  },
77
- merchantId: {
103
+ year: {
104
+ type: 'integer',
105
+ format: 'int32'
106
+ },
107
+ month: {
108
+ type: 'integer',
109
+ format: 'int32'
110
+ },
111
+ vatStatementDate: {
112
+ type: 'string',
113
+ format: 'date-time'
114
+ }
115
+ },
116
+ additionalProperties: false
117
+ } as const;
118
+
119
+ export const $UniRefund_FinanceService_VATStatementHeaders_VATStatementHeaderDetailDto = {
120
+ required: ['billingPeriod', 'deliveryMethod', 'dueDate', 'invoiceNumber', 'merchantId', 'merchantName', 'paymentStatus', 'referenceDateBegin', 'referenceDateEnd', 'status', 'tagCount', 'termOfPayment', 'total', 'unpaid', 'vatStatementDate'],
121
+ type: 'object',
122
+ properties: {
123
+ id: {
78
124
  type: 'string',
79
125
  format: 'uuid'
80
126
  },
81
- merchantName: {
127
+ creationTime: {
82
128
  type: 'string',
129
+ format: 'date-time'
130
+ },
131
+ creatorId: {
132
+ type: 'string',
133
+ format: 'uuid',
83
134
  nullable: true
84
135
  },
85
- date: {
136
+ lastModificationTime: {
86
137
  type: 'string',
87
- format: 'date-time'
138
+ format: 'date-time',
139
+ nullable: true
140
+ },
141
+ lastModifierId: {
142
+ type: 'string',
143
+ format: 'uuid',
144
+ nullable: true
145
+ },
146
+ isDeleted: {
147
+ type: 'boolean'
88
148
  },
89
- number: {
149
+ deleterId: {
150
+ type: 'string',
151
+ format: 'uuid',
152
+ nullable: true
153
+ },
154
+ deletionTime: {
155
+ type: 'string',
156
+ format: 'date-time',
157
+ nullable: true
158
+ },
159
+ invoiceNumber: {
160
+ minLength: 1,
161
+ type: 'string'
162
+ },
163
+ merchantId: {
164
+ type: 'string',
165
+ format: 'uuid'
166
+ },
167
+ tagCount: {
90
168
  type: 'integer',
91
169
  format: 'int32'
92
170
  },
171
+ merchantName: {
172
+ minLength: 1,
173
+ type: 'string'
174
+ },
175
+ vatStatementDate: {
176
+ type: 'string',
177
+ format: 'date-time'
178
+ },
93
179
  dueDate: {
94
180
  type: 'string',
95
181
  format: 'date-time'
96
182
  },
97
183
  total: {
98
184
  type: 'number',
99
- format: 'float'
185
+ format: 'double'
100
186
  },
101
187
  unpaid: {
102
188
  type: 'number',
103
- format: 'float'
189
+ format: 'double'
104
190
  },
105
191
  status: {
106
- enum: ['PAID', 'CREDITNOTE', 'CANCELLED', 'UNFINISHED', 'SENT'],
192
+ enum: ['Unfinished', 'Approved', 'Processing', 'Error', 'Sent', 'PaymentReminder1', 'PaymentReminder2', 'PaymentReminder3', 'DebtCollection', 'Cancelled', 'CreditNote', 'Paid'],
107
193
  type: 'string'
108
194
  },
109
- period: {
110
- enum: ['ONETIMEPERMONTH', 'TWOTIMESPERMONTH', 'ONETIMEPERWEEK'],
195
+ billingPeriod: {
196
+ enum: ['OneTimePerMonth', 'TwoTimesPerMonth'],
111
197
  type: 'string'
112
198
  },
199
+ termOfPayment: {
200
+ type: 'integer',
201
+ format: 'int32'
202
+ },
113
203
  paymentStatus: {
114
- enum: ['PAID', 'NOTPAID', 'PARTIALLYPAID'],
204
+ enum: ['NotPaid', 'PartlyPaid', 'Paid', 'OverPaid'],
115
205
  type: 'string'
206
+ },
207
+ isFactoring: {
208
+ type: 'boolean'
209
+ },
210
+ referenceDateBegin: {
211
+ type: 'string',
212
+ format: 'date-time'
213
+ },
214
+ referenceDateEnd: {
215
+ type: 'string',
216
+ format: 'date-time'
217
+ },
218
+ deliveryMethod: {
219
+ enum: ['ElectronicInvoice', 'Email', 'PaperInvoice'],
220
+ type: 'string'
221
+ },
222
+ customerNumber: {
223
+ type: 'string',
224
+ nullable: true
225
+ },
226
+ referenceNumber: {
227
+ type: 'string',
228
+ nullable: true
229
+ },
230
+ yourReference: {
231
+ type: 'string',
232
+ nullable: true
233
+ },
234
+ contractHeaderId: {
235
+ type: 'string',
236
+ format: 'uuid'
237
+ },
238
+ vatStatementTagDetails: {
239
+ type: 'array',
240
+ items: {
241
+ required: ['grandTotal', 'refundAmount', 'refundDate', 'tagId', 'tagNumber', 'taxAmount'],
242
+ type: 'object',
243
+ properties: {
244
+ tagId: {
245
+ type: 'string',
246
+ format: 'uuid'
247
+ },
248
+ tagNumber: {
249
+ minLength: 1,
250
+ type: 'string'
251
+ },
252
+ refundDate: {
253
+ type: 'string',
254
+ format: 'date-time'
255
+ },
256
+ grandTotal: {
257
+ type: 'number',
258
+ format: 'double'
259
+ },
260
+ taxAmount: {
261
+ type: 'number',
262
+ format: 'double'
263
+ },
264
+ refundAmount: {
265
+ type: 'number',
266
+ format: 'double'
267
+ },
268
+ correctedAmount: {
269
+ type: 'number',
270
+ format: 'double',
271
+ nullable: true
272
+ }
273
+ },
274
+ additionalProperties: false
275
+ },
276
+ nullable: true
116
277
  }
117
278
  },
118
279
  additionalProperties: false
119
280
  } as const;
120
281
 
121
- export const $UniRefund_FinanceService_Billings_CreateBillingDto = {
122
- required: ['date', 'dueDate', 'merchantId', 'number', 'paymentStatus', 'period', 'status', 'total', 'unpaid'],
282
+ export const $UniRefund_FinanceService_VATStatementHeaders_VATStatementHeaderDto = {
283
+ required: ['billingPeriod', 'deliveryMethod', 'dueDate', 'invoiceNumber', 'merchantId', 'merchantName', 'paymentStatus', 'referenceDateBegin', 'referenceDateEnd', 'status', 'tagCount', 'termOfPayment', 'total', 'unpaid', 'vatStatementDate'],
123
284
  type: 'object',
124
285
  properties: {
125
- merchantId: {
286
+ id: {
126
287
  type: 'string',
127
288
  format: 'uuid'
128
289
  },
129
- date: {
290
+ creationTime: {
130
291
  type: 'string',
131
292
  format: 'date-time'
132
293
  },
133
- number: {
294
+ creatorId: {
295
+ type: 'string',
296
+ format: 'uuid',
297
+ nullable: true
298
+ },
299
+ lastModificationTime: {
300
+ type: 'string',
301
+ format: 'date-time',
302
+ nullable: true
303
+ },
304
+ lastModifierId: {
305
+ type: 'string',
306
+ format: 'uuid',
307
+ nullable: true
308
+ },
309
+ isDeleted: {
310
+ type: 'boolean'
311
+ },
312
+ deleterId: {
313
+ type: 'string',
314
+ format: 'uuid',
315
+ nullable: true
316
+ },
317
+ deletionTime: {
318
+ type: 'string',
319
+ format: 'date-time',
320
+ nullable: true
321
+ },
322
+ invoiceNumber: {
323
+ minLength: 1,
324
+ type: 'string'
325
+ },
326
+ merchantId: {
327
+ type: 'string',
328
+ format: 'uuid'
329
+ },
330
+ tagCount: {
134
331
  type: 'integer',
135
332
  format: 'int32'
136
333
  },
334
+ merchantName: {
335
+ minLength: 1,
336
+ type: 'string'
337
+ },
338
+ vatStatementDate: {
339
+ type: 'string',
340
+ format: 'date-time'
341
+ },
137
342
  dueDate: {
138
343
  type: 'string',
139
344
  format: 'date-time'
140
345
  },
141
346
  total: {
142
347
  type: 'number',
143
- format: 'float'
348
+ format: 'double'
144
349
  },
145
350
  unpaid: {
146
351
  type: 'number',
147
- format: 'float'
352
+ format: 'double'
148
353
  },
149
354
  status: {
150
- enum: ['PAID', 'CREDITNOTE', 'CANCELLED', 'UNFINISHED', 'SENT'],
355
+ enum: ['Unfinished', 'Approved', 'Processing', 'Error', 'Sent', 'PaymentReminder1', 'PaymentReminder2', 'PaymentReminder3', 'DebtCollection', 'Cancelled', 'CreditNote', 'Paid'],
151
356
  type: 'string'
152
357
  },
153
- period: {
154
- enum: ['ONETIMEPERMONTH', 'TWOTIMESPERMONTH', 'ONETIMEPERWEEK'],
358
+ billingPeriod: {
359
+ enum: ['OneTimePerMonth', 'TwoTimesPerMonth'],
155
360
  type: 'string'
156
361
  },
362
+ termOfPayment: {
363
+ type: 'integer',
364
+ format: 'int32'
365
+ },
157
366
  paymentStatus: {
158
- enum: ['PAID', 'NOTPAID', 'PARTIALLYPAID'],
367
+ enum: ['NotPaid', 'PartlyPaid', 'Paid', 'OverPaid'],
159
368
  type: 'string'
369
+ },
370
+ isFactoring: {
371
+ type: 'boolean'
372
+ },
373
+ referenceDateBegin: {
374
+ type: 'string',
375
+ format: 'date-time'
376
+ },
377
+ referenceDateEnd: {
378
+ type: 'string',
379
+ format: 'date-time'
380
+ },
381
+ deliveryMethod: {
382
+ enum: ['ElectronicInvoice', 'Email', 'PaperInvoice'],
383
+ type: 'string'
384
+ },
385
+ customerNumber: {
386
+ type: 'string',
387
+ nullable: true
388
+ },
389
+ referenceNumber: {
390
+ type: 'string',
391
+ nullable: true
392
+ },
393
+ yourReference: {
394
+ type: 'string',
395
+ nullable: true
396
+ },
397
+ contractHeaderId: {
398
+ type: 'string',
399
+ format: 'uuid'
400
+ },
401
+ vatStatementTagDetails: {
402
+ type: 'array',
403
+ items: {
404
+ required: ['grandTotal', 'refundAmount', 'refundDate', 'tagId', 'tagNumber', 'taxAmount'],
405
+ type: 'object',
406
+ properties: {
407
+ id: {
408
+ type: 'string',
409
+ format: 'uuid'
410
+ },
411
+ creationTime: {
412
+ type: 'string',
413
+ format: 'date-time'
414
+ },
415
+ creatorId: {
416
+ type: 'string',
417
+ format: 'uuid',
418
+ nullable: true
419
+ },
420
+ lastModificationTime: {
421
+ type: 'string',
422
+ format: 'date-time',
423
+ nullable: true
424
+ },
425
+ lastModifierId: {
426
+ type: 'string',
427
+ format: 'uuid',
428
+ nullable: true
429
+ },
430
+ isDeleted: {
431
+ type: 'boolean'
432
+ },
433
+ deleterId: {
434
+ type: 'string',
435
+ format: 'uuid',
436
+ nullable: true
437
+ },
438
+ deletionTime: {
439
+ type: 'string',
440
+ format: 'date-time',
441
+ nullable: true
442
+ },
443
+ tagId: {
444
+ type: 'string',
445
+ format: 'uuid'
446
+ },
447
+ tagNumber: {
448
+ minLength: 1,
449
+ type: 'string'
450
+ },
451
+ refundDate: {
452
+ type: 'string',
453
+ format: 'date-time'
454
+ },
455
+ grandTotal: {
456
+ type: 'number',
457
+ format: 'double'
458
+ },
459
+ taxAmount: {
460
+ type: 'number',
461
+ format: 'double'
462
+ },
463
+ refundAmount: {
464
+ type: 'number',
465
+ format: 'double'
466
+ },
467
+ correctedAmount: {
468
+ type: 'number',
469
+ format: 'double',
470
+ nullable: true
471
+ }
472
+ },
473
+ additionalProperties: false
474
+ },
475
+ nullable: true
160
476
  }
161
477
  },
162
478
  additionalProperties: false
163
479
  } as const;
164
480
 
165
- export const $UniRefund_FinanceService_Billings_UpdateBillingDto = {
166
- required: ['date', 'dueDate', 'merchantId', 'number', 'paymentStatus', 'period', 'total', 'unpaid'],
481
+ export const $UniRefund_FinanceService_VATStatementHeaders_VATStatementHeaderForListDto = {
482
+ required: ['dueDate', 'id', 'invoiceNumber', 'merchantId', 'merchantName', 'paymentStatus', 'status', 'tagCount', 'total', 'unpaid', 'vatStatementDate'],
167
483
  type: 'object',
168
484
  properties: {
169
- merchantId: {
485
+ id: {
170
486
  type: 'string',
171
487
  format: 'uuid'
172
488
  },
173
- date: {
489
+ invoiceNumber: {
490
+ minLength: 1,
491
+ type: 'string'
492
+ },
493
+ merchantId: {
174
494
  type: 'string',
175
- format: 'date-time'
495
+ format: 'uuid'
176
496
  },
177
- number: {
497
+ tagCount: {
178
498
  type: 'integer',
179
499
  format: 'int32'
180
500
  },
501
+ merchantName: {
502
+ minLength: 1,
503
+ type: 'string'
504
+ },
505
+ vatStatementDate: {
506
+ type: 'string',
507
+ format: 'date-time'
508
+ },
181
509
  dueDate: {
182
510
  type: 'string',
183
511
  format: 'date-time'
184
512
  },
185
513
  total: {
186
514
  type: 'number',
187
- format: 'float'
515
+ format: 'double'
188
516
  },
189
517
  unpaid: {
190
518
  type: 'number',
191
- format: 'float'
519
+ format: 'double'
192
520
  },
193
521
  status: {
194
- enum: ['PAID', 'CREDITNOTE', 'CANCELLED', 'UNFINISHED', 'SENT'],
195
- type: 'string'
196
- },
197
- period: {
198
- enum: ['ONETIMEPERMONTH', 'TWOTIMESPERMONTH', 'ONETIMEPERWEEK'],
522
+ enum: ['Unfinished', 'Approved', 'Processing', 'Error', 'Sent', 'PaymentReminder1', 'PaymentReminder2', 'PaymentReminder3', 'DebtCollection', 'Cancelled', 'CreditNote', 'Paid'],
199
523
  type: 'string'
200
524
  },
201
525
  paymentStatus: {
202
- enum: ['PAID', 'NOTPAID', 'PARTIALLYPAID'],
526
+ enum: ['NotPaid', 'PartlyPaid', 'Paid', 'OverPaid'],
203
527
  type: 'string'
204
528
  }
205
529
  },
206
530
  additionalProperties: false
207
531
  } as const;
208
532
 
209
- export const $UniRefund_FinanceService_Enums_BillingPaymentStatusCode = {
210
- enum: ['PAID', 'NOTPAID', 'PARTIALLYPAID'],
211
- type: 'string'
212
- } as const;
213
-
214
- export const $UniRefund_FinanceService_Enums_BillingPeriodCode = {
215
- enum: ['ONETIMEPERMONTH', 'TWOTIMESPERMONTH', 'ONETIMEPERWEEK'],
216
- type: 'string'
533
+ export const $UniRefund_FinanceService_VATStatementTagDetails_VATStatementTagDetailDto = {
534
+ required: ['grandTotal', 'refundAmount', 'refundDate', 'tagId', 'tagNumber', 'taxAmount'],
535
+ type: 'object',
536
+ properties: {
537
+ id: {
538
+ type: 'string',
539
+ format: 'uuid'
540
+ },
541
+ creationTime: {
542
+ type: 'string',
543
+ format: 'date-time'
544
+ },
545
+ creatorId: {
546
+ type: 'string',
547
+ format: 'uuid',
548
+ nullable: true
549
+ },
550
+ lastModificationTime: {
551
+ type: 'string',
552
+ format: 'date-time',
553
+ nullable: true
554
+ },
555
+ lastModifierId: {
556
+ type: 'string',
557
+ format: 'uuid',
558
+ nullable: true
559
+ },
560
+ isDeleted: {
561
+ type: 'boolean'
562
+ },
563
+ deleterId: {
564
+ type: 'string',
565
+ format: 'uuid',
566
+ nullable: true
567
+ },
568
+ deletionTime: {
569
+ type: 'string',
570
+ format: 'date-time',
571
+ nullable: true
572
+ },
573
+ tagId: {
574
+ type: 'string',
575
+ format: 'uuid'
576
+ },
577
+ tagNumber: {
578
+ minLength: 1,
579
+ type: 'string'
580
+ },
581
+ refundDate: {
582
+ type: 'string',
583
+ format: 'date-time'
584
+ },
585
+ grandTotal: {
586
+ type: 'number',
587
+ format: 'double'
588
+ },
589
+ taxAmount: {
590
+ type: 'number',
591
+ format: 'double'
592
+ },
593
+ refundAmount: {
594
+ type: 'number',
595
+ format: 'double'
596
+ },
597
+ correctedAmount: {
598
+ type: 'number',
599
+ format: 'double',
600
+ nullable: true
601
+ }
602
+ },
603
+ additionalProperties: false
217
604
  } as const;
218
605
 
219
- export const $UniRefund_FinanceService_Enums_BillingStatusCode = {
220
- enum: ['PAID', 'CREDITNOTE', 'CANCELLED', 'UNFINISHED', 'SENT'],
221
- type: 'string'
606
+ export const $UniRefund_FinanceService_VATStatementTagDetails_VATStatementTagDetailWithoutAuditedDto = {
607
+ required: ['grandTotal', 'refundAmount', 'refundDate', 'tagId', 'tagNumber', 'taxAmount'],
608
+ type: 'object',
609
+ properties: {
610
+ tagId: {
611
+ type: 'string',
612
+ format: 'uuid'
613
+ },
614
+ tagNumber: {
615
+ minLength: 1,
616
+ type: 'string'
617
+ },
618
+ refundDate: {
619
+ type: 'string',
620
+ format: 'date-time'
621
+ },
622
+ grandTotal: {
623
+ type: 'number',
624
+ format: 'double'
625
+ },
626
+ taxAmount: {
627
+ type: 'number',
628
+ format: 'double'
629
+ },
630
+ refundAmount: {
631
+ type: 'number',
632
+ format: 'double'
633
+ },
634
+ correctedAmount: {
635
+ type: 'number',
636
+ format: 'double',
637
+ nullable: true
638
+ }
639
+ },
640
+ additionalProperties: false
222
641
  } as const;
223
642
 
224
643
  export const $Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationAuthConfigurationDto = {
@@ -2,7 +2,7 @@
2
2
 
3
3
  import type { CancelablePromise } from './core/CancelablePromise';
4
4
  import type { BaseHttpRequest } from './core/BaseHttpRequest';
5
- import type { GetApiAbpApiDefinitionData, GetApiAbpApiDefinitionResponse, GetApiAbpApplicationConfigurationData, GetApiAbpApplicationConfigurationResponse, GetApiAbpApplicationLocalizationData, GetApiAbpApplicationLocalizationResponse, PostApiFinanceServiceBillingsData, PostApiFinanceServiceBillingsResponse, DeleteApiFinanceServiceBillingsData, DeleteApiFinanceServiceBillingsResponse, GetApiFinanceServiceBillingsData, GetApiFinanceServiceBillingsResponse, GetApiFinanceServiceBillingsByIdData, GetApiFinanceServiceBillingsByIdResponse, PutApiFinanceServiceBillingsByIdData, PutApiFinanceServiceBillingsByIdResponse } from './types.gen';
5
+ import type { GetApiAbpApiDefinitionData, GetApiAbpApiDefinitionResponse, GetApiAbpApplicationConfigurationData, GetApiAbpApplicationConfigurationResponse, GetApiAbpApplicationLocalizationData, GetApiAbpApplicationLocalizationResponse, GetApiFinanceServiceVatStatementHeadersByIdData, GetApiFinanceServiceVatStatementHeadersByIdResponse, GetApiFinanceServiceVatStatementHeadersData, GetApiFinanceServiceVatStatementHeadersResponse, PostApiFinanceServiceVatStatementHeadersData, PostApiFinanceServiceVatStatementHeadersResponse, GetApiFinanceServiceVatStatementHeadersFormDraftByMerchantIdData, GetApiFinanceServiceVatStatementHeadersFormDraftByMerchantIdResponse } from './types.gen';
6
6
 
7
7
  export class AbpApiDefinitionService {
8
8
  constructor(public readonly httpRequest: BaseHttpRequest) { }
@@ -93,43 +93,20 @@ export class AbpApplicationLocalizationService {
93
93
 
94
94
  }
95
95
 
96
- export class BillingService {
96
+ export class VatStatementHeaderService {
97
97
  constructor(public readonly httpRequest: BaseHttpRequest) { }
98
98
 
99
- /**
100
- * @param data The data for the request.
101
- * @param data.requestBody
102
- * @returns UniRefund_FinanceService_Billings_BillingDto Success
103
- * @throws ApiError
104
- */
105
- public postApiFinanceServiceBillings(data: PostApiFinanceServiceBillingsData = {}): CancelablePromise<PostApiFinanceServiceBillingsResponse> {
106
- return this.httpRequest.request({
107
- method: 'POST',
108
- url: '/api/finance-service/billings',
109
- body: data.requestBody,
110
- mediaType: 'application/json',
111
- errors: {
112
- 400: 'Bad Request',
113
- 401: 'Unauthorized',
114
- 403: 'Forbidden',
115
- 404: 'Not Found',
116
- 500: 'Server Error',
117
- 501: 'Server Error'
118
- }
119
- });
120
- }
121
-
122
99
  /**
123
100
  * @param data The data for the request.
124
101
  * @param data.id
125
- * @returns unknown Success
102
+ * @returns UniRefund_FinanceService_VATStatementHeaders_VATStatementHeaderDetailDto Success
126
103
  * @throws ApiError
127
104
  */
128
- public deleteApiFinanceServiceBillings(data: DeleteApiFinanceServiceBillingsData = {}): CancelablePromise<DeleteApiFinanceServiceBillingsResponse> {
105
+ public getApiFinanceServiceVatStatementHeadersById(data: GetApiFinanceServiceVatStatementHeadersByIdData): CancelablePromise<GetApiFinanceServiceVatStatementHeadersByIdResponse> {
129
106
  return this.httpRequest.request({
130
- method: 'DELETE',
131
- url: '/api/finance-service/billings',
132
- query: {
107
+ method: 'GET',
108
+ url: '/api/finance-service/vat-statement-headers/{id}',
109
+ path: {
133
110
  id: data.id
134
111
  },
135
112
  errors: {
@@ -148,13 +125,13 @@ export class BillingService {
148
125
  * @param data.sorting
149
126
  * @param data.skipCount
150
127
  * @param data.maxResultCount
151
- * @returns PagedResultDto_BillingDto Success
128
+ * @returns PagedResultDto_VATStatementHeaderForListDto Success
152
129
  * @throws ApiError
153
130
  */
154
- public getApiFinanceServiceBillings(data: GetApiFinanceServiceBillingsData = {}): CancelablePromise<GetApiFinanceServiceBillingsResponse> {
131
+ public getApiFinanceServiceVatStatementHeaders(data: GetApiFinanceServiceVatStatementHeadersData = {}): CancelablePromise<GetApiFinanceServiceVatStatementHeadersResponse> {
155
132
  return this.httpRequest.request({
156
133
  method: 'GET',
157
- url: '/api/finance-service/billings',
134
+ url: '/api/finance-service/vat-statement-headers',
158
135
  query: {
159
136
  Sorting: data.sorting,
160
137
  SkipCount: data.skipCount,
@@ -173,17 +150,16 @@ export class BillingService {
173
150
 
174
151
  /**
175
152
  * @param data The data for the request.
176
- * @param data.id
177
- * @returns UniRefund_FinanceService_Billings_BillingDto Success
153
+ * @param data.requestBody
154
+ * @returns UniRefund_FinanceService_VATStatementHeaders_VATStatementHeaderDto Success
178
155
  * @throws ApiError
179
156
  */
180
- public getApiFinanceServiceBillingsById(data: GetApiFinanceServiceBillingsByIdData): CancelablePromise<GetApiFinanceServiceBillingsByIdResponse> {
157
+ public postApiFinanceServiceVatStatementHeaders(data: PostApiFinanceServiceVatStatementHeadersData = {}): CancelablePromise<PostApiFinanceServiceVatStatementHeadersResponse> {
181
158
  return this.httpRequest.request({
182
- method: 'GET',
183
- url: '/api/finance-service/billings/{id}',
184
- path: {
185
- id: data.id
186
- },
159
+ method: 'POST',
160
+ url: '/api/finance-service/vat-statement-headers',
161
+ body: data.requestBody,
162
+ mediaType: 'application/json',
187
163
  errors: {
188
164
  400: 'Bad Request',
189
165
  401: 'Unauthorized',
@@ -197,20 +173,25 @@ export class BillingService {
197
173
 
198
174
  /**
199
175
  * @param data The data for the request.
200
- * @param data.id
201
- * @param data.requestBody
202
- * @returns UniRefund_FinanceService_Billings_BillingDto Success
176
+ * @param data.merchantId
177
+ * @param data.year
178
+ * @param data.month
179
+ * @param data.vAtStatementDate
180
+ * @returns UniRefund_FinanceService_VATStatementHeaders_VATStatementHeaderDto Success
203
181
  * @throws ApiError
204
182
  */
205
- public putApiFinanceServiceBillingsById(data: PutApiFinanceServiceBillingsByIdData): CancelablePromise<PutApiFinanceServiceBillingsByIdResponse> {
183
+ public getApiFinanceServiceVatStatementHeadersFormDraftByMerchantId(data: GetApiFinanceServiceVatStatementHeadersFormDraftByMerchantIdData): CancelablePromise<GetApiFinanceServiceVatStatementHeadersFormDraftByMerchantIdResponse> {
206
184
  return this.httpRequest.request({
207
- method: 'PUT',
208
- url: '/api/finance-service/billings/{id}',
185
+ method: 'GET',
186
+ url: '/api/finance-service/vat-statement-headers/form-draft/{merchantId}',
209
187
  path: {
210
- id: data.id
188
+ merchantId: data.merchantId
189
+ },
190
+ query: {
191
+ year: data.year,
192
+ month: data.month,
193
+ vATStatementDate: data.vAtStatementDate
211
194
  },
212
- body: data.requestBody,
213
- mediaType: 'application/json',
214
195
  errors: {
215
196
  400: 'Bad Request',
216
197
  401: 'Unauthorized',
@@ -1,53 +1,133 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
 
3
- export type PagedResultDto_BillingDto = {
4
- items?: Array<UniRefund_FinanceService_Billings_BillingDto> | null;
3
+ export type PagedResultDto_VATStatementHeaderForListDto = {
4
+ items?: Array<UniRefund_FinanceService_VATStatementHeaders_VATStatementHeaderForListDto> | null;
5
5
  totalCount?: number;
6
6
  };
7
7
 
8
- export type UniRefund_FinanceService_Billings_BillingDto = {
8
+ export type UniRefund_ContractService_Enums_InvoiceChannel = 'ElectronicInvoice' | 'Email' | 'PaperInvoice';
9
+
10
+ export type UniRefund_ContractService_Enums_InvoicingFrequency = 'OneTimePerMonth' | 'TwoTimesPerMonth';
11
+
12
+ export type UniRefund_FinanceService_Enums_PaymentStatus = 'NotPaid' | 'PartlyPaid' | 'Paid' | 'OverPaid';
13
+
14
+ export type UniRefund_FinanceService_Enums_VATStatementStatus = 'Unfinished' | 'Approved' | 'Processing' | 'Error' | 'Sent' | 'PaymentReminder1' | 'PaymentReminder2' | 'PaymentReminder3' | 'DebtCollection' | 'Cancelled' | 'CreditNote' | 'Paid';
15
+
16
+ export type UniRefund_FinanceService_VATStatementHeaders_VATStatementHeaderCreateDto = {
17
+ readonly extraProperties?: {
18
+ [key: string]: unknown;
19
+ } | null;
20
+ merchantId: string;
21
+ year: number;
22
+ month: number;
23
+ vatStatementDate: string;
24
+ };
25
+
26
+ export type UniRefund_FinanceService_VATStatementHeaders_VATStatementHeaderDetailDto = {
9
27
  id?: string;
28
+ creationTime?: string;
29
+ creatorId?: string | null;
30
+ lastModificationTime?: string | null;
31
+ lastModifierId?: string | null;
32
+ isDeleted?: boolean;
33
+ deleterId?: string | null;
34
+ deletionTime?: string | null;
35
+ invoiceNumber: string;
10
36
  merchantId: string;
11
- merchantName?: string | null;
12
- date: string;
13
- number: number;
37
+ tagCount: number;
38
+ merchantName: string;
39
+ vatStatementDate: string;
14
40
  dueDate: string;
15
41
  total: number;
16
42
  unpaid: number;
17
- status: UniRefund_FinanceService_Enums_BillingStatusCode;
18
- period: UniRefund_FinanceService_Enums_BillingPeriodCode;
19
- paymentStatus: UniRefund_FinanceService_Enums_BillingPaymentStatusCode;
20
- };
21
-
22
- export type UniRefund_FinanceService_Billings_CreateBillingDto = {
43
+ status: UniRefund_FinanceService_Enums_VATStatementStatus;
44
+ billingPeriod: UniRefund_ContractService_Enums_InvoicingFrequency;
45
+ termOfPayment: number;
46
+ paymentStatus: UniRefund_FinanceService_Enums_PaymentStatus;
47
+ isFactoring?: boolean;
48
+ referenceDateBegin: string;
49
+ referenceDateEnd: string;
50
+ deliveryMethod: UniRefund_ContractService_Enums_InvoiceChannel;
51
+ customerNumber?: string | null;
52
+ referenceNumber?: string | null;
53
+ yourReference?: string | null;
54
+ contractHeaderId?: string;
55
+ vatStatementTagDetails?: Array<UniRefund_FinanceService_VATStatementTagDetails_VATStatementTagDetailWithoutAuditedDto> | null;
56
+ };
57
+
58
+ export type UniRefund_FinanceService_VATStatementHeaders_VATStatementHeaderDto = {
59
+ id?: string;
60
+ creationTime?: string;
61
+ creatorId?: string | null;
62
+ lastModificationTime?: string | null;
63
+ lastModifierId?: string | null;
64
+ isDeleted?: boolean;
65
+ deleterId?: string | null;
66
+ deletionTime?: string | null;
67
+ invoiceNumber: string;
23
68
  merchantId: string;
24
- date: string;
25
- number: number;
69
+ tagCount: number;
70
+ merchantName: string;
71
+ vatStatementDate: string;
26
72
  dueDate: string;
27
73
  total: number;
28
74
  unpaid: number;
29
- status: UniRefund_FinanceService_Enums_BillingStatusCode;
30
- period: UniRefund_FinanceService_Enums_BillingPeriodCode;
31
- paymentStatus: UniRefund_FinanceService_Enums_BillingPaymentStatusCode;
32
- };
33
-
34
- export type UniRefund_FinanceService_Billings_UpdateBillingDto = {
75
+ status: UniRefund_FinanceService_Enums_VATStatementStatus;
76
+ billingPeriod: UniRefund_ContractService_Enums_InvoicingFrequency;
77
+ termOfPayment: number;
78
+ paymentStatus: UniRefund_FinanceService_Enums_PaymentStatus;
79
+ isFactoring?: boolean;
80
+ referenceDateBegin: string;
81
+ referenceDateEnd: string;
82
+ deliveryMethod: UniRefund_ContractService_Enums_InvoiceChannel;
83
+ customerNumber?: string | null;
84
+ referenceNumber?: string | null;
85
+ yourReference?: string | null;
86
+ contractHeaderId?: string;
87
+ vatStatementTagDetails?: Array<UniRefund_FinanceService_VATStatementTagDetails_VATStatementTagDetailDto> | null;
88
+ };
89
+
90
+ export type UniRefund_FinanceService_VATStatementHeaders_VATStatementHeaderForListDto = {
91
+ id: string;
92
+ invoiceNumber: string;
35
93
  merchantId: string;
36
- date: string;
37
- number: number;
94
+ tagCount: number;
95
+ merchantName: string;
96
+ vatStatementDate: string;
38
97
  dueDate: string;
39
98
  total: number;
40
99
  unpaid: number;
41
- status?: UniRefund_FinanceService_Enums_BillingStatusCode;
42
- period: UniRefund_FinanceService_Enums_BillingPeriodCode;
43
- paymentStatus: UniRefund_FinanceService_Enums_BillingPaymentStatusCode;
100
+ status: UniRefund_FinanceService_Enums_VATStatementStatus;
101
+ paymentStatus: UniRefund_FinanceService_Enums_PaymentStatus;
44
102
  };
45
103
 
46
- export type UniRefund_FinanceService_Enums_BillingPaymentStatusCode = 'PAID' | 'NOTPAID' | 'PARTIALLYPAID';
47
-
48
- export type UniRefund_FinanceService_Enums_BillingPeriodCode = 'ONETIMEPERMONTH' | 'TWOTIMESPERMONTH' | 'ONETIMEPERWEEK';
49
-
50
- export type UniRefund_FinanceService_Enums_BillingStatusCode = 'PAID' | 'CREDITNOTE' | 'CANCELLED' | 'UNFINISHED' | 'SENT';
104
+ export type UniRefund_FinanceService_VATStatementTagDetails_VATStatementTagDetailDto = {
105
+ id?: string;
106
+ creationTime?: string;
107
+ creatorId?: string | null;
108
+ lastModificationTime?: string | null;
109
+ lastModifierId?: string | null;
110
+ isDeleted?: boolean;
111
+ deleterId?: string | null;
112
+ deletionTime?: string | null;
113
+ tagId: string;
114
+ tagNumber: string;
115
+ refundDate: string;
116
+ grandTotal: number;
117
+ taxAmount: number;
118
+ refundAmount: number;
119
+ correctedAmount?: number | null;
120
+ };
121
+
122
+ export type UniRefund_FinanceService_VATStatementTagDetails_VATStatementTagDetailWithoutAuditedDto = {
123
+ tagId: string;
124
+ tagNumber: string;
125
+ refundDate: string;
126
+ grandTotal: number;
127
+ taxAmount: number;
128
+ refundAmount: number;
129
+ correctedAmount?: number | null;
130
+ };
51
131
 
52
132
  export type Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationAuthConfigurationDto = {
53
133
  grantedPolicies?: {
@@ -451,38 +531,34 @@ export type GetApiAbpApplicationLocalizationData = {
451
531
 
452
532
  export type GetApiAbpApplicationLocalizationResponse = Volo_Abp_AspNetCore_Mvc_ApplicationConfigurations_ApplicationLocalizationDto;
453
533
 
454
- export type PostApiFinanceServiceBillingsData = {
455
- requestBody?: UniRefund_FinanceService_Billings_CreateBillingDto;
456
- };
457
-
458
- export type PostApiFinanceServiceBillingsResponse = UniRefund_FinanceService_Billings_BillingDto;
459
-
460
- export type DeleteApiFinanceServiceBillingsData = {
461
- id?: string;
534
+ export type GetApiFinanceServiceVatStatementHeadersByIdData = {
535
+ id: string;
462
536
  };
463
537
 
464
- export type DeleteApiFinanceServiceBillingsResponse = unknown;
538
+ export type GetApiFinanceServiceVatStatementHeadersByIdResponse = UniRefund_FinanceService_VATStatementHeaders_VATStatementHeaderDetailDto;
465
539
 
466
- export type GetApiFinanceServiceBillingsData = {
540
+ export type GetApiFinanceServiceVatStatementHeadersData = {
467
541
  maxResultCount?: number;
468
542
  skipCount?: number;
469
543
  sorting?: string;
470
544
  };
471
545
 
472
- export type GetApiFinanceServiceBillingsResponse = PagedResultDto_BillingDto;
546
+ export type GetApiFinanceServiceVatStatementHeadersResponse = PagedResultDto_VATStatementHeaderForListDto;
473
547
 
474
- export type GetApiFinanceServiceBillingsByIdData = {
475
- id: string;
548
+ export type PostApiFinanceServiceVatStatementHeadersData = {
549
+ requestBody?: UniRefund_FinanceService_VATStatementHeaders_VATStatementHeaderCreateDto;
476
550
  };
477
551
 
478
- export type GetApiFinanceServiceBillingsByIdResponse = UniRefund_FinanceService_Billings_BillingDto;
552
+ export type PostApiFinanceServiceVatStatementHeadersResponse = Array<UniRefund_FinanceService_VATStatementHeaders_VATStatementHeaderDto>;
479
553
 
480
- export type PutApiFinanceServiceBillingsByIdData = {
481
- id: string;
482
- requestBody?: UniRefund_FinanceService_Billings_UpdateBillingDto;
554
+ export type GetApiFinanceServiceVatStatementHeadersFormDraftByMerchantIdData = {
555
+ merchantId: string;
556
+ month: number;
557
+ vAtStatementDate: string;
558
+ year: number;
483
559
  };
484
560
 
485
- export type PutApiFinanceServiceBillingsByIdResponse = UniRefund_FinanceService_Billings_BillingDto;
561
+ export type GetApiFinanceServiceVatStatementHeadersFormDraftByMerchantIdResponse = Array<UniRefund_FinanceService_VATStatementHeaders_VATStatementHeaderDto>;
486
562
 
487
563
  export type $OpenApiTs = {
488
564
  '/api/abp/api-definition': {
@@ -590,14 +666,14 @@ export type $OpenApiTs = {
590
666
  };
591
667
  };
592
668
  };
593
- '/api/finance-service/billings': {
594
- post: {
595
- req: PostApiFinanceServiceBillingsData;
669
+ '/api/finance-service/vat-statement-headers/{id}': {
670
+ get: {
671
+ req: GetApiFinanceServiceVatStatementHeadersByIdData;
596
672
  res: {
597
673
  /**
598
674
  * Success
599
675
  */
600
- 200: UniRefund_FinanceService_Billings_BillingDto;
676
+ 200: UniRefund_FinanceService_VATStatementHeaders_VATStatementHeaderDetailDto;
601
677
  /**
602
678
  * Bad Request
603
679
  */
@@ -624,13 +700,15 @@ export type $OpenApiTs = {
624
700
  501: Volo_Abp_Http_RemoteServiceErrorResponse;
625
701
  };
626
702
  };
627
- delete: {
628
- req: DeleteApiFinanceServiceBillingsData;
703
+ };
704
+ '/api/finance-service/vat-statement-headers': {
705
+ get: {
706
+ req: GetApiFinanceServiceVatStatementHeadersData;
629
707
  res: {
630
708
  /**
631
709
  * Success
632
710
  */
633
- 200: unknown;
711
+ 200: PagedResultDto_VATStatementHeaderForListDto;
634
712
  /**
635
713
  * Bad Request
636
714
  */
@@ -657,13 +735,13 @@ export type $OpenApiTs = {
657
735
  501: Volo_Abp_Http_RemoteServiceErrorResponse;
658
736
  };
659
737
  };
660
- get: {
661
- req: GetApiFinanceServiceBillingsData;
738
+ post: {
739
+ req: PostApiFinanceServiceVatStatementHeadersData;
662
740
  res: {
663
741
  /**
664
742
  * Success
665
743
  */
666
- 200: PagedResultDto_BillingDto;
744
+ 200: Array<UniRefund_FinanceService_VATStatementHeaders_VATStatementHeaderDto>;
667
745
  /**
668
746
  * Bad Request
669
747
  */
@@ -691,47 +769,14 @@ export type $OpenApiTs = {
691
769
  };
692
770
  };
693
771
  };
694
- '/api/finance-service/billings/{id}': {
772
+ '/api/finance-service/vat-statement-headers/form-draft/{merchantId}': {
695
773
  get: {
696
- req: GetApiFinanceServiceBillingsByIdData;
697
- res: {
698
- /**
699
- * Success
700
- */
701
- 200: UniRefund_FinanceService_Billings_BillingDto;
702
- /**
703
- * Bad Request
704
- */
705
- 400: Volo_Abp_Http_RemoteServiceErrorResponse;
706
- /**
707
- * Unauthorized
708
- */
709
- 401: Volo_Abp_Http_RemoteServiceErrorResponse;
710
- /**
711
- * Forbidden
712
- */
713
- 403: Volo_Abp_Http_RemoteServiceErrorResponse;
714
- /**
715
- * Not Found
716
- */
717
- 404: Volo_Abp_Http_RemoteServiceErrorResponse;
718
- /**
719
- * Server Error
720
- */
721
- 500: Volo_Abp_Http_RemoteServiceErrorResponse;
722
- /**
723
- * Server Error
724
- */
725
- 501: Volo_Abp_Http_RemoteServiceErrorResponse;
726
- };
727
- };
728
- put: {
729
- req: PutApiFinanceServiceBillingsByIdData;
774
+ req: GetApiFinanceServiceVatStatementHeadersFormDraftByMerchantIdData;
730
775
  res: {
731
776
  /**
732
777
  * Success
733
778
  */
734
- 200: UniRefund_FinanceService_Billings_BillingDto;
779
+ 200: Array<UniRefund_FinanceService_VATStatementHeaders_VATStatementHeaderDto>;
735
780
  /**
736
781
  * Bad Request
737
782
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ayasofyazilim/saas",
3
- "version": "0.0.90",
3
+ "version": "0.0.91",
4
4
  "description": "Ayasofyazılım SAAS",
5
5
  "main": "generator.mjs",
6
6
  "bin": {