protobuf-platform 1.2.517 → 1.2.520
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 +38 -1
- package/payment/payment_grpc_pb.js +22 -0
- package/payment/payment_pb.js +1576 -6
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
|
@@ -70,6 +70,7 @@ service Payment {
|
|
|
70
70
|
// BackOffice internal financial operations
|
|
71
71
|
rpc createManualDeposit(ManualDepositRequest) returns (FinancialOperationResponse);
|
|
72
72
|
rpc createCompensation(CompensationRequest) returns (FinancialOperationResponse);
|
|
73
|
+
rpc readListCompensations(PaginationRequest) returns (CompensationItemsResponse);
|
|
73
74
|
rpc createConfiscation(ConfiscationRequest) returns (FinancialOperationResponse);
|
|
74
75
|
}
|
|
75
76
|
//Technical
|
|
@@ -84,6 +85,7 @@ message PaginationRequest {
|
|
|
84
85
|
int32 offset = 2;
|
|
85
86
|
optional string order = 3;
|
|
86
87
|
optional PaymentSearchRequest payment_search_params = 4;
|
|
88
|
+
optional CompensationSearchRequest compensation_search_params = 5;
|
|
87
89
|
}
|
|
88
90
|
message PaymentSearchRequest {
|
|
89
91
|
optional int32 deposit_id = 1;
|
|
@@ -440,6 +442,7 @@ message DepositItem {
|
|
|
440
442
|
optional string external_ref = 18;
|
|
441
443
|
optional bool is_ftd = 19;
|
|
442
444
|
optional string completed = 20;
|
|
445
|
+
optional string payment_method_image = 21;
|
|
443
446
|
}
|
|
444
447
|
message DepositItemsResponse {
|
|
445
448
|
repeated DepositItem items = 1;
|
|
@@ -912,10 +915,11 @@ message ManualDepositRequest {
|
|
|
912
915
|
optional string external_payment_id = 9;
|
|
913
916
|
optional string external_transaction_id = 10;
|
|
914
917
|
}
|
|
918
|
+
// compensation_type values: compensation, reward, other_credit, balance_transfer_credit
|
|
915
919
|
message CompensationRequest {
|
|
916
920
|
int32 user_id = 1;
|
|
917
921
|
int64 amount_minor = 2;
|
|
918
|
-
string currency = 3;
|
|
922
|
+
optional string currency = 3;
|
|
919
923
|
string wager_multiplier = 4;
|
|
920
924
|
string reason = 5;
|
|
921
925
|
string idempotency_id = 6;
|
|
@@ -923,6 +927,39 @@ message CompensationRequest {
|
|
|
923
927
|
string transaction_code = 8;
|
|
924
928
|
string internal_comment = 9;
|
|
925
929
|
string amount = 10;
|
|
930
|
+
optional string promo_or_bonus_id = 11;
|
|
931
|
+
}
|
|
932
|
+
message CompensationSearchRequest {
|
|
933
|
+
optional int32 operation_id = 1;
|
|
934
|
+
repeated int32 user_ids = 2;
|
|
935
|
+
repeated string compensation_types = 3;
|
|
936
|
+
optional string transaction_code = 4;
|
|
937
|
+
repeated string operation_status_codes = 5;
|
|
938
|
+
optional string created_from = 6;
|
|
939
|
+
optional string created_to = 7;
|
|
940
|
+
repeated string currency = 8;
|
|
941
|
+
}
|
|
942
|
+
message CompensationItem {
|
|
943
|
+
int32 operation_id = 1;
|
|
944
|
+
string operation_public_id = 2;
|
|
945
|
+
int32 user_id = 3;
|
|
946
|
+
string compensation_type = 4;
|
|
947
|
+
string transaction_code = 5;
|
|
948
|
+
int64 amount_minor = 6;
|
|
949
|
+
string currency = 7;
|
|
950
|
+
int32 currency_scale = 8;
|
|
951
|
+
string wager_multiplier = 9;
|
|
952
|
+
optional string promo_or_bonus_id = 10;
|
|
953
|
+
string internal_comment = 11;
|
|
954
|
+
int32 operator_id = 12;
|
|
955
|
+
string status_code = 13;
|
|
956
|
+
string created_at = 14;
|
|
957
|
+
optional string completed_at = 15;
|
|
958
|
+
}
|
|
959
|
+
message CompensationItemsResponse {
|
|
960
|
+
repeated CompensationItem items = 1;
|
|
961
|
+
optional int32 total_pages = 2;
|
|
962
|
+
optional int32 total_items = 3;
|
|
926
963
|
}
|
|
927
964
|
message ConfiscationRequest {
|
|
928
965
|
int32 user_id = 1;
|
|
@@ -92,6 +92,17 @@ function deserialize_payment_CheckWithdrawalEligibilityResponse(buffer_arg) {
|
|
|
92
92
|
return payment_pb.CheckWithdrawalEligibilityResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
+
function serialize_payment_CompensationItemsResponse(arg) {
|
|
96
|
+
if (!(arg instanceof payment_pb.CompensationItemsResponse)) {
|
|
97
|
+
throw new Error('Expected argument of type payment.CompensationItemsResponse');
|
|
98
|
+
}
|
|
99
|
+
return Buffer.from(arg.serializeBinary());
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
function deserialize_payment_CompensationItemsResponse(buffer_arg) {
|
|
103
|
+
return payment_pb.CompensationItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
104
|
+
}
|
|
105
|
+
|
|
95
106
|
function serialize_payment_CompensationRequest(arg) {
|
|
96
107
|
if (!(arg instanceof payment_pb.CompensationRequest)) {
|
|
97
108
|
throw new Error('Expected argument of type payment.CompensationRequest');
|
|
@@ -1481,6 +1492,17 @@ createManualDeposit: {
|
|
|
1481
1492
|
responseSerialize: serialize_payment_FinancialOperationResponse,
|
|
1482
1493
|
responseDeserialize: deserialize_payment_FinancialOperationResponse,
|
|
1483
1494
|
},
|
|
1495
|
+
readListCompensations: {
|
|
1496
|
+
path: '/payment.Payment/readListCompensations',
|
|
1497
|
+
requestStream: false,
|
|
1498
|
+
responseStream: false,
|
|
1499
|
+
requestType: payment_pb.PaginationRequest,
|
|
1500
|
+
responseType: payment_pb.CompensationItemsResponse,
|
|
1501
|
+
requestSerialize: serialize_payment_PaginationRequest,
|
|
1502
|
+
requestDeserialize: deserialize_payment_PaginationRequest,
|
|
1503
|
+
responseSerialize: serialize_payment_CompensationItemsResponse,
|
|
1504
|
+
responseDeserialize: deserialize_payment_CompensationItemsResponse,
|
|
1505
|
+
},
|
|
1484
1506
|
createConfiscation: {
|
|
1485
1507
|
path: '/payment.Payment/createConfiscation',
|
|
1486
1508
|
requestStream: false,
|