protobuf-platform 1.2.447 → 1.2.449

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.447",
3
+ "version": "1.2.449",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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 getWithdrawalWagerBucketHistory(GetWithdrawalWagerBucketHistoryRequest) returns (GetWithdrawalWagerBucketHistoryResponse);
54
55
  rpc getUserKycFinancialSnapshot(GetUserKycFinancialSnapshotRequest) returns (GetUserKycFinancialSnapshotResponse);
55
56
  //Segmentation
56
57
  rpc getSegmentedUsers(SegmentedUserRequest) returns (SegmentedUserResponse);
@@ -678,6 +679,39 @@ message GetWithdrawalWagerSnapshotResponse {
678
679
  int32 active_locked_buckets_count = 8;
679
680
  repeated WithdrawalWagerLockedBucketItem active_locked_buckets = 9;
680
681
  }
682
+ message GetWithdrawalWagerBucketHistoryRequest {
683
+ int32 user_id = 1;
684
+ optional string currency = 2;
685
+ optional string status = 3;
686
+ optional int32 page = 4;
687
+ optional int32 limit = 5;
688
+ }
689
+ message WithdrawalWagerBucketHistoryItem {
690
+ string bucket_id = 1;
691
+ string operation_id = 2;
692
+ string source_type = 3;
693
+ string source_id = 4;
694
+ string status = 5;
695
+ int64 wager_amount_minor = 6;
696
+ string wager_currency = 7;
697
+ int32 wager_currency_scale = 8;
698
+ int64 ledger_amount_minor = 9;
699
+ string ledger_currency = 10;
700
+ int32 ledger_currency_scale = 11;
701
+ string multiplier = 12;
702
+ int64 required_wager_minor = 13;
703
+ int64 completed_wager_minor = 14;
704
+ int64 remaining_wager_minor = 15;
705
+ string progress_percent = 16;
706
+ optional string deposit_processed_at = 17;
707
+ string bucket_created_at = 18;
708
+ optional string unlocked_at = 19;
709
+ }
710
+ message GetWithdrawalWagerBucketHistoryResponse {
711
+ repeated WithdrawalWagerBucketHistoryItem items = 1;
712
+ optional int32 total_pages = 2;
713
+ optional int32 total_items = 3;
714
+ }
681
715
  message GetUserKycFinancialSnapshotRequest {
682
716
  int32 user_id = 1;
683
717
  string currency = 2;
@@ -345,6 +345,28 @@ function deserialize_payment_GetWithdrawalRequest(buffer_arg) {
345
345
  return payment_pb.GetWithdrawalRequest.deserializeBinary(new Uint8Array(buffer_arg));
346
346
  }
347
347
 
348
+ function serialize_payment_GetWithdrawalWagerBucketHistoryRequest(arg) {
349
+ if (!(arg instanceof payment_pb.GetWithdrawalWagerBucketHistoryRequest)) {
350
+ throw new Error('Expected argument of type payment.GetWithdrawalWagerBucketHistoryRequest');
351
+ }
352
+ return Buffer.from(arg.serializeBinary());
353
+ }
354
+
355
+ function deserialize_payment_GetWithdrawalWagerBucketHistoryRequest(buffer_arg) {
356
+ return payment_pb.GetWithdrawalWagerBucketHistoryRequest.deserializeBinary(new Uint8Array(buffer_arg));
357
+ }
358
+
359
+ function serialize_payment_GetWithdrawalWagerBucketHistoryResponse(arg) {
360
+ if (!(arg instanceof payment_pb.GetWithdrawalWagerBucketHistoryResponse)) {
361
+ throw new Error('Expected argument of type payment.GetWithdrawalWagerBucketHistoryResponse');
362
+ }
363
+ return Buffer.from(arg.serializeBinary());
364
+ }
365
+
366
+ function deserialize_payment_GetWithdrawalWagerBucketHistoryResponse(buffer_arg) {
367
+ return payment_pb.GetWithdrawalWagerBucketHistoryResponse.deserializeBinary(new Uint8Array(buffer_arg));
368
+ }
369
+
348
370
  function serialize_payment_GetWithdrawalWagerSnapshotRequest(arg) {
349
371
  if (!(arg instanceof payment_pb.GetWithdrawalWagerSnapshotRequest)) {
350
372
  throw new Error('Expected argument of type payment.GetWithdrawalWagerSnapshotRequest');
@@ -1190,6 +1212,17 @@ userPaymentsInfo: {
1190
1212
  responseSerialize: serialize_payment_GetWithdrawalWagerSnapshotResponse,
1191
1213
  responseDeserialize: deserialize_payment_GetWithdrawalWagerSnapshotResponse,
1192
1214
  },
1215
+ getWithdrawalWagerBucketHistory: {
1216
+ path: '/payment.Payment/getWithdrawalWagerBucketHistory',
1217
+ requestStream: false,
1218
+ responseStream: false,
1219
+ requestType: payment_pb.GetWithdrawalWagerBucketHistoryRequest,
1220
+ responseType: payment_pb.GetWithdrawalWagerBucketHistoryResponse,
1221
+ requestSerialize: serialize_payment_GetWithdrawalWagerBucketHistoryRequest,
1222
+ requestDeserialize: deserialize_payment_GetWithdrawalWagerBucketHistoryRequest,
1223
+ responseSerialize: serialize_payment_GetWithdrawalWagerBucketHistoryResponse,
1224
+ responseDeserialize: deserialize_payment_GetWithdrawalWagerBucketHistoryResponse,
1225
+ },
1193
1226
  getUserKycFinancialSnapshot: {
1194
1227
  path: '/payment.Payment/getUserKycFinancialSnapshot',
1195
1228
  requestStream: false,