protobuf-platform 1.2.701 → 1.2.703
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 +2 -0
- package/loyalty/loyalty_pb.js +49 -1
- package/package.json +1 -1
- package/payment/payment.proto +48 -0
- package/payment/payment_grpc_pb.js +23 -0
- package/payment/payment_pb.js +2432 -368
package/loyalty/loyalty.proto
CHANGED
|
@@ -101,6 +101,8 @@ message LevelRewardTranslationItem {
|
|
|
101
101
|
message LevelRewardCashback {
|
|
102
102
|
optional float percentage = 1;
|
|
103
103
|
optional string currency = 2;
|
|
104
|
+
// Exact decimal percentage. Authoritative when present. Field 1 remains for older clients.
|
|
105
|
+
optional string percentage_decimal = 3;
|
|
104
106
|
}
|
|
105
107
|
message LevelRewardBonusReward {
|
|
106
108
|
string type = 1;
|
package/loyalty/loyalty_pb.js
CHANGED
|
@@ -4237,7 +4237,8 @@ proto.loyalty.LevelRewardCashback.prototype.toObject = function(opt_includeInsta
|
|
|
4237
4237
|
proto.loyalty.LevelRewardCashback.toObject = function(includeInstance, msg) {
|
|
4238
4238
|
var f, obj = {
|
|
4239
4239
|
percentage: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
|
|
4240
|
-
currency: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
4240
|
+
currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4241
|
+
percentageDecimal: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
4241
4242
|
};
|
|
4242
4243
|
|
|
4243
4244
|
if (includeInstance) {
|
|
@@ -4282,6 +4283,10 @@ proto.loyalty.LevelRewardCashback.deserializeBinaryFromReader = function(msg, re
|
|
|
4282
4283
|
var value = /** @type {string} */ (reader.readString());
|
|
4283
4284
|
msg.setCurrency(value);
|
|
4284
4285
|
break;
|
|
4286
|
+
case 3:
|
|
4287
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4288
|
+
msg.setPercentageDecimal(value);
|
|
4289
|
+
break;
|
|
4285
4290
|
default:
|
|
4286
4291
|
reader.skipField();
|
|
4287
4292
|
break;
|
|
@@ -4325,6 +4330,13 @@ proto.loyalty.LevelRewardCashback.serializeBinaryToWriter = function(message, wr
|
|
|
4325
4330
|
f
|
|
4326
4331
|
);
|
|
4327
4332
|
}
|
|
4333
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
4334
|
+
if (f != null) {
|
|
4335
|
+
writer.writeString(
|
|
4336
|
+
3,
|
|
4337
|
+
f
|
|
4338
|
+
);
|
|
4339
|
+
}
|
|
4328
4340
|
};
|
|
4329
4341
|
|
|
4330
4342
|
|
|
@@ -4400,6 +4412,42 @@ proto.loyalty.LevelRewardCashback.prototype.hasCurrency = function() {
|
|
|
4400
4412
|
};
|
|
4401
4413
|
|
|
4402
4414
|
|
|
4415
|
+
/**
|
|
4416
|
+
* optional string percentage_decimal = 3;
|
|
4417
|
+
* @return {string}
|
|
4418
|
+
*/
|
|
4419
|
+
proto.loyalty.LevelRewardCashback.prototype.getPercentageDecimal = function() {
|
|
4420
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
4421
|
+
};
|
|
4422
|
+
|
|
4423
|
+
|
|
4424
|
+
/**
|
|
4425
|
+
* @param {string} value
|
|
4426
|
+
* @return {!proto.loyalty.LevelRewardCashback} returns this
|
|
4427
|
+
*/
|
|
4428
|
+
proto.loyalty.LevelRewardCashback.prototype.setPercentageDecimal = function(value) {
|
|
4429
|
+
return jspb.Message.setField(this, 3, value);
|
|
4430
|
+
};
|
|
4431
|
+
|
|
4432
|
+
|
|
4433
|
+
/**
|
|
4434
|
+
* Clears the field making it undefined.
|
|
4435
|
+
* @return {!proto.loyalty.LevelRewardCashback} returns this
|
|
4436
|
+
*/
|
|
4437
|
+
proto.loyalty.LevelRewardCashback.prototype.clearPercentageDecimal = function() {
|
|
4438
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
4439
|
+
};
|
|
4440
|
+
|
|
4441
|
+
|
|
4442
|
+
/**
|
|
4443
|
+
* Returns whether this field is set.
|
|
4444
|
+
* @return {boolean}
|
|
4445
|
+
*/
|
|
4446
|
+
proto.loyalty.LevelRewardCashback.prototype.hasPercentageDecimal = function() {
|
|
4447
|
+
return jspb.Message.getField(this, 3) != null;
|
|
4448
|
+
};
|
|
4449
|
+
|
|
4450
|
+
|
|
4403
4451
|
|
|
4404
4452
|
|
|
4405
4453
|
|
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
|
@@ -94,6 +94,8 @@ service Payment {
|
|
|
94
94
|
rpc reverseBonusBalanceReward(BonusBalanceRewardReversalRequest) returns (BonusBalanceRewardOperationResponse);
|
|
95
95
|
rpc prepareGameplayPrecisionCommand(PrepareGameplayPrecisionCommandRequest)
|
|
96
96
|
returns (PrepareGameplayPrecisionCommandResponse);
|
|
97
|
+
// RTP wallet-operation history. Additive; does not change userPaymentHistory.
|
|
98
|
+
rpc userWalletOperationHistory(GetUserPaymentsInfoRequest) returns (UserWalletOperationHistoryItemsResponse);
|
|
97
99
|
}
|
|
98
100
|
//Technical
|
|
99
101
|
message PingRequest { string ping = 1; }
|
|
@@ -831,6 +833,52 @@ message UserPaymentHistoryItemsResponse {
|
|
|
831
833
|
optional int32 total_pages = 2;
|
|
832
834
|
optional int32 total_items = 3;
|
|
833
835
|
}
|
|
836
|
+
// One posted reward rendered inside its deposit. Grouping is presentation-only.
|
|
837
|
+
message UserWalletOperationHistoryReward {
|
|
838
|
+
string operation_id = 1;
|
|
839
|
+
string public_id = 2;
|
|
840
|
+
string kind = 3;
|
|
841
|
+
string amount = 4;
|
|
842
|
+
string currency = 5;
|
|
843
|
+
optional string currency_type = 6;
|
|
844
|
+
optional int32 currency_scale = 7;
|
|
845
|
+
optional string fiat_amount = 8;
|
|
846
|
+
optional string fiat_currency = 9;
|
|
847
|
+
optional string source_amount = 10;
|
|
848
|
+
optional string source_currency = 11;
|
|
849
|
+
optional string percent = 12;
|
|
850
|
+
optional string status = 13;
|
|
851
|
+
}
|
|
852
|
+
message UserWalletOperationHistoryItem {
|
|
853
|
+
string operation_id = 1;
|
|
854
|
+
string public_id = 2;
|
|
855
|
+
string type = 3;
|
|
856
|
+
string status = 4;
|
|
857
|
+
string amount = 5;
|
|
858
|
+
string currency = 6;
|
|
859
|
+
optional string currency_type = 7;
|
|
860
|
+
optional int32 currency_scale = 8;
|
|
861
|
+
optional string fiat_amount = 9;
|
|
862
|
+
optional string fiat_currency = 10;
|
|
863
|
+
optional string source_amount = 11;
|
|
864
|
+
optional string source_currency = 12;
|
|
865
|
+
optional string created = 13;
|
|
866
|
+
optional string external_ref = 14;
|
|
867
|
+
optional string txid = 15;
|
|
868
|
+
optional string amount_attempt = 16;
|
|
869
|
+
optional string amount_paid = 17;
|
|
870
|
+
optional int32 status_id = 18;
|
|
871
|
+
optional string payment_method_title = 19;
|
|
872
|
+
optional string payment_provider_title = 20;
|
|
873
|
+
optional string payment_provider_image = 21;
|
|
874
|
+
optional string payment_provider_image_cdn = 22;
|
|
875
|
+
repeated UserWalletOperationHistoryReward rewards = 23;
|
|
876
|
+
}
|
|
877
|
+
message UserWalletOperationHistoryItemsResponse {
|
|
878
|
+
repeated UserWalletOperationHistoryItem items = 1;
|
|
879
|
+
optional int32 total_pages = 2;
|
|
880
|
+
optional int32 total_items = 3;
|
|
881
|
+
}
|
|
834
882
|
//Users
|
|
835
883
|
message UserPaymentMethodItem {
|
|
836
884
|
int32 method_id = 1;
|
|
@@ -1093,6 +1093,17 @@ function deserialize_payment_UserPaymentsInfoResponse(buffer_arg) {
|
|
|
1093
1093
|
return payment_pb.UserPaymentsInfoResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1094
1094
|
}
|
|
1095
1095
|
|
|
1096
|
+
function serialize_payment_UserWalletOperationHistoryItemsResponse(arg) {
|
|
1097
|
+
if (!(arg instanceof payment_pb.UserWalletOperationHistoryItemsResponse)) {
|
|
1098
|
+
throw new Error('Expected argument of type payment.UserWalletOperationHistoryItemsResponse');
|
|
1099
|
+
}
|
|
1100
|
+
return Buffer.from(arg.serializeBinary());
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
function deserialize_payment_UserWalletOperationHistoryItemsResponse(buffer_arg) {
|
|
1104
|
+
return payment_pb.UserWalletOperationHistoryItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1096
1107
|
function serialize_payment_UserWithdrawalItemsResponse(arg) {
|
|
1097
1108
|
if (!(arg instanceof payment_pb.UserWithdrawalItemsResponse)) {
|
|
1098
1109
|
throw new Error('Expected argument of type payment.UserWithdrawalItemsResponse');
|
|
@@ -1979,6 +1990,18 @@ issueBonusBalanceReward: {
|
|
|
1979
1990
|
responseSerialize: serialize_payment_PrepareGameplayPrecisionCommandResponse,
|
|
1980
1991
|
responseDeserialize: deserialize_payment_PrepareGameplayPrecisionCommandResponse,
|
|
1981
1992
|
},
|
|
1993
|
+
// RTP wallet-operation history. Additive; does not change userPaymentHistory.
|
|
1994
|
+
userWalletOperationHistory: {
|
|
1995
|
+
path: '/payment.Payment/userWalletOperationHistory',
|
|
1996
|
+
requestStream: false,
|
|
1997
|
+
responseStream: false,
|
|
1998
|
+
requestType: payment_pb.GetUserPaymentsInfoRequest,
|
|
1999
|
+
responseType: payment_pb.UserWalletOperationHistoryItemsResponse,
|
|
2000
|
+
requestSerialize: serialize_payment_GetUserPaymentsInfoRequest,
|
|
2001
|
+
requestDeserialize: deserialize_payment_GetUserPaymentsInfoRequest,
|
|
2002
|
+
responseSerialize: serialize_payment_UserWalletOperationHistoryItemsResponse,
|
|
2003
|
+
responseDeserialize: deserialize_payment_UserWalletOperationHistoryItemsResponse,
|
|
2004
|
+
},
|
|
1982
2005
|
};
|
|
1983
2006
|
|
|
1984
2007
|
exports.PaymentClient = grpc.makeGenericClientConstructor(PaymentService, 'Payment');
|