@arbiwallet/contracts 1.0.54 → 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
@@ -54,6 +54,10 @@ export interface ParseMusePayPromptPayQrTestResponse {
54
54
  quoteId: string;
55
55
  status: string;
56
56
  payloadJson: string;
57
+ inputAmountToPay: string;
58
+ inputCurrencyToPay: string;
59
+ convertedAmountToPay: string;
60
+ convertedCurrencyToPay: string;
57
61
  }
58
62
 
59
63
  export interface ParseMusePayPromptPayQrRequest {
@@ -67,12 +71,15 @@ export interface ParseMusePayPromptPayQrResponse {
67
71
  quoteId: string;
68
72
  status: string;
69
73
  payloadJson: string;
74
+ inputAmountToPay: string;
75
+ inputCurrencyToPay: string;
76
+ convertedAmountToPay: string;
77
+ convertedCurrencyToPay: string;
70
78
  }
71
79
 
72
80
  export interface ConfirmMusePayPayoutPaymentRequest {
73
81
  scanId: number;
74
82
  quoteId: string;
75
- balanceCurrency: string;
76
83
  userId: string;
77
84
  }
78
85
 
@@ -83,7 +90,7 @@ export interface ConfirmMusePayPayoutPaymentResponse {
83
90
  }
84
91
 
85
92
  export interface HandleMusePayWebhookRequest {
86
- payloadJson: string;
93
+ rawBody: Uint8Array;
87
94
  }
88
95
 
89
96
  export interface HandleMusePayWebhookResponse {
@@ -92,6 +99,17 @@ export interface HandleMusePayWebhookResponse {
92
99
  handled: boolean;
93
100
  }
94
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
+
95
113
  export const PAYOUT_V1_PACKAGE_NAME = "payout.v1";
96
114
 
97
115
  export interface PayoutServiceClient {
@@ -112,6 +130,8 @@ export interface PayoutServiceClient {
112
130
  ): Observable<ConfirmMusePayPayoutPaymentResponse>;
113
131
 
114
132
  handleMusePayWebhook(request: HandleMusePayWebhookRequest): Observable<HandleMusePayWebhookResponse>;
133
+
134
+ getPayout(request: GetPayoutRequest): Observable<GetPayoutResponse>;
115
135
  }
116
136
 
117
137
  export interface PayoutServiceController {
@@ -151,6 +171,8 @@ export interface PayoutServiceController {
151
171
  handleMusePayWebhook(
152
172
  request: HandleMusePayWebhookRequest,
153
173
  ): Promise<HandleMusePayWebhookResponse> | Observable<HandleMusePayWebhookResponse> | HandleMusePayWebhookResponse;
174
+
175
+ getPayout(request: GetPayoutRequest): Promise<GetPayoutResponse> | Observable<GetPayoutResponse> | GetPayoutResponse;
154
176
  }
155
177
 
156
178
  export function PayoutServiceControllerMethods() {
@@ -163,6 +185,7 @@ export function PayoutServiceControllerMethods() {
163
185
  "parseMusePayPromptPayQr",
164
186
  "confirmMusePayPayoutPayment",
165
187
  "handleMusePayWebhook",
188
+ "getPayout",
166
189
  ];
167
190
  for (const method of grpcMethods) {
168
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.54",
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 {
@@ -60,6 +61,10 @@ message ParseMusePayPromptPayQrTestResponse {
60
61
  string quote_id = 2;
61
62
  string status = 3;
62
63
  string payload_json = 4;
64
+ string input_amount_to_pay = 5;
65
+ string input_currency_to_pay = 6;
66
+ string converted_amount_to_pay = 7;
67
+ string converted_currency_to_pay = 8;
63
68
  }
64
69
 
65
70
  message ParseMusePayPromptPayQrRequest {
@@ -73,13 +78,16 @@ message ParseMusePayPromptPayQrResponse {
73
78
  string quote_id = 2;
74
79
  string status = 3;
75
80
  string payload_json = 4;
81
+ string input_amount_to_pay = 5;
82
+ string input_currency_to_pay = 6;
83
+ string converted_amount_to_pay = 7;
84
+ string converted_currency_to_pay = 8;
76
85
  }
77
86
 
78
87
  message ConfirmMusePayPayoutPaymentRequest {
79
88
  int64 scan_id = 1;
80
89
  string quote_id = 2;
81
- string balance_currency = 3;
82
- string user_id = 4;
90
+ string user_id = 3;
83
91
  }
84
92
 
85
93
  message ConfirmMusePayPayoutPaymentResponse {
@@ -89,7 +97,7 @@ message ConfirmMusePayPayoutPaymentResponse {
89
97
  }
90
98
 
91
99
  message HandleMusePayWebhookRequest {
92
- string payload_json = 1;
100
+ bytes rawBody = 1;
93
101
  }
94
102
 
95
103
  message HandleMusePayWebhookResponse {
@@ -97,3 +105,14 @@ message HandleMusePayWebhookResponse {
97
105
  string status = 2;
98
106
  bool handled = 3;
99
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
+ }