protobuf-platform 1.0.222 → 1.0.223
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/package.json +1 -1
- package/payment/payment.proto +41 -0
- package/payment/payment_grpc_pb.js +56 -0
- package/payment/payment_pb.js +1496 -0
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
@@ -22,6 +22,9 @@ service Payment {
|
|
22
22
|
rpc changeDepositStatus(GetDepositRequest) returns (DepositResponse);
|
23
23
|
//Deposit Statuses
|
24
24
|
rpc readListDepositStatuses(PaginationRequest) returns (DepositStatusItemsResponse);
|
25
|
+
//User
|
26
|
+
rpc userPaymentsInfo(GetUserPaymentsInfoRequest) returns (UserPaymentsInfoResponse);
|
27
|
+
rpc userDepositHistory(GetUserPaymentsInfoRequest) returns (UserDepositItemsResponse);
|
25
28
|
}
|
26
29
|
//Technical
|
27
30
|
message PingRequest { string ping = 1; }
|
@@ -139,4 +142,42 @@ message DepositStatusItemsResponse {
|
|
139
142
|
repeated DepositStatus items = 1;
|
140
143
|
optional int32 total_pages = 2;
|
141
144
|
optional int32 total_items = 3;
|
145
|
+
}
|
146
|
+
//User
|
147
|
+
message GetUserPaymentsInfoRequest {
|
148
|
+
int32 user_id = 1;
|
149
|
+
optional int32 limit = 2;
|
150
|
+
optional int32 offset = 3;
|
151
|
+
optional string start_date = 4;
|
152
|
+
optional string end_date = 5;
|
153
|
+
}
|
154
|
+
message UserPaymentsInfoResponse {
|
155
|
+
float deposit_sum = 1;
|
156
|
+
int32 deposit_count = 2;
|
157
|
+
float withdrawal_sum = 3;
|
158
|
+
int32 withdrawal_count = 4;
|
159
|
+
int32 deposit_succeed = 5;
|
160
|
+
int32 withdrawal_succeed = 6;
|
161
|
+
int32 deposit_failed = 7;
|
162
|
+
int32 withdrawal_failed = 8;
|
163
|
+
int32 deposit_pending = 9;
|
164
|
+
int32 withdrawal_pending = 10;
|
165
|
+
int32 deposit_attempt = 11;
|
166
|
+
int32 withdrawal_attempt = 12;
|
167
|
+
}
|
168
|
+
message UserDepositItem {
|
169
|
+
int32 deposit_id = 1;
|
170
|
+
float amount_attempt = 2;
|
171
|
+
float amount_paid = 3;
|
172
|
+
float fee = 4;
|
173
|
+
string currency = 5;
|
174
|
+
string payment_method_title = 6;
|
175
|
+
string payment_provider_image = 7;
|
176
|
+
int32 status_id = 8;
|
177
|
+
string created = 9;
|
178
|
+
}
|
179
|
+
message UserDepositItemsResponse {
|
180
|
+
repeated UserDepositItem items = 1;
|
181
|
+
optional int32 total_pages = 2;
|
182
|
+
optional int32 total_items = 3;
|
142
183
|
}
|
@@ -92,6 +92,17 @@ function deserialize_payment_GetProviderRequest(buffer_arg) {
|
|
92
92
|
return payment_pb.GetProviderRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
93
93
|
}
|
94
94
|
|
95
|
+
function serialize_payment_GetUserPaymentsInfoRequest(arg) {
|
96
|
+
if (!(arg instanceof payment_pb.GetUserPaymentsInfoRequest)) {
|
97
|
+
throw new Error('Expected argument of type payment.GetUserPaymentsInfoRequest');
|
98
|
+
}
|
99
|
+
return Buffer.from(arg.serializeBinary());
|
100
|
+
}
|
101
|
+
|
102
|
+
function deserialize_payment_GetUserPaymentsInfoRequest(buffer_arg) {
|
103
|
+
return payment_pb.GetUserPaymentsInfoRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
104
|
+
}
|
105
|
+
|
95
106
|
function serialize_payment_MethodItemsResponse(arg) {
|
96
107
|
if (!(arg instanceof payment_pb.MethodItemsResponse)) {
|
97
108
|
throw new Error('Expected argument of type payment.MethodItemsResponse');
|
@@ -202,6 +213,28 @@ function deserialize_payment_ProviderResponse(buffer_arg) {
|
|
202
213
|
return payment_pb.ProviderResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
203
214
|
}
|
204
215
|
|
216
|
+
function serialize_payment_UserDepositItemsResponse(arg) {
|
217
|
+
if (!(arg instanceof payment_pb.UserDepositItemsResponse)) {
|
218
|
+
throw new Error('Expected argument of type payment.UserDepositItemsResponse');
|
219
|
+
}
|
220
|
+
return Buffer.from(arg.serializeBinary());
|
221
|
+
}
|
222
|
+
|
223
|
+
function deserialize_payment_UserDepositItemsResponse(buffer_arg) {
|
224
|
+
return payment_pb.UserDepositItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
225
|
+
}
|
226
|
+
|
227
|
+
function serialize_payment_UserPaymentsInfoResponse(arg) {
|
228
|
+
if (!(arg instanceof payment_pb.UserPaymentsInfoResponse)) {
|
229
|
+
throw new Error('Expected argument of type payment.UserPaymentsInfoResponse');
|
230
|
+
}
|
231
|
+
return Buffer.from(arg.serializeBinary());
|
232
|
+
}
|
233
|
+
|
234
|
+
function deserialize_payment_UserPaymentsInfoResponse(buffer_arg) {
|
235
|
+
return payment_pb.UserPaymentsInfoResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
236
|
+
}
|
237
|
+
|
205
238
|
|
206
239
|
var PaymentService = exports.PaymentService = {
|
207
240
|
checkConnection: {
|
@@ -373,6 +406,29 @@ readListDepositStatuses: {
|
|
373
406
|
responseSerialize: serialize_payment_DepositStatusItemsResponse,
|
374
407
|
responseDeserialize: deserialize_payment_DepositStatusItemsResponse,
|
375
408
|
},
|
409
|
+
// User
|
410
|
+
userPaymentsInfo: {
|
411
|
+
path: '/payment.Payment/userPaymentsInfo',
|
412
|
+
requestStream: false,
|
413
|
+
responseStream: false,
|
414
|
+
requestType: payment_pb.GetUserPaymentsInfoRequest,
|
415
|
+
responseType: payment_pb.UserPaymentsInfoResponse,
|
416
|
+
requestSerialize: serialize_payment_GetUserPaymentsInfoRequest,
|
417
|
+
requestDeserialize: deserialize_payment_GetUserPaymentsInfoRequest,
|
418
|
+
responseSerialize: serialize_payment_UserPaymentsInfoResponse,
|
419
|
+
responseDeserialize: deserialize_payment_UserPaymentsInfoResponse,
|
420
|
+
},
|
421
|
+
userDepositHistory: {
|
422
|
+
path: '/payment.Payment/userDepositHistory',
|
423
|
+
requestStream: false,
|
424
|
+
responseStream: false,
|
425
|
+
requestType: payment_pb.GetUserPaymentsInfoRequest,
|
426
|
+
responseType: payment_pb.UserDepositItemsResponse,
|
427
|
+
requestSerialize: serialize_payment_GetUserPaymentsInfoRequest,
|
428
|
+
requestDeserialize: deserialize_payment_GetUserPaymentsInfoRequest,
|
429
|
+
responseSerialize: serialize_payment_UserDepositItemsResponse,
|
430
|
+
responseDeserialize: deserialize_payment_UserDepositItemsResponse,
|
431
|
+
},
|
376
432
|
};
|
377
433
|
|
378
434
|
exports.PaymentClient = grpc.makeGenericClientConstructor(PaymentService);
|