@arbiwallet/contracts 1.0.55 → 1.0.56

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
@@ -80,7 +80,6 @@ export interface ParseMusePayPromptPayQrResponse {
80
80
  export interface ConfirmMusePayPayoutPaymentRequest {
81
81
  scanId: number;
82
82
  quoteId: string;
83
- balanceCurrency: string;
84
83
  userId: string;
85
84
  }
86
85
 
@@ -91,7 +90,7 @@ export interface ConfirmMusePayPayoutPaymentResponse {
91
90
  }
92
91
 
93
92
  export interface HandleMusePayWebhookRequest {
94
- payloadJson: string;
93
+ rawBody: Uint8Array;
95
94
  }
96
95
 
97
96
  export interface HandleMusePayWebhookResponse {
@@ -100,6 +99,17 @@ export interface HandleMusePayWebhookResponse {
100
99
  handled: boolean;
101
100
  }
102
101
 
102
+ export interface GetPayoutRequest {
103
+ payoutId: number;
104
+ userId: string;
105
+ }
106
+
107
+ export interface GetPayoutResponse {
108
+ payoutId: number;
109
+ status: string;
110
+ payloadJson: string;
111
+ }
112
+
103
113
  export const PAYOUT_V1_PACKAGE_NAME = "payout.v1";
104
114
 
105
115
  export interface PayoutServiceClient {
@@ -120,6 +130,8 @@ export interface PayoutServiceClient {
120
130
  ): Observable<ConfirmMusePayPayoutPaymentResponse>;
121
131
 
122
132
  handleMusePayWebhook(request: HandleMusePayWebhookRequest): Observable<HandleMusePayWebhookResponse>;
133
+
134
+ getPayout(request: GetPayoutRequest): Observable<GetPayoutResponse>;
123
135
  }
124
136
 
125
137
  export interface PayoutServiceController {
@@ -159,6 +171,8 @@ export interface PayoutServiceController {
159
171
  handleMusePayWebhook(
160
172
  request: HandleMusePayWebhookRequest,
161
173
  ): Promise<HandleMusePayWebhookResponse> | Observable<HandleMusePayWebhookResponse> | HandleMusePayWebhookResponse;
174
+
175
+ getPayout(request: GetPayoutRequest): Promise<GetPayoutResponse> | Observable<GetPayoutResponse> | GetPayoutResponse;
162
176
  }
163
177
 
164
178
  export function PayoutServiceControllerMethods() {
@@ -171,6 +185,7 @@ export function PayoutServiceControllerMethods() {
171
185
  "parseMusePayPromptPayQr",
172
186
  "confirmMusePayPayoutPayment",
173
187
  "handleMusePayWebhook",
188
+ "getPayout",
174
189
  ];
175
190
  for (const method of grpcMethods) {
176
191
  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.55",
4
+ "version": "1.0.56",
5
5
  "scripts": {
6
6
  "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
7
7
  },
@@ -14,6 +14,7 @@ service PayoutService {
14
14
  rpc ParseMusePayPromptPayQr(ParseMusePayPromptPayQrRequest) returns (ParseMusePayPromptPayQrResponse);
15
15
  rpc ConfirmMusePayPayoutPayment(ConfirmMusePayPayoutPaymentRequest) returns (ConfirmMusePayPayoutPaymentResponse);
16
16
  rpc HandleMusePayWebhook(HandleMusePayWebhookRequest) returns (HandleMusePayWebhookResponse);
17
+ rpc GetPayout(GetPayoutRequest) returns (GetPayoutResponse);
17
18
  }
18
19
 
19
20
  message ParsePromptPayQrRequest {
@@ -86,8 +87,7 @@ message ParseMusePayPromptPayQrResponse {
86
87
  message ConfirmMusePayPayoutPaymentRequest {
87
88
  int64 scan_id = 1;
88
89
  string quote_id = 2;
89
- string balance_currency = 3;
90
- string user_id = 4;
90
+ string user_id = 3;
91
91
  }
92
92
 
93
93
  message ConfirmMusePayPayoutPaymentResponse {
@@ -97,7 +97,7 @@ message ConfirmMusePayPayoutPaymentResponse {
97
97
  }
98
98
 
99
99
  message HandleMusePayWebhookRequest {
100
- string payload_json = 1;
100
+ bytes rawBody = 1;
101
101
  }
102
102
 
103
103
  message HandleMusePayWebhookResponse {
@@ -105,3 +105,14 @@ message HandleMusePayWebhookResponse {
105
105
  string status = 2;
106
106
  bool handled = 3;
107
107
  }
108
+
109
+ message GetPayoutRequest {
110
+ int64 payout_id = 1;
111
+ string user_id = 2;
112
+ }
113
+
114
+ message GetPayoutResponse {
115
+ int64 payout_id = 1;
116
+ string status = 2;
117
+ string payload_json = 3;
118
+ }