protobuf-platform 1.2.684 → 1.2.686
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 +6 -1
- package/loyalty/loyalty_pb.js +198 -5
- package/package.json +1 -1
- package/payment/payment.proto +19 -0
- package/payment/payment_grpc_pb.js +34 -0
- package/payment/payment_pb.js +600 -0
package/loyalty/loyalty.proto
CHANGED
|
@@ -78,8 +78,9 @@ message LevelItem {
|
|
|
78
78
|
optional string portrait_image = 14;
|
|
79
79
|
optional string portrait_image_cdn = 15;
|
|
80
80
|
optional int32 points_required = 16;
|
|
81
|
-
//
|
|
81
|
+
// Level completion reward amount; currency is required for monetary execution.
|
|
82
82
|
optional string total_level_up_amount = 17;
|
|
83
|
+
optional string total_level_up_currency = 18;
|
|
83
84
|
}
|
|
84
85
|
message LevelRewardTranslationItem {
|
|
85
86
|
string locale = 1;
|
|
@@ -148,6 +149,7 @@ message LevelItemRequest {
|
|
|
148
149
|
optional bool remove_portrait_image = 11;
|
|
149
150
|
optional int32 points_required = 12;
|
|
150
151
|
optional string total_level_up_amount = 13;
|
|
152
|
+
optional string total_level_up_currency = 14;
|
|
151
153
|
}
|
|
152
154
|
message GetLevelRequest {
|
|
153
155
|
int32 id = 1;
|
|
@@ -189,6 +191,8 @@ message LevelItemsResponse {
|
|
|
189
191
|
repeated LevelItem items = 1;
|
|
190
192
|
optional int32 total_pages = 2;
|
|
191
193
|
optional int32 total_items = 3;
|
|
194
|
+
// Effective startup-loaded whitelist for the BackOffice level form.
|
|
195
|
+
repeated string reward_currencies = 4;
|
|
192
196
|
}
|
|
193
197
|
message LevelStatusResponse {
|
|
194
198
|
string status = 1;
|
|
@@ -295,6 +299,7 @@ message UserLoyaltyResponse {
|
|
|
295
299
|
optional string next_image_cdn = 16;
|
|
296
300
|
repeated LevelRewardItem rewards = 17;
|
|
297
301
|
optional string total_level_up_amount = 18;
|
|
302
|
+
optional string total_level_up_currency = 19;
|
|
298
303
|
}
|
|
299
304
|
message UserLoyaltyPoint {
|
|
300
305
|
int32 user_point_id = 1;
|
package/loyalty/loyalty_pb.js
CHANGED
|
@@ -2805,7 +2805,8 @@ proto.loyalty.LevelItem.toObject = function(includeInstance, msg) {
|
|
|
2805
2805
|
portraitImage: jspb.Message.getFieldWithDefault(msg, 14, ""),
|
|
2806
2806
|
portraitImageCdn: jspb.Message.getFieldWithDefault(msg, 15, ""),
|
|
2807
2807
|
pointsRequired: jspb.Message.getFieldWithDefault(msg, 16, 0),
|
|
2808
|
-
totalLevelUpAmount: jspb.Message.getFieldWithDefault(msg, 17, "")
|
|
2808
|
+
totalLevelUpAmount: jspb.Message.getFieldWithDefault(msg, 17, ""),
|
|
2809
|
+
totalLevelUpCurrency: jspb.Message.getFieldWithDefault(msg, 18, "")
|
|
2809
2810
|
};
|
|
2810
2811
|
|
|
2811
2812
|
if (includeInstance) {
|
|
@@ -2912,6 +2913,10 @@ proto.loyalty.LevelItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
2912
2913
|
var value = /** @type {string} */ (reader.readString());
|
|
2913
2914
|
msg.setTotalLevelUpAmount(value);
|
|
2914
2915
|
break;
|
|
2916
|
+
case 18:
|
|
2917
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2918
|
+
msg.setTotalLevelUpCurrency(value);
|
|
2919
|
+
break;
|
|
2915
2920
|
default:
|
|
2916
2921
|
reader.skipField();
|
|
2917
2922
|
break;
|
|
@@ -3062,6 +3067,13 @@ proto.loyalty.LevelItem.serializeBinaryToWriter = function(message, writer) {
|
|
|
3062
3067
|
f
|
|
3063
3068
|
);
|
|
3064
3069
|
}
|
|
3070
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 18));
|
|
3071
|
+
if (f != null) {
|
|
3072
|
+
writer.writeString(
|
|
3073
|
+
18,
|
|
3074
|
+
f
|
|
3075
|
+
);
|
|
3076
|
+
}
|
|
3065
3077
|
};
|
|
3066
3078
|
|
|
3067
3079
|
|
|
@@ -3681,6 +3693,42 @@ proto.loyalty.LevelItem.prototype.hasTotalLevelUpAmount = function() {
|
|
|
3681
3693
|
};
|
|
3682
3694
|
|
|
3683
3695
|
|
|
3696
|
+
/**
|
|
3697
|
+
* optional string total_level_up_currency = 18;
|
|
3698
|
+
* @return {string}
|
|
3699
|
+
*/
|
|
3700
|
+
proto.loyalty.LevelItem.prototype.getTotalLevelUpCurrency = function() {
|
|
3701
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
|
|
3702
|
+
};
|
|
3703
|
+
|
|
3704
|
+
|
|
3705
|
+
/**
|
|
3706
|
+
* @param {string} value
|
|
3707
|
+
* @return {!proto.loyalty.LevelItem} returns this
|
|
3708
|
+
*/
|
|
3709
|
+
proto.loyalty.LevelItem.prototype.setTotalLevelUpCurrency = function(value) {
|
|
3710
|
+
return jspb.Message.setField(this, 18, value);
|
|
3711
|
+
};
|
|
3712
|
+
|
|
3713
|
+
|
|
3714
|
+
/**
|
|
3715
|
+
* Clears the field making it undefined.
|
|
3716
|
+
* @return {!proto.loyalty.LevelItem} returns this
|
|
3717
|
+
*/
|
|
3718
|
+
proto.loyalty.LevelItem.prototype.clearTotalLevelUpCurrency = function() {
|
|
3719
|
+
return jspb.Message.setField(this, 18, undefined);
|
|
3720
|
+
};
|
|
3721
|
+
|
|
3722
|
+
|
|
3723
|
+
/**
|
|
3724
|
+
* Returns whether this field is set.
|
|
3725
|
+
* @return {boolean}
|
|
3726
|
+
*/
|
|
3727
|
+
proto.loyalty.LevelItem.prototype.hasTotalLevelUpCurrency = function() {
|
|
3728
|
+
return jspb.Message.getField(this, 18) != null;
|
|
3729
|
+
};
|
|
3730
|
+
|
|
3731
|
+
|
|
3684
3732
|
|
|
3685
3733
|
|
|
3686
3734
|
|
|
@@ -6099,7 +6147,8 @@ proto.loyalty.LevelItemRequest.toObject = function(includeInstance, msg) {
|
|
|
6099
6147
|
removeMobileImage: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
|
|
6100
6148
|
removePortraitImage: jspb.Message.getBooleanFieldWithDefault(msg, 11, false),
|
|
6101
6149
|
pointsRequired: jspb.Message.getFieldWithDefault(msg, 12, 0),
|
|
6102
|
-
totalLevelUpAmount: jspb.Message.getFieldWithDefault(msg, 13, "")
|
|
6150
|
+
totalLevelUpAmount: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
6151
|
+
totalLevelUpCurrency: jspb.Message.getFieldWithDefault(msg, 14, "")
|
|
6103
6152
|
};
|
|
6104
6153
|
|
|
6105
6154
|
if (includeInstance) {
|
|
@@ -6188,6 +6237,10 @@ proto.loyalty.LevelItemRequest.deserializeBinaryFromReader = function(msg, reade
|
|
|
6188
6237
|
var value = /** @type {string} */ (reader.readString());
|
|
6189
6238
|
msg.setTotalLevelUpAmount(value);
|
|
6190
6239
|
break;
|
|
6240
|
+
case 14:
|
|
6241
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6242
|
+
msg.setTotalLevelUpCurrency(value);
|
|
6243
|
+
break;
|
|
6191
6244
|
default:
|
|
6192
6245
|
reader.skipField();
|
|
6193
6246
|
break;
|
|
@@ -6308,6 +6361,13 @@ proto.loyalty.LevelItemRequest.serializeBinaryToWriter = function(message, write
|
|
|
6308
6361
|
f
|
|
6309
6362
|
);
|
|
6310
6363
|
}
|
|
6364
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 14));
|
|
6365
|
+
if (f != null) {
|
|
6366
|
+
writer.writeString(
|
|
6367
|
+
14,
|
|
6368
|
+
f
|
|
6369
|
+
);
|
|
6370
|
+
}
|
|
6311
6371
|
};
|
|
6312
6372
|
|
|
6313
6373
|
|
|
@@ -6779,6 +6839,42 @@ proto.loyalty.LevelItemRequest.prototype.hasTotalLevelUpAmount = function() {
|
|
|
6779
6839
|
};
|
|
6780
6840
|
|
|
6781
6841
|
|
|
6842
|
+
/**
|
|
6843
|
+
* optional string total_level_up_currency = 14;
|
|
6844
|
+
* @return {string}
|
|
6845
|
+
*/
|
|
6846
|
+
proto.loyalty.LevelItemRequest.prototype.getTotalLevelUpCurrency = function() {
|
|
6847
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
|
|
6848
|
+
};
|
|
6849
|
+
|
|
6850
|
+
|
|
6851
|
+
/**
|
|
6852
|
+
* @param {string} value
|
|
6853
|
+
* @return {!proto.loyalty.LevelItemRequest} returns this
|
|
6854
|
+
*/
|
|
6855
|
+
proto.loyalty.LevelItemRequest.prototype.setTotalLevelUpCurrency = function(value) {
|
|
6856
|
+
return jspb.Message.setField(this, 14, value);
|
|
6857
|
+
};
|
|
6858
|
+
|
|
6859
|
+
|
|
6860
|
+
/**
|
|
6861
|
+
* Clears the field making it undefined.
|
|
6862
|
+
* @return {!proto.loyalty.LevelItemRequest} returns this
|
|
6863
|
+
*/
|
|
6864
|
+
proto.loyalty.LevelItemRequest.prototype.clearTotalLevelUpCurrency = function() {
|
|
6865
|
+
return jspb.Message.setField(this, 14, undefined);
|
|
6866
|
+
};
|
|
6867
|
+
|
|
6868
|
+
|
|
6869
|
+
/**
|
|
6870
|
+
* Returns whether this field is set.
|
|
6871
|
+
* @return {boolean}
|
|
6872
|
+
*/
|
|
6873
|
+
proto.loyalty.LevelItemRequest.prototype.hasTotalLevelUpCurrency = function() {
|
|
6874
|
+
return jspb.Message.getField(this, 14) != null;
|
|
6875
|
+
};
|
|
6876
|
+
|
|
6877
|
+
|
|
6782
6878
|
|
|
6783
6879
|
|
|
6784
6880
|
|
|
@@ -8438,7 +8534,7 @@ proto.loyalty.LevelResponse.prototype.hasData = function() {
|
|
|
8438
8534
|
* @private {!Array<number>}
|
|
8439
8535
|
* @const
|
|
8440
8536
|
*/
|
|
8441
|
-
proto.loyalty.LevelItemsResponse.repeatedFields_ = [1];
|
|
8537
|
+
proto.loyalty.LevelItemsResponse.repeatedFields_ = [1,4];
|
|
8442
8538
|
|
|
8443
8539
|
|
|
8444
8540
|
|
|
@@ -8474,7 +8570,8 @@ proto.loyalty.LevelItemsResponse.toObject = function(includeInstance, msg) {
|
|
|
8474
8570
|
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
8475
8571
|
proto.loyalty.LevelItem.toObject, includeInstance),
|
|
8476
8572
|
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
8477
|
-
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
8573
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
8574
|
+
rewardCurrenciesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
|
|
8478
8575
|
};
|
|
8479
8576
|
|
|
8480
8577
|
if (includeInstance) {
|
|
@@ -8524,6 +8621,10 @@ proto.loyalty.LevelItemsResponse.deserializeBinaryFromReader = function(msg, rea
|
|
|
8524
8621
|
var value = /** @type {number} */ (reader.readInt32());
|
|
8525
8622
|
msg.setTotalItems(value);
|
|
8526
8623
|
break;
|
|
8624
|
+
case 4:
|
|
8625
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8626
|
+
msg.addRewardCurrencies(value);
|
|
8627
|
+
break;
|
|
8527
8628
|
default:
|
|
8528
8629
|
reader.skipField();
|
|
8529
8630
|
break;
|
|
@@ -8575,6 +8676,13 @@ proto.loyalty.LevelItemsResponse.serializeBinaryToWriter = function(message, wri
|
|
|
8575
8676
|
f
|
|
8576
8677
|
);
|
|
8577
8678
|
}
|
|
8679
|
+
f = message.getRewardCurrenciesList();
|
|
8680
|
+
if (f.length > 0) {
|
|
8681
|
+
writer.writeRepeatedString(
|
|
8682
|
+
4,
|
|
8683
|
+
f
|
|
8684
|
+
);
|
|
8685
|
+
}
|
|
8578
8686
|
};
|
|
8579
8687
|
|
|
8580
8688
|
|
|
@@ -8688,6 +8796,43 @@ proto.loyalty.LevelItemsResponse.prototype.hasTotalItems = function() {
|
|
|
8688
8796
|
};
|
|
8689
8797
|
|
|
8690
8798
|
|
|
8799
|
+
/**
|
|
8800
|
+
* repeated string reward_currencies = 4;
|
|
8801
|
+
* @return {!Array<string>}
|
|
8802
|
+
*/
|
|
8803
|
+
proto.loyalty.LevelItemsResponse.prototype.getRewardCurrenciesList = function() {
|
|
8804
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
|
|
8805
|
+
};
|
|
8806
|
+
|
|
8807
|
+
|
|
8808
|
+
/**
|
|
8809
|
+
* @param {!Array<string>} value
|
|
8810
|
+
* @return {!proto.loyalty.LevelItemsResponse} returns this
|
|
8811
|
+
*/
|
|
8812
|
+
proto.loyalty.LevelItemsResponse.prototype.setRewardCurrenciesList = function(value) {
|
|
8813
|
+
return jspb.Message.setField(this, 4, value || []);
|
|
8814
|
+
};
|
|
8815
|
+
|
|
8816
|
+
|
|
8817
|
+
/**
|
|
8818
|
+
* @param {string} value
|
|
8819
|
+
* @param {number=} opt_index
|
|
8820
|
+
* @return {!proto.loyalty.LevelItemsResponse} returns this
|
|
8821
|
+
*/
|
|
8822
|
+
proto.loyalty.LevelItemsResponse.prototype.addRewardCurrencies = function(value, opt_index) {
|
|
8823
|
+
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
|
8824
|
+
};
|
|
8825
|
+
|
|
8826
|
+
|
|
8827
|
+
/**
|
|
8828
|
+
* Clears the list making it empty but non-null.
|
|
8829
|
+
* @return {!proto.loyalty.LevelItemsResponse} returns this
|
|
8830
|
+
*/
|
|
8831
|
+
proto.loyalty.LevelItemsResponse.prototype.clearRewardCurrenciesList = function() {
|
|
8832
|
+
return this.setRewardCurrenciesList([]);
|
|
8833
|
+
};
|
|
8834
|
+
|
|
8835
|
+
|
|
8691
8836
|
|
|
8692
8837
|
|
|
8693
8838
|
|
|
@@ -12424,7 +12569,8 @@ proto.loyalty.UserLoyaltyResponse.toObject = function(includeInstance, msg) {
|
|
|
12424
12569
|
nextImageCdn: jspb.Message.getFieldWithDefault(msg, 16, ""),
|
|
12425
12570
|
rewardsList: jspb.Message.toObjectList(msg.getRewardsList(),
|
|
12426
12571
|
proto.loyalty.LevelRewardItem.toObject, includeInstance),
|
|
12427
|
-
totalLevelUpAmount: jspb.Message.getFieldWithDefault(msg, 18, "")
|
|
12572
|
+
totalLevelUpAmount: jspb.Message.getFieldWithDefault(msg, 18, ""),
|
|
12573
|
+
totalLevelUpCurrency: jspb.Message.getFieldWithDefault(msg, 19, "")
|
|
12428
12574
|
};
|
|
12429
12575
|
|
|
12430
12576
|
if (includeInstance) {
|
|
@@ -12534,6 +12680,10 @@ proto.loyalty.UserLoyaltyResponse.deserializeBinaryFromReader = function(msg, re
|
|
|
12534
12680
|
var value = /** @type {string} */ (reader.readString());
|
|
12535
12681
|
msg.setTotalLevelUpAmount(value);
|
|
12536
12682
|
break;
|
|
12683
|
+
case 19:
|
|
12684
|
+
var value = /** @type {string} */ (reader.readString());
|
|
12685
|
+
msg.setTotalLevelUpCurrency(value);
|
|
12686
|
+
break;
|
|
12537
12687
|
default:
|
|
12538
12688
|
reader.skipField();
|
|
12539
12689
|
break;
|
|
@@ -12690,6 +12840,13 @@ proto.loyalty.UserLoyaltyResponse.serializeBinaryToWriter = function(message, wr
|
|
|
12690
12840
|
f
|
|
12691
12841
|
);
|
|
12692
12842
|
}
|
|
12843
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 19));
|
|
12844
|
+
if (f != null) {
|
|
12845
|
+
writer.writeString(
|
|
12846
|
+
19,
|
|
12847
|
+
f
|
|
12848
|
+
);
|
|
12849
|
+
}
|
|
12693
12850
|
};
|
|
12694
12851
|
|
|
12695
12852
|
|
|
@@ -13343,6 +13500,42 @@ proto.loyalty.UserLoyaltyResponse.prototype.hasTotalLevelUpAmount = function() {
|
|
|
13343
13500
|
};
|
|
13344
13501
|
|
|
13345
13502
|
|
|
13503
|
+
/**
|
|
13504
|
+
* optional string total_level_up_currency = 19;
|
|
13505
|
+
* @return {string}
|
|
13506
|
+
*/
|
|
13507
|
+
proto.loyalty.UserLoyaltyResponse.prototype.getTotalLevelUpCurrency = function() {
|
|
13508
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
|
|
13509
|
+
};
|
|
13510
|
+
|
|
13511
|
+
|
|
13512
|
+
/**
|
|
13513
|
+
* @param {string} value
|
|
13514
|
+
* @return {!proto.loyalty.UserLoyaltyResponse} returns this
|
|
13515
|
+
*/
|
|
13516
|
+
proto.loyalty.UserLoyaltyResponse.prototype.setTotalLevelUpCurrency = function(value) {
|
|
13517
|
+
return jspb.Message.setField(this, 19, value);
|
|
13518
|
+
};
|
|
13519
|
+
|
|
13520
|
+
|
|
13521
|
+
/**
|
|
13522
|
+
* Clears the field making it undefined.
|
|
13523
|
+
* @return {!proto.loyalty.UserLoyaltyResponse} returns this
|
|
13524
|
+
*/
|
|
13525
|
+
proto.loyalty.UserLoyaltyResponse.prototype.clearTotalLevelUpCurrency = function() {
|
|
13526
|
+
return jspb.Message.setField(this, 19, undefined);
|
|
13527
|
+
};
|
|
13528
|
+
|
|
13529
|
+
|
|
13530
|
+
/**
|
|
13531
|
+
* Returns whether this field is set.
|
|
13532
|
+
* @return {boolean}
|
|
13533
|
+
*/
|
|
13534
|
+
proto.loyalty.UserLoyaltyResponse.prototype.hasTotalLevelUpCurrency = function() {
|
|
13535
|
+
return jspb.Message.getField(this, 19) != null;
|
|
13536
|
+
};
|
|
13537
|
+
|
|
13538
|
+
|
|
13346
13539
|
|
|
13347
13540
|
|
|
13348
13541
|
|
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
|
@@ -3,6 +3,8 @@ syntax = "proto3";
|
|
|
3
3
|
package payment;
|
|
4
4
|
|
|
5
5
|
service Payment {
|
|
6
|
+
// Independent, idempotent real-money level completion grant.
|
|
7
|
+
rpc grantLoyaltyLevelUpReward(LoyaltyLevelUpRewardRequest) returns (LoyaltyLevelUpRewardResponse);
|
|
6
8
|
rpc checkConnection(PingRequest) returns (PongResponse);
|
|
7
9
|
rpc getMediaResource(GetFileRequest) returns (stream File);
|
|
8
10
|
//Payment Provider
|
|
@@ -1466,3 +1468,20 @@ message PaymentLifecycleStatusItemsResponse {
|
|
|
1466
1468
|
// Compatibility catalog supplied by payment; canonical items remain five-state.
|
|
1467
1469
|
repeated PaymentLifecycleStatus legacy_withdrawal_items = 4;
|
|
1468
1470
|
}
|
|
1471
|
+
|
|
1472
|
+
// Identity is immutable per independent grant. No selected-wallet currency semantics.
|
|
1473
|
+
message LoyaltyLevelUpRewardRequest {
|
|
1474
|
+
string reward_identity = 1;
|
|
1475
|
+
int32 user_id = 2;
|
|
1476
|
+
string amount = 3;
|
|
1477
|
+
string currency = 4;
|
|
1478
|
+
}
|
|
1479
|
+
message LoyaltyLevelUpRewardResponse {
|
|
1480
|
+
string operation_id = 1;
|
|
1481
|
+
string operation_public_id = 2;
|
|
1482
|
+
string currency = 3;
|
|
1483
|
+
int32 currency_scale = 4;
|
|
1484
|
+
string amount_minor = 5;
|
|
1485
|
+
repeated string ledger_entry_ids = 6;
|
|
1486
|
+
bool idempotent_replay = 7;
|
|
1487
|
+
}
|
|
@@ -642,6 +642,28 @@ function deserialize_payment_ItemsBunchRequest(buffer_arg) {
|
|
|
642
642
|
return payment_pb.ItemsBunchRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
643
643
|
}
|
|
644
644
|
|
|
645
|
+
function serialize_payment_LoyaltyLevelUpRewardRequest(arg) {
|
|
646
|
+
if (!(arg instanceof payment_pb.LoyaltyLevelUpRewardRequest)) {
|
|
647
|
+
throw new Error('Expected argument of type payment.LoyaltyLevelUpRewardRequest');
|
|
648
|
+
}
|
|
649
|
+
return Buffer.from(arg.serializeBinary());
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
function deserialize_payment_LoyaltyLevelUpRewardRequest(buffer_arg) {
|
|
653
|
+
return payment_pb.LoyaltyLevelUpRewardRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
function serialize_payment_LoyaltyLevelUpRewardResponse(arg) {
|
|
657
|
+
if (!(arg instanceof payment_pb.LoyaltyLevelUpRewardResponse)) {
|
|
658
|
+
throw new Error('Expected argument of type payment.LoyaltyLevelUpRewardResponse');
|
|
659
|
+
}
|
|
660
|
+
return Buffer.from(arg.serializeBinary());
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
function deserialize_payment_LoyaltyLevelUpRewardResponse(buffer_arg) {
|
|
664
|
+
return payment_pb.LoyaltyLevelUpRewardResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
665
|
+
}
|
|
666
|
+
|
|
645
667
|
function serialize_payment_ManualDepositRequest(arg) {
|
|
646
668
|
if (!(arg instanceof payment_pb.ManualDepositRequest)) {
|
|
647
669
|
throw new Error('Expected argument of type payment.ManualDepositRequest');
|
|
@@ -1106,6 +1128,18 @@ function deserialize_payment_WithdrawalWebHookRequest(buffer_arg) {
|
|
|
1106
1128
|
|
|
1107
1129
|
|
|
1108
1130
|
var PaymentService = exports.PaymentService = {
|
|
1131
|
+
// Independent, idempotent real-money level completion grant.
|
|
1132
|
+
grantLoyaltyLevelUpReward: {
|
|
1133
|
+
path: '/payment.Payment/grantLoyaltyLevelUpReward',
|
|
1134
|
+
requestStream: false,
|
|
1135
|
+
responseStream: false,
|
|
1136
|
+
requestType: payment_pb.LoyaltyLevelUpRewardRequest,
|
|
1137
|
+
responseType: payment_pb.LoyaltyLevelUpRewardResponse,
|
|
1138
|
+
requestSerialize: serialize_payment_LoyaltyLevelUpRewardRequest,
|
|
1139
|
+
requestDeserialize: deserialize_payment_LoyaltyLevelUpRewardRequest,
|
|
1140
|
+
responseSerialize: serialize_payment_LoyaltyLevelUpRewardResponse,
|
|
1141
|
+
responseDeserialize: deserialize_payment_LoyaltyLevelUpRewardResponse,
|
|
1142
|
+
},
|
|
1109
1143
|
checkConnection: {
|
|
1110
1144
|
path: '/payment.Payment/checkConnection',
|
|
1111
1145
|
requestStream: false,
|
package/payment/payment_pb.js
CHANGED
|
@@ -96,6 +96,8 @@ goog.exportSymbol('proto.payment.GetWithdrawalWagerBucketHistoryResponse', null,
|
|
|
96
96
|
goog.exportSymbol('proto.payment.GetWithdrawalWagerSnapshotRequest', null, global);
|
|
97
97
|
goog.exportSymbol('proto.payment.GetWithdrawalWagerSnapshotResponse', null, global);
|
|
98
98
|
goog.exportSymbol('proto.payment.ItemsBunchRequest', null, global);
|
|
99
|
+
goog.exportSymbol('proto.payment.LoyaltyLevelUpRewardRequest', null, global);
|
|
100
|
+
goog.exportSymbol('proto.payment.LoyaltyLevelUpRewardResponse', null, global);
|
|
99
101
|
goog.exportSymbol('proto.payment.ManualDepositRequest', null, global);
|
|
100
102
|
goog.exportSymbol('proto.payment.MethodItem', null, global);
|
|
101
103
|
goog.exportSymbol('proto.payment.MethodItemRequest', null, global);
|
|
@@ -3016,6 +3018,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
3016
3018
|
*/
|
|
3017
3019
|
proto.payment.PaymentLifecycleStatusItemsResponse.displayName = 'proto.payment.PaymentLifecycleStatusItemsResponse';
|
|
3018
3020
|
}
|
|
3021
|
+
/**
|
|
3022
|
+
* Generated by JsPbCodeGenerator.
|
|
3023
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3024
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3025
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3026
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3027
|
+
* valid.
|
|
3028
|
+
* @extends {jspb.Message}
|
|
3029
|
+
* @constructor
|
|
3030
|
+
*/
|
|
3031
|
+
proto.payment.LoyaltyLevelUpRewardRequest = function(opt_data) {
|
|
3032
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3033
|
+
};
|
|
3034
|
+
goog.inherits(proto.payment.LoyaltyLevelUpRewardRequest, jspb.Message);
|
|
3035
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3036
|
+
/**
|
|
3037
|
+
* @public
|
|
3038
|
+
* @override
|
|
3039
|
+
*/
|
|
3040
|
+
proto.payment.LoyaltyLevelUpRewardRequest.displayName = 'proto.payment.LoyaltyLevelUpRewardRequest';
|
|
3041
|
+
}
|
|
3042
|
+
/**
|
|
3043
|
+
* Generated by JsPbCodeGenerator.
|
|
3044
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3045
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3046
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3047
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3048
|
+
* valid.
|
|
3049
|
+
* @extends {jspb.Message}
|
|
3050
|
+
* @constructor
|
|
3051
|
+
*/
|
|
3052
|
+
proto.payment.LoyaltyLevelUpRewardResponse = function(opt_data) {
|
|
3053
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.payment.LoyaltyLevelUpRewardResponse.repeatedFields_, null);
|
|
3054
|
+
};
|
|
3055
|
+
goog.inherits(proto.payment.LoyaltyLevelUpRewardResponse, jspb.Message);
|
|
3056
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3057
|
+
/**
|
|
3058
|
+
* @public
|
|
3059
|
+
* @override
|
|
3060
|
+
*/
|
|
3061
|
+
proto.payment.LoyaltyLevelUpRewardResponse.displayName = 'proto.payment.LoyaltyLevelUpRewardResponse';
|
|
3062
|
+
}
|
|
3019
3063
|
|
|
3020
3064
|
|
|
3021
3065
|
|
|
@@ -60222,6 +60266,562 @@ proto.payment.PaymentLifecycleStatusItemsResponse.prototype.clearLegacyWithdrawa
|
|
|
60222
60266
|
};
|
|
60223
60267
|
|
|
60224
60268
|
|
|
60269
|
+
|
|
60270
|
+
|
|
60271
|
+
|
|
60272
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
60273
|
+
/**
|
|
60274
|
+
* Creates an object representation of this proto.
|
|
60275
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
60276
|
+
* Optional fields that are not set will be set to undefined.
|
|
60277
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
60278
|
+
* For the list of reserved names please see:
|
|
60279
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
60280
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
60281
|
+
* JSPB instance for transitional soy proto support:
|
|
60282
|
+
* http://goto/soy-param-migration
|
|
60283
|
+
* @return {!Object}
|
|
60284
|
+
*/
|
|
60285
|
+
proto.payment.LoyaltyLevelUpRewardRequest.prototype.toObject = function(opt_includeInstance) {
|
|
60286
|
+
return proto.payment.LoyaltyLevelUpRewardRequest.toObject(opt_includeInstance, this);
|
|
60287
|
+
};
|
|
60288
|
+
|
|
60289
|
+
|
|
60290
|
+
/**
|
|
60291
|
+
* Static version of the {@see toObject} method.
|
|
60292
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
60293
|
+
* the JSPB instance for transitional soy proto support:
|
|
60294
|
+
* http://goto/soy-param-migration
|
|
60295
|
+
* @param {!proto.payment.LoyaltyLevelUpRewardRequest} msg The msg instance to transform.
|
|
60296
|
+
* @return {!Object}
|
|
60297
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
60298
|
+
*/
|
|
60299
|
+
proto.payment.LoyaltyLevelUpRewardRequest.toObject = function(includeInstance, msg) {
|
|
60300
|
+
var f, obj = {
|
|
60301
|
+
rewardIdentity: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
60302
|
+
userId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
60303
|
+
amount: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
60304
|
+
currency: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
60305
|
+
};
|
|
60306
|
+
|
|
60307
|
+
if (includeInstance) {
|
|
60308
|
+
obj.$jspbMessageInstance = msg;
|
|
60309
|
+
}
|
|
60310
|
+
return obj;
|
|
60311
|
+
};
|
|
60312
|
+
}
|
|
60313
|
+
|
|
60314
|
+
|
|
60315
|
+
/**
|
|
60316
|
+
* Deserializes binary data (in protobuf wire format).
|
|
60317
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
60318
|
+
* @return {!proto.payment.LoyaltyLevelUpRewardRequest}
|
|
60319
|
+
*/
|
|
60320
|
+
proto.payment.LoyaltyLevelUpRewardRequest.deserializeBinary = function(bytes) {
|
|
60321
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
60322
|
+
var msg = new proto.payment.LoyaltyLevelUpRewardRequest;
|
|
60323
|
+
return proto.payment.LoyaltyLevelUpRewardRequest.deserializeBinaryFromReader(msg, reader);
|
|
60324
|
+
};
|
|
60325
|
+
|
|
60326
|
+
|
|
60327
|
+
/**
|
|
60328
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
60329
|
+
* given reader into the given message object.
|
|
60330
|
+
* @param {!proto.payment.LoyaltyLevelUpRewardRequest} msg The message object to deserialize into.
|
|
60331
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
60332
|
+
* @return {!proto.payment.LoyaltyLevelUpRewardRequest}
|
|
60333
|
+
*/
|
|
60334
|
+
proto.payment.LoyaltyLevelUpRewardRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
60335
|
+
while (reader.nextField()) {
|
|
60336
|
+
if (reader.isEndGroup()) {
|
|
60337
|
+
break;
|
|
60338
|
+
}
|
|
60339
|
+
var field = reader.getFieldNumber();
|
|
60340
|
+
switch (field) {
|
|
60341
|
+
case 1:
|
|
60342
|
+
var value = /** @type {string} */ (reader.readString());
|
|
60343
|
+
msg.setRewardIdentity(value);
|
|
60344
|
+
break;
|
|
60345
|
+
case 2:
|
|
60346
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
60347
|
+
msg.setUserId(value);
|
|
60348
|
+
break;
|
|
60349
|
+
case 3:
|
|
60350
|
+
var value = /** @type {string} */ (reader.readString());
|
|
60351
|
+
msg.setAmount(value);
|
|
60352
|
+
break;
|
|
60353
|
+
case 4:
|
|
60354
|
+
var value = /** @type {string} */ (reader.readString());
|
|
60355
|
+
msg.setCurrency(value);
|
|
60356
|
+
break;
|
|
60357
|
+
default:
|
|
60358
|
+
reader.skipField();
|
|
60359
|
+
break;
|
|
60360
|
+
}
|
|
60361
|
+
}
|
|
60362
|
+
return msg;
|
|
60363
|
+
};
|
|
60364
|
+
|
|
60365
|
+
|
|
60366
|
+
/**
|
|
60367
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
60368
|
+
* @return {!Uint8Array}
|
|
60369
|
+
*/
|
|
60370
|
+
proto.payment.LoyaltyLevelUpRewardRequest.prototype.serializeBinary = function() {
|
|
60371
|
+
var writer = new jspb.BinaryWriter();
|
|
60372
|
+
proto.payment.LoyaltyLevelUpRewardRequest.serializeBinaryToWriter(this, writer);
|
|
60373
|
+
return writer.getResultBuffer();
|
|
60374
|
+
};
|
|
60375
|
+
|
|
60376
|
+
|
|
60377
|
+
/**
|
|
60378
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
60379
|
+
* format), writing to the given BinaryWriter.
|
|
60380
|
+
* @param {!proto.payment.LoyaltyLevelUpRewardRequest} message
|
|
60381
|
+
* @param {!jspb.BinaryWriter} writer
|
|
60382
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
60383
|
+
*/
|
|
60384
|
+
proto.payment.LoyaltyLevelUpRewardRequest.serializeBinaryToWriter = function(message, writer) {
|
|
60385
|
+
var f = undefined;
|
|
60386
|
+
f = message.getRewardIdentity();
|
|
60387
|
+
if (f.length > 0) {
|
|
60388
|
+
writer.writeString(
|
|
60389
|
+
1,
|
|
60390
|
+
f
|
|
60391
|
+
);
|
|
60392
|
+
}
|
|
60393
|
+
f = message.getUserId();
|
|
60394
|
+
if (f !== 0) {
|
|
60395
|
+
writer.writeInt32(
|
|
60396
|
+
2,
|
|
60397
|
+
f
|
|
60398
|
+
);
|
|
60399
|
+
}
|
|
60400
|
+
f = message.getAmount();
|
|
60401
|
+
if (f.length > 0) {
|
|
60402
|
+
writer.writeString(
|
|
60403
|
+
3,
|
|
60404
|
+
f
|
|
60405
|
+
);
|
|
60406
|
+
}
|
|
60407
|
+
f = message.getCurrency();
|
|
60408
|
+
if (f.length > 0) {
|
|
60409
|
+
writer.writeString(
|
|
60410
|
+
4,
|
|
60411
|
+
f
|
|
60412
|
+
);
|
|
60413
|
+
}
|
|
60414
|
+
};
|
|
60415
|
+
|
|
60416
|
+
|
|
60417
|
+
/**
|
|
60418
|
+
* optional string reward_identity = 1;
|
|
60419
|
+
* @return {string}
|
|
60420
|
+
*/
|
|
60421
|
+
proto.payment.LoyaltyLevelUpRewardRequest.prototype.getRewardIdentity = function() {
|
|
60422
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
60423
|
+
};
|
|
60424
|
+
|
|
60425
|
+
|
|
60426
|
+
/**
|
|
60427
|
+
* @param {string} value
|
|
60428
|
+
* @return {!proto.payment.LoyaltyLevelUpRewardRequest} returns this
|
|
60429
|
+
*/
|
|
60430
|
+
proto.payment.LoyaltyLevelUpRewardRequest.prototype.setRewardIdentity = function(value) {
|
|
60431
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
60432
|
+
};
|
|
60433
|
+
|
|
60434
|
+
|
|
60435
|
+
/**
|
|
60436
|
+
* optional int32 user_id = 2;
|
|
60437
|
+
* @return {number}
|
|
60438
|
+
*/
|
|
60439
|
+
proto.payment.LoyaltyLevelUpRewardRequest.prototype.getUserId = function() {
|
|
60440
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
60441
|
+
};
|
|
60442
|
+
|
|
60443
|
+
|
|
60444
|
+
/**
|
|
60445
|
+
* @param {number} value
|
|
60446
|
+
* @return {!proto.payment.LoyaltyLevelUpRewardRequest} returns this
|
|
60447
|
+
*/
|
|
60448
|
+
proto.payment.LoyaltyLevelUpRewardRequest.prototype.setUserId = function(value) {
|
|
60449
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
60450
|
+
};
|
|
60451
|
+
|
|
60452
|
+
|
|
60453
|
+
/**
|
|
60454
|
+
* optional string amount = 3;
|
|
60455
|
+
* @return {string}
|
|
60456
|
+
*/
|
|
60457
|
+
proto.payment.LoyaltyLevelUpRewardRequest.prototype.getAmount = function() {
|
|
60458
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
60459
|
+
};
|
|
60460
|
+
|
|
60461
|
+
|
|
60462
|
+
/**
|
|
60463
|
+
* @param {string} value
|
|
60464
|
+
* @return {!proto.payment.LoyaltyLevelUpRewardRequest} returns this
|
|
60465
|
+
*/
|
|
60466
|
+
proto.payment.LoyaltyLevelUpRewardRequest.prototype.setAmount = function(value) {
|
|
60467
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
60468
|
+
};
|
|
60469
|
+
|
|
60470
|
+
|
|
60471
|
+
/**
|
|
60472
|
+
* optional string currency = 4;
|
|
60473
|
+
* @return {string}
|
|
60474
|
+
*/
|
|
60475
|
+
proto.payment.LoyaltyLevelUpRewardRequest.prototype.getCurrency = function() {
|
|
60476
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
60477
|
+
};
|
|
60478
|
+
|
|
60479
|
+
|
|
60480
|
+
/**
|
|
60481
|
+
* @param {string} value
|
|
60482
|
+
* @return {!proto.payment.LoyaltyLevelUpRewardRequest} returns this
|
|
60483
|
+
*/
|
|
60484
|
+
proto.payment.LoyaltyLevelUpRewardRequest.prototype.setCurrency = function(value) {
|
|
60485
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
60486
|
+
};
|
|
60487
|
+
|
|
60488
|
+
|
|
60489
|
+
|
|
60490
|
+
/**
|
|
60491
|
+
* List of repeated fields within this message type.
|
|
60492
|
+
* @private {!Array<number>}
|
|
60493
|
+
* @const
|
|
60494
|
+
*/
|
|
60495
|
+
proto.payment.LoyaltyLevelUpRewardResponse.repeatedFields_ = [6];
|
|
60496
|
+
|
|
60497
|
+
|
|
60498
|
+
|
|
60499
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
60500
|
+
/**
|
|
60501
|
+
* Creates an object representation of this proto.
|
|
60502
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
60503
|
+
* Optional fields that are not set will be set to undefined.
|
|
60504
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
60505
|
+
* For the list of reserved names please see:
|
|
60506
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
60507
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
60508
|
+
* JSPB instance for transitional soy proto support:
|
|
60509
|
+
* http://goto/soy-param-migration
|
|
60510
|
+
* @return {!Object}
|
|
60511
|
+
*/
|
|
60512
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.toObject = function(opt_includeInstance) {
|
|
60513
|
+
return proto.payment.LoyaltyLevelUpRewardResponse.toObject(opt_includeInstance, this);
|
|
60514
|
+
};
|
|
60515
|
+
|
|
60516
|
+
|
|
60517
|
+
/**
|
|
60518
|
+
* Static version of the {@see toObject} method.
|
|
60519
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
60520
|
+
* the JSPB instance for transitional soy proto support:
|
|
60521
|
+
* http://goto/soy-param-migration
|
|
60522
|
+
* @param {!proto.payment.LoyaltyLevelUpRewardResponse} msg The msg instance to transform.
|
|
60523
|
+
* @return {!Object}
|
|
60524
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
60525
|
+
*/
|
|
60526
|
+
proto.payment.LoyaltyLevelUpRewardResponse.toObject = function(includeInstance, msg) {
|
|
60527
|
+
var f, obj = {
|
|
60528
|
+
operationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
60529
|
+
operationPublicId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
60530
|
+
currency: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
60531
|
+
currencyScale: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
60532
|
+
amountMinor: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
60533
|
+
ledgerEntryIdsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
|
|
60534
|
+
idempotentReplay: jspb.Message.getBooleanFieldWithDefault(msg, 7, false)
|
|
60535
|
+
};
|
|
60536
|
+
|
|
60537
|
+
if (includeInstance) {
|
|
60538
|
+
obj.$jspbMessageInstance = msg;
|
|
60539
|
+
}
|
|
60540
|
+
return obj;
|
|
60541
|
+
};
|
|
60542
|
+
}
|
|
60543
|
+
|
|
60544
|
+
|
|
60545
|
+
/**
|
|
60546
|
+
* Deserializes binary data (in protobuf wire format).
|
|
60547
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
60548
|
+
* @return {!proto.payment.LoyaltyLevelUpRewardResponse}
|
|
60549
|
+
*/
|
|
60550
|
+
proto.payment.LoyaltyLevelUpRewardResponse.deserializeBinary = function(bytes) {
|
|
60551
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
60552
|
+
var msg = new proto.payment.LoyaltyLevelUpRewardResponse;
|
|
60553
|
+
return proto.payment.LoyaltyLevelUpRewardResponse.deserializeBinaryFromReader(msg, reader);
|
|
60554
|
+
};
|
|
60555
|
+
|
|
60556
|
+
|
|
60557
|
+
/**
|
|
60558
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
60559
|
+
* given reader into the given message object.
|
|
60560
|
+
* @param {!proto.payment.LoyaltyLevelUpRewardResponse} msg The message object to deserialize into.
|
|
60561
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
60562
|
+
* @return {!proto.payment.LoyaltyLevelUpRewardResponse}
|
|
60563
|
+
*/
|
|
60564
|
+
proto.payment.LoyaltyLevelUpRewardResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
60565
|
+
while (reader.nextField()) {
|
|
60566
|
+
if (reader.isEndGroup()) {
|
|
60567
|
+
break;
|
|
60568
|
+
}
|
|
60569
|
+
var field = reader.getFieldNumber();
|
|
60570
|
+
switch (field) {
|
|
60571
|
+
case 1:
|
|
60572
|
+
var value = /** @type {string} */ (reader.readString());
|
|
60573
|
+
msg.setOperationId(value);
|
|
60574
|
+
break;
|
|
60575
|
+
case 2:
|
|
60576
|
+
var value = /** @type {string} */ (reader.readString());
|
|
60577
|
+
msg.setOperationPublicId(value);
|
|
60578
|
+
break;
|
|
60579
|
+
case 3:
|
|
60580
|
+
var value = /** @type {string} */ (reader.readString());
|
|
60581
|
+
msg.setCurrency(value);
|
|
60582
|
+
break;
|
|
60583
|
+
case 4:
|
|
60584
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
60585
|
+
msg.setCurrencyScale(value);
|
|
60586
|
+
break;
|
|
60587
|
+
case 5:
|
|
60588
|
+
var value = /** @type {string} */ (reader.readString());
|
|
60589
|
+
msg.setAmountMinor(value);
|
|
60590
|
+
break;
|
|
60591
|
+
case 6:
|
|
60592
|
+
var value = /** @type {string} */ (reader.readString());
|
|
60593
|
+
msg.addLedgerEntryIds(value);
|
|
60594
|
+
break;
|
|
60595
|
+
case 7:
|
|
60596
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
60597
|
+
msg.setIdempotentReplay(value);
|
|
60598
|
+
break;
|
|
60599
|
+
default:
|
|
60600
|
+
reader.skipField();
|
|
60601
|
+
break;
|
|
60602
|
+
}
|
|
60603
|
+
}
|
|
60604
|
+
return msg;
|
|
60605
|
+
};
|
|
60606
|
+
|
|
60607
|
+
|
|
60608
|
+
/**
|
|
60609
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
60610
|
+
* @return {!Uint8Array}
|
|
60611
|
+
*/
|
|
60612
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.serializeBinary = function() {
|
|
60613
|
+
var writer = new jspb.BinaryWriter();
|
|
60614
|
+
proto.payment.LoyaltyLevelUpRewardResponse.serializeBinaryToWriter(this, writer);
|
|
60615
|
+
return writer.getResultBuffer();
|
|
60616
|
+
};
|
|
60617
|
+
|
|
60618
|
+
|
|
60619
|
+
/**
|
|
60620
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
60621
|
+
* format), writing to the given BinaryWriter.
|
|
60622
|
+
* @param {!proto.payment.LoyaltyLevelUpRewardResponse} message
|
|
60623
|
+
* @param {!jspb.BinaryWriter} writer
|
|
60624
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
60625
|
+
*/
|
|
60626
|
+
proto.payment.LoyaltyLevelUpRewardResponse.serializeBinaryToWriter = function(message, writer) {
|
|
60627
|
+
var f = undefined;
|
|
60628
|
+
f = message.getOperationId();
|
|
60629
|
+
if (f.length > 0) {
|
|
60630
|
+
writer.writeString(
|
|
60631
|
+
1,
|
|
60632
|
+
f
|
|
60633
|
+
);
|
|
60634
|
+
}
|
|
60635
|
+
f = message.getOperationPublicId();
|
|
60636
|
+
if (f.length > 0) {
|
|
60637
|
+
writer.writeString(
|
|
60638
|
+
2,
|
|
60639
|
+
f
|
|
60640
|
+
);
|
|
60641
|
+
}
|
|
60642
|
+
f = message.getCurrency();
|
|
60643
|
+
if (f.length > 0) {
|
|
60644
|
+
writer.writeString(
|
|
60645
|
+
3,
|
|
60646
|
+
f
|
|
60647
|
+
);
|
|
60648
|
+
}
|
|
60649
|
+
f = message.getCurrencyScale();
|
|
60650
|
+
if (f !== 0) {
|
|
60651
|
+
writer.writeInt32(
|
|
60652
|
+
4,
|
|
60653
|
+
f
|
|
60654
|
+
);
|
|
60655
|
+
}
|
|
60656
|
+
f = message.getAmountMinor();
|
|
60657
|
+
if (f.length > 0) {
|
|
60658
|
+
writer.writeString(
|
|
60659
|
+
5,
|
|
60660
|
+
f
|
|
60661
|
+
);
|
|
60662
|
+
}
|
|
60663
|
+
f = message.getLedgerEntryIdsList();
|
|
60664
|
+
if (f.length > 0) {
|
|
60665
|
+
writer.writeRepeatedString(
|
|
60666
|
+
6,
|
|
60667
|
+
f
|
|
60668
|
+
);
|
|
60669
|
+
}
|
|
60670
|
+
f = message.getIdempotentReplay();
|
|
60671
|
+
if (f) {
|
|
60672
|
+
writer.writeBool(
|
|
60673
|
+
7,
|
|
60674
|
+
f
|
|
60675
|
+
);
|
|
60676
|
+
}
|
|
60677
|
+
};
|
|
60678
|
+
|
|
60679
|
+
|
|
60680
|
+
/**
|
|
60681
|
+
* optional string operation_id = 1;
|
|
60682
|
+
* @return {string}
|
|
60683
|
+
*/
|
|
60684
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.getOperationId = function() {
|
|
60685
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
60686
|
+
};
|
|
60687
|
+
|
|
60688
|
+
|
|
60689
|
+
/**
|
|
60690
|
+
* @param {string} value
|
|
60691
|
+
* @return {!proto.payment.LoyaltyLevelUpRewardResponse} returns this
|
|
60692
|
+
*/
|
|
60693
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.setOperationId = function(value) {
|
|
60694
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
60695
|
+
};
|
|
60696
|
+
|
|
60697
|
+
|
|
60698
|
+
/**
|
|
60699
|
+
* optional string operation_public_id = 2;
|
|
60700
|
+
* @return {string}
|
|
60701
|
+
*/
|
|
60702
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.getOperationPublicId = function() {
|
|
60703
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
60704
|
+
};
|
|
60705
|
+
|
|
60706
|
+
|
|
60707
|
+
/**
|
|
60708
|
+
* @param {string} value
|
|
60709
|
+
* @return {!proto.payment.LoyaltyLevelUpRewardResponse} returns this
|
|
60710
|
+
*/
|
|
60711
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.setOperationPublicId = function(value) {
|
|
60712
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
60713
|
+
};
|
|
60714
|
+
|
|
60715
|
+
|
|
60716
|
+
/**
|
|
60717
|
+
* optional string currency = 3;
|
|
60718
|
+
* @return {string}
|
|
60719
|
+
*/
|
|
60720
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.getCurrency = function() {
|
|
60721
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
60722
|
+
};
|
|
60723
|
+
|
|
60724
|
+
|
|
60725
|
+
/**
|
|
60726
|
+
* @param {string} value
|
|
60727
|
+
* @return {!proto.payment.LoyaltyLevelUpRewardResponse} returns this
|
|
60728
|
+
*/
|
|
60729
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.setCurrency = function(value) {
|
|
60730
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
60731
|
+
};
|
|
60732
|
+
|
|
60733
|
+
|
|
60734
|
+
/**
|
|
60735
|
+
* optional int32 currency_scale = 4;
|
|
60736
|
+
* @return {number}
|
|
60737
|
+
*/
|
|
60738
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.getCurrencyScale = function() {
|
|
60739
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
60740
|
+
};
|
|
60741
|
+
|
|
60742
|
+
|
|
60743
|
+
/**
|
|
60744
|
+
* @param {number} value
|
|
60745
|
+
* @return {!proto.payment.LoyaltyLevelUpRewardResponse} returns this
|
|
60746
|
+
*/
|
|
60747
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.setCurrencyScale = function(value) {
|
|
60748
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
60749
|
+
};
|
|
60750
|
+
|
|
60751
|
+
|
|
60752
|
+
/**
|
|
60753
|
+
* optional string amount_minor = 5;
|
|
60754
|
+
* @return {string}
|
|
60755
|
+
*/
|
|
60756
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.getAmountMinor = function() {
|
|
60757
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
60758
|
+
};
|
|
60759
|
+
|
|
60760
|
+
|
|
60761
|
+
/**
|
|
60762
|
+
* @param {string} value
|
|
60763
|
+
* @return {!proto.payment.LoyaltyLevelUpRewardResponse} returns this
|
|
60764
|
+
*/
|
|
60765
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.setAmountMinor = function(value) {
|
|
60766
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
60767
|
+
};
|
|
60768
|
+
|
|
60769
|
+
|
|
60770
|
+
/**
|
|
60771
|
+
* repeated string ledger_entry_ids = 6;
|
|
60772
|
+
* @return {!Array<string>}
|
|
60773
|
+
*/
|
|
60774
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.getLedgerEntryIdsList = function() {
|
|
60775
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 6));
|
|
60776
|
+
};
|
|
60777
|
+
|
|
60778
|
+
|
|
60779
|
+
/**
|
|
60780
|
+
* @param {!Array<string>} value
|
|
60781
|
+
* @return {!proto.payment.LoyaltyLevelUpRewardResponse} returns this
|
|
60782
|
+
*/
|
|
60783
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.setLedgerEntryIdsList = function(value) {
|
|
60784
|
+
return jspb.Message.setField(this, 6, value || []);
|
|
60785
|
+
};
|
|
60786
|
+
|
|
60787
|
+
|
|
60788
|
+
/**
|
|
60789
|
+
* @param {string} value
|
|
60790
|
+
* @param {number=} opt_index
|
|
60791
|
+
* @return {!proto.payment.LoyaltyLevelUpRewardResponse} returns this
|
|
60792
|
+
*/
|
|
60793
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.addLedgerEntryIds = function(value, opt_index) {
|
|
60794
|
+
return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
|
|
60795
|
+
};
|
|
60796
|
+
|
|
60797
|
+
|
|
60798
|
+
/**
|
|
60799
|
+
* Clears the list making it empty but non-null.
|
|
60800
|
+
* @return {!proto.payment.LoyaltyLevelUpRewardResponse} returns this
|
|
60801
|
+
*/
|
|
60802
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.clearLedgerEntryIdsList = function() {
|
|
60803
|
+
return this.setLedgerEntryIdsList([]);
|
|
60804
|
+
};
|
|
60805
|
+
|
|
60806
|
+
|
|
60807
|
+
/**
|
|
60808
|
+
* optional bool idempotent_replay = 7;
|
|
60809
|
+
* @return {boolean}
|
|
60810
|
+
*/
|
|
60811
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.getIdempotentReplay = function() {
|
|
60812
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
|
|
60813
|
+
};
|
|
60814
|
+
|
|
60815
|
+
|
|
60816
|
+
/**
|
|
60817
|
+
* @param {boolean} value
|
|
60818
|
+
* @return {!proto.payment.LoyaltyLevelUpRewardResponse} returns this
|
|
60819
|
+
*/
|
|
60820
|
+
proto.payment.LoyaltyLevelUpRewardResponse.prototype.setIdempotentReplay = function(value) {
|
|
60821
|
+
return jspb.Message.setProto3BooleanField(this, 7, value);
|
|
60822
|
+
};
|
|
60823
|
+
|
|
60824
|
+
|
|
60225
60825
|
/**
|
|
60226
60826
|
* @enum {number}
|
|
60227
60827
|
*/
|