@arbiwallet/contracts 1.0.51 → 1.0.53

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
@@ -26,7 +26,6 @@ export interface ParsePromptPayQrResponse {
26
26
  export interface ConfirmPayoutPaymentRequest {
27
27
  scanId: number;
28
28
  quoteId: string;
29
- balanceCurrency: string;
30
29
  userId: string;
31
30
  }
32
31
 
@@ -44,6 +43,53 @@ export interface HandlePayoutWebhookResponse {
44
43
  ok: boolean;
45
44
  }
46
45
 
46
+ export interface ParseMusePayPromptPayQrTestRequest {
47
+ qrString: string;
48
+ userId: string;
49
+ }
50
+
51
+ export interface ParseMusePayPromptPayQrTestResponse {
52
+ scanId: number;
53
+ quoteId: string;
54
+ status: string;
55
+ payloadJson: string;
56
+ }
57
+
58
+ export interface ParseMusePayPromptPayQrRequest {
59
+ qrString: string;
60
+ userId: string;
61
+ }
62
+
63
+ export interface ParseMusePayPromptPayQrResponse {
64
+ scanId: number;
65
+ quoteId: string;
66
+ status: string;
67
+ payloadJson: string;
68
+ }
69
+
70
+ export interface ConfirmMusePayPayoutPaymentRequest {
71
+ scanId: number;
72
+ quoteId: string;
73
+ balanceCurrency: string;
74
+ userId: string;
75
+ }
76
+
77
+ export interface ConfirmMusePayPayoutPaymentResponse {
78
+ payoutId: number;
79
+ status: string;
80
+ payloadJson: string;
81
+ }
82
+
83
+ export interface HandleMusePayWebhookRequest {
84
+ payloadJson: string;
85
+ }
86
+
87
+ export interface HandleMusePayWebhookResponse {
88
+ payoutId: number;
89
+ status: string;
90
+ handled: boolean;
91
+ }
92
+
47
93
  export const PAYOUT_V1_PACKAGE_NAME = "payout.v1";
48
94
 
49
95
  export interface PayoutServiceClient {
@@ -52,6 +98,18 @@ export interface PayoutServiceClient {
52
98
  confirmPayoutPayment(request: ConfirmPayoutPaymentRequest): Observable<ConfirmPayoutPaymentResponse>;
53
99
 
54
100
  handlePayoutWebhook(request: HandlePayoutWebhookRequest): Observable<HandlePayoutWebhookResponse>;
101
+
102
+ parseMusePayPromptPayQrTest(
103
+ request: ParseMusePayPromptPayQrTestRequest,
104
+ ): Observable<ParseMusePayPromptPayQrTestResponse>;
105
+
106
+ parseMusePayPromptPayQr(request: ParseMusePayPromptPayQrRequest): Observable<ParseMusePayPromptPayQrResponse>;
107
+
108
+ confirmMusePayPayoutPayment(
109
+ request: ConfirmMusePayPayoutPaymentRequest,
110
+ ): Observable<ConfirmMusePayPayoutPaymentResponse>;
111
+
112
+ handleMusePayWebhook(request: HandleMusePayWebhookRequest): Observable<HandleMusePayWebhookResponse>;
55
113
  }
56
114
 
57
115
  export interface PayoutServiceController {
@@ -66,11 +124,44 @@ export interface PayoutServiceController {
66
124
  handlePayoutWebhook(
67
125
  request: HandlePayoutWebhookRequest,
68
126
  ): Promise<HandlePayoutWebhookResponse> | Observable<HandlePayoutWebhookResponse> | HandlePayoutWebhookResponse;
127
+
128
+ parseMusePayPromptPayQrTest(
129
+ request: ParseMusePayPromptPayQrTestRequest,
130
+ ):
131
+ | Promise<ParseMusePayPromptPayQrTestResponse>
132
+ | Observable<ParseMusePayPromptPayQrTestResponse>
133
+ | ParseMusePayPromptPayQrTestResponse;
134
+
135
+ parseMusePayPromptPayQr(
136
+ request: ParseMusePayPromptPayQrRequest,
137
+ ):
138
+ | Promise<ParseMusePayPromptPayQrResponse>
139
+ | Observable<ParseMusePayPromptPayQrResponse>
140
+ | ParseMusePayPromptPayQrResponse;
141
+
142
+ confirmMusePayPayoutPayment(
143
+ request: ConfirmMusePayPayoutPaymentRequest,
144
+ ):
145
+ | Promise<ConfirmMusePayPayoutPaymentResponse>
146
+ | Observable<ConfirmMusePayPayoutPaymentResponse>
147
+ | ConfirmMusePayPayoutPaymentResponse;
148
+
149
+ handleMusePayWebhook(
150
+ request: HandleMusePayWebhookRequest,
151
+ ): Promise<HandleMusePayWebhookResponse> | Observable<HandleMusePayWebhookResponse> | HandleMusePayWebhookResponse;
69
152
  }
70
153
 
71
154
  export function PayoutServiceControllerMethods() {
72
155
  return function (constructor: Function) {
73
- const grpcMethods: string[] = ["parsePromptPayQr", "confirmPayoutPayment", "handlePayoutWebhook"];
156
+ const grpcMethods: string[] = [
157
+ "parsePromptPayQr",
158
+ "confirmPayoutPayment",
159
+ "handlePayoutWebhook",
160
+ "parseMusePayPromptPayQrTest",
161
+ "parseMusePayPromptPayQr",
162
+ "confirmMusePayPayoutPayment",
163
+ "handleMusePayWebhook",
164
+ ];
74
165
  for (const method of grpcMethods) {
75
166
  const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
76
167
  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.51",
4
+ "version": "1.0.53",
5
5
  "scripts": {
6
6
  "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
7
7
  },
@@ -10,6 +10,10 @@ service PayoutService {
10
10
  rpc ParsePromptPayQr(ParsePromptPayQrRequest) returns (ParsePromptPayQrResponse);
11
11
  rpc ConfirmPayoutPayment(ConfirmPayoutPaymentRequest) returns (ConfirmPayoutPaymentResponse);
12
12
  rpc HandlePayoutWebhook(HandlePayoutWebhookRequest) returns (HandlePayoutWebhookResponse);
13
+ rpc ParseMusePayPromptPayQrTest(ParseMusePayPromptPayQrTestRequest) returns (ParseMusePayPromptPayQrTestResponse);
14
+ rpc ParseMusePayPromptPayQr(ParseMusePayPromptPayQrRequest) returns (ParseMusePayPromptPayQrResponse);
15
+ rpc ConfirmMusePayPayoutPayment(ConfirmMusePayPayoutPaymentRequest) returns (ConfirmMusePayPayoutPaymentResponse);
16
+ rpc HandleMusePayWebhook(HandleMusePayWebhookRequest) returns (HandleMusePayWebhookResponse);
13
17
  }
14
18
 
15
19
  message ParsePromptPayQrRequest {
@@ -28,8 +32,7 @@ message ParsePromptPayQrResponse {
28
32
  message ConfirmPayoutPaymentRequest {
29
33
  int64 scan_id = 1;
30
34
  string quote_id = 2;
31
- string balance_currency = 3;
32
- string user_id = 4;
35
+ string user_id = 3;
33
36
  }
34
37
 
35
38
  message ConfirmPayoutPaymentResponse {
@@ -45,3 +48,50 @@ message HandlePayoutWebhookRequest {
45
48
  message HandlePayoutWebhookResponse {
46
49
  bool ok = 1;
47
50
  }
51
+
52
+ message ParseMusePayPromptPayQrTestRequest {
53
+ string qr_string = 1;
54
+ string user_id = 2;
55
+ }
56
+
57
+ message ParseMusePayPromptPayQrTestResponse {
58
+ int64 scan_id = 1;
59
+ string quote_id = 2;
60
+ string status = 3;
61
+ string payload_json = 4;
62
+ }
63
+
64
+ message ParseMusePayPromptPayQrRequest {
65
+ string qr_string = 1;
66
+ string user_id = 2;
67
+ }
68
+
69
+ message ParseMusePayPromptPayQrResponse {
70
+ int64 scan_id = 1;
71
+ string quote_id = 2;
72
+ string status = 3;
73
+ string payload_json = 4;
74
+ }
75
+
76
+ message ConfirmMusePayPayoutPaymentRequest {
77
+ int64 scan_id = 1;
78
+ string quote_id = 2;
79
+ string balance_currency = 3;
80
+ string user_id = 4;
81
+ }
82
+
83
+ message ConfirmMusePayPayoutPaymentResponse {
84
+ int64 payout_id = 1;
85
+ string status = 2;
86
+ string payload_json = 3;
87
+ }
88
+
89
+ message HandleMusePayWebhookRequest {
90
+ string payload_json = 1;
91
+ }
92
+
93
+ message HandleMusePayWebhookResponse {
94
+ int64 payout_id = 1;
95
+ string status = 2;
96
+ bool handled = 3;
97
+ }