protobuf-platform 1.2.521 → 1.2.523

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.2.521",
3
+ "version": "1.2.523",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -72,6 +72,7 @@ service Payment {
72
72
  rpc createCompensation(CompensationRequest) returns (FinancialOperationResponse);
73
73
  rpc readListCompensations(PaginationRequest) returns (CompensationItemsResponse);
74
74
  rpc createConfiscation(ConfiscationRequest) returns (FinancialOperationResponse);
75
+ rpc readListConfiscations(PaginationRequest) returns (ConfiscationItemsResponse);
75
76
  }
76
77
  //Technical
77
78
  message PingRequest { string ping = 1; }
@@ -86,6 +87,7 @@ message PaginationRequest {
86
87
  optional string order = 3;
87
88
  optional PaymentSearchRequest payment_search_params = 4;
88
89
  optional CompensationSearchRequest compensation_search_params = 5;
90
+ optional ConfiscationSearchRequest confiscation_search_params = 6;
89
91
  }
90
92
  message PaymentSearchRequest {
91
93
  optional int32 deposit_id = 1;
@@ -961,6 +963,7 @@ message CompensationItemsResponse {
961
963
  optional int32 total_pages = 2;
962
964
  optional int32 total_items = 3;
963
965
  }
966
+ // confiscation_type values: fund_confiscation, other_debit, balance_transfer_debit
964
967
  message ConfiscationRequest {
965
968
  int32 user_id = 1;
966
969
  int64 amount_minor = 2;
@@ -970,6 +973,37 @@ message ConfiscationRequest {
970
973
  string transaction_code = 6;
971
974
  string internal_comment = 7;
972
975
  string amount = 8;
976
+ string confiscation_type = 9;
977
+ }
978
+ message ConfiscationSearchRequest {
979
+ optional int32 operation_id = 1;
980
+ repeated int32 user_ids = 2;
981
+ repeated string confiscation_types = 3;
982
+ optional string transaction_code = 4;
983
+ repeated string operation_status_codes = 5;
984
+ optional string created_from = 6;
985
+ optional string created_to = 7;
986
+ repeated string currency = 8;
987
+ }
988
+ message ConfiscationItem {
989
+ int32 operation_id = 1;
990
+ string operation_public_id = 2;
991
+ int32 user_id = 3;
992
+ string confiscation_type = 4;
993
+ string transaction_code = 5;
994
+ int64 amount_minor = 6;
995
+ string currency = 7;
996
+ int32 currency_scale = 8;
997
+ string internal_comment = 9;
998
+ int32 operator_id = 10;
999
+ string status_code = 11;
1000
+ string created_at = 12;
1001
+ optional string completed_at = 13;
1002
+ }
1003
+ message ConfiscationItemsResponse {
1004
+ repeated ConfiscationItem items = 1;
1005
+ optional int32 total_pages = 2;
1006
+ optional int32 total_items = 3;
973
1007
  }
974
1008
  message FinancialOperationResponse {
975
1009
  int32 operation_id = 1;
@@ -114,6 +114,17 @@ function deserialize_payment_CompensationRequest(buffer_arg) {
114
114
  return payment_pb.CompensationRequest.deserializeBinary(new Uint8Array(buffer_arg));
115
115
  }
116
116
 
117
+ function serialize_payment_ConfiscationItemsResponse(arg) {
118
+ if (!(arg instanceof payment_pb.ConfiscationItemsResponse)) {
119
+ throw new Error('Expected argument of type payment.ConfiscationItemsResponse');
120
+ }
121
+ return Buffer.from(arg.serializeBinary());
122
+ }
123
+
124
+ function deserialize_payment_ConfiscationItemsResponse(buffer_arg) {
125
+ return payment_pb.ConfiscationItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
126
+ }
127
+
117
128
  function serialize_payment_ConfiscationRequest(arg) {
118
129
  if (!(arg instanceof payment_pb.ConfiscationRequest)) {
119
130
  throw new Error('Expected argument of type payment.ConfiscationRequest');
@@ -1514,6 +1525,17 @@ createManualDeposit: {
1514
1525
  responseSerialize: serialize_payment_FinancialOperationResponse,
1515
1526
  responseDeserialize: deserialize_payment_FinancialOperationResponse,
1516
1527
  },
1528
+ readListConfiscations: {
1529
+ path: '/payment.Payment/readListConfiscations',
1530
+ requestStream: false,
1531
+ responseStream: false,
1532
+ requestType: payment_pb.PaginationRequest,
1533
+ responseType: payment_pb.ConfiscationItemsResponse,
1534
+ requestSerialize: serialize_payment_PaginationRequest,
1535
+ requestDeserialize: deserialize_payment_PaginationRequest,
1536
+ responseSerialize: serialize_payment_ConfiscationItemsResponse,
1537
+ responseDeserialize: deserialize_payment_ConfiscationItemsResponse,
1538
+ },
1517
1539
  };
1518
1540
 
1519
1541
  exports.PaymentClient = grpc.makeGenericClientConstructor(PaymentService, 'Payment');