@arbiwallet/contracts 1.0.286 → 1.0.289
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.
- package/gen/exchange_core.ts +112 -0
- package/package.json +1 -1
- package/proto/exchange_core.proto +86 -0
package/gen/exchange_core.ts
CHANGED
|
@@ -182,6 +182,7 @@ export interface GetExchangeDealsItem {
|
|
|
182
182
|
managerPersonName?: string | undefined;
|
|
183
183
|
receivedFromDealer?: number | undefined;
|
|
184
184
|
receivedFromDealerWalletId?: string | undefined;
|
|
185
|
+
paymentAgent?: number | undefined;
|
|
185
186
|
}
|
|
186
187
|
|
|
187
188
|
export interface GetExchangeDealsResponse {
|
|
@@ -418,6 +419,7 @@ export interface ExchangeDealsFiltersRequest {
|
|
|
418
419
|
search?: string | undefined;
|
|
419
420
|
sort?: string | undefined;
|
|
420
421
|
office?: string | undefined;
|
|
422
|
+
paymentAgent?: number | undefined;
|
|
421
423
|
}
|
|
422
424
|
|
|
423
425
|
export interface CreateExchangePaymentRequest {
|
|
@@ -653,6 +655,83 @@ export interface GetWalletsMonikaResponse {
|
|
|
653
655
|
wallets: WalletMonikaItem[];
|
|
654
656
|
}
|
|
655
657
|
|
|
658
|
+
export interface ListExchangePayoutsRequest {
|
|
659
|
+
authManagerContext: AuthManagerContext | undefined;
|
|
660
|
+
page?: number | undefined;
|
|
661
|
+
pageSize?: number | undefined;
|
|
662
|
+
managerId?: string | undefined;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
export interface ExchangePayoutManager {
|
|
666
|
+
id: string;
|
|
667
|
+
email?: string | undefined;
|
|
668
|
+
username?: string | undefined;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
export interface ExchangePayoutItem {
|
|
672
|
+
id: string;
|
|
673
|
+
payoutAgentId?: string | undefined;
|
|
674
|
+
uuid?: string | undefined;
|
|
675
|
+
paymentAgent: number;
|
|
676
|
+
amount: number;
|
|
677
|
+
status: number;
|
|
678
|
+
paymentAgentStatus?: string | undefined;
|
|
679
|
+
pan?: string | undefined;
|
|
680
|
+
cardholder?: string | undefined;
|
|
681
|
+
managerId?: string | undefined;
|
|
682
|
+
manager?: ExchangePayoutManager | undefined;
|
|
683
|
+
createdAt: string;
|
|
684
|
+
updatedAt: string;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
export interface ListExchangePayoutsResponse {
|
|
688
|
+
count: number;
|
|
689
|
+
next?: string | undefined;
|
|
690
|
+
previous?: string | undefined;
|
|
691
|
+
results: ExchangePayoutItem[];
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
export interface GetExchangePayoutRequest {
|
|
695
|
+
authManagerContext: AuthManagerContext | undefined;
|
|
696
|
+
id: string;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
export interface GetExchangePayoutResponse {
|
|
700
|
+
ok: boolean;
|
|
701
|
+
result?: ExchangePayoutItem | undefined;
|
|
702
|
+
error?: string | undefined;
|
|
703
|
+
validationErrors?: { [key: string]: any } | undefined;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
export interface CreateExchangePayoutRequest {
|
|
707
|
+
authManagerContext: AuthManagerContext | undefined;
|
|
708
|
+
amount: number;
|
|
709
|
+
pan: string;
|
|
710
|
+
holder: string;
|
|
711
|
+
cvv: string;
|
|
712
|
+
month: number;
|
|
713
|
+
year: number;
|
|
714
|
+
uuid: string;
|
|
715
|
+
paymentAgent?: number | undefined;
|
|
716
|
+
managerId?: string | undefined;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
export interface CreateExchangePayoutResponse {
|
|
720
|
+
ok: boolean;
|
|
721
|
+
result?: ExchangePayoutItem | undefined;
|
|
722
|
+
error?: string | undefined;
|
|
723
|
+
validationErrors?: { [key: string]: any } | undefined;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
export interface HandleExchangePayoutWebhookRequest {
|
|
727
|
+
jsonPayload: string;
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
export interface HandleExchangePayoutWebhookResponse {
|
|
731
|
+
ok: boolean;
|
|
732
|
+
status: string;
|
|
733
|
+
}
|
|
734
|
+
|
|
656
735
|
export const EXCHANGE_CORE_PACKAGE_NAME = "exchange_core";
|
|
657
736
|
|
|
658
737
|
wrappers[".google.protobuf.Struct"] = { fromObject: Struct.wrap, toObject: Struct.unwrap } as any;
|
|
@@ -692,6 +771,16 @@ export interface ExchangeCoreServiceClient {
|
|
|
692
771
|
|
|
693
772
|
getExchangePayments(request: GetExchangePaymentsRequest): Observable<GetExchangePaymentsResponse>;
|
|
694
773
|
|
|
774
|
+
listExchangePayouts(request: ListExchangePayoutsRequest): Observable<ListExchangePayoutsResponse>;
|
|
775
|
+
|
|
776
|
+
getExchangePayout(request: GetExchangePayoutRequest): Observable<GetExchangePayoutResponse>;
|
|
777
|
+
|
|
778
|
+
createExchangePayout(request: CreateExchangePayoutRequest): Observable<CreateExchangePayoutResponse>;
|
|
779
|
+
|
|
780
|
+
handleExchangePayoutWebhook(
|
|
781
|
+
request: HandleExchangePayoutWebhookRequest,
|
|
782
|
+
): Observable<HandleExchangePayoutWebhookResponse>;
|
|
783
|
+
|
|
695
784
|
getExchangePayment(request: GetExchangePaymentRequest): Observable<GetExchangePaymentResponse>;
|
|
696
785
|
|
|
697
786
|
getPaymentsSummary(request: ExchangeCalculationsFiltersRequest): Observable<GetPaymentsSummaryResponse>;
|
|
@@ -785,6 +874,25 @@ export interface ExchangeCoreServiceController {
|
|
|
785
874
|
request: GetExchangePaymentsRequest,
|
|
786
875
|
): Promise<GetExchangePaymentsResponse> | Observable<GetExchangePaymentsResponse> | GetExchangePaymentsResponse;
|
|
787
876
|
|
|
877
|
+
listExchangePayouts(
|
|
878
|
+
request: ListExchangePayoutsRequest,
|
|
879
|
+
): Promise<ListExchangePayoutsResponse> | Observable<ListExchangePayoutsResponse> | ListExchangePayoutsResponse;
|
|
880
|
+
|
|
881
|
+
getExchangePayout(
|
|
882
|
+
request: GetExchangePayoutRequest,
|
|
883
|
+
): Promise<GetExchangePayoutResponse> | Observable<GetExchangePayoutResponse> | GetExchangePayoutResponse;
|
|
884
|
+
|
|
885
|
+
createExchangePayout(
|
|
886
|
+
request: CreateExchangePayoutRequest,
|
|
887
|
+
): Promise<CreateExchangePayoutResponse> | Observable<CreateExchangePayoutResponse> | CreateExchangePayoutResponse;
|
|
888
|
+
|
|
889
|
+
handleExchangePayoutWebhook(
|
|
890
|
+
request: HandleExchangePayoutWebhookRequest,
|
|
891
|
+
):
|
|
892
|
+
| Promise<HandleExchangePayoutWebhookResponse>
|
|
893
|
+
| Observable<HandleExchangePayoutWebhookResponse>
|
|
894
|
+
| HandleExchangePayoutWebhookResponse;
|
|
895
|
+
|
|
788
896
|
getExchangePayment(
|
|
789
897
|
request: GetExchangePaymentRequest,
|
|
790
898
|
): Promise<GetExchangePaymentResponse> | Observable<GetExchangePaymentResponse> | GetExchangePaymentResponse;
|
|
@@ -840,6 +948,10 @@ export function ExchangeCoreServiceControllerMethods() {
|
|
|
840
948
|
"createExchangePayment",
|
|
841
949
|
"handlePaymentWebhook",
|
|
842
950
|
"getExchangePayments",
|
|
951
|
+
"listExchangePayouts",
|
|
952
|
+
"getExchangePayout",
|
|
953
|
+
"createExchangePayout",
|
|
954
|
+
"handleExchangePayoutWebhook",
|
|
843
955
|
"getExchangePayment",
|
|
844
956
|
"getPaymentsSummary",
|
|
845
957
|
"searchExchangePayment",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbiwallet/contracts",
|
|
3
3
|
"descriptions": "Generate and manage smart contracts for ArbiWallet",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.289",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
|
|
7
7
|
},
|
|
@@ -27,6 +27,11 @@ service ExchangeCoreService {
|
|
|
27
27
|
rpc CreateExchangePayment(CreateExchangePaymentRequest) returns (CreateExchangePaymentResponse);
|
|
28
28
|
rpc HandlePaymentWebhook(HandlePaymentWebhookRequest) returns (HandlePaymentWebhookResponse);
|
|
29
29
|
rpc GetExchangePayments(GetExchangePaymentsRequest) returns (GetExchangePaymentsResponse);
|
|
30
|
+
|
|
31
|
+
rpc ListExchangePayouts(ListExchangePayoutsRequest) returns (ListExchangePayoutsResponse);
|
|
32
|
+
rpc GetExchangePayout(GetExchangePayoutRequest) returns (GetExchangePayoutResponse);
|
|
33
|
+
rpc CreateExchangePayout(CreateExchangePayoutRequest) returns (CreateExchangePayoutResponse);
|
|
34
|
+
rpc HandleExchangePayoutWebhook(HandleExchangePayoutWebhookRequest) returns (HandleExchangePayoutWebhookResponse);
|
|
30
35
|
rpc GetExchangePayment(GetExchangePaymentRequest) returns (GetExchangePaymentResponse);
|
|
31
36
|
rpc GetPaymentsSummary(ExchangeCalculationsFiltersRequest) returns (GetPaymentsSummaryResponse);
|
|
32
37
|
rpc SearchExchangePayment(SearchExchangePaymentRequest) returns (SearchExchangePaymentResponse);
|
|
@@ -218,6 +223,7 @@ message GetExchangeDealsItem {
|
|
|
218
223
|
optional string manager_person_name = 41;
|
|
219
224
|
optional double received_from_dealer = 42;
|
|
220
225
|
optional string received_from_dealer_wallet_id = 43;
|
|
226
|
+
optional int32 payment_agent = 44;
|
|
221
227
|
}
|
|
222
228
|
|
|
223
229
|
message GetExchangeDealsResponse {
|
|
@@ -463,6 +469,7 @@ message ExchangeDealsFiltersRequest {
|
|
|
463
469
|
optional string search = 15;
|
|
464
470
|
optional string sort = 16;
|
|
465
471
|
optional string office = 17;
|
|
472
|
+
optional int32 payment_agent = 18;
|
|
466
473
|
}
|
|
467
474
|
|
|
468
475
|
message CreateExchangePaymentRequest {
|
|
@@ -686,3 +693,82 @@ message WalletMonikaItem {
|
|
|
686
693
|
message GetWalletsMonikaResponse {
|
|
687
694
|
repeated WalletMonikaItem wallets = 2;
|
|
688
695
|
}
|
|
696
|
+
|
|
697
|
+
// --- Exchange Overpay payouts (CRM «Выплаты по обменам») ---
|
|
698
|
+
|
|
699
|
+
message ListExchangePayoutsRequest {
|
|
700
|
+
AuthManagerContext auth_manager_context = 1;
|
|
701
|
+
optional int32 page = 2;
|
|
702
|
+
optional int32 page_size = 3;
|
|
703
|
+
optional string manager_id = 4;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
message ExchangePayoutManager {
|
|
707
|
+
string id = 1;
|
|
708
|
+
optional string email = 2;
|
|
709
|
+
optional string username = 3;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
message ExchangePayoutItem {
|
|
713
|
+
string id = 1;
|
|
714
|
+
optional string payout_agent_id = 2;
|
|
715
|
+
optional string uuid = 3;
|
|
716
|
+
int32 payment_agent = 4;
|
|
717
|
+
double amount = 5;
|
|
718
|
+
int32 status = 6;
|
|
719
|
+
optional string payment_agent_status = 7;
|
|
720
|
+
optional string pan = 8;
|
|
721
|
+
optional string cardholder = 9;
|
|
722
|
+
optional string manager_id = 10;
|
|
723
|
+
optional ExchangePayoutManager manager = 11;
|
|
724
|
+
string created_at = 12;
|
|
725
|
+
string updated_at = 13;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
message ListExchangePayoutsResponse {
|
|
729
|
+
int32 count = 1;
|
|
730
|
+
optional string next = 2;
|
|
731
|
+
optional string previous = 3;
|
|
732
|
+
repeated ExchangePayoutItem results = 4;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
message GetExchangePayoutRequest {
|
|
736
|
+
AuthManagerContext auth_manager_context = 1;
|
|
737
|
+
string id = 2;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
message GetExchangePayoutResponse {
|
|
741
|
+
bool ok = 1;
|
|
742
|
+
optional ExchangePayoutItem result = 2;
|
|
743
|
+
optional string error = 3;
|
|
744
|
+
optional google.protobuf.Struct validationErrors = 4;
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
message CreateExchangePayoutRequest {
|
|
748
|
+
AuthManagerContext auth_manager_context = 1;
|
|
749
|
+
double amount = 2;
|
|
750
|
+
string pan = 3;
|
|
751
|
+
string holder = 4;
|
|
752
|
+
string cvv = 5;
|
|
753
|
+
int32 month = 6;
|
|
754
|
+
int32 year = 7;
|
|
755
|
+
string uuid = 8;
|
|
756
|
+
optional int32 payment_agent = 9;
|
|
757
|
+
optional string manager_id = 10;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
message CreateExchangePayoutResponse {
|
|
761
|
+
bool ok = 1;
|
|
762
|
+
optional ExchangePayoutItem result = 2;
|
|
763
|
+
optional string error = 3;
|
|
764
|
+
optional google.protobuf.Struct validationErrors = 4;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
message HandleExchangePayoutWebhookRequest {
|
|
768
|
+
string json_payload = 1;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
message HandleExchangePayoutWebhookResponse {
|
|
772
|
+
bool ok = 1;
|
|
773
|
+
string status = 2;
|
|
774
|
+
}
|