@devizovaburza/payments-api-sdk 2.0.4 → 2.0.5

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,468 @@ 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
+ error: string;
534
+ };
535
+ outputFormat: "json";
536
+ status: 404;
537
+ } | {
538
+ input: {
539
+ param: {
540
+ id: string;
541
+ accountId: string;
542
+ } & {
543
+ [x: string]: string;
544
+ [x: number]: string;
545
+ [x: symbol]: string;
546
+ };
547
+ query: {
548
+ from?: string | undefined;
549
+ to?: string | undefined;
550
+ filterStatus?: "SKIPPED" | "PAYMENT_REQUEST_CREATED" | "FAILED" | "PENDING" | "PROCESSING" | undefined;
551
+ filterType?: "MANUAL" | "AUTOMATIC" | undefined;
552
+ sortColumn?: "initiatedAt" | undefined;
553
+ sortDirection?: "asc" | "desc" | undefined;
554
+ page?: unknown;
555
+ limit?: unknown;
556
+ };
557
+ };
558
+ output: {
559
+ error: string;
560
+ };
561
+ outputFormat: "json";
562
+ status: 500;
563
+ };
564
+ } & {
565
+ $post: {
566
+ input: {
567
+ param: {
568
+ id: string;
569
+ accountId: string;
570
+ } & {
571
+ [x: string]: string;
572
+ [x: number]: string;
573
+ [x: symbol]: string;
574
+ };
575
+ header: {
576
+ 'x-idempotency-key': string;
577
+ };
578
+ };
579
+ output: {
580
+ id: string;
581
+ status: "INITIATED";
582
+ paymentRequestId: string;
583
+ amount: {
584
+ value: number;
585
+ currency: string;
586
+ };
587
+ initiatedAt: string;
588
+ } | {
589
+ id: string;
590
+ status: "SKIPPED";
591
+ reason: "ZERO_BALANCE";
592
+ message: string;
593
+ };
594
+ outputFormat: "json";
595
+ status: 200;
596
+ } | {
597
+ input: {
598
+ param: {
599
+ id: string;
600
+ accountId: string;
601
+ } & {
602
+ [x: string]: string;
603
+ [x: number]: string;
604
+ [x: symbol]: string;
605
+ };
606
+ header: {
607
+ 'x-idempotency-key': string;
608
+ };
609
+ };
610
+ output: {
611
+ code: string;
612
+ error: string;
613
+ };
614
+ outputFormat: "json";
615
+ status: 401;
616
+ } | {
617
+ input: {
618
+ param: {
619
+ id: string;
620
+ accountId: string;
621
+ } & {
622
+ [x: string]: string;
623
+ [x: number]: string;
624
+ [x: symbol]: string;
625
+ };
626
+ header: {
627
+ 'x-idempotency-key': string;
628
+ };
629
+ };
630
+ output: {
631
+ code: string;
632
+ error: string;
633
+ };
634
+ outputFormat: "json";
635
+ status: 400;
636
+ } | {
637
+ input: {
638
+ param: {
639
+ id: string;
640
+ accountId: string;
641
+ } & {
642
+ [x: string]: string;
643
+ [x: number]: string;
644
+ [x: symbol]: string;
645
+ };
646
+ header: {
647
+ 'x-idempotency-key': string;
648
+ };
649
+ };
650
+ output: {
651
+ code: string;
652
+ error: string;
653
+ };
654
+ outputFormat: "json";
655
+ status: 403;
656
+ } | {
657
+ input: {
658
+ param: {
659
+ id: string;
660
+ accountId: string;
661
+ } & {
662
+ [x: string]: string;
663
+ [x: number]: string;
664
+ [x: symbol]: string;
665
+ };
666
+ header: {
667
+ 'x-idempotency-key': string;
668
+ };
669
+ };
670
+ output: {
671
+ error: string;
672
+ };
673
+ outputFormat: "json";
674
+ status: 404;
675
+ } | {
676
+ input: {
677
+ param: {
678
+ id: string;
679
+ accountId: string;
680
+ } & {
681
+ [x: string]: string;
682
+ [x: number]: string;
683
+ [x: symbol]: string;
684
+ };
685
+ header: {
686
+ 'x-idempotency-key': string;
687
+ };
688
+ };
689
+ output: {
690
+ code: string;
691
+ error: string;
692
+ };
693
+ outputFormat: "json";
694
+ status: 409;
695
+ } | {
696
+ input: {
697
+ param: {
698
+ id: string;
699
+ accountId: string;
700
+ } & {
701
+ [x: string]: string;
702
+ [x: number]: string;
703
+ [x: symbol]: string;
704
+ };
705
+ header: {
706
+ 'x-idempotency-key': string;
707
+ };
708
+ };
709
+ output: {
710
+ code: string;
711
+ error: string;
712
+ };
713
+ outputFormat: "json";
714
+ status: 429;
715
+ } | {
716
+ input: {
717
+ param: {
718
+ id: string;
719
+ accountId: string;
720
+ } & {
721
+ [x: string]: string;
722
+ [x: number]: string;
723
+ [x: symbol]: string;
724
+ };
725
+ header: {
726
+ 'x-idempotency-key': string;
727
+ };
728
+ };
729
+ output: {
730
+ error: string;
731
+ };
732
+ outputFormat: "json";
733
+ status: 500;
734
+ };
735
+ }>;
736
+ };
737
+ };
738
+ };
739
+ };
740
+ };
741
+ } & {
742
+ v1: {
743
+ organizations: {
744
+ ":id": {
745
+ accounts: {
746
+ ":accountId": {
747
+ sweeps: {
748
+ status: hono_client.ClientRequest<string, "/v1/organizations/:id/accounts/:accountId/sweeps/status", {
749
+ $get: {
750
+ input: {
751
+ param: {
752
+ id: string;
753
+ accountId: string;
754
+ } & {
755
+ [x: string]: string;
756
+ [x: number]: string;
757
+ [x: symbol]: string;
758
+ };
759
+ };
760
+ output: {
761
+ canSweepNow: boolean;
762
+ reason: "cooldown_active" | "rate_limit_reached" | "sweep_in_progress" | null;
763
+ rateLimit: {
764
+ remaining: number;
765
+ total: number;
766
+ resetsAt: string;
767
+ };
768
+ automaticSchedule: {
769
+ timezone: string;
770
+ times: string[];
771
+ } | null;
772
+ availableAt?: string | undefined;
773
+ };
774
+ outputFormat: "json";
775
+ status: 200;
776
+ } | {
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
+ code: string;
789
+ error: string;
790
+ };
791
+ outputFormat: "json";
792
+ status: 403;
793
+ } | {
794
+ input: {
795
+ param: {
796
+ id: string;
797
+ accountId: string;
798
+ } & {
799
+ [x: string]: string;
800
+ [x: number]: string;
801
+ [x: symbol]: string;
802
+ };
803
+ };
804
+ output: {
805
+ error: string;
806
+ };
807
+ outputFormat: "json";
808
+ status: 404;
809
+ } | {
810
+ input: {
811
+ param: {
812
+ id: string;
813
+ accountId: string;
814
+ } & {
815
+ [x: string]: string;
816
+ [x: number]: string;
817
+ [x: symbol]: string;
818
+ };
819
+ };
820
+ output: {
821
+ error: string;
822
+ };
823
+ outputFormat: "json";
824
+ status: 500;
825
+ };
826
+ }>;
827
+ };
828
+ };
829
+ };
830
+ };
831
+ };
832
+ };
833
+ } & {
834
+ v1: {
835
+ organizations: {
836
+ ":id": {
837
+ accounts: {
838
+ ":accountId": {
839
+ sweeps: {
840
+ ":sweepId": hono_client.ClientRequest<string, "/v1/organizations/:id/accounts/:accountId/sweeps/:sweepId", {
841
+ $get: {
842
+ input: {
843
+ param: {
844
+ id: string;
845
+ accountId: string;
846
+ sweepId: string;
847
+ } & {
848
+ id: string;
849
+ accountId: string;
850
+ sweepId: string;
851
+ };
852
+ };
853
+ output: {
854
+ id: string;
855
+ status: "SKIPPED" | "PAYMENT_REQUEST_CREATED" | "FAILED" | "PENDING" | "PROCESSING";
856
+ type: "MANUAL" | "AUTOMATIC";
857
+ initiatedAt: string;
858
+ triggeredBy: string;
859
+ amount: {
860
+ value: number;
861
+ currency: string;
862
+ } | null;
863
+ destination: {
864
+ iban: string;
865
+ holderName: string;
866
+ } | null;
867
+ paymentRequestId: string | null;
868
+ processedAt: string | null;
869
+ reason?: string | undefined;
870
+ };
871
+ outputFormat: "json";
872
+ status: 200;
873
+ } | {
874
+ input: {
875
+ param: {
876
+ id: string;
877
+ accountId: string;
878
+ sweepId: string;
879
+ } & {
880
+ id: string;
881
+ accountId: string;
882
+ sweepId: string;
883
+ };
884
+ };
885
+ output: {
886
+ error: string;
887
+ };
888
+ outputFormat: "json";
889
+ status: 404;
890
+ } | {
891
+ input: {
892
+ param: {
893
+ id: string;
894
+ accountId: string;
895
+ sweepId: string;
896
+ } & {
897
+ id: string;
898
+ accountId: string;
899
+ sweepId: string;
900
+ };
901
+ };
902
+ output: {
903
+ error: string;
904
+ };
905
+ outputFormat: "json";
906
+ status: 500;
907
+ };
908
+ }>;
909
+ };
910
+ };
911
+ };
912
+ };
913
+ };
914
+ };
453
915
  } & {
454
916
  v1: {
455
917
  organizations: {
@@ -1181,6 +1643,10 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1181
1643
  details: {
1182
1644
  code?: string | undefined;
1183
1645
  reason?: string | undefined;
1646
+ } | {
1647
+ compensated: boolean;
1648
+ topupPaymentId?: string | undefined;
1649
+ compensationPaymentId?: string | undefined;
1184
1650
  };
1185
1651
  };
1186
1652
  outputFormat: "json";