@arbiwallet/contracts 1.0.239 → 1.0.241

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.
@@ -292,6 +292,7 @@ export interface CreateExchangePaymentResponse {
292
292
 
293
293
  export interface HandlePaymentWebhookRequest {
294
294
  jsonPayload: string;
295
+ xApiKey: string;
295
296
  }
296
297
 
297
298
  export interface HandlePaymentWebhookResponse {
@@ -305,14 +306,18 @@ export interface GetExchangePaymentsRequest {
305
306
  }
306
307
 
307
308
  export interface GetExchangePaymentsItem {
308
- paymentId: string;
309
- paymentUuid: string;
310
- amount: number;
311
- status: number;
312
- paymentAgentStatus?: string | undefined;
313
- paymentLink?: string | undefined;
309
+ id: string;
310
+ arbipayId: string;
314
311
  qrLink?: string | undefined;
312
+ arbipayLink: string;
313
+ paymentAgent: number;
314
+ amount?: number | undefined;
315
+ amountUsdt?: number | undefined;
316
+ status: number;
315
317
  cryptoAddress?: string | undefined;
318
+ createdAt: string;
319
+ customerName?: string | undefined;
320
+ managerName?: string | undefined;
316
321
  }
317
322
 
318
323
  export interface GetExchangePaymentsResponse {
@@ -391,6 +391,28 @@ export interface GetExchangeCalculationStatsResponse {
391
391
  items: CalculationsInputCurrencySummaryItem[];
392
392
  }
393
393
 
394
+ export interface UpdateCalculationPaymentParamsRequest {
395
+ calculationId: string;
396
+ paymentId: string;
397
+ paymentIdStatus?: number | undefined;
398
+ }
399
+
400
+ export interface UpdateCalculationPaymentParamsResponse {
401
+ ok: boolean;
402
+ error?: string | undefined;
403
+ }
404
+
405
+ export interface UpdateCalculationDealParamsRequest {
406
+ calculationId: string;
407
+ exchangeDealId?: string | undefined;
408
+ exchangeDealStatus?: number | undefined;
409
+ }
410
+
411
+ export interface UpdateCalculationDealParamsResponse {
412
+ ok: boolean;
413
+ error?: string | undefined;
414
+ }
415
+
394
416
  export const EXCHANGE_RATES_PACKAGE_NAME = "exchange_rates";
395
417
 
396
418
  wrappers[".google.protobuf.Struct"] = { fromObject: Struct.wrap, toObject: Struct.unwrap } as any;
@@ -435,6 +457,14 @@ export interface ExchangeRatesServiceClient {
435
457
  getExchangeCalculationStats(
436
458
  request: ExchangeCalculationFiltersRequest,
437
459
  ): Observable<GetExchangeCalculationStatsResponse>;
460
+
461
+ updateCalculationPaymentParams(
462
+ request: UpdateCalculationPaymentParamsRequest,
463
+ ): Observable<UpdateCalculationPaymentParamsResponse>;
464
+
465
+ updateCalculationDealParams(
466
+ request: UpdateCalculationDealParamsRequest,
467
+ ): Observable<UpdateCalculationDealParamsResponse>;
438
468
  }
439
469
 
440
470
  export interface ExchangeRatesServiceController {
@@ -518,6 +548,20 @@ export interface ExchangeRatesServiceController {
518
548
  | Promise<GetExchangeCalculationStatsResponse>
519
549
  | Observable<GetExchangeCalculationStatsResponse>
520
550
  | GetExchangeCalculationStatsResponse;
551
+
552
+ updateCalculationPaymentParams(
553
+ request: UpdateCalculationPaymentParamsRequest,
554
+ ):
555
+ | Promise<UpdateCalculationPaymentParamsResponse>
556
+ | Observable<UpdateCalculationPaymentParamsResponse>
557
+ | UpdateCalculationPaymentParamsResponse;
558
+
559
+ updateCalculationDealParams(
560
+ request: UpdateCalculationDealParamsRequest,
561
+ ):
562
+ | Promise<UpdateCalculationDealParamsResponse>
563
+ | Observable<UpdateCalculationDealParamsResponse>
564
+ | UpdateCalculationDealParamsResponse;
521
565
  }
522
566
 
523
567
  export function ExchangeRatesServiceControllerMethods() {
@@ -541,6 +585,8 @@ export function ExchangeRatesServiceControllerMethods() {
541
585
  "getExchangeCalculation",
542
586
  "getExchangeCalculationHistory",
543
587
  "getExchangeCalculationStats",
588
+ "updateCalculationPaymentParams",
589
+ "updateCalculationDealParams",
544
590
  ];
545
591
  for (const method of grpcMethods) {
546
592
  const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
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.239",
4
+ "version": "1.0.241",
5
5
  "scripts": {
6
6
  "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
7
7
  },
@@ -319,6 +319,7 @@ message CreateExchangePaymentResponse {
319
319
 
320
320
  message HandlePaymentWebhookRequest {
321
321
  string json_payload = 1;
322
+ string x_api_key = 2;
322
323
  }
323
324
 
324
325
  message HandlePaymentWebhookResponse {
@@ -332,14 +333,18 @@ message GetExchangePaymentsRequest {
332
333
  }
333
334
 
334
335
  message GetExchangePaymentsItem {
335
- string payment_id = 1;
336
- string payment_uuid = 2;
337
- double amount = 3;
338
- int32 status = 4;
339
- optional string payment_agent_status = 5;
340
- optional string payment_link = 6;
341
- optional string qr_link = 7;
342
- optional string crypto_address = 8;
336
+ string id = 1;
337
+ string arbipay_id = 2;
338
+ optional string qr_link = 3;
339
+ string arbipay_link = 4;
340
+ int32 payment_agent = 5;
341
+ optional double amount = 6;
342
+ optional double amount_usdt = 7;
343
+ int32 status = 8;
344
+ optional string crypto_address = 9;
345
+ string created_at = 10;
346
+ optional string customer_name = 11;
347
+ optional string manager_name = 12;
343
348
  }
344
349
 
345
350
  message GetExchangePaymentsResponse {
@@ -33,6 +33,9 @@ service ExchangeRatesService {
33
33
  rpc GetExchangeCalculation(GetExchangeCalculationRequest) returns (GetExchangeCalculationResponse);
34
34
  rpc GetExchangeCalculationHistory(GetExchangeCalculationHistoryRequest) returns (GetExchangeCalculationHistoryResponse);
35
35
  rpc GetExchangeCalculationStats(ExchangeCalculationFiltersRequest) returns (GetExchangeCalculationStatsResponse);
36
+
37
+ rpc UpdateCalculationPaymentParams(UpdateCalculationPaymentParamsRequest) returns (UpdateCalculationPaymentParamsResponse);
38
+ rpc UpdateCalculationDealParams(UpdateCalculationDealParamsRequest) returns (UpdateCalculationDealParamsResponse);
36
39
  }
37
40
 
38
41
  message CurrencySetting {
@@ -401,3 +404,25 @@ message GetExchangeCalculationStatsResponse {
401
404
  int32 completed_count = 4;
402
405
  repeated CalculationsInputCurrencySummaryItem items = 5;
403
406
  }
407
+
408
+ message UpdateCalculationPaymentParamsRequest {
409
+ string calculation_id = 1;
410
+ string payment_id = 2;
411
+ optional int32 payment_id_status = 3;
412
+ }
413
+
414
+ message UpdateCalculationPaymentParamsResponse {
415
+ bool ok = 1;
416
+ optional string error = 2;
417
+ }
418
+
419
+ message UpdateCalculationDealParamsRequest {
420
+ string calculation_id = 1;
421
+ optional string exchange_deal_id = 2;
422
+ optional int32 exchange_deal_status = 3;
423
+ }
424
+
425
+ message UpdateCalculationDealParamsResponse {
426
+ bool ok = 1;
427
+ optional string error = 2;
428
+ }