n8n-nodes-qonto-api 1.0.7 → 1.0.8

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 (70) hide show
  1. package/dist/credentials/QontoApi.credentials.js +1 -1
  2. package/dist/credentials/QontoApi.credentials.js.map +1 -1
  3. package/dist/credentials/QontoOAuth2Api.credentials.js +1 -1
  4. package/dist/credentials/QontoOAuth2Api.credentials.js.map +1 -1
  5. package/dist/nodes/Qonto/Qonto.node.js +486 -27
  6. package/dist/nodes/Qonto/Qonto.node.js.map +1 -1
  7. package/dist/nodes/Qonto/descriptions/AttachmentDescriptions.js +5 -15
  8. package/dist/nodes/Qonto/descriptions/AttachmentDescriptions.js.map +1 -1
  9. package/dist/nodes/Qonto/descriptions/AttachmentsInATransactionDescriptions.js +11 -33
  10. package/dist/nodes/Qonto/descriptions/AttachmentsInATransactionDescriptions.js.map +1 -1
  11. package/dist/nodes/Qonto/descriptions/BankAccountsDescriptions.d.ts +2 -0
  12. package/dist/nodes/Qonto/descriptions/BankAccountsDescriptions.js +88 -0
  13. package/dist/nodes/Qonto/descriptions/BankAccountsDescriptions.js.map +1 -0
  14. package/dist/nodes/Qonto/descriptions/BeneficiariesDescriptions.js +24 -72
  15. package/dist/nodes/Qonto/descriptions/BeneficiariesDescriptions.js.map +1 -1
  16. package/dist/nodes/Qonto/descriptions/CardsDescriptions.js +114 -110
  17. package/dist/nodes/Qonto/descriptions/CardsDescriptions.js.map +1 -1
  18. package/dist/nodes/Qonto/descriptions/ClientsDescriptions.js +30 -93
  19. package/dist/nodes/Qonto/descriptions/ClientsDescriptions.js.map +1 -1
  20. package/dist/nodes/Qonto/descriptions/ClientsInvoicesDescriptions.js +509 -94
  21. package/dist/nodes/Qonto/descriptions/ClientsInvoicesDescriptions.js.map +1 -1
  22. package/dist/nodes/Qonto/descriptions/CreditNotesDescriptions.js +10 -30
  23. package/dist/nodes/Qonto/descriptions/CreditNotesDescriptions.js.map +1 -1
  24. package/dist/nodes/Qonto/descriptions/EinvoicingDescriptions.d.ts +2 -0
  25. package/dist/nodes/Qonto/descriptions/EinvoicingDescriptions.js +25 -0
  26. package/dist/nodes/Qonto/descriptions/EinvoicingDescriptions.js.map +1 -0
  27. package/dist/nodes/Qonto/descriptions/ExternalTransfersDescriptions.js +50 -150
  28. package/dist/nodes/Qonto/descriptions/ExternalTransfersDescriptions.js.map +1 -1
  29. package/dist/nodes/Qonto/descriptions/InsuranceContractsDescriptions.js +29 -87
  30. package/dist/nodes/Qonto/descriptions/InsuranceContractsDescriptions.js.map +1 -1
  31. package/dist/nodes/Qonto/descriptions/InternalTransactionsDescriptions.js +13 -39
  32. package/dist/nodes/Qonto/descriptions/InternalTransactionsDescriptions.js.map +1 -1
  33. package/dist/nodes/Qonto/descriptions/InternationalTransfersDescriptions.d.ts +2 -0
  34. package/dist/nodes/Qonto/descriptions/InternationalTransfersDescriptions.js +154 -0
  35. package/dist/nodes/Qonto/descriptions/InternationalTransfersDescriptions.js.map +1 -0
  36. package/dist/nodes/Qonto/descriptions/LabelsDescriptions.js +8 -24
  37. package/dist/nodes/Qonto/descriptions/LabelsDescriptions.js.map +1 -1
  38. package/dist/nodes/Qonto/descriptions/MembershipsDescriptions.js +17 -67
  39. package/dist/nodes/Qonto/descriptions/MembershipsDescriptions.js.map +1 -1
  40. package/dist/nodes/Qonto/descriptions/OrganizationsDescriptions.js +3 -9
  41. package/dist/nodes/Qonto/descriptions/OrganizationsDescriptions.js.map +1 -1
  42. package/dist/nodes/Qonto/descriptions/PaymentLinksDescriptions.d.ts +2 -0
  43. package/dist/nodes/Qonto/descriptions/PaymentLinksDescriptions.js +112 -0
  44. package/dist/nodes/Qonto/descriptions/PaymentLinksDescriptions.js.map +1 -0
  45. package/dist/nodes/Qonto/descriptions/QuotesDescriptions.d.ts +2 -0
  46. package/dist/nodes/Qonto/descriptions/QuotesDescriptions.js +94 -0
  47. package/dist/nodes/Qonto/descriptions/QuotesDescriptions.js.map +1 -0
  48. package/dist/nodes/Qonto/descriptions/RequestsDescriptions.js +160 -56
  49. package/dist/nodes/Qonto/descriptions/RequestsDescriptions.js.map +1 -1
  50. package/dist/nodes/Qonto/descriptions/SepaTransfersDescriptions.d.ts +2 -0
  51. package/dist/nodes/Qonto/descriptions/SepaTransfersDescriptions.js +233 -0
  52. package/dist/nodes/Qonto/descriptions/SepaTransfersDescriptions.js.map +1 -0
  53. package/dist/nodes/Qonto/descriptions/StatementsDescriptions.js +10 -30
  54. package/dist/nodes/Qonto/descriptions/StatementsDescriptions.js.map +1 -1
  55. package/dist/nodes/Qonto/descriptions/SupplierInvoicesDescriptions.js +31 -36
  56. package/dist/nodes/Qonto/descriptions/SupplierInvoicesDescriptions.js.map +1 -1
  57. package/dist/nodes/Qonto/descriptions/TeamsDescriptions.js +8 -24
  58. package/dist/nodes/Qonto/descriptions/TeamsDescriptions.js.map +1 -1
  59. package/dist/nodes/Qonto/descriptions/TransactionsDescriptions.js +12 -36
  60. package/dist/nodes/Qonto/descriptions/TransactionsDescriptions.js.map +1 -1
  61. package/dist/nodes/Qonto/descriptions/WebhookSubscriptionsDescriptions.d.ts +2 -0
  62. package/dist/nodes/Qonto/descriptions/WebhookSubscriptionsDescriptions.js +100 -0
  63. package/dist/nodes/Qonto/descriptions/WebhookSubscriptionsDescriptions.js.map +1 -0
  64. package/dist/nodes/Qonto/descriptions/index.d.ts +7 -0
  65. package/dist/nodes/Qonto/descriptions/index.js +7 -0
  66. package/dist/nodes/Qonto/descriptions/index.js.map +1 -1
  67. package/dist/nodes/Qonto/helpers.js.map +1 -1
  68. package/dist/package.json +1 -1
  69. package/dist/tsconfig.tsbuildinfo +1 -1
  70. package/package.json +1 -1
