protobuf-platform 1.2.716 → 1.2.718
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/loyalty/loyalty.proto +61 -1
- package/loyalty/loyalty_grpc_pb.js +122 -0
- package/loyalty/loyalty_pb.js +2331 -0
- package/package.json +1 -1
- package/payment/payment.proto +62 -0
- package/payment/payment_grpc_pb.js +123 -0
- package/payment/payment_pb.js +2165 -3
- package/scripts/verify-wallet-selection.js +20 -0
- package/user/user.proto +11 -0
- package/user/user_grpc_pb.js +33 -0
- package/user/user_pb.js +499 -3
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
|
@@ -3,6 +3,11 @@ syntax = "proto3";
|
|
|
3
3
|
package payment;
|
|
4
4
|
|
|
5
5
|
service Payment {
|
|
6
|
+
// Internal monetary authorization; only SQL-owned wallets are supported.
|
|
7
|
+
rpc reserveRealFunds(ReserveRealFundsRequest) returns (MonetaryReservationResponse);
|
|
8
|
+
rpc captureMonetaryReservation(CaptureMonetaryReservationRequest) returns (MonetaryReservationResponse);
|
|
9
|
+
rpc releaseMonetaryReservation(MonetaryReservationIdentityRequest) returns (MonetaryReservationResponse);
|
|
10
|
+
rpc getAvailableRealBalance(AvailableRealBalanceRequest) returns (AvailableRealBalanceResponse);
|
|
6
11
|
// Independent, idempotent real-money level completion grant.
|
|
7
12
|
rpc grantLoyaltyLevelUpReward(LoyaltyLevelUpRewardRequest) returns (LoyaltyLevelUpRewardResponse);
|
|
8
13
|
rpc creditCashbackClaim(CashbackClaimCreditRequest) returns (LoyaltyLevelUpRewardResponse);
|
|
@@ -67,6 +72,8 @@ service Payment {
|
|
|
67
72
|
rpc getUserCashbackPaymentOperands(GetUserCashbackPaymentOperandsRequest) returns (GetUserCashbackPaymentOperandsResponse);
|
|
68
73
|
rpc getUserFinancialSummary(GetUserFinancialSummaryRequest) returns (GetUserFinancialSummaryResponse);
|
|
69
74
|
rpc resolveGameWalletContext(ResolveGameWalletContextRequest) returns (ResolveGameWalletContextResponse);
|
|
75
|
+
// Capability boundary: old servers cannot silently ignore wallet-selection safety flags.
|
|
76
|
+
rpc selectWalletContext(ResolveGameWalletContextRequest) returns (ResolveGameWalletContextResponse);
|
|
70
77
|
// Opt-in, commit-confirmed cross-currency gameplay. Legacy RPCs are unchanged.
|
|
71
78
|
rpc registerGameplayPrecisionSession(RegisterGameplayPrecisionSessionRequest) returns (GameplayPrecisionResult);
|
|
72
79
|
rpc executeGameplayPrecisionCommand(ExecuteGameplayPrecisionCommandRequest) returns (GameplayPrecisionResult);
|
|
@@ -102,6 +109,48 @@ service Payment {
|
|
|
102
109
|
// RTP wallet-operation history. Additive; does not change userPaymentHistory.
|
|
103
110
|
rpc userWalletOperationHistory(GetUserPaymentsInfoRequest) returns (UserWalletOperationHistoryItemsResponse);
|
|
104
111
|
}
|
|
112
|
+
|
|
113
|
+
message ReserveRealFundsRequest {
|
|
114
|
+
string identity = 1;
|
|
115
|
+
string user_id = 2;
|
|
116
|
+
string currency = 3;
|
|
117
|
+
string amount_minor = 4;
|
|
118
|
+
string purpose = 5;
|
|
119
|
+
optional string source = 6;
|
|
120
|
+
}
|
|
121
|
+
message MonetaryReservationIdentityRequest { string identity = 1; }
|
|
122
|
+
message CaptureMonetaryReservationRequest {
|
|
123
|
+
string identity = 1;
|
|
124
|
+
string account_type = 2;
|
|
125
|
+
string operation_type = 3;
|
|
126
|
+
string reason = 4;
|
|
127
|
+
}
|
|
128
|
+
message AvailableRealBalanceRequest {
|
|
129
|
+
string user_id = 1;
|
|
130
|
+
string currency = 2;
|
|
131
|
+
}
|
|
132
|
+
message AvailableRealBalanceResponse {
|
|
133
|
+
string currency = 1;
|
|
134
|
+
int32 currency_scale = 2;
|
|
135
|
+
string booked_minor = 3;
|
|
136
|
+
string reserved_minor = 4;
|
|
137
|
+
string available_minor = 5;
|
|
138
|
+
string remainder_numerator = 6;
|
|
139
|
+
string remainder_denominator = 7;
|
|
140
|
+
}
|
|
141
|
+
message MonetaryReservationResponse {
|
|
142
|
+
string identity = 1;
|
|
143
|
+
string outcome = 2;
|
|
144
|
+
string currency = 3;
|
|
145
|
+
int32 currency_scale = 4;
|
|
146
|
+
string amount_minor = 5;
|
|
147
|
+
string available_minor = 6;
|
|
148
|
+
string remainder_numerator = 7;
|
|
149
|
+
string remainder_denominator = 8;
|
|
150
|
+
optional string operation_id = 9;
|
|
151
|
+
optional string snapshot_event_id = 10;
|
|
152
|
+
bool replay = 11;
|
|
153
|
+
}
|
|
105
154
|
//Technical
|
|
106
155
|
message PingRequest { string ping = 1; }
|
|
107
156
|
message PongResponse { string pong = 1; }
|
|
@@ -1094,6 +1143,10 @@ message ResolveGameWalletContextRequest {
|
|
|
1094
1143
|
optional bool include_bonus_balance = 3;
|
|
1095
1144
|
// Explicit setup opt-in; never implies automatic enrollment of existing callers.
|
|
1096
1145
|
optional bool prepare_financial_admission = 4;
|
|
1146
|
+
// Explicit preference is distinct from an immutable requested financial currency.
|
|
1147
|
+
optional string preferred_wallet_currency = 5;
|
|
1148
|
+
// Validate an actual wallet without creating one (including empty wallets).
|
|
1149
|
+
optional bool existing_wallet_only = 6;
|
|
1097
1150
|
}
|
|
1098
1151
|
message ResolveGameWalletContextResponse {
|
|
1099
1152
|
int32 user_id = 1;
|
|
@@ -1104,6 +1157,15 @@ message ResolveGameWalletContextResponse {
|
|
|
1104
1157
|
// Exact minor units in wallet_currency. Absent means unavailable; "0" is confirmed zero.
|
|
1105
1158
|
optional string bonus_balance_minor = 6;
|
|
1106
1159
|
optional FinancialAdmissionWalletContext financial_admission = 7;
|
|
1160
|
+
// Cash ledger less active monetary reservations; absent on older servers.
|
|
1161
|
+
optional string available_real_minor = 8;
|
|
1162
|
+
repeated WalletCashBalanceItem wallets = 9;
|
|
1163
|
+
}
|
|
1164
|
+
message WalletCashBalanceItem {
|
|
1165
|
+
string currency = 1;
|
|
1166
|
+
int32 currency_scale = 2;
|
|
1167
|
+
string balance_minor = 3;
|
|
1168
|
+
string available_real_minor = 4;
|
|
1107
1169
|
}
|
|
1108
1170
|
message FinancialAdmissionWalletContext {
|
|
1109
1171
|
uint32 protocol_version = 1;
|
|
@@ -48,6 +48,28 @@ function deserialize_payment_AttemptWithdrawalRequest(buffer_arg) {
|
|
|
48
48
|
return payment_pb.AttemptWithdrawalRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
function serialize_payment_AvailableRealBalanceRequest(arg) {
|
|
52
|
+
if (!(arg instanceof payment_pb.AvailableRealBalanceRequest)) {
|
|
53
|
+
throw new Error('Expected argument of type payment.AvailableRealBalanceRequest');
|
|
54
|
+
}
|
|
55
|
+
return Buffer.from(arg.serializeBinary());
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function deserialize_payment_AvailableRealBalanceRequest(buffer_arg) {
|
|
59
|
+
return payment_pb.AvailableRealBalanceRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function serialize_payment_AvailableRealBalanceResponse(arg) {
|
|
63
|
+
if (!(arg instanceof payment_pb.AvailableRealBalanceResponse)) {
|
|
64
|
+
throw new Error('Expected argument of type payment.AvailableRealBalanceResponse');
|
|
65
|
+
}
|
|
66
|
+
return Buffer.from(arg.serializeBinary());
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function deserialize_payment_AvailableRealBalanceResponse(buffer_arg) {
|
|
70
|
+
return payment_pb.AvailableRealBalanceResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
71
|
+
}
|
|
72
|
+
|
|
51
73
|
function serialize_payment_BonusBalanceRewardIssueRequest(arg) {
|
|
52
74
|
if (!(arg instanceof payment_pb.BonusBalanceRewardIssueRequest)) {
|
|
53
75
|
throw new Error('Expected argument of type payment.BonusBalanceRewardIssueRequest');
|
|
@@ -81,6 +103,17 @@ function deserialize_payment_BonusBalanceRewardReversalRequest(buffer_arg) {
|
|
|
81
103
|
return payment_pb.BonusBalanceRewardReversalRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
82
104
|
}
|
|
83
105
|
|
|
106
|
+
function serialize_payment_CaptureMonetaryReservationRequest(arg) {
|
|
107
|
+
if (!(arg instanceof payment_pb.CaptureMonetaryReservationRequest)) {
|
|
108
|
+
throw new Error('Expected argument of type payment.CaptureMonetaryReservationRequest');
|
|
109
|
+
}
|
|
110
|
+
return Buffer.from(arg.serializeBinary());
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
function deserialize_payment_CaptureMonetaryReservationRequest(buffer_arg) {
|
|
114
|
+
return payment_pb.CaptureMonetaryReservationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
115
|
+
}
|
|
116
|
+
|
|
84
117
|
function serialize_payment_CashbackClaimCreditRequest(arg) {
|
|
85
118
|
if (!(arg instanceof payment_pb.CashbackClaimCreditRequest)) {
|
|
86
119
|
throw new Error('Expected argument of type payment.CashbackClaimCreditRequest');
|
|
@@ -730,6 +763,28 @@ function deserialize_payment_MethodResponse(buffer_arg) {
|
|
|
730
763
|
return payment_pb.MethodResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
731
764
|
}
|
|
732
765
|
|
|
766
|
+
function serialize_payment_MonetaryReservationIdentityRequest(arg) {
|
|
767
|
+
if (!(arg instanceof payment_pb.MonetaryReservationIdentityRequest)) {
|
|
768
|
+
throw new Error('Expected argument of type payment.MonetaryReservationIdentityRequest');
|
|
769
|
+
}
|
|
770
|
+
return Buffer.from(arg.serializeBinary());
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
function deserialize_payment_MonetaryReservationIdentityRequest(buffer_arg) {
|
|
774
|
+
return payment_pb.MonetaryReservationIdentityRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
function serialize_payment_MonetaryReservationResponse(arg) {
|
|
778
|
+
if (!(arg instanceof payment_pb.MonetaryReservationResponse)) {
|
|
779
|
+
throw new Error('Expected argument of type payment.MonetaryReservationResponse');
|
|
780
|
+
}
|
|
781
|
+
return Buffer.from(arg.serializeBinary());
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
function deserialize_payment_MonetaryReservationResponse(buffer_arg) {
|
|
785
|
+
return payment_pb.MonetaryReservationResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
786
|
+
}
|
|
787
|
+
|
|
733
788
|
function serialize_payment_OperationDetailsResponse(arg) {
|
|
734
789
|
if (!(arg instanceof payment_pb.OperationDetailsResponse)) {
|
|
735
790
|
throw new Error('Expected argument of type payment.OperationDetailsResponse');
|
|
@@ -1005,6 +1060,17 @@ function deserialize_payment_RegisterGameplayPrecisionSessionRequest(buffer_arg)
|
|
|
1005
1060
|
return payment_pb.RegisterGameplayPrecisionSessionRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1006
1061
|
}
|
|
1007
1062
|
|
|
1063
|
+
function serialize_payment_ReserveRealFundsRequest(arg) {
|
|
1064
|
+
if (!(arg instanceof payment_pb.ReserveRealFundsRequest)) {
|
|
1065
|
+
throw new Error('Expected argument of type payment.ReserveRealFundsRequest');
|
|
1066
|
+
}
|
|
1067
|
+
return Buffer.from(arg.serializeBinary());
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
function deserialize_payment_ReserveRealFundsRequest(buffer_arg) {
|
|
1071
|
+
return payment_pb.ReserveRealFundsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1008
1074
|
function serialize_payment_ResolveGameWalletContextRequest(arg) {
|
|
1009
1075
|
if (!(arg instanceof payment_pb.ResolveGameWalletContextRequest)) {
|
|
1010
1076
|
throw new Error('Expected argument of type payment.ResolveGameWalletContextRequest');
|
|
@@ -1205,6 +1271,51 @@ function deserialize_payment_WithdrawalWebHookRequest(buffer_arg) {
|
|
|
1205
1271
|
|
|
1206
1272
|
|
|
1207
1273
|
var PaymentService = exports.PaymentService = {
|
|
1274
|
+
// Internal monetary authorization; only SQL-owned wallets are supported.
|
|
1275
|
+
reserveRealFunds: {
|
|
1276
|
+
path: '/payment.Payment/reserveRealFunds',
|
|
1277
|
+
requestStream: false,
|
|
1278
|
+
responseStream: false,
|
|
1279
|
+
requestType: payment_pb.ReserveRealFundsRequest,
|
|
1280
|
+
responseType: payment_pb.MonetaryReservationResponse,
|
|
1281
|
+
requestSerialize: serialize_payment_ReserveRealFundsRequest,
|
|
1282
|
+
requestDeserialize: deserialize_payment_ReserveRealFundsRequest,
|
|
1283
|
+
responseSerialize: serialize_payment_MonetaryReservationResponse,
|
|
1284
|
+
responseDeserialize: deserialize_payment_MonetaryReservationResponse,
|
|
1285
|
+
},
|
|
1286
|
+
captureMonetaryReservation: {
|
|
1287
|
+
path: '/payment.Payment/captureMonetaryReservation',
|
|
1288
|
+
requestStream: false,
|
|
1289
|
+
responseStream: false,
|
|
1290
|
+
requestType: payment_pb.CaptureMonetaryReservationRequest,
|
|
1291
|
+
responseType: payment_pb.MonetaryReservationResponse,
|
|
1292
|
+
requestSerialize: serialize_payment_CaptureMonetaryReservationRequest,
|
|
1293
|
+
requestDeserialize: deserialize_payment_CaptureMonetaryReservationRequest,
|
|
1294
|
+
responseSerialize: serialize_payment_MonetaryReservationResponse,
|
|
1295
|
+
responseDeserialize: deserialize_payment_MonetaryReservationResponse,
|
|
1296
|
+
},
|
|
1297
|
+
releaseMonetaryReservation: {
|
|
1298
|
+
path: '/payment.Payment/releaseMonetaryReservation',
|
|
1299
|
+
requestStream: false,
|
|
1300
|
+
responseStream: false,
|
|
1301
|
+
requestType: payment_pb.MonetaryReservationIdentityRequest,
|
|
1302
|
+
responseType: payment_pb.MonetaryReservationResponse,
|
|
1303
|
+
requestSerialize: serialize_payment_MonetaryReservationIdentityRequest,
|
|
1304
|
+
requestDeserialize: deserialize_payment_MonetaryReservationIdentityRequest,
|
|
1305
|
+
responseSerialize: serialize_payment_MonetaryReservationResponse,
|
|
1306
|
+
responseDeserialize: deserialize_payment_MonetaryReservationResponse,
|
|
1307
|
+
},
|
|
1308
|
+
getAvailableRealBalance: {
|
|
1309
|
+
path: '/payment.Payment/getAvailableRealBalance',
|
|
1310
|
+
requestStream: false,
|
|
1311
|
+
responseStream: false,
|
|
1312
|
+
requestType: payment_pb.AvailableRealBalanceRequest,
|
|
1313
|
+
responseType: payment_pb.AvailableRealBalanceResponse,
|
|
1314
|
+
requestSerialize: serialize_payment_AvailableRealBalanceRequest,
|
|
1315
|
+
requestDeserialize: deserialize_payment_AvailableRealBalanceRequest,
|
|
1316
|
+
responseSerialize: serialize_payment_AvailableRealBalanceResponse,
|
|
1317
|
+
responseDeserialize: deserialize_payment_AvailableRealBalanceResponse,
|
|
1318
|
+
},
|
|
1208
1319
|
// Independent, idempotent real-money level completion grant.
|
|
1209
1320
|
grantLoyaltyLevelUpReward: {
|
|
1210
1321
|
path: '/payment.Payment/grantLoyaltyLevelUpReward',
|
|
@@ -1809,6 +1920,18 @@ deleteSavedDepositCard: {
|
|
|
1809
1920
|
responseSerialize: serialize_payment_ResolveGameWalletContextResponse,
|
|
1810
1921
|
responseDeserialize: deserialize_payment_ResolveGameWalletContextResponse,
|
|
1811
1922
|
},
|
|
1923
|
+
// Capability boundary: old servers cannot silently ignore wallet-selection safety flags.
|
|
1924
|
+
selectWalletContext: {
|
|
1925
|
+
path: '/payment.Payment/selectWalletContext',
|
|
1926
|
+
requestStream: false,
|
|
1927
|
+
responseStream: false,
|
|
1928
|
+
requestType: payment_pb.ResolveGameWalletContextRequest,
|
|
1929
|
+
responseType: payment_pb.ResolveGameWalletContextResponse,
|
|
1930
|
+
requestSerialize: serialize_payment_ResolveGameWalletContextRequest,
|
|
1931
|
+
requestDeserialize: deserialize_payment_ResolveGameWalletContextRequest,
|
|
1932
|
+
responseSerialize: serialize_payment_ResolveGameWalletContextResponse,
|
|
1933
|
+
responseDeserialize: deserialize_payment_ResolveGameWalletContextResponse,
|
|
1934
|
+
},
|
|
1812
1935
|
// Opt-in, commit-confirmed cross-currency gameplay. Legacy RPCs are unchanged.
|
|
1813
1936
|
registerGameplayPrecisionSession: {
|
|
1814
1937
|
path: '/payment.Payment/registerGameplayPrecisionSession',
|