protobuf-platform 1.2.548 → 1.2.553
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 +20 -1
- package/payment/payment_grpc_pb.js +22 -0
- package/payment/payment_pb.js +821 -3
- package/user/user.proto +34 -0
- package/user/user_grpc_pb.js +68 -0
- package/user/user_pb.js +961 -0
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
|
@@ -69,6 +69,7 @@ service Payment {
|
|
|
69
69
|
rpc syncCurrencies(SyncCurrenciesRequest) returns (PaymentStatusResponse);
|
|
70
70
|
// BackOffice internal financial operations
|
|
71
71
|
rpc createManualDeposit(ManualDepositRequest) returns (FinancialOperationResponse);
|
|
72
|
+
rpc reconcileDeposit(DepositReconciliationRequest) returns (FinancialOperationResponse);
|
|
72
73
|
rpc createCompensation(CompensationRequest) returns (FinancialOperationResponse);
|
|
73
74
|
rpc readListCompensations(PaginationRequest) returns (CompensationItemsResponse);
|
|
74
75
|
rpc createConfiscation(ConfiscationRequest) returns (FinancialOperationResponse);
|
|
@@ -110,6 +111,11 @@ message PaymentSearchRequest {
|
|
|
110
111
|
repeated string withdrawal_status_code = 18;
|
|
111
112
|
optional int32 config_is_active = 19;
|
|
112
113
|
repeated string currency_type = 20;
|
|
114
|
+
optional string external_ref = 21;
|
|
115
|
+
optional string created_at_from = 22;
|
|
116
|
+
optional string created_at_to = 23;
|
|
117
|
+
optional string completed_at_from = 24;
|
|
118
|
+
optional string completed_at_to = 25;
|
|
113
119
|
}
|
|
114
120
|
message ItemsBunchRequest {
|
|
115
121
|
repeated int32 ids = 1;
|
|
@@ -466,6 +472,7 @@ message DepositItem {
|
|
|
466
472
|
optional bool is_ftd = 19;
|
|
467
473
|
optional string completed = 20;
|
|
468
474
|
optional string payment_method_image = 21;
|
|
475
|
+
optional string external_transaction_id = 22;
|
|
469
476
|
}
|
|
470
477
|
message DepositItemsResponse {
|
|
471
478
|
repeated DepositItem items = 1;
|
|
@@ -579,6 +586,7 @@ message WithdrawalItem {
|
|
|
579
586
|
optional string payment_provider_image_cdn = 18;
|
|
580
587
|
optional string payment_method_image = 19;
|
|
581
588
|
optional string payment_method_image_cdn = 20;
|
|
589
|
+
optional string completed_at = 21;
|
|
582
590
|
}
|
|
583
591
|
message WithdrawalItemsResponse {
|
|
584
592
|
repeated WithdrawalItem items = 1;
|
|
@@ -938,7 +946,18 @@ message ManualDepositRequest {
|
|
|
938
946
|
optional string external_payment_id = 9;
|
|
939
947
|
optional string external_transaction_id = 10;
|
|
940
948
|
}
|
|
941
|
-
|
|
949
|
+
message DepositReconciliationRequest {
|
|
950
|
+
int32 deposit_id = 1;
|
|
951
|
+
string amount_paid = 2;
|
|
952
|
+
optional string external_payment_id = 3;
|
|
953
|
+
optional string external_transaction_id = 4;
|
|
954
|
+
optional string provider_completed_at = 5;
|
|
955
|
+
string reason = 6;
|
|
956
|
+
optional string internal_comment = 7;
|
|
957
|
+
optional string transaction_code = 8;
|
|
958
|
+
string idempotency_id = 9;
|
|
959
|
+
}
|
|
960
|
+
// compensation_type values: compensation, reward, other_credit, balance_transfer_credit, adjustment
|
|
942
961
|
message CompensationRequest {
|
|
943
962
|
int32 user_id = 1;
|
|
944
963
|
int64 amount_minor = 2;
|
|
@@ -191,6 +191,17 @@ function deserialize_payment_DepositItemsResponse(buffer_arg) {
|
|
|
191
191
|
return payment_pb.DepositItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
+
function serialize_payment_DepositReconciliationRequest(arg) {
|
|
195
|
+
if (!(arg instanceof payment_pb.DepositReconciliationRequest)) {
|
|
196
|
+
throw new Error('Expected argument of type payment.DepositReconciliationRequest');
|
|
197
|
+
}
|
|
198
|
+
return Buffer.from(arg.serializeBinary());
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
function deserialize_payment_DepositReconciliationRequest(buffer_arg) {
|
|
202
|
+
return payment_pb.DepositReconciliationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
203
|
+
}
|
|
204
|
+
|
|
194
205
|
function serialize_payment_DepositRedirectFormRequest(arg) {
|
|
195
206
|
if (!(arg instanceof payment_pb.DepositRedirectFormRequest)) {
|
|
196
207
|
throw new Error('Expected argument of type payment.DepositRedirectFormRequest');
|
|
@@ -1492,6 +1503,17 @@ createManualDeposit: {
|
|
|
1492
1503
|
responseSerialize: serialize_payment_FinancialOperationResponse,
|
|
1493
1504
|
responseDeserialize: deserialize_payment_FinancialOperationResponse,
|
|
1494
1505
|
},
|
|
1506
|
+
reconcileDeposit: {
|
|
1507
|
+
path: '/payment.Payment/reconcileDeposit',
|
|
1508
|
+
requestStream: false,
|
|
1509
|
+
responseStream: false,
|
|
1510
|
+
requestType: payment_pb.DepositReconciliationRequest,
|
|
1511
|
+
responseType: payment_pb.FinancialOperationResponse,
|
|
1512
|
+
requestSerialize: serialize_payment_DepositReconciliationRequest,
|
|
1513
|
+
requestDeserialize: deserialize_payment_DepositReconciliationRequest,
|
|
1514
|
+
responseSerialize: serialize_payment_FinancialOperationResponse,
|
|
1515
|
+
responseDeserialize: deserialize_payment_FinancialOperationResponse,
|
|
1516
|
+
},
|
|
1495
1517
|
createCompensation: {
|
|
1496
1518
|
path: '/payment.Payment/createCompensation',
|
|
1497
1519
|
requestStream: false,
|