protobuf-platform 1.2.580 → 1.2.581
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 +57 -0
- package/payment/payment_grpc_pb.js +44 -0
- package/payment/payment_pb.js +2937 -619
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
|
@@ -74,6 +74,8 @@ service Payment {
|
|
|
74
74
|
rpc readListCompensations(PaginationRequest) returns (CompensationItemsResponse);
|
|
75
75
|
rpc createConfiscation(ConfiscationRequest) returns (FinancialOperationResponse);
|
|
76
76
|
rpc readListConfiscations(PaginationRequest) returns (ConfiscationItemsResponse);
|
|
77
|
+
rpc createAdjustment(AdjustmentRequest) returns (FinancialOperationResponse);
|
|
78
|
+
rpc readListAdjustments(PaginationRequest) returns (AdjustmentItemsResponse);
|
|
77
79
|
}
|
|
78
80
|
//Technical
|
|
79
81
|
message PingRequest { string ping = 1; }
|
|
@@ -89,6 +91,7 @@ message PaginationRequest {
|
|
|
89
91
|
optional PaymentSearchRequest payment_search_params = 4;
|
|
90
92
|
optional CompensationSearchRequest compensation_search_params = 5;
|
|
91
93
|
optional ConfiscationSearchRequest confiscation_search_params = 6;
|
|
94
|
+
optional AdjustmentSearchRequest adjustment_search_params = 7;
|
|
92
95
|
}
|
|
93
96
|
message PaymentSearchRequest {
|
|
94
97
|
optional int32 deposit_id = 1;
|
|
@@ -975,6 +978,9 @@ message CompensationRequest {
|
|
|
975
978
|
string internal_comment = 9;
|
|
976
979
|
string amount = 10;
|
|
977
980
|
optional string promo_or_bonus_id = 11;
|
|
981
|
+
// bonus_id and user_bonus_id are mutually exclusive typed bonus references; promo_or_bonus_id is retained as a legacy backward-compatible field.
|
|
982
|
+
optional int32 user_bonus_id = 12;
|
|
983
|
+
optional int32 bonus_id = 13;
|
|
978
984
|
}
|
|
979
985
|
message CompensationSearchRequest {
|
|
980
986
|
optional int32 operation_id = 1;
|
|
@@ -1010,12 +1016,63 @@ message CompensationItem {
|
|
|
1010
1016
|
optional string player_email = 17;
|
|
1011
1017
|
optional string operator_name = 18;
|
|
1012
1018
|
optional string operator_email = 19;
|
|
1019
|
+
optional int32 user_bonus_id = 20;
|
|
1020
|
+
optional int32 bonus_id = 21;
|
|
1013
1021
|
}
|
|
1014
1022
|
message CompensationItemsResponse {
|
|
1015
1023
|
repeated CompensationItem items = 1;
|
|
1016
1024
|
optional int32 total_pages = 2;
|
|
1017
1025
|
optional int32 total_items = 3;
|
|
1018
1026
|
}
|
|
1027
|
+
// Player balance adjustment (BackOffice transactional correction)
|
|
1028
|
+
message AdjustmentRequest {
|
|
1029
|
+
int32 user_id = 1;
|
|
1030
|
+
int64 amount_minor = 2;
|
|
1031
|
+
optional string currency = 3;
|
|
1032
|
+
string wager_multiplier = 4;
|
|
1033
|
+
string reason = 5;
|
|
1034
|
+
string idempotency_id = 6;
|
|
1035
|
+
string transaction_code = 7;
|
|
1036
|
+
string internal_comment = 8;
|
|
1037
|
+
string amount = 9;
|
|
1038
|
+
}
|
|
1039
|
+
message AdjustmentSearchRequest {
|
|
1040
|
+
optional int32 operation_id = 1;
|
|
1041
|
+
repeated int32 user_ids = 2;
|
|
1042
|
+
optional string transaction_code = 3;
|
|
1043
|
+
repeated string operation_status_codes = 4;
|
|
1044
|
+
optional string created_from = 5;
|
|
1045
|
+
optional string created_to = 6;
|
|
1046
|
+
repeated string currency = 7;
|
|
1047
|
+
optional string player_nickname = 8;
|
|
1048
|
+
repeated int32 operator_ids = 9;
|
|
1049
|
+
optional int64 amount_minor_from = 10;
|
|
1050
|
+
optional int64 amount_minor_to = 11;
|
|
1051
|
+
}
|
|
1052
|
+
message AdjustmentItem {
|
|
1053
|
+
int32 operation_id = 1;
|
|
1054
|
+
string operation_public_id = 2;
|
|
1055
|
+
int32 user_id = 3;
|
|
1056
|
+
string transaction_code = 4;
|
|
1057
|
+
int64 amount_minor = 5;
|
|
1058
|
+
string currency = 6;
|
|
1059
|
+
int32 currency_scale = 7;
|
|
1060
|
+
string wager_multiplier = 8;
|
|
1061
|
+
string internal_comment = 9;
|
|
1062
|
+
int32 operator_id = 10;
|
|
1063
|
+
string status_code = 11;
|
|
1064
|
+
string created_at = 12;
|
|
1065
|
+
optional string completed_at = 13;
|
|
1066
|
+
optional string player_nickname = 14;
|
|
1067
|
+
optional string player_email = 15;
|
|
1068
|
+
optional string operator_name = 16;
|
|
1069
|
+
optional string operator_email = 17;
|
|
1070
|
+
}
|
|
1071
|
+
message AdjustmentItemsResponse {
|
|
1072
|
+
repeated AdjustmentItem items = 1;
|
|
1073
|
+
optional int32 total_pages = 2;
|
|
1074
|
+
optional int32 total_items = 3;
|
|
1075
|
+
}
|
|
1019
1076
|
// confiscation_type values: fund_confiscation, other_debit, balance_transfer_debit
|
|
1020
1077
|
message ConfiscationRequest {
|
|
1021
1078
|
int32 user_id = 1;
|
|
@@ -4,6 +4,28 @@
|
|
|
4
4
|
var grpc = require('@grpc/grpc-js');
|
|
5
5
|
var payment_pb = require('./payment_pb.js');
|
|
6
6
|
|
|
7
|
+
function serialize_payment_AdjustmentItemsResponse(arg) {
|
|
8
|
+
if (!(arg instanceof payment_pb.AdjustmentItemsResponse)) {
|
|
9
|
+
throw new Error('Expected argument of type payment.AdjustmentItemsResponse');
|
|
10
|
+
}
|
|
11
|
+
return Buffer.from(arg.serializeBinary());
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function deserialize_payment_AdjustmentItemsResponse(buffer_arg) {
|
|
15
|
+
return payment_pb.AdjustmentItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function serialize_payment_AdjustmentRequest(arg) {
|
|
19
|
+
if (!(arg instanceof payment_pb.AdjustmentRequest)) {
|
|
20
|
+
throw new Error('Expected argument of type payment.AdjustmentRequest');
|
|
21
|
+
}
|
|
22
|
+
return Buffer.from(arg.serializeBinary());
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function deserialize_payment_AdjustmentRequest(buffer_arg) {
|
|
26
|
+
return payment_pb.AdjustmentRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
27
|
+
}
|
|
28
|
+
|
|
7
29
|
function serialize_payment_AttemptDepositRequest(arg) {
|
|
8
30
|
if (!(arg instanceof payment_pb.AttemptDepositRequest)) {
|
|
9
31
|
throw new Error('Expected argument of type payment.AttemptDepositRequest');
|
|
@@ -1558,6 +1580,28 @@ createManualDeposit: {
|
|
|
1558
1580
|
responseSerialize: serialize_payment_ConfiscationItemsResponse,
|
|
1559
1581
|
responseDeserialize: deserialize_payment_ConfiscationItemsResponse,
|
|
1560
1582
|
},
|
|
1583
|
+
createAdjustment: {
|
|
1584
|
+
path: '/payment.Payment/createAdjustment',
|
|
1585
|
+
requestStream: false,
|
|
1586
|
+
responseStream: false,
|
|
1587
|
+
requestType: payment_pb.AdjustmentRequest,
|
|
1588
|
+
responseType: payment_pb.FinancialOperationResponse,
|
|
1589
|
+
requestSerialize: serialize_payment_AdjustmentRequest,
|
|
1590
|
+
requestDeserialize: deserialize_payment_AdjustmentRequest,
|
|
1591
|
+
responseSerialize: serialize_payment_FinancialOperationResponse,
|
|
1592
|
+
responseDeserialize: deserialize_payment_FinancialOperationResponse,
|
|
1593
|
+
},
|
|
1594
|
+
readListAdjustments: {
|
|
1595
|
+
path: '/payment.Payment/readListAdjustments',
|
|
1596
|
+
requestStream: false,
|
|
1597
|
+
responseStream: false,
|
|
1598
|
+
requestType: payment_pb.PaginationRequest,
|
|
1599
|
+
responseType: payment_pb.AdjustmentItemsResponse,
|
|
1600
|
+
requestSerialize: serialize_payment_PaginationRequest,
|
|
1601
|
+
requestDeserialize: deserialize_payment_PaginationRequest,
|
|
1602
|
+
responseSerialize: serialize_payment_AdjustmentItemsResponse,
|
|
1603
|
+
responseDeserialize: deserialize_payment_AdjustmentItemsResponse,
|
|
1604
|
+
},
|
|
1561
1605
|
};
|
|
1562
1606
|
|
|
1563
1607
|
exports.PaymentClient = grpc.makeGenericClientConstructor(PaymentService, 'Payment');
|