protobuf-platform 1.2.707 → 1.2.709

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.707",
3
+ "version": "1.2.709",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -70,6 +70,9 @@ service Payment {
70
70
  rpc executeGameplayPrecisionCommand(ExecuteGameplayPrecisionCommandRequest) returns (GameplayPrecisionResult);
71
71
  rpc readGameplayPrecisionBalance(GameplayPrecisionSessionRequest) returns (GameplayPrecisionResult);
72
72
  rpc closeGameplayPrecisionSession(GameplayPrecisionSessionRequest) returns (GameplayPrecisionResult);
73
+ // One synchronous settlement. Reads do not take a durable wallet fence.
74
+ rpc settleGameplay(SettleGameplayRequest) returns (SettleGameplayResponse);
75
+ rpc readGameplaySettlementFact(ReadGameplaySettlementFactRequest) returns (ReadGameplaySettlementFactResponse);
73
76
  //Segmentation
74
77
  rpc getSegmentedUsers(SegmentedUserRequest) returns (SegmentedUserResponse);
75
78
  //Currency source-of-truth
@@ -480,6 +483,11 @@ message AttemptDepositRequest {
480
483
  optional int32 window_width = 49;
481
484
  optional int32 window_height = 50;
482
485
  optional string cvv = 51;
486
+ // Explicit consent to store the submitted card after a confirmed successful deposit.
487
+ // Absence and false do not authorize saving.
488
+ optional bool save_card = 52;
489
+ // Opaque id of a card previously saved for this user and payment method.
490
+ optional string saved_card_id = 53;
483
491
  }
484
492
  message GetDepositRequest {
485
493
  int32 id = 1;
@@ -879,6 +887,14 @@ message UserWalletOperationHistoryItemsResponse {
879
887
  optional int32 total_pages = 2;
880
888
  optional int32 total_items = 3;
881
889
  }
890
+ // Masked saved-card selection metadata. Never carries a full PAN or CVV.
891
+ message SavedDepositCard {
892
+ string saved_card_id = 1;
893
+ string masked_card_number = 2;
894
+ optional string card_holder = 3;
895
+ optional string card_expire_month = 4;
896
+ optional string card_expire_year = 5;
897
+ }
882
898
  //Users
883
899
  message UserPaymentMethodItem {
884
900
  int32 method_id = 1;
@@ -910,6 +926,9 @@ message UserPaymentMethodItem {
910
926
  optional int32 is_popular = 27;
911
927
  optional int32 is_new = 28;
912
928
  optional bool allow_zero_amount = 29;
929
+ // True only when this method configuration allows saving and reusing deposit cards.
930
+ optional bool save_card = 30;
931
+ repeated SavedDepositCard saved_cards = 31;
913
932
  }
914
933
  message UserPaymentMethodsResponse {
915
934
  repeated UserPaymentMethodItem items = 1;
@@ -1550,6 +1569,37 @@ message CashbackClaimCreditRequest {
1550
1569
  // Absent means no wagering obligation. "0" is an explicit unlocked obligation.
1551
1570
  optional string wager_multiplier = 5;
1552
1571
  }
1572
+ // Canonical gameplay settlement. JSON bodies are the existing versioned command,
1573
+ // source, candidate and User RG receipt. Payment recomputes the binding under the wallet lock.
1574
+ message SettleGameplayRequest {
1575
+ uint32 protocol_version = 1;
1576
+ string namespace = 2;
1577
+ string request_id = 3;
1578
+ string command_json = 4;
1579
+ string source_json = 5;
1580
+ string candidate_json = 6;
1581
+ string rg_evidence_json = 7;
1582
+ string attempt_id = 8;
1583
+ }
1584
+ message SettleGameplayResponse {
1585
+ uint32 protocol_version = 1;
1586
+ string decision_id = 2;
1587
+ bool replay = 3;
1588
+ string outcome_json = 4;
1589
+ }
1590
+ message ReadGameplaySettlementFactRequest {
1591
+ uint32 protocol_version = 1;
1592
+ string namespace = 2;
1593
+ string fact = 3;
1594
+ string command_json = 4;
1595
+ string source_json = 5;
1596
+ string key = 6;
1597
+ string requested_debit_minor = 7;
1598
+ string packet_json = 8;
1599
+ }
1600
+ message ReadGameplaySettlementFactResponse {
1601
+ string result_json = 1;
1602
+ }
1553
1603
  message LoyaltyLevelUpRewardResponse {
1554
1604
  string operation_id = 1;
1555
1605
  string operation_public_id = 2;
@@ -961,6 +961,28 @@ function deserialize_payment_ProviderTranslationResponse(buffer_arg) {
961
961
  return payment_pb.ProviderTranslationResponse.deserializeBinary(new Uint8Array(buffer_arg));
962
962
  }
963
963
 
964
+ function serialize_payment_ReadGameplaySettlementFactRequest(arg) {
965
+ if (!(arg instanceof payment_pb.ReadGameplaySettlementFactRequest)) {
966
+ throw new Error('Expected argument of type payment.ReadGameplaySettlementFactRequest');
967
+ }
968
+ return Buffer.from(arg.serializeBinary());
969
+ }
970
+
971
+ function deserialize_payment_ReadGameplaySettlementFactRequest(buffer_arg) {
972
+ return payment_pb.ReadGameplaySettlementFactRequest.deserializeBinary(new Uint8Array(buffer_arg));
973
+ }
974
+
975
+ function serialize_payment_ReadGameplaySettlementFactResponse(arg) {
976
+ if (!(arg instanceof payment_pb.ReadGameplaySettlementFactResponse)) {
977
+ throw new Error('Expected argument of type payment.ReadGameplaySettlementFactResponse');
978
+ }
979
+ return Buffer.from(arg.serializeBinary());
980
+ }
981
+
982
+ function deserialize_payment_ReadGameplaySettlementFactResponse(buffer_arg) {
983
+ return payment_pb.ReadGameplaySettlementFactResponse.deserializeBinary(new Uint8Array(buffer_arg));
984
+ }
985
+
964
986
  function serialize_payment_RegisterGameplayPrecisionSessionRequest(arg) {
965
987
  if (!(arg instanceof payment_pb.RegisterGameplayPrecisionSessionRequest)) {
966
988
  throw new Error('Expected argument of type payment.RegisterGameplayPrecisionSessionRequest');
@@ -1016,6 +1038,28 @@ function deserialize_payment_SegmentedUserResponse(buffer_arg) {
1016
1038
  return payment_pb.SegmentedUserResponse.deserializeBinary(new Uint8Array(buffer_arg));
1017
1039
  }
1018
1040
 
1041
+ function serialize_payment_SettleGameplayRequest(arg) {
1042
+ if (!(arg instanceof payment_pb.SettleGameplayRequest)) {
1043
+ throw new Error('Expected argument of type payment.SettleGameplayRequest');
1044
+ }
1045
+ return Buffer.from(arg.serializeBinary());
1046
+ }
1047
+
1048
+ function deserialize_payment_SettleGameplayRequest(buffer_arg) {
1049
+ return payment_pb.SettleGameplayRequest.deserializeBinary(new Uint8Array(buffer_arg));
1050
+ }
1051
+
1052
+ function serialize_payment_SettleGameplayResponse(arg) {
1053
+ if (!(arg instanceof payment_pb.SettleGameplayResponse)) {
1054
+ throw new Error('Expected argument of type payment.SettleGameplayResponse');
1055
+ }
1056
+ return Buffer.from(arg.serializeBinary());
1057
+ }
1058
+
1059
+ function deserialize_payment_SettleGameplayResponse(buffer_arg) {
1060
+ return payment_pb.SettleGameplayResponse.deserializeBinary(new Uint8Array(buffer_arg));
1061
+ }
1062
+
1019
1063
  function serialize_payment_SyncCurrenciesRequest(arg) {
1020
1064
  if (!(arg instanceof payment_pb.SyncCurrenciesRequest)) {
1021
1065
  throw new Error('Expected argument of type payment.SyncCurrenciesRequest');
@@ -1787,6 +1831,29 @@ registerGameplayPrecisionSession: {
1787
1831
  responseSerialize: serialize_payment_GameplayPrecisionResult,
1788
1832
  responseDeserialize: deserialize_payment_GameplayPrecisionResult,
1789
1833
  },
1834
+ // One synchronous settlement. Reads do not take a durable wallet fence.
1835
+ settleGameplay: {
1836
+ path: '/payment.Payment/settleGameplay',
1837
+ requestStream: false,
1838
+ responseStream: false,
1839
+ requestType: payment_pb.SettleGameplayRequest,
1840
+ responseType: payment_pb.SettleGameplayResponse,
1841
+ requestSerialize: serialize_payment_SettleGameplayRequest,
1842
+ requestDeserialize: deserialize_payment_SettleGameplayRequest,
1843
+ responseSerialize: serialize_payment_SettleGameplayResponse,
1844
+ responseDeserialize: deserialize_payment_SettleGameplayResponse,
1845
+ },
1846
+ readGameplaySettlementFact: {
1847
+ path: '/payment.Payment/readGameplaySettlementFact',
1848
+ requestStream: false,
1849
+ responseStream: false,
1850
+ requestType: payment_pb.ReadGameplaySettlementFactRequest,
1851
+ responseType: payment_pb.ReadGameplaySettlementFactResponse,
1852
+ requestSerialize: serialize_payment_ReadGameplaySettlementFactRequest,
1853
+ requestDeserialize: deserialize_payment_ReadGameplaySettlementFactRequest,
1854
+ responseSerialize: serialize_payment_ReadGameplaySettlementFactResponse,
1855
+ responseDeserialize: deserialize_payment_ReadGameplaySettlementFactResponse,
1856
+ },
1790
1857
  // Segmentation
1791
1858
  getSegmentedUsers: {
1792
1859
  path: '/payment.Payment/getSegmentedUsers',