@@ -9,32 +9,36 @@ exports.clientsInvoicesOperations = [
9
9
  noDataExpression: true,
10
10
  displayOptions: {
11
11
  show: {
12
- resource: [
13
- 'clientsInvoices',
14
- ],
12
+ resource: ['clientsInvoices'],
15
13
  },
16
14
  },
17
15
  options: [
18
- {
19
- name: 'List Client Invoices',
20
- value: 'listInvoices',
21
- action: 'List client invoices',
22
- },
16
+ { name: 'Cancel Client Invoice', value: 'cancelClientInvoice', action: 'Cancel a client invoice' },
23
17
  {
24
18
  name: 'Create a Client Invoice',
25
19
  value: 'createClientInvoice',
26
20
  action: 'Create a client invoice',
27
21
  },
22
+ { name: 'Delete Client Invoice', value: 'deleteClientInvoice', action: 'Delete a client invoice' },
23
+ { name: 'Finalize Client Invoice', value: 'finalizeClientInvoice', action: 'Finalize a client invoice' },
24
+ { name: 'List Client Invoices', value: 'listInvoices', action: 'List client invoices' },
25
+ {
26
+ name: 'Mark Client Invoice as Paid',
27
+ value: 'markClientInvoiceAsPaid',
28
+ action: 'Mark a client invoice as paid',
29
+ },
30
+ { name: 'Send Client Invoice', value: 'sendClientInvoice', action: 'Send a client invoice by email' },
31
+ { name: 'Show Client Invoice', value: 'showClientInvoice', action: 'Show client invoice' },
32
+ {
33
+ name: 'Unmark Client Invoice as Paid',
34
+ value: 'unmarkClientInvoiceAsPaid',
35
+ action: 'Unmark a client invoice as paid',
36
+ },
28
37
  {
29
38
  name: 'Update a Draft Client Invoice',
30
39
  value: 'updateClientInvoice',
31
40
  action: 'Update a draft client invoice',
32
41
  },
33
- {
34
- name: 'Show Client Invoice',
35
- value: 'showClientInvoice',
36
- action: 'Show client invoice',
37
- },
38
42
  ],
39
43
  default: 'listInvoices',
40
44
  },
