protobuf-platform 1.2.716 → 1.2.717
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 +47 -0
- package/payment/payment_grpc_pb.js +111 -0
- package/payment/payment_pb.js +1716 -0
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);
|
|
@@ -102,6 +107,48 @@ service Payment {
|
|
|
102
107
|
// RTP wallet-operation history. Additive; does not change userPaymentHistory.
|
|
103
108
|
rpc userWalletOperationHistory(GetUserPaymentsInfoRequest) returns (UserWalletOperationHistoryItemsResponse);
|
|
104
109
|
}
|
|
110
|
+
|
|
111
|
+
message ReserveRealFundsRequest {
|
|
112
|
+
string identity = 1;
|
|
113
|
+
string user_id = 2;
|
|
114
|
+
string currency = 3;
|
|
115
|
+
string amount_minor = 4;
|
|
116
|
+
string purpose = 5;
|
|
117
|
+
optional string source = 6;
|
|
118
|
+
}
|
|
119
|
+
message MonetaryReservationIdentityRequest { string identity = 1; }
|
|
120
|
+
message CaptureMonetaryReservationRequest {
|
|
121
|
+
string identity = 1;
|
|
122
|
+
string account_type = 2;
|
|
123
|
+
string operation_type = 3;
|
|
124
|
+
string reason = 4;
|
|
125
|
+
}
|
|
126
|
+
message AvailableRealBalanceRequest {
|
|
127
|
+
string user_id = 1;
|
|
128
|
+
string currency = 2;
|
|
129
|
+
}
|
|
130
|
+
message AvailableRealBalanceResponse {
|
|
131
|
+
string currency = 1;
|
|
132
|
+
int32 currency_scale = 2;
|
|
133
|
+
string booked_minor = 3;
|
|
134
|
+
string reserved_minor = 4;
|
|
135
|
+
string available_minor = 5;
|
|
136
|
+
string remainder_numerator = 6;
|
|
137
|
+
string remainder_denominator = 7;
|
|
138
|
+
}
|
|
139
|
+
message MonetaryReservationResponse {
|
|
140
|
+
string identity = 1;
|
|
141
|
+
string outcome = 2;
|
|
142
|
+
string currency = 3;
|
|
143
|
+
int32 currency_scale = 4;
|
|
144
|
+
string amount_minor = 5;
|
|
145
|
+
string available_minor = 6;
|
|
146
|
+
string remainder_numerator = 7;
|
|
147
|
+
string remainder_denominator = 8;
|
|
148
|
+
optional string operation_id = 9;
|
|
149
|
+
optional string snapshot_event_id = 10;
|
|
150
|
+
bool replay = 11;
|
|
151
|
+
}
|
|
105
152
|
//Technical
|
|
106
153
|
message PingRequest { string ping = 1; }
|
|
107
154
|
message PongResponse { string pong = 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',
|