@arbiwallet/contracts 1.0.245 → 1.0.247
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 +16 -0
- package/package.json +1 -1
- package/proto/exchange_core.proto +10 -0
package/gen/exchange_core.ts
CHANGED
|
@@ -397,6 +397,7 @@ export interface GetExchangePaymentsItem {
|
|
|
397
397
|
createdAt: string;
|
|
398
398
|
customerName?: string | undefined;
|
|
399
399
|
managerName?: string | undefined;
|
|
400
|
+
calculationId?: string | undefined;
|
|
400
401
|
}
|
|
401
402
|
|
|
402
403
|
export interface GetExchangePaymentsResponse {
|
|
@@ -407,6 +408,14 @@ export interface GetExchangePaymentsResponse {
|
|
|
407
408
|
totalPages: number;
|
|
408
409
|
}
|
|
409
410
|
|
|
411
|
+
export interface GetExchangePaymentRequest {
|
|
412
|
+
id: string;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
export interface GetExchangePaymentResponse {
|
|
416
|
+
payment?: GetExchangePaymentsItem | undefined;
|
|
417
|
+
}
|
|
418
|
+
|
|
410
419
|
export interface PaymentsSummaryItem {
|
|
411
420
|
currency: string;
|
|
412
421
|
total: number;
|
|
@@ -560,6 +569,8 @@ export interface ExchangeCoreServiceClient {
|
|
|
560
569
|
|
|
561
570
|
getExchangePayments(request: GetExchangePaymentsRequest): Observable<GetExchangePaymentsResponse>;
|
|
562
571
|
|
|
572
|
+
getExchangePayment(request: GetExchangePaymentRequest): Observable<GetExchangePaymentResponse>;
|
|
573
|
+
|
|
563
574
|
getPaymentsSummary(request: ExchangeCalculationsFiltersRequest): Observable<GetPaymentsSummaryResponse>;
|
|
564
575
|
|
|
565
576
|
getWallets(request: GetWalletsRequest): Observable<GetWalletsResponse>;
|
|
@@ -624,6 +635,10 @@ export interface ExchangeCoreServiceController {
|
|
|
624
635
|
request: GetExchangePaymentsRequest,
|
|
625
636
|
): Promise<GetExchangePaymentsResponse> | Observable<GetExchangePaymentsResponse> | GetExchangePaymentsResponse;
|
|
626
637
|
|
|
638
|
+
getExchangePayment(
|
|
639
|
+
request: GetExchangePaymentRequest,
|
|
640
|
+
): Promise<GetExchangePaymentResponse> | Observable<GetExchangePaymentResponse> | GetExchangePaymentResponse;
|
|
641
|
+
|
|
627
642
|
getPaymentsSummary(
|
|
628
643
|
request: ExchangeCalculationsFiltersRequest,
|
|
629
644
|
): Promise<GetPaymentsSummaryResponse> | Observable<GetPaymentsSummaryResponse> | GetPaymentsSummaryResponse;
|
|
@@ -663,6 +678,7 @@ export function ExchangeCoreServiceControllerMethods() {
|
|
|
663
678
|
"createExchangePayment",
|
|
664
679
|
"handlePaymentWebhook",
|
|
665
680
|
"getExchangePayments",
|
|
681
|
+
"getExchangePayment",
|
|
666
682
|
"getPaymentsSummary",
|
|
667
683
|
"getWallets",
|
|
668
684
|
"getWalletsMonika",
|
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.247",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
|
|
7
7
|
},
|
|
@@ -22,6 +22,7 @@ service ExchangeCoreService {
|
|
|
22
22
|
rpc CreateExchangePayment(CreateExchangePaymentRequest) returns (CreateExchangePaymentResponse);
|
|
23
23
|
rpc HandlePaymentWebhook(HandlePaymentWebhookRequest) returns (HandlePaymentWebhookResponse);
|
|
24
24
|
rpc GetExchangePayments(GetExchangePaymentsRequest) returns (GetExchangePaymentsResponse);
|
|
25
|
+
rpc GetExchangePayment(GetExchangePaymentRequest) returns (GetExchangePaymentResponse);
|
|
25
26
|
rpc GetPaymentsSummary(ExchangeCalculationsFiltersRequest) returns (GetPaymentsSummaryResponse);
|
|
26
27
|
|
|
27
28
|
rpc GetWallets(GetWalletsRequest) returns (GetWalletsResponse);
|
|
@@ -435,6 +436,7 @@ message GetExchangePaymentsItem {
|
|
|
435
436
|
string created_at = 10;
|
|
436
437
|
optional string customer_name = 11;
|
|
437
438
|
optional string manager_name = 12;
|
|
439
|
+
optional string calculation_id = 13;
|
|
438
440
|
}
|
|
439
441
|
|
|
440
442
|
message GetExchangePaymentsResponse {
|
|
@@ -445,6 +447,14 @@ message GetExchangePaymentsResponse {
|
|
|
445
447
|
int32 total_pages = 5;
|
|
446
448
|
}
|
|
447
449
|
|
|
450
|
+
message GetExchangePaymentRequest {
|
|
451
|
+
string id = 1;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
message GetExchangePaymentResponse {
|
|
455
|
+
optional GetExchangePaymentsItem payment = 1;
|
|
456
|
+
}
|
|
457
|
+
|
|
448
458
|
message PaymentsSummaryItem {
|
|
449
459
|
string currency = 1;
|
|
450
460
|
double total = 2;
|