protobuf-platform 1.2.504 → 1.2.507
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/bonus/bonus.proto +3 -0
- package/bonus/bonus_pb.js +145 -1
- package/cashback/cashback.proto +36 -0
- package/cashback/cashback_grpc_pb.js +33 -0
- package/cashback/cashback_pb.js +1805 -125
- package/package.json +1 -1
- package/payment/payment.proto +44 -0
- package/payment/payment_grpc_pb.js +67 -0
- package/payment/payment_pb.js +1836 -136
- package/tournament/tournament.proto +25 -0
- package/tournament/tournament_grpc_pb.js +34 -0
- package/tournament/tournament_pb.js +1186 -0
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
|
@@ -25,6 +25,8 @@ service Payment {
|
|
|
25
25
|
rpc readPaymentMethodConfig(PaymentMethodConfigRequest) returns (PaymentMethodConfigResponse);
|
|
26
26
|
rpc readListCashierFields(CashierFieldsRequest) returns (CashierFieldItemsResponse);
|
|
27
27
|
rpc updatePaymentMethodsInBunch(ItemsBunchRequest) returns (PaymentStatusResponse);
|
|
28
|
+
// Lightweight batch read for CMS Custom Widget enrichment.
|
|
29
|
+
rpc getPaymentMethodSnapshotsByIds(GetPaymentMethodSnapshotsByIdsRequest) returns (PaymentMethodSnapshotItemsResponse);
|
|
28
30
|
//Operations
|
|
29
31
|
rpc readListOperations(PaginationRequest) returns (OperationItemsResponse);
|
|
30
32
|
rpc readSingleOperationDetails(GetOperationDetailsRequest) returns (OperationDetailsResponse);
|
|
@@ -54,6 +56,7 @@ service Payment {
|
|
|
54
56
|
rpc checkWithdrawalEligibility(CheckWithdrawalEligibilityRequest) returns (CheckWithdrawalEligibilityResponse);
|
|
55
57
|
rpc getWithdrawalWagerBucketHistory(GetWithdrawalWagerBucketHistoryRequest) returns (GetWithdrawalWagerBucketHistoryResponse);
|
|
56
58
|
rpc getUserKycFinancialSnapshot(GetUserKycFinancialSnapshotRequest) returns (GetUserKycFinancialSnapshotResponse);
|
|
59
|
+
rpc getUserCashbackPaymentOperands(GetUserCashbackPaymentOperandsRequest) returns (GetUserCashbackPaymentOperandsResponse);
|
|
57
60
|
//Segmentation
|
|
58
61
|
rpc getSegmentedUsers(SegmentedUserRequest) returns (SegmentedUserResponse);
|
|
59
62
|
//Currency source-of-truth
|
|
@@ -217,6 +220,27 @@ message MethodItemsResponse {
|
|
|
217
220
|
message PoorMethodsRequest {
|
|
218
221
|
repeated int32 method_ids = 1;
|
|
219
222
|
}
|
|
223
|
+
message GetPaymentMethodSnapshotsByIdsRequest {
|
|
224
|
+
repeated int32 ids = 1;
|
|
225
|
+
}
|
|
226
|
+
message PaymentMethodSnapshotItem {
|
|
227
|
+
int32 id = 1;
|
|
228
|
+
optional string title = 2;
|
|
229
|
+
optional string code = 3;
|
|
230
|
+
optional string description = 4;
|
|
231
|
+
optional string image = 5;
|
|
232
|
+
optional string image_cdn = 6;
|
|
233
|
+
optional bool is_active = 7;
|
|
234
|
+
optional string transaction_type = 8;
|
|
235
|
+
optional string currency_type = 9;
|
|
236
|
+
optional int32 provider_id = 10;
|
|
237
|
+
optional string provider_title = 11;
|
|
238
|
+
optional string provider_image = 12;
|
|
239
|
+
optional string provider_image_cdn = 13;
|
|
240
|
+
}
|
|
241
|
+
message PaymentMethodSnapshotItemsResponse {
|
|
242
|
+
repeated PaymentMethodSnapshotItem items = 1;
|
|
243
|
+
}
|
|
220
244
|
message CashierFieldItem {
|
|
221
245
|
string code = 1;
|
|
222
246
|
optional string title = 2;
|
|
@@ -774,6 +798,26 @@ message GetUserKycFinancialSnapshotResponse {
|
|
|
774
798
|
int64 completed_withdrawal_amount_minor = 6;
|
|
775
799
|
int32 completed_withdrawal_count = 7;
|
|
776
800
|
}
|
|
801
|
+
// Period boundaries are UTC ISO-8601 strings using half-open interval [period_start, period_end).
|
|
802
|
+
message GetUserCashbackPaymentOperandsRequest {
|
|
803
|
+
int32 user_id = 1;
|
|
804
|
+
string currency = 2;
|
|
805
|
+
string period_start = 3;
|
|
806
|
+
string period_end = 4;
|
|
807
|
+
}
|
|
808
|
+
// Completed deposits include operation types deposit and manual_deposit.
|
|
809
|
+
// Completed withdrawals include only completed withdrawal operations.
|
|
810
|
+
// No implicit FX conversion is allowed.
|
|
811
|
+
// No matching operations produce zero amounts, not missing fields.
|
|
812
|
+
message GetUserCashbackPaymentOperandsResponse {
|
|
813
|
+
int32 user_id = 1;
|
|
814
|
+
string currency = 2;
|
|
815
|
+
int32 currency_scale = 3;
|
|
816
|
+
int64 completed_deposits_amount_minor = 4;
|
|
817
|
+
int64 completed_withdrawals_amount_minor = 5;
|
|
818
|
+
optional int32 completed_deposits_count = 6;
|
|
819
|
+
optional int32 completed_withdrawals_count = 7;
|
|
820
|
+
}
|
|
777
821
|
//Segmentation
|
|
778
822
|
message SegmentedUserRequest {
|
|
779
823
|
optional float deposit_amount_min = 1;
|
|
@@ -323,6 +323,17 @@ function deserialize_payment_GetOperationDetailsRequest(buffer_arg) {
|
|
|
323
323
|
return payment_pb.GetOperationDetailsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
+
function serialize_payment_GetPaymentMethodSnapshotsByIdsRequest(arg) {
|
|
327
|
+
if (!(arg instanceof payment_pb.GetPaymentMethodSnapshotsByIdsRequest)) {
|
|
328
|
+
throw new Error('Expected argument of type payment.GetPaymentMethodSnapshotsByIdsRequest');
|
|
329
|
+
}
|
|
330
|
+
return Buffer.from(arg.serializeBinary());
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
function deserialize_payment_GetPaymentMethodSnapshotsByIdsRequest(buffer_arg) {
|
|
334
|
+
return payment_pb.GetPaymentMethodSnapshotsByIdsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
335
|
+
}
|
|
336
|
+
|
|
326
337
|
function serialize_payment_GetProviderRequest(arg) {
|
|
327
338
|
if (!(arg instanceof payment_pb.GetProviderRequest)) {
|
|
328
339
|
throw new Error('Expected argument of type payment.GetProviderRequest');
|
|
@@ -345,6 +356,28 @@ function deserialize_payment_GetProviderTranslationRequest(buffer_arg) {
|
|
|
345
356
|
return payment_pb.GetProviderTranslationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
346
357
|
}
|
|
347
358
|
|
|
359
|
+
function serialize_payment_GetUserCashbackPaymentOperandsRequest(arg) {
|
|
360
|
+
if (!(arg instanceof payment_pb.GetUserCashbackPaymentOperandsRequest)) {
|
|
361
|
+
throw new Error('Expected argument of type payment.GetUserCashbackPaymentOperandsRequest');
|
|
362
|
+
}
|
|
363
|
+
return Buffer.from(arg.serializeBinary());
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
function deserialize_payment_GetUserCashbackPaymentOperandsRequest(buffer_arg) {
|
|
367
|
+
return payment_pb.GetUserCashbackPaymentOperandsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
function serialize_payment_GetUserCashbackPaymentOperandsResponse(arg) {
|
|
371
|
+
if (!(arg instanceof payment_pb.GetUserCashbackPaymentOperandsResponse)) {
|
|
372
|
+
throw new Error('Expected argument of type payment.GetUserCashbackPaymentOperandsResponse');
|
|
373
|
+
}
|
|
374
|
+
return Buffer.from(arg.serializeBinary());
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
function deserialize_payment_GetUserCashbackPaymentOperandsResponse(buffer_arg) {
|
|
378
|
+
return payment_pb.GetUserCashbackPaymentOperandsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
379
|
+
}
|
|
380
|
+
|
|
348
381
|
function serialize_payment_GetUserDepositCountRequest(arg) {
|
|
349
382
|
if (!(arg instanceof payment_pb.GetUserDepositCountRequest)) {
|
|
350
383
|
throw new Error('Expected argument of type payment.GetUserDepositCountRequest');
|
|
@@ -554,6 +587,17 @@ function deserialize_payment_PaymentMethodConfigResponse(buffer_arg) {
|
|
|
554
587
|
return payment_pb.PaymentMethodConfigResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
555
588
|
}
|
|
556
589
|
|
|
590
|
+
function serialize_payment_PaymentMethodSnapshotItemsResponse(arg) {
|
|
591
|
+
if (!(arg instanceof payment_pb.PaymentMethodSnapshotItemsResponse)) {
|
|
592
|
+
throw new Error('Expected argument of type payment.PaymentMethodSnapshotItemsResponse');
|
|
593
|
+
}
|
|
594
|
+
return Buffer.from(arg.serializeBinary());
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
function deserialize_payment_PaymentMethodSnapshotItemsResponse(buffer_arg) {
|
|
598
|
+
return payment_pb.PaymentMethodSnapshotItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
599
|
+
}
|
|
600
|
+
|
|
557
601
|
function serialize_payment_PaymentStatusResponse(arg) {
|
|
558
602
|
if (!(arg instanceof payment_pb.PaymentStatusResponse)) {
|
|
559
603
|
throw new Error('Expected argument of type payment.PaymentStatusResponse');
|
|
@@ -1042,6 +1086,18 @@ createSingleMethod: {
|
|
|
1042
1086
|
responseSerialize: serialize_payment_PaymentStatusResponse,
|
|
1043
1087
|
responseDeserialize: deserialize_payment_PaymentStatusResponse,
|
|
1044
1088
|
},
|
|
1089
|
+
// Lightweight batch read for CMS Custom Widget enrichment.
|
|
1090
|
+
getPaymentMethodSnapshotsByIds: {
|
|
1091
|
+
path: '/payment.Payment/getPaymentMethodSnapshotsByIds',
|
|
1092
|
+
requestStream: false,
|
|
1093
|
+
responseStream: false,
|
|
1094
|
+
requestType: payment_pb.GetPaymentMethodSnapshotsByIdsRequest,
|
|
1095
|
+
responseType: payment_pb.PaymentMethodSnapshotItemsResponse,
|
|
1096
|
+
requestSerialize: serialize_payment_GetPaymentMethodSnapshotsByIdsRequest,
|
|
1097
|
+
requestDeserialize: deserialize_payment_GetPaymentMethodSnapshotsByIdsRequest,
|
|
1098
|
+
responseSerialize: serialize_payment_PaymentMethodSnapshotItemsResponse,
|
|
1099
|
+
responseDeserialize: deserialize_payment_PaymentMethodSnapshotItemsResponse,
|
|
1100
|
+
},
|
|
1045
1101
|
// Operations
|
|
1046
1102
|
readListOperations: {
|
|
1047
1103
|
path: '/payment.Payment/readListOperations',
|
|
@@ -1311,6 +1367,17 @@ userPaymentsInfo: {
|
|
|
1311
1367
|
responseSerialize: serialize_payment_GetUserKycFinancialSnapshotResponse,
|
|
1312
1368
|
responseDeserialize: deserialize_payment_GetUserKycFinancialSnapshotResponse,
|
|
1313
1369
|
},
|
|
1370
|
+
getUserCashbackPaymentOperands: {
|
|
1371
|
+
path: '/payment.Payment/getUserCashbackPaymentOperands',
|
|
1372
|
+
requestStream: false,
|
|
1373
|
+
responseStream: false,
|
|
1374
|
+
requestType: payment_pb.GetUserCashbackPaymentOperandsRequest,
|
|
1375
|
+
responseType: payment_pb.GetUserCashbackPaymentOperandsResponse,
|
|
1376
|
+
requestSerialize: serialize_payment_GetUserCashbackPaymentOperandsRequest,
|
|
1377
|
+
requestDeserialize: deserialize_payment_GetUserCashbackPaymentOperandsRequest,
|
|
1378
|
+
responseSerialize: serialize_payment_GetUserCashbackPaymentOperandsResponse,
|
|
1379
|
+
responseDeserialize: deserialize_payment_GetUserCashbackPaymentOperandsResponse,
|
|
1380
|
+
},
|
|
1314
1381
|
// Segmentation
|
|
1315
1382
|
getSegmentedUsers: {
|
|
1316
1383
|
path: '/payment.Payment/getSegmentedUsers',
|