@@ -46,12 +50,8 @@ exports.clientsInvoicesOperations = [
46
50
  description: 'Whether to return all results or only up to a given limit',
47
51
  displayOptions: {
48
52
  show: {
49
- resource: [
50
- 'clientsInvoices',
51
- ],
52
- operation: [
53
- 'listInvoices',
54
- ],
53
+ resource: ['clientsInvoices'],
54
+ operation: ['listInvoices'],
55
55
  },
56
56
  },
57
57
  },
@@ -61,15 +61,9 @@ exports.clientsInvoicesOperations = [
61
61
  type: 'number',
62
62
  displayOptions: {
63
63
  show: {
64
- resource: [
65
- 'clientsInvoices',
66
- ],
67
- operation: [
68
- 'listInvoices',
69
- ],
70
- returnAll: [
71
- false,
72
- ],
64
+ resource: ['clientsInvoices'],
65
+ operation: ['listInvoices'],
66
+ returnAll: [false],
73
67
  },
74
68
  },
75
69
  typeOptions: {
@@ -86,12 +80,8 @@ exports.clientsInvoicesOperations = [
86
80
  default: {},
87
81
  displayOptions: {
88
82
  show: {
89
- resource: [
90
- 'clientsInvoices',
91
- ],
92
- operation: [
93
- 'listInvoices',
94
- ],
83
+ resource: ['clientsInvoices'],
84
+ operation: ['listInvoices'],
95
85
  },
96
86
  },
97
87
  options: [
@@ -168,12 +158,8 @@ exports.clientsInvoicesOperations = [
168
158
  type: 'string',
169
159
  displayOptions: {
170
160
  show: {
171
- resource: [
172
- 'clientsInvoices',
173
- ],
174
- operation: [
175
- 'createClientInvoice',
176
- ],
161
+ resource: ['clientsInvoices'],
162
+ operation: ['createClientInvoice'],
177
163
  },
178
164
  },
179
165
  default: '',
@@ -186,12 +172,8 @@ exports.clientsInvoicesOperations = [
186
172
  type: 'dateTime',
187
173
  displayOptions: {
188
174
  show: {
189
- resource: [
190
- 'clientsInvoices',
191
- ],
192
- operation: [
193
- 'createClientInvoice',
194
- ],
175
+ resource: ['clientsInvoices'],
176
+ operation: ['createClientInvoice'],
195
177
  },
196
178
  },
197
179
  default: '',
@@ -204,12 +186,8 @@ exports.clientsInvoicesOperations = [
204
186
  type: 'dateTime',
205
187
  displayOptions: {
206
188
  show: {
207
- resource: [
208
- 'clientsInvoices',
209
- ],
210
- operation: [
211
- 'createClientInvoice',
212
- ],
189
+ resource: ['clientsInvoices'],
190
+ operation: ['createClientInvoice'],
213
191
  },
214
192
  },
215
193
  default: '',
@@ -222,12 +200,8 @@ exports.clientsInvoicesOperations = [
222
200
  type: 'string',
223
201
  displayOptions: {
224
202
  show: {
225
- resource: [
226
- 'clientsInvoices',
227
- ],
228
- operation: [
229
- 'createClientInvoice',
230
- ],
203
+ resource: ['clientsInvoices'],
204
+ operation: ['createClientInvoice'],
231
205
  },
232
206
  },
233
207
  default: 'EUR',
@@ -240,12 +214,8 @@ exports.clientsInvoicesOperations = [
240
214
  type: 'string',
241
215
  displayOptions: {
242
216
  show: {
243
- resource: [
244
- 'clientsInvoices',
245
- ],
246
- operation: [
247
- 'createClientInvoice',
248
- ],
217
+ resource: ['clientsInvoices'],
218
+ operation: ['createClientInvoice'],
249
219
  },
250
220
  },
251
221
  default: '',
@@ -258,12 +228,8 @@ exports.clientsInvoicesOperations = [
258
228
  type: 'fixedCollection',
259
229
  displayOptions: {
260
230
  show: {
261
- resource: [
262
- 'clientsInvoices',
263
- ],
264
- operation: [
265
- 'createClientInvoice',
266
- ],
231
+ resource: ['clientsInvoices'],
232
+ operation: ['createClientInvoice'],
267
233
  },
268
234
  },
269
235
  typeOptions: {
@@ -305,7 +271,7 @@ exports.clientsInvoicesOperations = [
305
271
  name: 'unit',
306
272
  type: 'string',
307
273
  default: '',
308
- description: 'Unit of measurement (e.g., \'hour\', \'piece\')',
274
+ description: "Unit of measurement (e.g., 'hour', 'piece')",
309
275
  },
310
276
  {
311
277
  displayName: 'Unit Price Currency',
@@ -321,7 +287,7 @@ exports.clientsInvoicesOperations = [
321
287
  type: 'string',
322
288
  default: '',
323
289
  required: true,
324
- description: 'Unit price value (as string, e.g., \'100.00\')',
290
+ description: "Unit price value (as string, e.g., '100.00')",
325
291
  },
326
292
  {
327
293
  displayName: 'VAT Rate',
@@ -329,7 +295,7 @@ exports.clientsInvoicesOperations = [
329
295
  type: 'string',
330
296
  default: '0',
331
297
  required: true,
332
- description: 'VAT rate (e.g., \'20\' for 20%)',
298
+ description: "VAT rate (e.g., '20' for 20%)",
333
299
  },
334
300
  ],
335
301
  },
@@ -343,12 +309,8 @@ exports.clientsInvoicesOperations = [
343
309
  default: {},
344
310
  displayOptions: {
345
311
  show: {
346
- resource: [
347
- 'clientsInvoices',
348
- ],
349
- operation: [
350
- 'createClientInvoice',
351
- ],
312
+ resource: ['clientsInvoices'],
313
+ operation: ['createClientInvoice'],
352
314
  },
353
315
  },
354
316
  options: [
@@ -420,12 +382,8 @@ exports.clientsInvoicesOperations = [
420
382
  type: 'string',
421
383
  displayOptions: {
422
384
  show: {
423
- resource: [
424
- 'clientsInvoices',
425
- ],
426
- operation: [
427
- 'updateClientInvoice',
428
- ],
385
+ resource: ['clientsInvoices'],
386
+ operation: ['updateClientInvoice'],
429
387
  },
430
388
  },
431
389
  default: '',
@@ -440,12 +398,8 @@ exports.clientsInvoicesOperations = [
440
398
  default: {},
441
399
  displayOptions: {
442
400
  show: {
443
- resource: [
444
- 'clientsInvoices',
445
- ],
446
- operation: [
447
- 'updateClientInvoice',
448
- ],
401
+ resource: ['clientsInvoices'],
402
+ operation: ['updateClientInvoice'],
449
403
  },
450
404
  },
451
405
  options: [
@@ -477,6 +431,103 @@ exports.clientsInvoicesOperations = [
477
431
  default: '',
478
432
  description: 'Header text for the invoice',
479
433
  },
434
+ {
435
+ displayName: 'Invoice Items',
436
+ name: 'items',
437
+ type: 'fixedCollection',
438
+ typeOptions: {
439
+ multipleValues: true,
440
+ },
441
+ default: {},
442
+ description: 'Items to include in the invoice',
443
+ options: [
444
+ {
445
+ displayName: 'Item',
446
+ name: 'item',
447
+ values: [
448
+ {
449
+ displayName: 'Description',
450
+ name: 'description',
451
+ type: 'string',
452
+ default: '',
453
+ description: 'Description of the item',
454
+ },
455
+ {
456
+ displayName: 'Discount Type',
457
+ name: 'discountType',
458
+ type: 'options',
459
+ options: [
460
+ {
461
+ name: 'Percentage',
462
+ value: 'percentage',
463
+ },
464
+ {
465
+ name: 'Absolute',
466
+ value: 'absolute',
467
+ },
468
+ ],
469
+ default: 'percentage',
470
+ description: 'Type of discount',
471
+ },
472
+ {
473
+ displayName: 'Discount Value',
474
+ name: 'discountValue',
475
+ type: 'string',
476
+ default: '',
477
+ },
478
+ {
479
+ displayName: 'Quantity',
480
+ name: 'quantity',
481
+ type: 'string',
482
+ default: '1',
483
+ description: 'Quantity of the item',
484
+ },
485
+ {
486
+ displayName: 'Title',
487
+ name: 'title',
488
+ type: 'string',
489
+ default: '',
490
+ description: 'Title of the invoice item',
491
+ },
492
+ {
493
+ displayName: 'Unit',
494
+ name: 'unit',
495
+ type: 'string',
496
+ default: '',
497
+ description: 'Unit of measurement (e.g., \'hour\', \'piece\')',
498
+ },
499
+ {
500
+ displayName: 'Unit Price Currency',
501
+ name: 'unitPriceCurrency',
502
+ type: 'string',
503
+ default: 'EUR',
504
+ description: 'Currency of the unit price',
505
+ },
506
+ {
507
+ displayName: 'Unit Price Value',
508
+ name: 'unitPriceValue',
509
+ type: 'string',
510
+ default: '',
511
+ description: 'Unit price value (as string, e.g., \'100.00\')',
512
+ },
513
+ {
514
+ displayName: 'VAT Exemption Reason',
515
+ name: 'vatExemptionReason',
516
+ type: 'string',
517
+ default: '',
518
+ description: 'VAT exemption reason code',
519
+ },
520
+ {
521
+ displayName: 'VAT Rate',
522
+ name: 'vatRate',
523
+ type: 'string',
524
+ default: '0',
525
+ description: 'VAT rate (e.g., \'20\' for 20%)',
526
+ },
527
+ ],
528
+ },
529
+ ],
530
+ },
480
531
  {
481
532
  displayName: 'Invoice Number',
482
533
  name: 'number',
@@ -498,6 +549,67 @@ exports.clientsInvoicesOperations = [
498
549
  default: '',
499
550
  description: 'The IBAN for payment',
500
551
  },
552
+ {
553
+ displayName: 'Payment Reporting',
554
+ name: 'paymentReporting',
555
+ type: 'collection',
556
+ placeholder: 'Add Payment Reporting',
557
+ default: {},
558
+ description: 'Payment reporting details for e-invoicing',
559
+ options: [
560
+ {
561
+ displayName: 'Conditions',
562
+ name: 'conditions',
563
+ type: 'options',
564
+ options: [
565
+ { name: 'TP01', value: 'TP01' },
566
+ { name: 'TP02', value: 'TP02' },
567
+ { name: 'TP03', value: 'TP03' },
568
+ ],
569
+ default: 'TP01',
570
+ description: 'Payment conditions code',
571
+ },
572
+ {
573
+ displayName: 'Method',
574
+ name: 'method',
575
+ type: 'options',
576
+ options: [
577
+ { name: 'MP01', value: 'MP01' },
578
+ { name: 'MP02', value: 'MP02' },
579
+ { name: 'MP03', value: 'MP03' },
580
+ { name: 'MP04', value: 'MP04' },
581
+ { name: 'MP05', value: 'MP05' },
582
+ { name: 'MP06', value: 'MP06' },
583
+ { name: 'MP07', value: 'MP07' },
584
+ { name: 'MP08', value: 'MP08' },
585
+ { name: 'MP09', value: 'MP09' },
586
+ { name: 'MP10', value: 'MP10' },
587
+ { name: 'MP11', value: 'MP11' },
588
+ { name: 'MP12', value: 'MP12' },
589
+ { name: 'MP13', value: 'MP13' },
590
+ { name: 'MP14', value: 'MP14' },
591
+ { name: 'MP15', value: 'MP15' },
592
+ { name: 'MP16', value: 'MP16' },
593
+ { name: 'MP17', value: 'MP17' },
594
+ { name: 'MP18', value: 'MP18' },
595
+ { name: 'MP19', value: 'MP19' },
596
+ { name: 'MP20', value: 'MP20' },
597
+ { name: 'MP21', value: 'MP21' },
598
+ { name: 'MP22', value: 'MP22' },
599
+ { name: 'MP23', value: 'MP23' },
600
+ ],
601
+ default: 'MP01',
602
+ description: 'Payment method code',
603
+ },
604
+ ],
605
+ },
606
+ {
607
+ displayName: 'Performance Date',
608
+ name: 'performanceDate',
609
+ type: 'dateTime',
610
+ default: '',
611
+ description: 'The performance date (YYYY-MM-DD)',
612
+ },
501
613
  {
502
614
  displayName: 'Purchase Order',
503
615
  name: 'purchaseOrder',
@@ -505,6 +617,135 @@ exports.clientsInvoicesOperations = [
505
617
  default: '',
506
618
  description: 'Purchase order reference',
507
619
  },
620
+ {
621
+ displayName: 'Report E-Invoicing',
622
+ name: 'reportEinvoicing',
623
+ type: 'boolean',
624
+ default: false,
625
+ description: 'Whether to report this invoice for e-invoicing',
626
+ },
627
+ {
628
+ displayName: 'Settings',
629
+ name: 'settings',
630
+ type: 'collection',
631
+ placeholder: 'Add Setting',
632
+ default: {},
633
+ description: 'Invoice settings and company information',
634
+ options: [
635
+ {
636
+ displayName: 'Commercial Register Number',
637
+ name: 'commercialRegisterNumber',
638
+ type: 'string',
639
+ default: '',
640
+ },
641
+ {
642
+ displayName: 'Company Leadership',
643
+ name: 'companyLeadership',
644
+ type: 'string',
645
+ default: '',
646
+ description: 'Company leadership information',
647
+ },
648
+ {
649
+ displayName: 'Discount Conditions',
650
+ name: 'discountConditions',
651
+ type: 'string',
652
+ default: '',
653
+ description: 'Discount conditions text',
654
+ },
655
+ {
656
+ displayName: 'District Court',
657
+ name: 'districtCourt',
658
+ type: 'string',
659
+ default: '',
660
+ description: 'District court information',
661
+ },
662
+ {
663
+ displayName: 'Late Payment Penalties',
664
+ name: 'latePaymentPenalties',
665
+ type: 'string',
666
+ default: '',
667
+ description: 'Late payment penalties text',
668
+ },
669
+ {
670
+ displayName: 'Legal Capital Share',
671
+ name: 'legalCapitalShare',
672
+ type: 'fixedCollection',
673
+ default: {},
674
+ description: 'Legal capital share details',
675
+ options: [
676
+ {
677
+ displayName: 'Capital Share',
678
+ name: 'capitalShare',
679
+ values: [
680
+ {
681
+ displayName: 'Value',
682
+ name: 'value',
683
+ type: 'string',
684
+ default: '',
685
+ description: 'Capital share value',
686
+ },
687
+ {
688
+ displayName: 'Currency',
689
+ name: 'currency',
690
+ type: 'string',
691
+ default: 'EUR',
692
+ description: 'Currency code (e.g., EUR)',
693
+ },
694
+ ],
695
+ },
696
+ ],
697
+ },
698
+ {
699
+ displayName: 'Legal Fixed Compensation',
700
+ name: 'legalFixedCompensation',
701
+ type: 'string',
702
+ default: '',
703
+ description: 'Legal fixed compensation text',
704
+ },
705
+ {
706
+ displayName: 'Tax Number',
707
+ name: 'taxNumber',
708
+ type: 'string',
709
+ default: '',
710
+ description: 'Tax identification number',
711
+ },
712
+ {
713
+ displayName: 'Transaction Type',
714
+ name: 'transactionType',
715
+ type: 'options',
716
+ options: [
717
+ { name: 'Goods', value: 'goods' },
718
+ { name: 'Services', value: 'services' },
719
+ { name: 'Goods and Services', value: 'goods_and_services' },
720
+ ],
721
+ default: 'goods',
722
+ description: 'Type of transaction',
723
+ },
724
+ {
725
+ displayName: 'VAT Number',
726
+ name: 'vatNumber',
727
+ type: 'string',
728
+ default: '',
729
+ },
730
+ {
731
+ displayName: 'VAT Payment Condition',
732
+ name: 'vatPaymentCondition',
733
+ type: 'options',
734
+ options: [
735
+ { name: 'Compensated for Sales', value: 'compensated_for_sales' },
736
+ { name: 'On Receipts', value: 'on_receipts' },
737
+ { name: 'Exempt', value: 'exempt' },
738
+ ],
739
+ default: 'compensated_for_sales',
740
+ },
741
+ ],
742
+ },
743
+ {
744
+ displayName: 'Stamp Duty Amount',
745
+ name: 'stampDutyAmount',
746
+ type: 'string',
747
+ default: '',
748
+ },
508
749
  {
509
750
  displayName: 'Terms and Conditions',
510
751
  name: 'termsAndConditions',
@@ -512,6 +753,109 @@ exports.clientsInvoicesOperations = [
512
753
  default: '',
513
754
  description: 'Terms and conditions text',
514
755
  },
756
+ {
757
+ displayName: 'Welfare Fund',
758
+ name: 'welfareFund',
759
+ type: 'collection',
760
+ placeholder: 'Add Welfare Fund',
761
+ default: {},
762
+ description: 'Welfare fund details for e-invoicing',
763
+ options: [
764
+ {
765
+ displayName: 'Type',
766
+ name: 'type',
767
+ type: 'options',
768
+ options: [
769
+ { name: 'TC01', value: 'TC01' },
770
+ { name: 'TC02', value: 'TC02' },
771
+ { name: 'TC03', value: 'TC03' },
772
+ { name: 'TC04', value: 'TC04' },
773
+ { name: 'TC05', value: 'TC05' },
774
+ { name: 'TC06', value: 'TC06' },
775
+ { name: 'TC07', value: 'TC07' },
776
+ { name: 'TC08', value: 'TC08' },
777
+ { name: 'TC09', value: 'TC09' },
778
+ { name: 'TC10', value: 'TC10' },
779
+ { name: 'TC11', value: 'TC11' },
780
+ { name: 'TC12', value: 'TC12' },
781
+ { name: 'TC13', value: 'TC13' },
782
+ { name: 'TC14', value: 'TC14' },
783
+ { name: 'TC15', value: 'TC15' },
784
+ { name: 'TC16', value: 'TC16' },
785
+ { name: 'TC17', value: 'TC17' },
786
+ { name: 'TC18', value: 'TC18' },
787
+ { name: 'TC19', value: 'TC19' },
788
+ { name: 'TC20', value: 'TC20' },
789
+ { name: 'TC21', value: 'TC21' },
790
+ { name: 'TC22', value: 'TC22' },
791
+ { name: 'TC23', value: 'TC23' },
792
+ { name: 'TC24', value: 'TC24' },
793
+ { name: 'TC25', value: 'TC25' },
794
+ ],
795
+ default: 'TC01',
796
+ description: 'Welfare fund type code',
797
+ },
798
+ {
799
+ displayName: 'Rate',
800
+ name: 'rate',
801
+ type: 'string',
802
+ default: '',
803
+ description: 'Welfare fund rate',
804
+ },
805
+ ],
806
+ },
807
+ {
808
+ displayName: 'Withholding Tax',
809
+ name: 'withholdingTax',
810
+ type: 'collection',
811
+ placeholder: 'Add Withholding Tax',
812
+ default: {},
813
+ description: 'Withholding tax details for e-invoicing',
814
+ options: [
815
+ {
816
+ displayName: 'Payment Reason',
817
+ name: 'paymentReason',
818
+ type: 'string',
819
+ default: '',
820
+ description: 'Payment reason code',
821
+ },
822
+ {
823
+ displayName: 'Rate',
824
+ name: 'rate',
825
+ type: 'string',
826
+ default: '',
827
+ description: 'Withholding tax rate',
828
+ },
829
+ {
830
+ displayName: 'Reason',
831
+ name: 'reason',
832
+ type: 'options',
833
+ options: [
834
+ { name: 'RF01', value: 'RF01' },
835
+ { name: 'RF02', value: 'RF02' },
836
+ { name: 'RF03', value: 'RF03' },
837
+ { name: 'RF04', value: 'RF04' },
838
+ { name: 'RF05', value: 'RF05' },
839
+ { name: 'RF06', value: 'RF06' },
840
+ { name: 'RF07', value: 'RF07' },
841
+ { name: 'RF08', value: 'RF08' },
842
+ { name: 'RF09', value: 'RF09' },
843
+ { name: 'RF10', value: 'RF10' },
844
+ { name: 'RF11', value: 'RF11' },
845
+ { name: 'RF12', value: 'RF12' },
846
+ { name: 'RF13', value: 'RF13' },
847
+ { name: 'RF14', value: 'RF14' },
848
+ { name: 'RF15', value: 'RF15' },
849
+ { name: 'RF16', value: 'RF16' },
850
+ { name: 'RF17', value: 'RF17' },
851
+ { name: 'RF18', value: 'RF18' },
852
+ { name: 'RF19', value: 'RF19' },
853
+ ],
854
+ default: 'RF01',
855
+ description: 'Withholding tax reason code',
856
+ },
857
+ ],
858
+ },
515
859
  ],
516
860
  },
517
861
  {
@@ -520,11 +864,15 @@ exports.clientsInvoicesOperations = [
520
864
  type: 'string',
521
865
  displayOptions: {
522
866
  show: {
523
- resource: [
524
- 'clientsInvoices',
525
- ],
867
+ resource: ['clientsInvoices'],
526
868
  operation: [
527
869
  'showClientInvoice',
870
+ 'deleteClientInvoice',
871
+ 'finalizeClientInvoice',
872
+ 'cancelClientInvoice',
873
+ 'unmarkClientInvoiceAsPaid',
874
+ 'markClientInvoiceAsPaid',
875
+ 'sendClientInvoice',
528
876
  ],
529
877
  },
530
878
  },
@@ -532,5 +880,72 @@ exports.clientsInvoicesOperations = [
532
880
  required: true,
533
881
  description: 'The unique identifier of the invoice to show',
534
882
  },
883
+ {
884
+ displayName: 'Paid At',
885
+ name: 'paidAt',
886
+ type: 'dateTime',
887
+ displayOptions: {
888
+ show: {
889
+ resource: ['clientsInvoices'],
890
+ operation: ['markClientInvoiceAsPaid'],
891
+ },
892
+ },
893
+ default: '',
894
+ required: true,
895
+ description: 'Payment date',
896
+ },
897
+ {
898
+ displayName: 'Send To',
899
+ name: 'sendTo',
900
+ type: 'string',
901
+ displayOptions: {
902
+ show: {
903
+ resource: ['clientsInvoices'],
904
+ operation: ['sendClientInvoice'],
905
+ },
906
+ },
907
+ default: '',
908
+ required: true,
909
+ description: 'Comma-separated list of recipient emails',
910
+ },
911
+ {
912
+ displayName: 'Email Title',
913
+ name: 'emailTitle',
914
+ type: 'string',
915
+ displayOptions: {
916
+ show: {
917
+ resource: ['clientsInvoices'],
918
+ operation: ['sendClientInvoice'],
919
+ },
920
+ },
921
+ default: '',
922
+ description: 'Custom email title',
923
+ },
924
+ {
925
+ displayName: 'Email Body',
926
+ name: 'emailBody',
927
+ type: 'string',
928
+ displayOptions: {
929
+ show: {
930
+ resource: ['clientsInvoices'],
931
+ operation: ['sendClientInvoice'],
932
+ },
933
+ },
934
+ default: '',
935
+ description: 'Custom email body',
936
+ },
937
+ {
938
+ displayName: 'Copy to Self',
939
+ name: 'copyToSelf',
940
+ type: 'boolean',
941
+ displayOptions: {
942
+ show: {
943
+ resource: ['clientsInvoices'],
944
+ operation: ['sendClientInvoice'],
945
+ },
946
+ },
947
+ default: true,
948
+ description: 'Whether to copy the authenticated user',
949
+ },
535
950
  ];
536
951
  //# sourceMappingURL=ClientsInvoicesDescriptions.js.map