protobuf-platform 1.2.501 → 1.2.504
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 +16 -0
- package/payment/payment_grpc_pb.js +33 -0
- package/payment/payment_pb.js +702 -2
- package/user/user.proto +35 -0
- package/user/user_grpc_pb.js +33 -0
- package/user/user_pb.js +1414 -0
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
|
@@ -51,6 +51,7 @@ service Payment {
|
|
|
51
51
|
rpc getPaymentMethodsForUser(GetUserPaymentsInfoRequest) returns (UserPaymentMethodsResponse);
|
|
52
52
|
rpc checkFastDeposit(CheckFastDepositRequest) returns (CheckFastDepositResponse);
|
|
53
53
|
rpc getWithdrawalWagerSnapshot(GetWithdrawalWagerSnapshotRequest) returns (GetWithdrawalWagerSnapshotResponse);
|
|
54
|
+
rpc checkWithdrawalEligibility(CheckWithdrawalEligibilityRequest) returns (CheckWithdrawalEligibilityResponse);
|
|
54
55
|
rpc getWithdrawalWagerBucketHistory(GetWithdrawalWagerBucketHistoryRequest) returns (GetWithdrawalWagerBucketHistoryResponse);
|
|
55
56
|
rpc getUserKycFinancialSnapshot(GetUserKycFinancialSnapshotRequest) returns (GetUserKycFinancialSnapshotResponse);
|
|
56
57
|
//Segmentation
|
|
@@ -360,6 +361,7 @@ message AttemptDepositRequest {
|
|
|
360
361
|
optional string ifsc = 44;
|
|
361
362
|
optional string crypto_wallet = 45;
|
|
362
363
|
optional string request_currency = 46;
|
|
364
|
+
optional string antifraud_session = 47;
|
|
363
365
|
}
|
|
364
366
|
message GetDepositRequest {
|
|
365
367
|
int32 id = 1;
|
|
@@ -468,6 +470,8 @@ message AttemptWithdrawalRequest {
|
|
|
468
470
|
optional string ifsc = 37;
|
|
469
471
|
optional string crypto_wallet = 38;
|
|
470
472
|
optional string request_currency = 39;
|
|
473
|
+
optional string antifraud_session = 40;
|
|
474
|
+
optional string user_agent = 41;
|
|
471
475
|
}
|
|
472
476
|
message GetWithdrawalRequest {
|
|
473
477
|
int32 id = 1;
|
|
@@ -685,6 +689,18 @@ message CheckFastDepositRequest {
|
|
|
685
689
|
message CheckFastDepositResponse {
|
|
686
690
|
UserPaymentMethodItem method = 1;
|
|
687
691
|
}
|
|
692
|
+
message CheckWithdrawalEligibilityRequest {
|
|
693
|
+
int32 user_id = 1;
|
|
694
|
+
string currency = 2;
|
|
695
|
+
string amount = 3;
|
|
696
|
+
}
|
|
697
|
+
message CheckWithdrawalEligibilityResponse {
|
|
698
|
+
bool allowed = 1;
|
|
699
|
+
optional string reason = 2;
|
|
700
|
+
optional int64 available_real_minor = 3;
|
|
701
|
+
optional string currency = 4;
|
|
702
|
+
optional int32 currency_scale = 5;
|
|
703
|
+
}
|
|
688
704
|
message GetWithdrawalWagerSnapshotRequest {
|
|
689
705
|
int32 user_id = 1;
|
|
690
706
|
optional string currency = 2;
|
|
@@ -70,6 +70,28 @@ function deserialize_payment_CheckFastDepositResponse(buffer_arg) {
|
|
|
70
70
|
return payment_pb.CheckFastDepositResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
function serialize_payment_CheckWithdrawalEligibilityRequest(arg) {
|
|
74
|
+
if (!(arg instanceof payment_pb.CheckWithdrawalEligibilityRequest)) {
|
|
75
|
+
throw new Error('Expected argument of type payment.CheckWithdrawalEligibilityRequest');
|
|
76
|
+
}
|
|
77
|
+
return Buffer.from(arg.serializeBinary());
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
function deserialize_payment_CheckWithdrawalEligibilityRequest(buffer_arg) {
|
|
81
|
+
return payment_pb.CheckWithdrawalEligibilityRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function serialize_payment_CheckWithdrawalEligibilityResponse(arg) {
|
|
85
|
+
if (!(arg instanceof payment_pb.CheckWithdrawalEligibilityResponse)) {
|
|
86
|
+
throw new Error('Expected argument of type payment.CheckWithdrawalEligibilityResponse');
|
|
87
|
+
}
|
|
88
|
+
return Buffer.from(arg.serializeBinary());
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function deserialize_payment_CheckWithdrawalEligibilityResponse(buffer_arg) {
|
|
92
|
+
return payment_pb.CheckWithdrawalEligibilityResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
93
|
+
}
|
|
94
|
+
|
|
73
95
|
function serialize_payment_CompensationRequest(arg) {
|
|
74
96
|
if (!(arg instanceof payment_pb.CompensationRequest)) {
|
|
75
97
|
throw new Error('Expected argument of type payment.CompensationRequest');
|
|
@@ -1256,6 +1278,17 @@ userPaymentsInfo: {
|
|
|
1256
1278
|
responseSerialize: serialize_payment_GetWithdrawalWagerSnapshotResponse,
|
|
1257
1279
|
responseDeserialize: deserialize_payment_GetWithdrawalWagerSnapshotResponse,
|
|
1258
1280
|
},
|
|
1281
|
+
checkWithdrawalEligibility: {
|
|
1282
|
+
path: '/payment.Payment/checkWithdrawalEligibility',
|
|
1283
|
+
requestStream: false,
|
|
1284
|
+
responseStream: false,
|
|
1285
|
+
requestType: payment_pb.CheckWithdrawalEligibilityRequest,
|
|
1286
|
+
responseType: payment_pb.CheckWithdrawalEligibilityResponse,
|
|
1287
|
+
requestSerialize: serialize_payment_CheckWithdrawalEligibilityRequest,
|
|
1288
|
+
requestDeserialize: deserialize_payment_CheckWithdrawalEligibilityRequest,
|
|
1289
|
+
responseSerialize: serialize_payment_CheckWithdrawalEligibilityResponse,
|
|
1290
|
+
responseDeserialize: deserialize_payment_CheckWithdrawalEligibilityResponse,
|
|
1291
|
+
},
|
|
1259
1292
|
getWithdrawalWagerBucketHistory: {
|
|
1260
1293
|
path: '/payment.Payment/getWithdrawalWagerBucketHistory',
|
|
1261
1294
|
requestStream: false,
|