protobuf-platform 1.2.437 → 1.2.439
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 +27 -0
- package/payment/payment_grpc_pb.js +33 -0
- package/payment/payment_pb.js +1014 -0
- package/user/user.proto +202 -0
- package/user/user_grpc_pb.js +479 -0
- package/user/user_pb.js +25188 -16719
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
|
@@ -50,6 +50,7 @@ service Payment {
|
|
|
50
50
|
rpc getUserDepositCount(GetUserDepositCountRequest) returns (UserDepositCountResponse);
|
|
51
51
|
rpc getPaymentMethodsForUser(GetUserPaymentsInfoRequest) returns (UserPaymentMethodsResponse);
|
|
52
52
|
rpc checkFastDeposit(CheckFastDepositRequest) returns (CheckFastDepositResponse);
|
|
53
|
+
rpc getWithdrawalWagerSnapshot(GetWithdrawalWagerSnapshotRequest) returns (GetWithdrawalWagerSnapshotResponse);
|
|
53
54
|
//Segmentation
|
|
54
55
|
rpc getSegmentedUsers(SegmentedUserRequest) returns (SegmentedUserResponse);
|
|
55
56
|
//Currency source-of-truth
|
|
@@ -634,6 +635,32 @@ message CheckFastDepositRequest {
|
|
|
634
635
|
message CheckFastDepositResponse {
|
|
635
636
|
UserPaymentMethodItem method = 1;
|
|
636
637
|
}
|
|
638
|
+
message GetWithdrawalWagerSnapshotRequest {
|
|
639
|
+
int32 user_id = 1;
|
|
640
|
+
optional string currency = 2;
|
|
641
|
+
}
|
|
642
|
+
message WithdrawalWagerLockedBucketItem {
|
|
643
|
+
string bucket_id = 1;
|
|
644
|
+
string source_type = 2;
|
|
645
|
+
string source_id = 3;
|
|
646
|
+
int64 amount_minor = 4;
|
|
647
|
+
string multiplier = 5;
|
|
648
|
+
int64 required_wager_minor = 6;
|
|
649
|
+
int64 completed_wager_minor = 7;
|
|
650
|
+
int64 remaining_wager_minor = 8;
|
|
651
|
+
string created_at = 9;
|
|
652
|
+
}
|
|
653
|
+
message GetWithdrawalWagerSnapshotResponse {
|
|
654
|
+
string currency = 1;
|
|
655
|
+
int32 currency_scale = 2;
|
|
656
|
+
int64 required_wager_minor = 3;
|
|
657
|
+
int64 completed_wager_minor = 4;
|
|
658
|
+
int64 remaining_wager_minor = 5;
|
|
659
|
+
int64 withdrawable_amount_minor = 6;
|
|
660
|
+
int64 locked_amount_minor = 7;
|
|
661
|
+
int32 active_locked_buckets_count = 8;
|
|
662
|
+
repeated WithdrawalWagerLockedBucketItem active_locked_buckets = 9;
|
|
663
|
+
}
|
|
637
664
|
//Segmentation
|
|
638
665
|
message SegmentedUserRequest {
|
|
639
666
|
optional float deposit_amount_min = 1;
|
|
@@ -323,6 +323,28 @@ function deserialize_payment_GetWithdrawalRequest(buffer_arg) {
|
|
|
323
323
|
return payment_pb.GetWithdrawalRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
+
function serialize_payment_GetWithdrawalWagerSnapshotRequest(arg) {
|
|
327
|
+
if (!(arg instanceof payment_pb.GetWithdrawalWagerSnapshotRequest)) {
|
|
328
|
+
throw new Error('Expected argument of type payment.GetWithdrawalWagerSnapshotRequest');
|
|
329
|
+
}
|
|
330
|
+
return Buffer.from(arg.serializeBinary());
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
function deserialize_payment_GetWithdrawalWagerSnapshotRequest(buffer_arg) {
|
|
334
|
+
return payment_pb.GetWithdrawalWagerSnapshotRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
function serialize_payment_GetWithdrawalWagerSnapshotResponse(arg) {
|
|
338
|
+
if (!(arg instanceof payment_pb.GetWithdrawalWagerSnapshotResponse)) {
|
|
339
|
+
throw new Error('Expected argument of type payment.GetWithdrawalWagerSnapshotResponse');
|
|
340
|
+
}
|
|
341
|
+
return Buffer.from(arg.serializeBinary());
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
function deserialize_payment_GetWithdrawalWagerSnapshotResponse(buffer_arg) {
|
|
345
|
+
return payment_pb.GetWithdrawalWagerSnapshotResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
346
|
+
}
|
|
347
|
+
|
|
326
348
|
function serialize_payment_ItemsBunchRequest(arg) {
|
|
327
349
|
if (!(arg instanceof payment_pb.ItemsBunchRequest)) {
|
|
328
350
|
throw new Error('Expected argument of type payment.ItemsBunchRequest');
|
|
@@ -1135,6 +1157,17 @@ userPaymentsInfo: {
|
|
|
1135
1157
|
responseSerialize: serialize_payment_CheckFastDepositResponse,
|
|
1136
1158
|
responseDeserialize: deserialize_payment_CheckFastDepositResponse,
|
|
1137
1159
|
},
|
|
1160
|
+
getWithdrawalWagerSnapshot: {
|
|
1161
|
+
path: '/payment.Payment/getWithdrawalWagerSnapshot',
|
|
1162
|
+
requestStream: false,
|
|
1163
|
+
responseStream: false,
|
|
1164
|
+
requestType: payment_pb.GetWithdrawalWagerSnapshotRequest,
|
|
1165
|
+
responseType: payment_pb.GetWithdrawalWagerSnapshotResponse,
|
|
1166
|
+
requestSerialize: serialize_payment_GetWithdrawalWagerSnapshotRequest,
|
|
1167
|
+
requestDeserialize: deserialize_payment_GetWithdrawalWagerSnapshotRequest,
|
|
1168
|
+
responseSerialize: serialize_payment_GetWithdrawalWagerSnapshotResponse,
|
|
1169
|
+
responseDeserialize: deserialize_payment_GetWithdrawalWagerSnapshotResponse,
|
|
1170
|
+
},
|
|
1138
1171
|
// Segmentation
|
|
1139
1172
|
getSegmentedUsers: {
|
|
1140
1173
|
path: '/payment.Payment/getSegmentedUsers',
|