protobuf-platform 1.2.261 → 1.2.262

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.261",
3
+ "version": "1.2.262",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -24,6 +24,9 @@ service Payment {
24
24
  rpc setPaymentMethodConfig(PaymentMethodConfigRequest) returns (PaymentStatusResponse);
25
25
  rpc readPaymentMethodConfig(PaymentMethodConfigRequest) returns (PaymentMethodConfigResponse);
26
26
  rpc updatePaymentMethodsInBunch(ItemsBunchRequest) returns (PaymentStatusResponse);
27
+ //Operations
28
+ rpc readListOperations(PaginationRequest) returns (OperationItemsResponse);
29
+ rpc readSingleOperationDetails(GetOperationDetailsRequest) returns (OperationDetailsResponse);
27
30
  //Deposit
28
31
  rpc attemptDeposit(AttemptDepositRequest) returns (DepositResponse);
29
32
  rpc changeDepositStatus(GetDepositRequest) returns (DepositResponse);
@@ -68,6 +71,10 @@ message PaymentSearchRequest {
68
71
  optional string provider_title = 11;
69
72
  optional string method_title = 12;
70
73
  optional int32 is_active = 13;
74
+ optional int32 operation_id = 14;
75
+ repeated string operation_type = 15;
76
+ repeated string operation_reason_code = 16;
77
+ repeated string operation_status_code = 17;
71
78
  }
72
79
  message ItemsBunchRequest {
73
80
  repeated int32 ids = 1;
@@ -204,6 +211,62 @@ message PaymentMethodConfigResponse {
204
211
  optional string sdk_provider = 9;
205
212
  optional bool sdk_enabled = 10;
206
213
  }
214
+ //Operations
215
+ message OperationItem {
216
+ int32 id = 1;
217
+ string public_id = 2;
218
+ int32 user_id = 3;
219
+ string type = 4;
220
+ string reason_code = 5;
221
+ string status_code = 6;
222
+ float amount = 7;
223
+ string currency = 8;
224
+ string external_ref = 9;
225
+ string created = 10;
226
+ }
227
+ message OperationItemsResponse {
228
+ repeated OperationItem items = 1;
229
+ optional int32 total_pages = 2;
230
+ optional int32 total_items = 3;
231
+ }
232
+ message OperationDetailsItem {
233
+ int32 id = 1;
234
+ string public_id = 2;
235
+ int32 user_id = 3;
236
+ string type = 4;
237
+ string reason_code = 5;
238
+ string status_code = 6;
239
+ float amount = 7;
240
+ string currency = 8;
241
+ string external_ref = 9;
242
+ string reference_type = 10;
243
+ string reference_id = 11;
244
+ string method_code = 12;
245
+ string processing_type = 13;
246
+ string completion_mode = 14;
247
+ string created = 15;
248
+ string completed = 16;
249
+ }
250
+ message OperationLedgerItem {
251
+ int32 id = 1;
252
+ int32 account_id = 2;
253
+ string owner_type = 3;
254
+ int32 owner_id = 4;
255
+ string account_type_code = 5;
256
+ string account_type_description = 6;
257
+ string side = 7;
258
+ float amount = 8;
259
+ string currency = 9;
260
+ float balance_after = 10;
261
+ string created = 11;
262
+ }
263
+ message GetOperationDetailsRequest {
264
+ int32 id = 1;
265
+ }
266
+ message OperationDetailsResponse {
267
+ OperationDetailsItem details = 1;
268
+ repeated OperationLedgerItem ledger_items = 2;
269
+ }
207
270
  //Deposit
208
271
  message AttemptDepositRequest {
209
272
  int32 payment_method_id = 1;
@@ -147,6 +147,17 @@ function deserialize_payment_GetMethodRequest(buffer_arg) {
147
147
  return payment_pb.GetMethodRequest.deserializeBinary(new Uint8Array(buffer_arg));
148
148
  }
149
149
 
150
+ function serialize_payment_GetOperationDetailsRequest(arg) {
151
+ if (!(arg instanceof payment_pb.GetOperationDetailsRequest)) {
152
+ throw new Error('Expected argument of type payment.GetOperationDetailsRequest');
153
+ }
154
+ return Buffer.from(arg.serializeBinary());
155
+ }
156
+
157
+ function deserialize_payment_GetOperationDetailsRequest(buffer_arg) {
158
+ return payment_pb.GetOperationDetailsRequest.deserializeBinary(new Uint8Array(buffer_arg));
159
+ }
160
+
150
161
  function serialize_payment_GetProviderRequest(arg) {
151
162
  if (!(arg instanceof payment_pb.GetProviderRequest)) {
152
163
  throw new Error('Expected argument of type payment.GetProviderRequest');
@@ -224,6 +235,28 @@ function deserialize_payment_MethodResponse(buffer_arg) {
224
235
  return payment_pb.MethodResponse.deserializeBinary(new Uint8Array(buffer_arg));
225
236
  }
226
237
 
238
+ function serialize_payment_OperationDetailsResponse(arg) {
239
+ if (!(arg instanceof payment_pb.OperationDetailsResponse)) {
240
+ throw new Error('Expected argument of type payment.OperationDetailsResponse');
241
+ }
242
+ return Buffer.from(arg.serializeBinary());
243
+ }
244
+
245
+ function deserialize_payment_OperationDetailsResponse(buffer_arg) {
246
+ return payment_pb.OperationDetailsResponse.deserializeBinary(new Uint8Array(buffer_arg));
247
+ }
248
+
249
+ function serialize_payment_OperationItemsResponse(arg) {
250
+ if (!(arg instanceof payment_pb.OperationItemsResponse)) {
251
+ throw new Error('Expected argument of type payment.OperationItemsResponse');
252
+ }
253
+ return Buffer.from(arg.serializeBinary());
254
+ }
255
+
256
+ function deserialize_payment_OperationItemsResponse(buffer_arg) {
257
+ return payment_pb.OperationItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
258
+ }
259
+
227
260
  function serialize_payment_PaginationRequest(arg) {
228
261
  if (!(arg instanceof payment_pb.PaginationRequest)) {
229
262
  throw new Error('Expected argument of type payment.PaginationRequest');
@@ -635,6 +668,29 @@ createSingleMethod: {
635
668
  responseSerialize: serialize_payment_PaymentStatusResponse,
636
669
  responseDeserialize: deserialize_payment_PaymentStatusResponse,
637
670
  },
671
+ // Operations
672
+ readListOperations: {
673
+ path: '/payment.Payment/readListOperations',
674
+ requestStream: false,
675
+ responseStream: false,
676
+ requestType: payment_pb.PaginationRequest,
677
+ responseType: payment_pb.OperationItemsResponse,
678
+ requestSerialize: serialize_payment_PaginationRequest,
679
+ requestDeserialize: deserialize_payment_PaginationRequest,
680
+ responseSerialize: serialize_payment_OperationItemsResponse,
681
+ responseDeserialize: deserialize_payment_OperationItemsResponse,
682
+ },
683
+ readSingleOperationDetails: {
684
+ path: '/payment.Payment/readSingleOperationDetails',
685
+ requestStream: false,
686
+ responseStream: false,
687
+ requestType: payment_pb.GetOperationDetailsRequest,
688
+ responseType: payment_pb.OperationDetailsResponse,
689
+ requestSerialize: serialize_payment_GetOperationDetailsRequest,
690
+ requestDeserialize: deserialize_payment_GetOperationDetailsRequest,
691
+ responseSerialize: serialize_payment_OperationDetailsResponse,
692
+ responseDeserialize: deserialize_payment_OperationDetailsResponse,
693
+ },
638
694
  // Deposit
639
695
  attemptDeposit: {
640
696
  path: '/payment.Payment/attemptDeposit',