protobuf-platform 1.0.221 → 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 +58 -2
- package/payment/payment_grpc_pb.js +79 -0
- package/payment/payment_pb.js +2115 -15
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
@@ -20,6 +20,11 @@ service Payment {
|
|
20
20
|
//Deposit
|
21
21
|
rpc attemptDeposit(AttemptDepositRequest) returns (DepositResponse);
|
22
22
|
rpc changeDepositStatus(GetDepositRequest) returns (DepositResponse);
|
23
|
+
//Deposit Statuses
|
24
|
+
rpc readListDepositStatuses(PaginationRequest) returns (DepositStatusItemsResponse);
|
25
|
+
//User
|
26
|
+
rpc userPaymentsInfo(GetUserPaymentsInfoRequest) returns (UserPaymentsInfoResponse);
|
27
|
+
rpc userDepositHistory(GetUserPaymentsInfoRequest) returns (UserDepositItemsResponse);
|
23
28
|
}
|
24
29
|
//Technical
|
25
30
|
message PingRequest { string ping = 1; }
|
@@ -118,10 +123,61 @@ message AttemptDepositRequest {
|
|
118
123
|
}
|
119
124
|
message GetDepositRequest {
|
120
125
|
int32 id = 1;
|
121
|
-
optional int32
|
122
|
-
optional
|
126
|
+
optional int32 status_id = 2;
|
127
|
+
optional int32 maker_id = 3;
|
128
|
+
optional string reason = 4;
|
123
129
|
}
|
124
130
|
message DepositResponse {
|
125
131
|
int32 id = 1;
|
126
132
|
string status = 2;
|
133
|
+
}
|
134
|
+
//Deposit Status
|
135
|
+
message DepositStatus {
|
136
|
+
int32 id = 1;
|
137
|
+
string title = 2;
|
138
|
+
optional string description = 3;
|
139
|
+
optional int32 is_active = 4;
|
140
|
+
}
|
141
|
+
message DepositStatusItemsResponse {
|
142
|
+
repeated DepositStatus items = 1;
|
143
|
+
optional int32 total_pages = 2;
|
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;
|
127
183
|
}
|
@@ -26,6 +26,17 @@ function deserialize_payment_DepositResponse(buffer_arg) {
|
|
26
26
|
return payment_pb.DepositResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
27
27
|
}
|
28
28
|
|
29
|
+
function serialize_payment_DepositStatusItemsResponse(arg) {
|
30
|
+
if (!(arg instanceof payment_pb.DepositStatusItemsResponse)) {
|
31
|
+
throw new Error('Expected argument of type payment.DepositStatusItemsResponse');
|
32
|
+
}
|
33
|
+
return Buffer.from(arg.serializeBinary());
|
34
|
+
}
|
35
|
+
|
36
|
+
function deserialize_payment_DepositStatusItemsResponse(buffer_arg) {
|
37
|
+
return payment_pb.DepositStatusItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
38
|
+
}
|
39
|
+
|
29
40
|
function serialize_payment_File(arg) {
|
30
41
|
if (!(arg instanceof payment_pb.File)) {
|
31
42
|
throw new Error('Expected argument of type payment.File');
|
@@ -81,6 +92,17 @@ function deserialize_payment_GetProviderRequest(buffer_arg) {
|
|
81
92
|
return payment_pb.GetProviderRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
82
93
|
}
|
83
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
|
+
|
84
106
|
function serialize_payment_MethodItemsResponse(arg) {
|
85
107
|
if (!(arg instanceof payment_pb.MethodItemsResponse)) {
|
86
108
|
throw new Error('Expected argument of type payment.MethodItemsResponse');
|
@@ -191,6 +213,28 @@ function deserialize_payment_ProviderResponse(buffer_arg) {
|
|
191
213
|
return payment_pb.ProviderResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
192
214
|
}
|
193
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
|
+
|
194
238
|
|
195
239
|
var PaymentService = exports.PaymentService = {
|
196
240
|
checkConnection: {
|
@@ -350,6 +394,41 @@ attemptDeposit: {
|
|
350
394
|
responseSerialize: serialize_payment_DepositResponse,
|
351
395
|
responseDeserialize: deserialize_payment_DepositResponse,
|
352
396
|
},
|
397
|
+
// Deposit Statuses
|
398
|
+
readListDepositStatuses: {
|
399
|
+
path: '/payment.Payment/readListDepositStatuses',
|
400
|
+
requestStream: false,
|
401
|
+
responseStream: false,
|
402
|
+
requestType: payment_pb.PaginationRequest,
|
403
|
+
responseType: payment_pb.DepositStatusItemsResponse,
|
404
|
+
requestSerialize: serialize_payment_PaginationRequest,
|
405
|
+
requestDeserialize: deserialize_payment_PaginationRequest,
|
406
|
+
responseSerialize: serialize_payment_DepositStatusItemsResponse,
|
407
|
+
responseDeserialize: deserialize_payment_DepositStatusItemsResponse,
|
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
|
+
},
|
353
432
|
};
|
354
433
|
|
355
434
|
exports.PaymentClient = grpc.makeGenericClientConstructor(PaymentService);
|