protobuf-platform 1.2.505 → 1.2.508
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 +4 -0
- package/bonus/bonus_pb.js +97 -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 +21 -0
- package/payment/payment_grpc_pb.js +33 -0
- package/payment/payment_pb.js +610 -0
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
|
@@ -56,6 +56,7 @@ service Payment {
|
|
|
56
56
|
rpc checkWithdrawalEligibility(CheckWithdrawalEligibilityRequest) returns (CheckWithdrawalEligibilityResponse);
|
|
57
57
|
rpc getWithdrawalWagerBucketHistory(GetWithdrawalWagerBucketHistoryRequest) returns (GetWithdrawalWagerBucketHistoryResponse);
|
|
58
58
|
rpc getUserKycFinancialSnapshot(GetUserKycFinancialSnapshotRequest) returns (GetUserKycFinancialSnapshotResponse);
|
|
59
|
+
rpc getUserCashbackPaymentOperands(GetUserCashbackPaymentOperandsRequest) returns (GetUserCashbackPaymentOperandsResponse);
|
|
59
60
|
//Segmentation
|
|
60
61
|
rpc getSegmentedUsers(SegmentedUserRequest) returns (SegmentedUserResponse);
|
|
61
62
|
//Currency source-of-truth
|
|
@@ -797,6 +798,26 @@ message GetUserKycFinancialSnapshotResponse {
|
|
|
797
798
|
int64 completed_withdrawal_amount_minor = 6;
|
|
798
799
|
int32 completed_withdrawal_count = 7;
|
|
799
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
|
+
}
|
|
800
821
|
//Segmentation
|
|
801
822
|
message SegmentedUserRequest {
|
|
802
823
|
optional float deposit_amount_min = 1;
|
|
@@ -356,6 +356,28 @@ function deserialize_payment_GetProviderTranslationRequest(buffer_arg) {
|
|
|
356
356
|
return payment_pb.GetProviderTranslationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
357
357
|
}
|
|
358
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
|
+
|
|
359
381
|
function serialize_payment_GetUserDepositCountRequest(arg) {
|
|
360
382
|
if (!(arg instanceof payment_pb.GetUserDepositCountRequest)) {
|
|
361
383
|
throw new Error('Expected argument of type payment.GetUserDepositCountRequest');
|
|
@@ -1345,6 +1367,17 @@ userPaymentsInfo: {
|
|
|
1345
1367
|
responseSerialize: serialize_payment_GetUserKycFinancialSnapshotResponse,
|
|
1346
1368
|
responseDeserialize: deserialize_payment_GetUserKycFinancialSnapshotResponse,
|
|
1347
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
|
+
},
|
|
1348
1381
|
// Segmentation
|
|
1349
1382
|
getSegmentedUsers: {
|
|
1350
1383
|
path: '/payment.Payment/getSegmentedUsers',
|