@devizovaburza/payments-api-sdk 2.0.4 → 2.0.6

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.
@@ -450,6 +450,531 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
450
450
  };
451
451
  };
452
452
  };
453
+ } & {
454
+ v1: {
455
+ organizations: {
456
+ ":id": {
457
+ accounts: {
458
+ ":accountId": {
459
+ sweeps: hono_client.ClientRequest<string, "/v1/organizations/:id/accounts/:accountId/sweeps", {
460
+ $get: {
461
+ input: {
462
+ param: {
463
+ id: string;
464
+ accountId: string;
465
+ } & {
466
+ [x: string]: string;
467
+ [x: number]: string;
468
+ [x: symbol]: string;
469
+ };
470
+ query: {
471
+ from?: string | undefined;
472
+ to?: string | undefined;
473
+ filterStatus?: "SKIPPED" | "PAYMENT_REQUEST_CREATED" | "FAILED" | "PENDING" | "PROCESSING" | undefined;
474
+ filterType?: "MANUAL" | "AUTOMATIC" | undefined;
475
+ sortColumn?: "initiatedAt" | undefined;
476
+ sortDirection?: "asc" | "desc" | undefined;
477
+ page?: unknown;
478
+ limit?: unknown;
479
+ };
480
+ };
481
+ output: {
482
+ sweeps: {
483
+ id: string;
484
+ status: "SKIPPED" | "PAYMENT_REQUEST_CREATED" | "FAILED" | "PENDING" | "PROCESSING";
485
+ type: "MANUAL" | "AUTOMATIC";
486
+ initiatedAt: string;
487
+ triggeredBy: string;
488
+ amount: {
489
+ value: number;
490
+ currency: string;
491
+ } | null;
492
+ destination: {
493
+ iban: string;
494
+ holderName: string;
495
+ } | null;
496
+ paymentRequestId: string | null;
497
+ processedAt: string | null;
498
+ reason?: string | undefined;
499
+ }[];
500
+ pagination: {
501
+ page: number;
502
+ pageSize: number;
503
+ totalPages: number;
504
+ totalCount: number;
505
+ hasNext: boolean;
506
+ hasPrevious: boolean;
507
+ };
508
+ };
509
+ outputFormat: "json";
510
+ status: 200;
511
+ } | {
512
+ input: {
513
+ param: {
514
+ id: string;
515
+ accountId: string;
516
+ } & {
517
+ [x: string]: string;
518
+ [x: number]: string;
519
+ [x: symbol]: string;
520
+ };
521
+ query: {
522
+ from?: string | undefined;
523
+ to?: string | undefined;
524
+ filterStatus?: "SKIPPED" | "PAYMENT_REQUEST_CREATED" | "FAILED" | "PENDING" | "PROCESSING" | undefined;
525
+ filterType?: "MANUAL" | "AUTOMATIC" | undefined;
526
+ sortColumn?: "initiatedAt" | undefined;
527
+ sortDirection?: "asc" | "desc" | undefined;
528
+ page?: unknown;
529
+ limit?: unknown;
530
+ };
531
+ };
532
+ output: {
533
+ code: string;
534
+ error: string;
535
+ };
536
+ outputFormat: "json";
537
+ status: 400;
538
+ } | {
539
+ input: {
540
+ param: {
541
+ id: string;
542
+ accountId: string;
543
+ } & {
544
+ [x: string]: string;
545
+ [x: number]: string;
546
+ [x: symbol]: string;
547
+ };
548
+ query: {
549
+ from?: string | undefined;
550
+ to?: string | undefined;
551
+ filterStatus?: "SKIPPED" | "PAYMENT_REQUEST_CREATED" | "FAILED" | "PENDING" | "PROCESSING" | undefined;
552
+ filterType?: "MANUAL" | "AUTOMATIC" | undefined;
553
+ sortColumn?: "initiatedAt" | undefined;
554
+ sortDirection?: "asc" | "desc" | undefined;
555
+ page?: unknown;
556
+ limit?: unknown;
557
+ };
558
+ };
559
+ output: {
560
+ error: string;
561
+ };
562
+ outputFormat: "json";
563
+ status: 404;
564
+ } | {
565
+ input: {
566
+ param: {
567
+ id: string;
568
+ accountId: string;
569
+ } & {
570
+ [x: string]: string;
571
+ [x: number]: string;
572
+ [x: symbol]: string;
573
+ };
574
+ query: {
575
+ from?: string | undefined;
576
+ to?: string | undefined;
577
+ filterStatus?: "SKIPPED" | "PAYMENT_REQUEST_CREATED" | "FAILED" | "PENDING" | "PROCESSING" | undefined;
578
+ filterType?: "MANUAL" | "AUTOMATIC" | undefined;
579
+ sortColumn?: "initiatedAt" | undefined;
580
+ sortDirection?: "asc" | "desc" | undefined;
581
+ page?: unknown;
582
+ limit?: unknown;
583
+ };
584
+ };
585
+ output: {
586
+ error: string;
587
+ };
588
+ outputFormat: "json";
589
+ status: 500;
590
+ };
591
+ } & {
592
+ $post: {
593
+ input: {
594
+ param: {
595
+ id: string;
596
+ accountId: string;
597
+ } & {
598
+ [x: string]: string;
599
+ [x: number]: string;
600
+ [x: symbol]: string;
601
+ };
602
+ header: {
603
+ 'x-idempotency-key': string;
604
+ };
605
+ };
606
+ output: {
607
+ id: string;
608
+ status: "INITIATED";
609
+ paymentRequestId: string;
610
+ amount: {
611
+ value: number;
612
+ currency: string;
613
+ };
614
+ initiatedAt: string;
615
+ } | {
616
+ id: string;
617
+ status: "SKIPPED";
618
+ reason: "ZERO_BALANCE";
619
+ message: string;
620
+ };
621
+ outputFormat: "json";
622
+ status: 200;
623
+ } | {
624
+ input: {
625
+ param: {
626
+ id: string;
627
+ accountId: string;
628
+ } & {
629
+ [x: string]: string;
630
+ [x: number]: string;
631
+ [x: symbol]: string;
632
+ };
633
+ header: {
634
+ 'x-idempotency-key': string;
635
+ };
636
+ };
637
+ output: {
638
+ code: string;
639
+ error: string;
640
+ };
641
+ outputFormat: "json";
642
+ status: 401;
643
+ } | {
644
+ input: {
645
+ param: {
646
+ id: string;
647
+ accountId: string;
648
+ } & {
649
+ [x: string]: string;
650
+ [x: number]: string;
651
+ [x: symbol]: string;
652
+ };
653
+ header: {
654
+ 'x-idempotency-key': string;
655
+ };
656
+ };
657
+ output: {
658
+ code: string;
659
+ error: string;
660
+ };
661
+ outputFormat: "json";
662
+ status: 400;
663
+ } | {
664
+ input: {
665
+ param: {
666
+ id: string;
667
+ accountId: string;
668
+ } & {
669
+ [x: string]: string;
670
+ [x: number]: string;
671
+ [x: symbol]: string;
672
+ };
673
+ header: {
674
+ 'x-idempotency-key': string;
675
+ };
676
+ };
677
+ output: {
678
+ code: string;
679
+ error: string;
680
+ };
681
+ outputFormat: "json";
682
+ status: 403;
683
+ } | {
684
+ input: {
685
+ param: {
686
+ id: string;
687
+ accountId: string;
688
+ } & {
689
+ [x: string]: string;
690
+ [x: number]: string;
691
+ [x: symbol]: string;
692
+ };
693
+ header: {
694
+ 'x-idempotency-key': string;
695
+ };
696
+ };
697
+ output: {
698
+ error: string;
699
+ };
700
+ outputFormat: "json";
701
+ status: 404;
702
+ } | {
703
+ input: {
704
+ param: {
705
+ id: string;
706
+ accountId: string;
707
+ } & {
708
+ [x: string]: string;
709
+ [x: number]: string;
710
+ [x: symbol]: string;
711
+ };
712
+ header: {
713
+ 'x-idempotency-key': string;
714
+ };
715
+ };
716
+ output: {
717
+ code: string;
718
+ error: string;
719
+ };
720
+ outputFormat: "json";
721
+ status: 409;
722
+ } | {
723
+ input: {
724
+ param: {
725
+ id: string;
726
+ accountId: string;
727
+ } & {
728
+ [x: string]: string;
729
+ [x: number]: string;
730
+ [x: symbol]: string;
731
+ };
732
+ header: {
733
+ 'x-idempotency-key': string;
734
+ };
735
+ };
736
+ output: {
737
+ code: string;
738
+ error: string;
739
+ };
740
+ outputFormat: "json";
741
+ status: 429;
742
+ } | {
743
+ input: {
744
+ param: {
745
+ id: string;
746
+ accountId: string;
747
+ } & {
748
+ [x: string]: string;
749
+ [x: number]: string;
750
+ [x: symbol]: string;
751
+ };
752
+ header: {
753
+ 'x-idempotency-key': string;
754
+ };
755
+ };
756
+ output: {
757
+ error: string;
758
+ };
759
+ outputFormat: "json";
760
+ status: 500;
761
+ };
762
+ }>;
763
+ };
764
+ };
765
+ };
766
+ };
767
+ };
768
+ } & {
769
+ v1: {
770
+ organizations: {
771
+ ":id": {
772
+ accounts: {
773
+ ":accountId": {
774
+ sweeps: {
775
+ status: hono_client.ClientRequest<string, "/v1/organizations/:id/accounts/:accountId/sweeps/status", {
776
+ $get: {
777
+ input: {
778
+ param: {
779
+ id: string;
780
+ accountId: string;
781
+ } & {
782
+ [x: string]: string;
783
+ [x: number]: string;
784
+ [x: symbol]: string;
785
+ };
786
+ };
787
+ output: {
788
+ canSweepNow: boolean;
789
+ reason: "cooldown_active" | "rate_limit_reached" | "sweep_in_progress" | null;
790
+ rateLimit: {
791
+ remaining: number;
792
+ total: number;
793
+ resetsAt: string;
794
+ };
795
+ automaticSchedule: {
796
+ timezone: string;
797
+ times: string[];
798
+ } | null;
799
+ availableAt?: string | undefined;
800
+ };
801
+ outputFormat: "json";
802
+ status: 200;
803
+ } | {
804
+ input: {
805
+ param: {
806
+ id: string;
807
+ accountId: string;
808
+ } & {
809
+ [x: string]: string;
810
+ [x: number]: string;
811
+ [x: symbol]: string;
812
+ };
813
+ };
814
+ output: {
815
+ code: string;
816
+ error: string;
817
+ accountType?: string | undefined;
818
+ };
819
+ outputFormat: "json";
820
+ status: 400;
821
+ } | {
822
+ input: {
823
+ param: {
824
+ id: string;
825
+ accountId: string;
826
+ } & {
827
+ [x: string]: string;
828
+ [x: number]: string;
829
+ [x: symbol]: string;
830
+ };
831
+ };
832
+ output: {
833
+ code: string;
834
+ error: string;
835
+ };
836
+ outputFormat: "json";
837
+ status: 403;
838
+ } | {
839
+ input: {
840
+ param: {
841
+ id: string;
842
+ accountId: string;
843
+ } & {
844
+ [x: string]: string;
845
+ [x: number]: string;
846
+ [x: symbol]: string;
847
+ };
848
+ };
849
+ output: {
850
+ error: string;
851
+ };
852
+ outputFormat: "json";
853
+ status: 404;
854
+ } | {
855
+ input: {
856
+ param: {
857
+ id: string;
858
+ accountId: string;
859
+ } & {
860
+ [x: string]: string;
861
+ [x: number]: string;
862
+ [x: symbol]: string;
863
+ };
864
+ };
865
+ output: {
866
+ error: string;
867
+ };
868
+ outputFormat: "json";
869
+ status: 500;
870
+ };
871
+ }>;
872
+ };
873
+ };
874
+ };
875
+ };
876
+ };
877
+ };
878
+ } & {
879
+ v1: {
880
+ organizations: {
881
+ ":id": {
882
+ accounts: {
883
+ ":accountId": {
884
+ sweeps: {
885
+ ":sweepId": hono_client.ClientRequest<string, "/v1/organizations/:id/accounts/:accountId/sweeps/:sweepId", {
886
+ $get: {
887
+ input: {
888
+ param: {
889
+ id: string;
890
+ accountId: string;
891
+ sweepId: string;
892
+ } & {
893
+ id: string;
894
+ accountId: string;
895
+ sweepId: string;
896
+ };
897
+ };
898
+ output: {
899
+ id: string;
900
+ status: "SKIPPED" | "PAYMENT_REQUEST_CREATED" | "FAILED" | "PENDING" | "PROCESSING";
901
+ type: "MANUAL" | "AUTOMATIC";
902
+ initiatedAt: string;
903
+ triggeredBy: string;
904
+ amount: {
905
+ value: number;
906
+ currency: string;
907
+ } | null;
908
+ destination: {
909
+ iban: string;
910
+ holderName: string;
911
+ } | null;
912
+ paymentRequestId: string | null;
913
+ processedAt: string | null;
914
+ reason?: string | undefined;
915
+ };
916
+ outputFormat: "json";
917
+ status: 200;
918
+ } | {
919
+ input: {
920
+ param: {
921
+ id: string;
922
+ accountId: string;
923
+ sweepId: string;
924
+ } & {
925
+ id: string;
926
+ accountId: string;
927
+ sweepId: string;
928
+ };
929
+ };
930
+ output: {
931
+ code: string;
932
+ error: string;
933
+ };
934
+ outputFormat: "json";
935
+ status: 400;
936
+ } | {
937
+ input: {
938
+ param: {
939
+ id: string;
940
+ accountId: string;
941
+ sweepId: string;
942
+ } & {
943
+ id: string;
944
+ accountId: string;
945
+ sweepId: string;
946
+ };
947
+ };
948
+ output: {
949
+ error: string;
950
+ };
951
+ outputFormat: "json";
952
+ status: 404;
953
+ } | {
954
+ input: {
955
+ param: {
956
+ id: string;
957
+ accountId: string;
958
+ sweepId: string;
959
+ } & {
960
+ id: string;
961
+ accountId: string;
962
+ sweepId: string;
963
+ };
964
+ };
965
+ output: {
966
+ error: string;
967
+ };
968
+ outputFormat: "json";
969
+ status: 500;
970
+ };
971
+ }>;
972
+ };
973
+ };
974
+ };
975
+ };
976
+ };
977
+ };
453
978
  } & {
454
979
  v1: {
455
980
  organizations: {
@@ -509,6 +1034,7 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
509
1034
  name: string | null;
510
1035
  iban?: string | undefined;
511
1036
  accountNumber?: string | undefined;
1037
+ accountId?: string | undefined;
512
1038
  bankCode?: string | undefined;
513
1039
  swiftBic?: string | undefined;
514
1040
  address?: {
@@ -628,6 +1154,7 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
628
1154
  name: string | null;
629
1155
  iban?: string | undefined;
630
1156
  accountNumber?: string | undefined;
1157
+ accountId?: string | undefined;
631
1158
  bankCode?: string | undefined;
632
1159
  swiftBic?: string | undefined;
633
1160
  address?: {
@@ -759,6 +1286,7 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
759
1286
  name: string | null;
760
1287
  iban?: string | undefined;
761
1288
  accountNumber?: string | undefined;
1289
+ accountId?: string | undefined;
762
1290
  bankCode?: string | undefined;
763
1291
  swiftBic?: string | undefined;
764
1292
  address?: {
@@ -900,6 +1428,7 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
900
1428
  name: string | null;
901
1429
  iban?: string | undefined;
902
1430
  accountNumber?: string | undefined;
1431
+ accountId?: string | undefined;
903
1432
  bankCode?: string | undefined;
904
1433
  swiftBic?: string | undefined;
905
1434
  address?: {
@@ -1181,6 +1710,10 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1181
1710
  details: {
1182
1711
  code?: string | undefined;
1183
1712
  reason?: string | undefined;
1713
+ } | {
1714
+ compensated: boolean;
1715
+ topupPaymentId?: string | undefined;
1716
+ compensationPaymentId?: string | undefined;
1184
1717
  };
1185
1718
  };
1186
1719
  outputFormat: "json";
@@ -1263,6 +1796,7 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1263
1796
  name: string | null;
1264
1797
  iban?: string | undefined;
1265
1798
  accountNumber?: string | undefined;
1799
+ accountId?: string | undefined;
1266
1800
  bankCode?: string | undefined;
1267
1801
  swiftBic?: string | undefined;
1268
1802
  address?: {
@@ -1595,6 +2129,7 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1595
2129
  name: string | null;
1596
2130
  iban?: string | undefined;
1597
2131
  accountNumber?: string | undefined;
2132
+ accountId?: string | undefined;
1598
2133
  bankCode?: string | undefined;
1599
2134
  swiftBic?: string | undefined;
1600
2135
  address?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devizovaburza/payments-api-sdk",
3
- "version": "2.0.4",
3
+ "version": "2.0.6",
4
4
  "author": "Devizová burza a.s.",
5
5
  "license": "ISC",
6
6
  "type": "module",