protobuf-platform 1.0.230 → 1.0.232

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.230",
3
+ "version": "1.0.232",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -20,6 +20,7 @@ service Payment {
20
20
  //Deposit
21
21
  rpc attemptDeposit(AttemptDepositRequest) returns (DepositResponse);
22
22
  rpc changeDepositStatus(GetDepositRequest) returns (DepositResponse);
23
+ rpc readListDeposits(PaginationRequest) returns (DepositItemsResponse);
23
24
  //Deposit Statuses
24
25
  rpc readListDepositStatuses(PaginationRequest) returns (DepositStatusItemsResponse);
25
26
  //User
@@ -35,11 +36,15 @@ message GetFileRequest { string file_name = 1; string instance_type = 2; }
35
36
 
36
37
  message PaginationRequest { int32 limit = 1; int32 offset = 2; optional PaymentSearchRequest payment_search_params = 3; }
37
38
  message PaymentSearchRequest {
38
- optional int32 payment_id = 1;
39
- repeated string currency = 2;
40
- repeated string geo = 3;
41
- optional string processing_type = 4;
42
- optional string transaction_type = 5;
39
+ optional int32 deposit_id = 1;
40
+ optional int32 withdrawal_id = 2;
41
+ optional int32 user_id = 3;
42
+ repeated string currency = 4;
43
+ repeated string geo = 5;
44
+ optional string processing_type = 6;
45
+ optional string transaction_type = 7;
46
+ repeated int32 provider_ids = 8;
47
+ repeated int32 method_ids = 9;
43
48
  }
44
49
  //Provider CRUD | Requests
45
50
  message ProviderItem {
@@ -134,6 +139,23 @@ message DepositResponse {
134
139
  int32 id = 1;
135
140
  string status = 2;
136
141
  }
142
+ message DepositItem {
143
+ int32 id = 1;
144
+ int32 user_id = 2;
145
+ string status = 3;
146
+ float amount_attempt = 4;
147
+ float amount_paid = 5;
148
+ float fee = 6;
149
+ string currency = 7;
150
+ optional string payment_method_title = 8;
151
+ optional string payment_provider_image = 9;
152
+ optional string created = 10;
153
+ }
154
+ message DepositItemsResponse {
155
+ repeated DepositItem items = 1;
156
+ optional int32 total_pages = 2;
157
+ optional int32 total_items = 3;
158
+ }
137
159
  //Deposit Status
138
160
  message DepositStatus {
139
161
  int32 id = 1;
@@ -15,6 +15,17 @@ function deserialize_payment_AttemptDepositRequest(buffer_arg) {
15
15
  return payment_pb.AttemptDepositRequest.deserializeBinary(new Uint8Array(buffer_arg));
16
16
  }
17
17
 
18
+ function serialize_payment_DepositItemsResponse(arg) {
19
+ if (!(arg instanceof payment_pb.DepositItemsResponse)) {
20
+ throw new Error('Expected argument of type payment.DepositItemsResponse');
21
+ }
22
+ return Buffer.from(arg.serializeBinary());
23
+ }
24
+
25
+ function deserialize_payment_DepositItemsResponse(buffer_arg) {
26
+ return payment_pb.DepositItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
27
+ }
28
+
18
29
  function serialize_payment_DepositResponse(arg) {
19
30
  if (!(arg instanceof payment_pb.DepositResponse)) {
20
31
  throw new Error('Expected argument of type payment.DepositResponse');
@@ -394,6 +405,17 @@ attemptDeposit: {
394
405
  responseSerialize: serialize_payment_DepositResponse,
395
406
  responseDeserialize: deserialize_payment_DepositResponse,
396
407
  },
408
+ readListDeposits: {
409
+ path: '/payment.Payment/readListDeposits',
410
+ requestStream: false,
411
+ responseStream: false,
412
+ requestType: payment_pb.PaginationRequest,
413
+ responseType: payment_pb.DepositItemsResponse,
414
+ requestSerialize: serialize_payment_PaginationRequest,
415
+ requestDeserialize: deserialize_payment_PaginationRequest,
416
+ responseSerialize: serialize_payment_DepositItemsResponse,
417
+ responseDeserialize: deserialize_payment_DepositItemsResponse,
418
+ },
397
419
  // Deposit Statuses
398
420
  readListDepositStatuses: {
399
421
  path: '/payment.Payment/readListDepositStatuses',