@arbiwallet/contracts 1.0.42 → 1.0.43

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/payout.ts CHANGED
@@ -19,21 +19,38 @@ export interface ParsePromptPayQrResponse {
19
19
  payloadJson: string;
20
20
  }
21
21
 
22
+ export interface ConfirmPayoutPaymentRequest {
23
+ quoteId: string;
24
+ idempotencyKey: string;
25
+ callbackUrl: string;
26
+ userId: string;
27
+ }
28
+
29
+ export interface ConfirmPayoutPaymentResponse {
30
+ payloadJson: string;
31
+ }
32
+
22
33
  export const PAYOUT_V1_PACKAGE_NAME = "payout.v1";
23
34
 
24
35
  export interface PayoutServiceClient {
25
36
  parsePromptPayQr(request: ParsePromptPayQrRequest): Observable<ParsePromptPayQrResponse>;
37
+
38
+ confirmPayoutPayment(request: ConfirmPayoutPaymentRequest): Observable<ConfirmPayoutPaymentResponse>;
26
39
  }
27
40
 
28
41
  export interface PayoutServiceController {
29
42
  parsePromptPayQr(
30
43
  request: ParsePromptPayQrRequest,
31
44
  ): Promise<ParsePromptPayQrResponse> | Observable<ParsePromptPayQrResponse> | ParsePromptPayQrResponse;
45
+
46
+ confirmPayoutPayment(
47
+ request: ConfirmPayoutPaymentRequest,
48
+ ): Promise<ConfirmPayoutPaymentResponse> | Observable<ConfirmPayoutPaymentResponse> | ConfirmPayoutPaymentResponse;
32
49
  }
33
50
 
34
51
  export function PayoutServiceControllerMethods() {
35
52
  return function (constructor: Function) {
36
- const grpcMethods: string[] = ["parsePromptPayQr"];
53
+ const grpcMethods: string[] = ["parsePromptPayQr", "confirmPayoutPayment"];
37
54
  for (const method of grpcMethods) {
38
55
  const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
39
56
  GrpcMethod("PayoutService", method)(constructor.prototype[method], method, descriptor);
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.42",
4
+ "version": "1.0.43",
5
5
  "scripts": {
6
6
  "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
7
7
  },
@@ -8,6 +8,7 @@ option java_package = "com.arbiwallet.payout.v1";
8
8
 
9
9
  service PayoutService {
10
10
  rpc ParsePromptPayQr(ParsePromptPayQrRequest) returns (ParsePromptPayQrResponse);
11
+ rpc ConfirmPayoutPayment(ConfirmPayoutPaymentRequest) returns (ConfirmPayoutPaymentResponse);
11
12
  }
12
13
 
13
14
  message ParsePromptPayQrRequest {
@@ -18,3 +19,14 @@ message ParsePromptPayQrRequest {
18
19
  message ParsePromptPayQrResponse {
19
20
  string payload_json = 1;
20
21
  }
22
+
23
+ message ConfirmPayoutPaymentRequest {
24
+ string quote_id = 1;
25
+ string idempotency_key = 2;
26
+ string callback_url = 3;
27
+ string user_id = 4;
28
+ }
29
+
30
+ message ConfirmPayoutPaymentResponse {
31
+ string payload_json = 1;
32
+ }