@pokash/n8n-nodes-optima-rest-api 1.10.0 → 1.11.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.
|
@@ -525,6 +525,60 @@ class OptimaRestApi {
|
|
|
525
525
|
},
|
|
526
526
|
description: 'Link weryfikacyjny KSeF (QR). Puste = bez zmian.',
|
|
527
527
|
},
|
|
528
|
+
{
|
|
529
|
+
displayName: 'Operator Wysyłający',
|
|
530
|
+
name: 'operatorWysylajacy',
|
|
531
|
+
type: 'string',
|
|
532
|
+
default: '',
|
|
533
|
+
displayOptions: {
|
|
534
|
+
show: {
|
|
535
|
+
resource: ['document'],
|
|
536
|
+
operation: ['updateKSeF'],
|
|
537
|
+
},
|
|
538
|
+
},
|
|
539
|
+
description: 'Operator wysyłający (nazwisko). Puste = bez zmian.',
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
displayName: 'Operator Odbierający',
|
|
543
|
+
name: 'operatorOdbierajacy',
|
|
544
|
+
type: 'string',
|
|
545
|
+
default: '',
|
|
546
|
+
displayOptions: {
|
|
547
|
+
show: {
|
|
548
|
+
resource: ['document'],
|
|
549
|
+
operation: ['updateKSeF'],
|
|
550
|
+
},
|
|
551
|
+
},
|
|
552
|
+
description: 'Operator odbierający UPO (nazwisko). Puste = bez zmian.',
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
displayName: 'Data Wysłania',
|
|
556
|
+
name: 'dataWyslania',
|
|
557
|
+
type: 'string',
|
|
558
|
+
default: '',
|
|
559
|
+
placeholder: '2026-07-31',
|
|
560
|
+
displayOptions: {
|
|
561
|
+
show: {
|
|
562
|
+
resource: ['document'],
|
|
563
|
+
operation: ['updateKSeF'],
|
|
564
|
+
},
|
|
565
|
+
},
|
|
566
|
+
description: 'Data wysłania do KSeF (yyyy-MM-dd). Puste = bez zmian.',
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
displayName: 'Data Odebrania',
|
|
570
|
+
name: 'dataOdebrania',
|
|
571
|
+
type: 'string',
|
|
572
|
+
default: '',
|
|
573
|
+
placeholder: '2026-07-31',
|
|
574
|
+
displayOptions: {
|
|
575
|
+
show: {
|
|
576
|
+
resource: ['document'],
|
|
577
|
+
operation: ['updateKSeF'],
|
|
578
|
+
},
|
|
579
|
+
},
|
|
580
|
+
description: 'Data odebrania UPO (yyyy-MM-dd). Puste = bez zmian.',
|
|
581
|
+
},
|
|
528
582
|
// Product Operations
|
|
529
583
|
{
|
|
530
584
|
displayName: 'Operation',
|
|
@@ -973,6 +1027,10 @@ class OptimaRestApi {
|
|
|
973
1027
|
const formaPlatnosci = this.getNodeParameter('formaPlatnosci', i, '');
|
|
974
1028
|
const srodowisko = this.getNodeParameter('srodowisko', i, '');
|
|
975
1029
|
const linkWeryfikacyjny = this.getNodeParameter('linkWeryfikacyjny', i, '');
|
|
1030
|
+
const operatorWysylajacy = this.getNodeParameter('operatorWysylajacy', i, '');
|
|
1031
|
+
const operatorOdbierajacy = this.getNodeParameter('operatorOdbierajacy', i, '');
|
|
1032
|
+
const dataWyslania = this.getNodeParameter('dataWyslania', i, '');
|
|
1033
|
+
const dataOdebrania = this.getNodeParameter('dataOdebrania', i, '');
|
|
976
1034
|
const body = {};
|
|
977
1035
|
if (numerPelny)
|
|
978
1036
|
body.NumerPelny = numerPelny;
|
|
@@ -992,6 +1050,14 @@ class OptimaRestApi {
|
|
|
992
1050
|
body.Srodowisko = srodowisko;
|
|
993
1051
|
if (linkWeryfikacyjny)
|
|
994
1052
|
body.LinkWeryfikacyjny = linkWeryfikacyjny;
|
|
1053
|
+
if (operatorWysylajacy)
|
|
1054
|
+
body.OperatorWysylajacy = operatorWysylajacy;
|
|
1055
|
+
if (operatorOdbierajacy)
|
|
1056
|
+
body.OperatorOdbierajacy = operatorOdbierajacy;
|
|
1057
|
+
if (dataWyslania)
|
|
1058
|
+
body.DataWyslania = dataWyslania;
|
|
1059
|
+
if (dataOdebrania)
|
|
1060
|
+
body.DataOdebrania = dataOdebrania;
|
|
995
1061
|
const response = await makeAuthenticatedRequest({
|
|
996
1062
|
method: 'PUT',
|
|
997
1063
|
url: `${gatewayUrl}/api/Documents/KSeF`,
|