protobuf-platform 1.2.707 → 1.2.708
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 +1 -1
- package/payment/payment.proto +16 -0
- package/payment/payment_pb.js +526 -3
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
|
@@ -480,6 +480,11 @@ message AttemptDepositRequest {
|
|
|
480
480
|
optional int32 window_width = 49;
|
|
481
481
|
optional int32 window_height = 50;
|
|
482
482
|
optional string cvv = 51;
|
|
483
|
+
// Explicit consent to store the submitted card after a confirmed successful deposit.
|
|
484
|
+
// Absence and false do not authorize saving.
|
|
485
|
+
optional bool save_card = 52;
|
|
486
|
+
// Opaque id of a card previously saved for this user and payment method.
|
|
487
|
+
optional string saved_card_id = 53;
|
|
483
488
|
}
|
|
484
489
|
message GetDepositRequest {
|
|
485
490
|
int32 id = 1;
|
|
@@ -879,6 +884,14 @@ message UserWalletOperationHistoryItemsResponse {
|
|
|
879
884
|
optional int32 total_pages = 2;
|
|
880
885
|
optional int32 total_items = 3;
|
|
881
886
|
}
|
|
887
|
+
// Masked saved-card selection metadata. Never carries a full PAN or CVV.
|
|
888
|
+
message SavedDepositCard {
|
|
889
|
+
string saved_card_id = 1;
|
|
890
|
+
string masked_card_number = 2;
|
|
891
|
+
optional string card_holder = 3;
|
|
892
|
+
optional string card_expire_month = 4;
|
|
893
|
+
optional string card_expire_year = 5;
|
|
894
|
+
}
|
|
882
895
|
//Users
|
|
883
896
|
message UserPaymentMethodItem {
|
|
884
897
|
int32 method_id = 1;
|
|
@@ -910,6 +923,9 @@ message UserPaymentMethodItem {
|
|
|
910
923
|
optional int32 is_popular = 27;
|
|
911
924
|
optional int32 is_new = 28;
|
|
912
925
|
optional bool allow_zero_amount = 29;
|
|
926
|
+
// True only when this method configuration allows saving and reusing deposit cards.
|
|
927
|
+
optional bool save_card = 30;
|
|
928
|
+
repeated SavedDepositCard saved_cards = 31;
|
|
913
929
|
}
|
|
914
930
|
message UserPaymentMethodsResponse {
|
|
915
931
|
repeated UserPaymentMethodItem items = 1;
|
package/payment/payment_pb.js
CHANGED
|
@@ -143,6 +143,7 @@ goog.exportSymbol('proto.payment.ProviderTranslationResponse', null, global);
|
|
|
143
143
|
goog.exportSymbol('proto.payment.RegisterGameplayPrecisionSessionRequest', null, global);
|
|
144
144
|
goog.exportSymbol('proto.payment.ResolveGameWalletContextRequest', null, global);
|
|
145
145
|
goog.exportSymbol('proto.payment.ResolveGameWalletContextResponse', null, global);
|
|
146
|
+
goog.exportSymbol('proto.payment.SavedDepositCard', null, global);
|
|
146
147
|
goog.exportSymbol('proto.payment.SegmentedUserRequest', null, global);
|
|
147
148
|
goog.exportSymbol('proto.payment.SegmentedUserResponse', null, global);
|
|
148
149
|
goog.exportSymbol('proto.payment.SyncCurrenciesRequest', null, global);
|
|
@@ -1763,6 +1764,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1763
1764
|
*/
|
|
1764
1765
|
proto.payment.UserWalletOperationHistoryItemsResponse.displayName = 'proto.payment.UserWalletOperationHistoryItemsResponse';
|
|
1765
1766
|
}
|
|
1767
|
+
/**
|
|
1768
|
+
* Generated by JsPbCodeGenerator.
|
|
1769
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1770
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1771
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1772
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1773
|
+
* valid.
|
|
1774
|
+
* @extends {jspb.Message}
|
|
1775
|
+
* @constructor
|
|
1776
|
+
*/
|
|
1777
|
+
proto.payment.SavedDepositCard = function(opt_data) {
|
|
1778
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1779
|
+
};
|
|
1780
|
+
goog.inherits(proto.payment.SavedDepositCard, jspb.Message);
|
|
1781
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1782
|
+
/**
|
|
1783
|
+
* @public
|
|
1784
|
+
* @override
|
|
1785
|
+
*/
|
|
1786
|
+
proto.payment.SavedDepositCard.displayName = 'proto.payment.SavedDepositCard';
|
|
1787
|
+
}
|
|
1766
1788
|
/**
|
|
1767
1789
|
* Generated by JsPbCodeGenerator.
|
|
1768
1790
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -18143,7 +18165,9 @@ proto.payment.AttemptDepositRequest.toObject = function(includeInstance, msg) {
|
|
|
18143
18165
|
bonusId: jspb.Message.getFieldWithDefault(msg, 48, 0),
|
|
18144
18166
|
windowWidth: jspb.Message.getFieldWithDefault(msg, 49, 0),
|
|
18145
18167
|
windowHeight: jspb.Message.getFieldWithDefault(msg, 50, 0),
|
|
18146
|
-
cvv: jspb.Message.getFieldWithDefault(msg, 51, "")
|
|
18168
|
+
cvv: jspb.Message.getFieldWithDefault(msg, 51, ""),
|
|
18169
|
+
saveCard: jspb.Message.getBooleanFieldWithDefault(msg, 52, false),
|
|
18170
|
+
savedCardId: jspb.Message.getFieldWithDefault(msg, 53, "")
|
|
18147
18171
|
};
|
|
18148
18172
|
|
|
18149
18173
|
if (includeInstance) {
|
|
@@ -18384,6 +18408,14 @@ proto.payment.AttemptDepositRequest.deserializeBinaryFromReader = function(msg,
|
|
|
18384
18408
|
var value = /** @type {string} */ (reader.readString());
|
|
18385
18409
|
msg.setCvv(value);
|
|
18386
18410
|
break;
|
|
18411
|
+
case 52:
|
|
18412
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
18413
|
+
msg.setSaveCard(value);
|
|
18414
|
+
break;
|
|
18415
|
+
case 53:
|
|
18416
|
+
var value = /** @type {string} */ (reader.readString());
|
|
18417
|
+
msg.setSavedCardId(value);
|
|
18418
|
+
break;
|
|
18387
18419
|
default:
|
|
18388
18420
|
reader.skipField();
|
|
18389
18421
|
break;
|
|
@@ -18770,6 +18802,20 @@ proto.payment.AttemptDepositRequest.serializeBinaryToWriter = function(message,
|
|
|
18770
18802
|
f
|
|
18771
18803
|
);
|
|
18772
18804
|
}
|
|
18805
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 52));
|
|
18806
|
+
if (f != null) {
|
|
18807
|
+
writer.writeBool(
|
|
18808
|
+
52,
|
|
18809
|
+
f
|
|
18810
|
+
);
|
|
18811
|
+
}
|
|
18812
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 53));
|
|
18813
|
+
if (f != null) {
|
|
18814
|
+
writer.writeString(
|
|
18815
|
+
53,
|
|
18816
|
+
f
|
|
18817
|
+
);
|
|
18818
|
+
}
|
|
18773
18819
|
};
|
|
18774
18820
|
|
|
18775
18821
|
|
|
@@ -20555,6 +20601,78 @@ proto.payment.AttemptDepositRequest.prototype.hasCvv = function() {
|
|
|
20555
20601
|
};
|
|
20556
20602
|
|
|
20557
20603
|
|
|
20604
|
+
/**
|
|
20605
|
+
* optional bool save_card = 52;
|
|
20606
|
+
* @return {boolean}
|
|
20607
|
+
*/
|
|
20608
|
+
proto.payment.AttemptDepositRequest.prototype.getSaveCard = function() {
|
|
20609
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 52, false));
|
|
20610
|
+
};
|
|
20611
|
+
|
|
20612
|
+
|
|
20613
|
+
/**
|
|
20614
|
+
* @param {boolean} value
|
|
20615
|
+
* @return {!proto.payment.AttemptDepositRequest} returns this
|
|
20616
|
+
*/
|
|
20617
|
+
proto.payment.AttemptDepositRequest.prototype.setSaveCard = function(value) {
|
|
20618
|
+
return jspb.Message.setField(this, 52, value);
|
|
20619
|
+
};
|
|
20620
|
+
|
|
20621
|
+
|
|
20622
|
+
/**
|
|
20623
|
+
* Clears the field making it undefined.
|
|
20624
|
+
* @return {!proto.payment.AttemptDepositRequest} returns this
|
|
20625
|
+
*/
|
|
20626
|
+
proto.payment.AttemptDepositRequest.prototype.clearSaveCard = function() {
|
|
20627
|
+
return jspb.Message.setField(this, 52, undefined);
|
|
20628
|
+
};
|
|
20629
|
+
|
|
20630
|
+
|
|
20631
|
+
/**
|
|
20632
|
+
* Returns whether this field is set.
|
|
20633
|
+
* @return {boolean}
|
|
20634
|
+
*/
|
|
20635
|
+
proto.payment.AttemptDepositRequest.prototype.hasSaveCard = function() {
|
|
20636
|
+
return jspb.Message.getField(this, 52) != null;
|
|
20637
|
+
};
|
|
20638
|
+
|
|
20639
|
+
|
|
20640
|
+
/**
|
|
20641
|
+
* optional string saved_card_id = 53;
|
|
20642
|
+
* @return {string}
|
|
20643
|
+
*/
|
|
20644
|
+
proto.payment.AttemptDepositRequest.prototype.getSavedCardId = function() {
|
|
20645
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 53, ""));
|
|
20646
|
+
};
|
|
20647
|
+
|
|
20648
|
+
|
|
20649
|
+
/**
|
|
20650
|
+
* @param {string} value
|
|
20651
|
+
* @return {!proto.payment.AttemptDepositRequest} returns this
|
|
20652
|
+
*/
|
|
20653
|
+
proto.payment.AttemptDepositRequest.prototype.setSavedCardId = function(value) {
|
|
20654
|
+
return jspb.Message.setField(this, 53, value);
|
|
20655
|
+
};
|
|
20656
|
+
|
|
20657
|
+
|
|
20658
|
+
/**
|
|
20659
|
+
* Clears the field making it undefined.
|
|
20660
|
+
* @return {!proto.payment.AttemptDepositRequest} returns this
|
|
20661
|
+
*/
|
|
20662
|
+
proto.payment.AttemptDepositRequest.prototype.clearSavedCardId = function() {
|
|
20663
|
+
return jspb.Message.setField(this, 53, undefined);
|
|
20664
|
+
};
|
|
20665
|
+
|
|
20666
|
+
|
|
20667
|
+
/**
|
|
20668
|
+
* Returns whether this field is set.
|
|
20669
|
+
* @return {boolean}
|
|
20670
|
+
*/
|
|
20671
|
+
proto.payment.AttemptDepositRequest.prototype.hasSavedCardId = function() {
|
|
20672
|
+
return jspb.Message.getField(this, 53) != null;
|
|
20673
|
+
};
|
|
20674
|
+
|
|
20675
|
+
|
|
20558
20676
|
|
|
20559
20677
|
|
|
20560
20678
|
|
|
@@ -38128,12 +38246,316 @@ proto.payment.UserWalletOperationHistoryItemsResponse.prototype.hasTotalItems =
|
|
|
38128
38246
|
|
|
38129
38247
|
|
|
38130
38248
|
|
|
38249
|
+
|
|
38250
|
+
|
|
38251
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
38252
|
+
/**
|
|
38253
|
+
* Creates an object representation of this proto.
|
|
38254
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
38255
|
+
* Optional fields that are not set will be set to undefined.
|
|
38256
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
38257
|
+
* For the list of reserved names please see:
|
|
38258
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
38259
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
38260
|
+
* JSPB instance for transitional soy proto support:
|
|
38261
|
+
* http://goto/soy-param-migration
|
|
38262
|
+
* @return {!Object}
|
|
38263
|
+
*/
|
|
38264
|
+
proto.payment.SavedDepositCard.prototype.toObject = function(opt_includeInstance) {
|
|
38265
|
+
return proto.payment.SavedDepositCard.toObject(opt_includeInstance, this);
|
|
38266
|
+
};
|
|
38267
|
+
|
|
38268
|
+
|
|
38269
|
+
/**
|
|
38270
|
+
* Static version of the {@see toObject} method.
|
|
38271
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
38272
|
+
* the JSPB instance for transitional soy proto support:
|
|
38273
|
+
* http://goto/soy-param-migration
|
|
38274
|
+
* @param {!proto.payment.SavedDepositCard} msg The msg instance to transform.
|
|
38275
|
+
* @return {!Object}
|
|
38276
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
38277
|
+
*/
|
|
38278
|
+
proto.payment.SavedDepositCard.toObject = function(includeInstance, msg) {
|
|
38279
|
+
var f, obj = {
|
|
38280
|
+
savedCardId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
38281
|
+
maskedCardNumber: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
38282
|
+
cardHolder: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
38283
|
+
cardExpireMonth: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
38284
|
+
cardExpireYear: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
38285
|
+
};
|
|
38286
|
+
|
|
38287
|
+
if (includeInstance) {
|
|
38288
|
+
obj.$jspbMessageInstance = msg;
|
|
38289
|
+
}
|
|
38290
|
+
return obj;
|
|
38291
|
+
};
|
|
38292
|
+
}
|
|
38293
|
+
|
|
38294
|
+
|
|
38295
|
+
/**
|
|
38296
|
+
* Deserializes binary data (in protobuf wire format).
|
|
38297
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
38298
|
+
* @return {!proto.payment.SavedDepositCard}
|
|
38299
|
+
*/
|
|
38300
|
+
proto.payment.SavedDepositCard.deserializeBinary = function(bytes) {
|
|
38301
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
38302
|
+
var msg = new proto.payment.SavedDepositCard;
|
|
38303
|
+
return proto.payment.SavedDepositCard.deserializeBinaryFromReader(msg, reader);
|
|
38304
|
+
};
|
|
38305
|
+
|
|
38306
|
+
|
|
38307
|
+
/**
|
|
38308
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
38309
|
+
* given reader into the given message object.
|
|
38310
|
+
* @param {!proto.payment.SavedDepositCard} msg The message object to deserialize into.
|
|
38311
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
38312
|
+
* @return {!proto.payment.SavedDepositCard}
|
|
38313
|
+
*/
|
|
38314
|
+
proto.payment.SavedDepositCard.deserializeBinaryFromReader = function(msg, reader) {
|
|
38315
|
+
while (reader.nextField()) {
|
|
38316
|
+
if (reader.isEndGroup()) {
|
|
38317
|
+
break;
|
|
38318
|
+
}
|
|
38319
|
+
var field = reader.getFieldNumber();
|
|
38320
|
+
switch (field) {
|
|
38321
|
+
case 1:
|
|
38322
|
+
var value = /** @type {string} */ (reader.readString());
|
|
38323
|
+
msg.setSavedCardId(value);
|
|
38324
|
+
break;
|
|
38325
|
+
case 2:
|
|
38326
|
+
var value = /** @type {string} */ (reader.readString());
|
|
38327
|
+
msg.setMaskedCardNumber(value);
|
|
38328
|
+
break;
|
|
38329
|
+
case 3:
|
|
38330
|
+
var value = /** @type {string} */ (reader.readString());
|
|
38331
|
+
msg.setCardHolder(value);
|
|
38332
|
+
break;
|
|
38333
|
+
case 4:
|
|
38334
|
+
var value = /** @type {string} */ (reader.readString());
|
|
38335
|
+
msg.setCardExpireMonth(value);
|
|
38336
|
+
break;
|
|
38337
|
+
case 5:
|
|
38338
|
+
var value = /** @type {string} */ (reader.readString());
|
|
38339
|
+
msg.setCardExpireYear(value);
|
|
38340
|
+
break;
|
|
38341
|
+
default:
|
|
38342
|
+
reader.skipField();
|
|
38343
|
+
break;
|
|
38344
|
+
}
|
|
38345
|
+
}
|
|
38346
|
+
return msg;
|
|
38347
|
+
};
|
|
38348
|
+
|
|
38349
|
+
|
|
38350
|
+
/**
|
|
38351
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
38352
|
+
* @return {!Uint8Array}
|
|
38353
|
+
*/
|
|
38354
|
+
proto.payment.SavedDepositCard.prototype.serializeBinary = function() {
|
|
38355
|
+
var writer = new jspb.BinaryWriter();
|
|
38356
|
+
proto.payment.SavedDepositCard.serializeBinaryToWriter(this, writer);
|
|
38357
|
+
return writer.getResultBuffer();
|
|
38358
|
+
};
|
|
38359
|
+
|
|
38360
|
+
|
|
38361
|
+
/**
|
|
38362
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
38363
|
+
* format), writing to the given BinaryWriter.
|
|
38364
|
+
* @param {!proto.payment.SavedDepositCard} message
|
|
38365
|
+
* @param {!jspb.BinaryWriter} writer
|
|
38366
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
38367
|
+
*/
|
|
38368
|
+
proto.payment.SavedDepositCard.serializeBinaryToWriter = function(message, writer) {
|
|
38369
|
+
var f = undefined;
|
|
38370
|
+
f = message.getSavedCardId();
|
|
38371
|
+
if (f.length > 0) {
|
|
38372
|
+
writer.writeString(
|
|
38373
|
+
1,
|
|
38374
|
+
f
|
|
38375
|
+
);
|
|
38376
|
+
}
|
|
38377
|
+
f = message.getMaskedCardNumber();
|
|
38378
|
+
if (f.length > 0) {
|
|
38379
|
+
writer.writeString(
|
|
38380
|
+
2,
|
|
38381
|
+
f
|
|
38382
|
+
);
|
|
38383
|
+
}
|
|
38384
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
38385
|
+
if (f != null) {
|
|
38386
|
+
writer.writeString(
|
|
38387
|
+
3,
|
|
38388
|
+
f
|
|
38389
|
+
);
|
|
38390
|
+
}
|
|
38391
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
38392
|
+
if (f != null) {
|
|
38393
|
+
writer.writeString(
|
|
38394
|
+
4,
|
|
38395
|
+
f
|
|
38396
|
+
);
|
|
38397
|
+
}
|
|
38398
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
38399
|
+
if (f != null) {
|
|
38400
|
+
writer.writeString(
|
|
38401
|
+
5,
|
|
38402
|
+
f
|
|
38403
|
+
);
|
|
38404
|
+
}
|
|
38405
|
+
};
|
|
38406
|
+
|
|
38407
|
+
|
|
38408
|
+
/**
|
|
38409
|
+
* optional string saved_card_id = 1;
|
|
38410
|
+
* @return {string}
|
|
38411
|
+
*/
|
|
38412
|
+
proto.payment.SavedDepositCard.prototype.getSavedCardId = function() {
|
|
38413
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
38414
|
+
};
|
|
38415
|
+
|
|
38416
|
+
|
|
38417
|
+
/**
|
|
38418
|
+
* @param {string} value
|
|
38419
|
+
* @return {!proto.payment.SavedDepositCard} returns this
|
|
38420
|
+
*/
|
|
38421
|
+
proto.payment.SavedDepositCard.prototype.setSavedCardId = function(value) {
|
|
38422
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
38423
|
+
};
|
|
38424
|
+
|
|
38425
|
+
|
|
38426
|
+
/**
|
|
38427
|
+
* optional string masked_card_number = 2;
|
|
38428
|
+
* @return {string}
|
|
38429
|
+
*/
|
|
38430
|
+
proto.payment.SavedDepositCard.prototype.getMaskedCardNumber = function() {
|
|
38431
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
38432
|
+
};
|
|
38433
|
+
|
|
38434
|
+
|
|
38435
|
+
/**
|
|
38436
|
+
* @param {string} value
|
|
38437
|
+
* @return {!proto.payment.SavedDepositCard} returns this
|
|
38438
|
+
*/
|
|
38439
|
+
proto.payment.SavedDepositCard.prototype.setMaskedCardNumber = function(value) {
|
|
38440
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
38441
|
+
};
|
|
38442
|
+
|
|
38443
|
+
|
|
38444
|
+
/**
|
|
38445
|
+
* optional string card_holder = 3;
|
|
38446
|
+
* @return {string}
|
|
38447
|
+
*/
|
|
38448
|
+
proto.payment.SavedDepositCard.prototype.getCardHolder = function() {
|
|
38449
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
38450
|
+
};
|
|
38451
|
+
|
|
38452
|
+
|
|
38453
|
+
/**
|
|
38454
|
+
* @param {string} value
|
|
38455
|
+
* @return {!proto.payment.SavedDepositCard} returns this
|
|
38456
|
+
*/
|
|
38457
|
+
proto.payment.SavedDepositCard.prototype.setCardHolder = function(value) {
|
|
38458
|
+
return jspb.Message.setField(this, 3, value);
|
|
38459
|
+
};
|
|
38460
|
+
|
|
38461
|
+
|
|
38462
|
+
/**
|
|
38463
|
+
* Clears the field making it undefined.
|
|
38464
|
+
* @return {!proto.payment.SavedDepositCard} returns this
|
|
38465
|
+
*/
|
|
38466
|
+
proto.payment.SavedDepositCard.prototype.clearCardHolder = function() {
|
|
38467
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
38468
|
+
};
|
|
38469
|
+
|
|
38470
|
+
|
|
38471
|
+
/**
|
|
38472
|
+
* Returns whether this field is set.
|
|
38473
|
+
* @return {boolean}
|
|
38474
|
+
*/
|
|
38475
|
+
proto.payment.SavedDepositCard.prototype.hasCardHolder = function() {
|
|
38476
|
+
return jspb.Message.getField(this, 3) != null;
|
|
38477
|
+
};
|
|
38478
|
+
|
|
38479
|
+
|
|
38480
|
+
/**
|
|
38481
|
+
* optional string card_expire_month = 4;
|
|
38482
|
+
* @return {string}
|
|
38483
|
+
*/
|
|
38484
|
+
proto.payment.SavedDepositCard.prototype.getCardExpireMonth = function() {
|
|
38485
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
38486
|
+
};
|
|
38487
|
+
|
|
38488
|
+
|
|
38489
|
+
/**
|
|
38490
|
+
* @param {string} value
|
|
38491
|
+
* @return {!proto.payment.SavedDepositCard} returns this
|
|
38492
|
+
*/
|
|
38493
|
+
proto.payment.SavedDepositCard.prototype.setCardExpireMonth = function(value) {
|
|
38494
|
+
return jspb.Message.setField(this, 4, value);
|
|
38495
|
+
};
|
|
38496
|
+
|
|
38497
|
+
|
|
38498
|
+
/**
|
|
38499
|
+
* Clears the field making it undefined.
|
|
38500
|
+
* @return {!proto.payment.SavedDepositCard} returns this
|
|
38501
|
+
*/
|
|
38502
|
+
proto.payment.SavedDepositCard.prototype.clearCardExpireMonth = function() {
|
|
38503
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
38504
|
+
};
|
|
38505
|
+
|
|
38506
|
+
|
|
38507
|
+
/**
|
|
38508
|
+
* Returns whether this field is set.
|
|
38509
|
+
* @return {boolean}
|
|
38510
|
+
*/
|
|
38511
|
+
proto.payment.SavedDepositCard.prototype.hasCardExpireMonth = function() {
|
|
38512
|
+
return jspb.Message.getField(this, 4) != null;
|
|
38513
|
+
};
|
|
38514
|
+
|
|
38515
|
+
|
|
38516
|
+
/**
|
|
38517
|
+
* optional string card_expire_year = 5;
|
|
38518
|
+
* @return {string}
|
|
38519
|
+
*/
|
|
38520
|
+
proto.payment.SavedDepositCard.prototype.getCardExpireYear = function() {
|
|
38521
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
38522
|
+
};
|
|
38523
|
+
|
|
38524
|
+
|
|
38525
|
+
/**
|
|
38526
|
+
* @param {string} value
|
|
38527
|
+
* @return {!proto.payment.SavedDepositCard} returns this
|
|
38528
|
+
*/
|
|
38529
|
+
proto.payment.SavedDepositCard.prototype.setCardExpireYear = function(value) {
|
|
38530
|
+
return jspb.Message.setField(this, 5, value);
|
|
38531
|
+
};
|
|
38532
|
+
|
|
38533
|
+
|
|
38534
|
+
/**
|
|
38535
|
+
* Clears the field making it undefined.
|
|
38536
|
+
* @return {!proto.payment.SavedDepositCard} returns this
|
|
38537
|
+
*/
|
|
38538
|
+
proto.payment.SavedDepositCard.prototype.clearCardExpireYear = function() {
|
|
38539
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
38540
|
+
};
|
|
38541
|
+
|
|
38542
|
+
|
|
38543
|
+
/**
|
|
38544
|
+
* Returns whether this field is set.
|
|
38545
|
+
* @return {boolean}
|
|
38546
|
+
*/
|
|
38547
|
+
proto.payment.SavedDepositCard.prototype.hasCardExpireYear = function() {
|
|
38548
|
+
return jspb.Message.getField(this, 5) != null;
|
|
38549
|
+
};
|
|
38550
|
+
|
|
38551
|
+
|
|
38552
|
+
|
|
38131
38553
|
/**
|
|
38132
38554
|
* List of repeated fields within this message type.
|
|
38133
38555
|
* @private {!Array<number>}
|
|
38134
38556
|
* @const
|
|
38135
38557
|
*/
|
|
38136
|
-
proto.payment.UserPaymentMethodItem.repeatedFields_ = [19];
|
|
38558
|
+
proto.payment.UserPaymentMethodItem.repeatedFields_ = [19,31];
|
|
38137
38559
|
|
|
38138
38560
|
|
|
38139
38561
|
|
|
@@ -38195,7 +38617,10 @@ proto.payment.UserPaymentMethodItem.toObject = function(includeInstance, msg) {
|
|
|
38195
38617
|
isTop: jspb.Message.getFieldWithDefault(msg, 26, 0),
|
|
38196
38618
|
isPopular: jspb.Message.getFieldWithDefault(msg, 27, 0),
|
|
38197
38619
|
isNew: jspb.Message.getFieldWithDefault(msg, 28, 0),
|
|
38198
|
-
allowZeroAmount: jspb.Message.getBooleanFieldWithDefault(msg, 29, false)
|
|
38620
|
+
allowZeroAmount: jspb.Message.getBooleanFieldWithDefault(msg, 29, false),
|
|
38621
|
+
saveCard: jspb.Message.getBooleanFieldWithDefault(msg, 30, false),
|
|
38622
|
+
savedCardsList: jspb.Message.toObjectList(msg.getSavedCardsList(),
|
|
38623
|
+
proto.payment.SavedDepositCard.toObject, includeInstance)
|
|
38199
38624
|
};
|
|
38200
38625
|
|
|
38201
38626
|
if (includeInstance) {
|
|
@@ -38349,6 +38774,15 @@ proto.payment.UserPaymentMethodItem.deserializeBinaryFromReader = function(msg,
|
|
|
38349
38774
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
38350
38775
|
msg.setAllowZeroAmount(value);
|
|
38351
38776
|
break;
|
|
38777
|
+
case 30:
|
|
38778
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
38779
|
+
msg.setSaveCard(value);
|
|
38780
|
+
break;
|
|
38781
|
+
case 31:
|
|
38782
|
+
var value = new proto.payment.SavedDepositCard;
|
|
38783
|
+
reader.readMessage(value,proto.payment.SavedDepositCard.deserializeBinaryFromReader);
|
|
38784
|
+
msg.addSavedCards(value);
|
|
38785
|
+
break;
|
|
38352
38786
|
default:
|
|
38353
38787
|
reader.skipField();
|
|
38354
38788
|
break;
|
|
@@ -38582,6 +39016,21 @@ proto.payment.UserPaymentMethodItem.serializeBinaryToWriter = function(message,
|
|
|
38582
39016
|
f
|
|
38583
39017
|
);
|
|
38584
39018
|
}
|
|
39019
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 30));
|
|
39020
|
+
if (f != null) {
|
|
39021
|
+
writer.writeBool(
|
|
39022
|
+
30,
|
|
39023
|
+
f
|
|
39024
|
+
);
|
|
39025
|
+
}
|
|
39026
|
+
f = message.getSavedCardsList();
|
|
39027
|
+
if (f.length > 0) {
|
|
39028
|
+
writer.writeRepeatedMessage(
|
|
39029
|
+
31,
|
|
39030
|
+
f,
|
|
39031
|
+
proto.payment.SavedDepositCard.serializeBinaryToWriter
|
|
39032
|
+
);
|
|
39033
|
+
}
|
|
38585
39034
|
};
|
|
38586
39035
|
|
|
38587
39036
|
|
|
@@ -39451,6 +39900,80 @@ proto.payment.UserPaymentMethodItem.prototype.hasAllowZeroAmount = function() {
|
|
|
39451
39900
|
};
|
|
39452
39901
|
|
|
39453
39902
|
|
|
39903
|
+
/**
|
|
39904
|
+
* optional bool save_card = 30;
|
|
39905
|
+
* @return {boolean}
|
|
39906
|
+
*/
|
|
39907
|
+
proto.payment.UserPaymentMethodItem.prototype.getSaveCard = function() {
|
|
39908
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 30, false));
|
|
39909
|
+
};
|
|
39910
|
+
|
|
39911
|
+
|
|
39912
|
+
/**
|
|
39913
|
+
* @param {boolean} value
|
|
39914
|
+
* @return {!proto.payment.UserPaymentMethodItem} returns this
|
|
39915
|
+
*/
|
|
39916
|
+
proto.payment.UserPaymentMethodItem.prototype.setSaveCard = function(value) {
|
|
39917
|
+
return jspb.Message.setField(this, 30, value);
|
|
39918
|
+
};
|
|
39919
|
+
|
|
39920
|
+
|
|
39921
|
+
/**
|
|
39922
|
+
* Clears the field making it undefined.
|
|
39923
|
+
* @return {!proto.payment.UserPaymentMethodItem} returns this
|
|
39924
|
+
*/
|
|
39925
|
+
proto.payment.UserPaymentMethodItem.prototype.clearSaveCard = function() {
|
|
39926
|
+
return jspb.Message.setField(this, 30, undefined);
|
|
39927
|
+
};
|
|
39928
|
+
|
|
39929
|
+
|
|
39930
|
+
/**
|
|
39931
|
+
* Returns whether this field is set.
|
|
39932
|
+
* @return {boolean}
|
|
39933
|
+
*/
|
|
39934
|
+
proto.payment.UserPaymentMethodItem.prototype.hasSaveCard = function() {
|
|
39935
|
+
return jspb.Message.getField(this, 30) != null;
|
|
39936
|
+
};
|
|
39937
|
+
|
|
39938
|
+
|
|
39939
|
+
/**
|
|
39940
|
+
* repeated SavedDepositCard saved_cards = 31;
|
|
39941
|
+
* @return {!Array<!proto.payment.SavedDepositCard>}
|
|
39942
|
+
*/
|
|
39943
|
+
proto.payment.UserPaymentMethodItem.prototype.getSavedCardsList = function() {
|
|
39944
|
+
return /** @type{!Array<!proto.payment.SavedDepositCard>} */ (
|
|
39945
|
+
jspb.Message.getRepeatedWrapperField(this, proto.payment.SavedDepositCard, 31));
|
|
39946
|
+
};
|
|
39947
|
+
|
|
39948
|
+
|
|
39949
|
+
/**
|
|
39950
|
+
* @param {!Array<!proto.payment.SavedDepositCard>} value
|
|
39951
|
+
* @return {!proto.payment.UserPaymentMethodItem} returns this
|
|
39952
|
+
*/
|
|
39953
|
+
proto.payment.UserPaymentMethodItem.prototype.setSavedCardsList = function(value) {
|
|
39954
|
+
return jspb.Message.setRepeatedWrapperField(this, 31, value);
|
|
39955
|
+
};
|
|
39956
|
+
|
|
39957
|
+
|
|
39958
|
+
/**
|
|
39959
|
+
* @param {!proto.payment.SavedDepositCard=} opt_value
|
|
39960
|
+
* @param {number=} opt_index
|
|
39961
|
+
* @return {!proto.payment.SavedDepositCard}
|
|
39962
|
+
*/
|
|
39963
|
+
proto.payment.UserPaymentMethodItem.prototype.addSavedCards = function(opt_value, opt_index) {
|
|
39964
|
+
return jspb.Message.addToRepeatedWrapperField(this, 31, opt_value, proto.payment.SavedDepositCard, opt_index);
|
|
39965
|
+
};
|
|
39966
|
+
|
|
39967
|
+
|
|
39968
|
+
/**
|
|
39969
|
+
* Clears the list making it empty but non-null.
|
|
39970
|
+
* @return {!proto.payment.UserPaymentMethodItem} returns this
|
|
39971
|
+
*/
|
|
39972
|
+
proto.payment.UserPaymentMethodItem.prototype.clearSavedCardsList = function() {
|
|
39973
|
+
return this.setSavedCardsList([]);
|
|
39974
|
+
};
|
|
39975
|
+
|
|
39976
|
+
|
|
39454
39977
|
|
|
39455
39978
|
/**
|
|
39456
39979
|
* List of repeated fields within this message type.
|