protobuf-platform 1.2.712 → 1.2.714
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/cms/cms.proto +2 -1
- package/cms/cms_pb.js +21 -3
- package/package.json +1 -1
- package/payment/payment.proto +8 -0
- package/payment/payment_grpc_pb.js +23 -0
- package/payment/payment_pb.js +212 -0
package/cms/cms.proto
CHANGED
|
@@ -1114,7 +1114,8 @@ message FooterMainTextItemRequest {
|
|
|
1114
1114
|
// Locale-content pair stored inside the same document
|
|
1115
1115
|
message LocaleContentItem {
|
|
1116
1116
|
string locale = 1; // e.g. "en-US"
|
|
1117
|
-
|
|
1117
|
+
// Presence distinguishes a saved empty string from cleared content.
|
|
1118
|
+
optional string content = 2; // localized WYSIWYG
|
|
1118
1119
|
}
|
|
1119
1120
|
|
|
1120
1121
|
// Single entity returned to client
|
package/cms/cms_pb.js
CHANGED
|
@@ -43790,8 +43790,8 @@ proto.cms.LocaleContentItem.serializeBinaryToWriter = function(message, writer)
|
|
|
43790
43790
|
f
|
|
43791
43791
|
);
|
|
43792
43792
|
}
|
|
43793
|
-
f =
|
|
43794
|
-
if (f
|
|
43793
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
43794
|
+
if (f != null) {
|
|
43795
43795
|
writer.writeString(
|
|
43796
43796
|
2,
|
|
43797
43797
|
f
|
|
@@ -43832,7 +43832,25 @@ proto.cms.LocaleContentItem.prototype.getContent = function() {
|
|
|
43832
43832
|
* @return {!proto.cms.LocaleContentItem} returns this
|
|
43833
43833
|
*/
|
|
43834
43834
|
proto.cms.LocaleContentItem.prototype.setContent = function(value) {
|
|
43835
|
-
return jspb.Message.
|
|
43835
|
+
return jspb.Message.setField(this, 2, value);
|
|
43836
|
+
};
|
|
43837
|
+
|
|
43838
|
+
|
|
43839
|
+
/**
|
|
43840
|
+
* Clears the field making it undefined.
|
|
43841
|
+
* @return {!proto.cms.LocaleContentItem} returns this
|
|
43842
|
+
*/
|
|
43843
|
+
proto.cms.LocaleContentItem.prototype.clearContent = function() {
|
|
43844
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
43845
|
+
};
|
|
43846
|
+
|
|
43847
|
+
|
|
43848
|
+
/**
|
|
43849
|
+
* Returns whether this field is set.
|
|
43850
|
+
* @return {boolean}
|
|
43851
|
+
*/
|
|
43852
|
+
proto.cms.LocaleContentItem.prototype.hasContent = function() {
|
|
43853
|
+
return jspb.Message.getField(this, 2) != null;
|
|
43836
43854
|
};
|
|
43837
43855
|
|
|
43838
43856
|
|
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
|
@@ -58,6 +58,8 @@ service Payment {
|
|
|
58
58
|
rpc getUserDepositCount(GetUserDepositCountRequest) returns (UserDepositCountResponse);
|
|
59
59
|
rpc getPaymentMethodsForUser(GetUserPaymentsInfoRequest) returns (UserPaymentMethodsResponse);
|
|
60
60
|
rpc checkFastDeposit(CheckFastDepositRequest) returns (CheckFastDepositResponse);
|
|
61
|
+
// Removes one saved deposit card owned by the authenticated user and payment method.
|
|
62
|
+
rpc deleteSavedDepositCard(DeleteSavedDepositCardRequest) returns (PaymentStatusResponse);
|
|
61
63
|
rpc getWithdrawalWagerSnapshot(GetWithdrawalWagerSnapshotRequest) returns (GetWithdrawalWagerSnapshotResponse);
|
|
62
64
|
rpc checkWithdrawalEligibility(CheckWithdrawalEligibilityRequest) returns (CheckWithdrawalEligibilityResponse);
|
|
63
65
|
rpc getWithdrawalWagerBucketHistory(GetWithdrawalWagerBucketHistoryRequest) returns (GetWithdrawalWagerBucketHistoryResponse);
|
|
@@ -887,6 +889,12 @@ message UserWalletOperationHistoryItemsResponse {
|
|
|
887
889
|
optional int32 total_pages = 2;
|
|
888
890
|
optional int32 total_items = 3;
|
|
889
891
|
}
|
|
892
|
+
// Deletes one saved card for the authenticated user. user_id is taken from the session.
|
|
893
|
+
message DeleteSavedDepositCardRequest {
|
|
894
|
+
int32 user_id = 1;
|
|
895
|
+
int32 payment_method_id = 2;
|
|
896
|
+
string saved_card_id = 3;
|
|
897
|
+
}
|
|
890
898
|
// Masked saved-card selection metadata. Never carries a full PAN or CVV.
|
|
891
899
|
message SavedDepositCard {
|
|
892
900
|
string saved_card_id = 1;
|
|
@@ -246,6 +246,17 @@ function deserialize_payment_CurrencyResponse(buffer_arg) {
|
|
|
246
246
|
return payment_pb.CurrencyResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
247
247
|
}
|
|
248
248
|
|
|
249
|
+
function serialize_payment_DeleteSavedDepositCardRequest(arg) {
|
|
250
|
+
if (!(arg instanceof payment_pb.DeleteSavedDepositCardRequest)) {
|
|
251
|
+
throw new Error('Expected argument of type payment.DeleteSavedDepositCardRequest');
|
|
252
|
+
}
|
|
253
|
+
return Buffer.from(arg.serializeBinary());
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
function deserialize_payment_DeleteSavedDepositCardRequest(buffer_arg) {
|
|
257
|
+
return payment_pb.DeleteSavedDepositCardRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
258
|
+
}
|
|
259
|
+
|
|
249
260
|
function serialize_payment_DepositItemsResponse(arg) {
|
|
250
261
|
if (!(arg instanceof payment_pb.DepositItemsResponse)) {
|
|
251
262
|
throw new Error('Expected argument of type payment.DepositItemsResponse');
|
|
@@ -1709,6 +1720,18 @@ userPaymentsInfo: {
|
|
|
1709
1720
|
responseSerialize: serialize_payment_CheckFastDepositResponse,
|
|
1710
1721
|
responseDeserialize: deserialize_payment_CheckFastDepositResponse,
|
|
1711
1722
|
},
|
|
1723
|
+
// Removes one saved deposit card owned by the authenticated user and payment method.
|
|
1724
|
+
deleteSavedDepositCard: {
|
|
1725
|
+
path: '/payment.Payment/deleteSavedDepositCard',
|
|
1726
|
+
requestStream: false,
|
|
1727
|
+
responseStream: false,
|
|
1728
|
+
requestType: payment_pb.DeleteSavedDepositCardRequest,
|
|
1729
|
+
responseType: payment_pb.PaymentStatusResponse,
|
|
1730
|
+
requestSerialize: serialize_payment_DeleteSavedDepositCardRequest,
|
|
1731
|
+
requestDeserialize: deserialize_payment_DeleteSavedDepositCardRequest,
|
|
1732
|
+
responseSerialize: serialize_payment_PaymentStatusResponse,
|
|
1733
|
+
responseDeserialize: deserialize_payment_PaymentStatusResponse,
|
|
1734
|
+
},
|
|
1712
1735
|
getWithdrawalWagerSnapshot: {
|
|
1713
1736
|
path: '/payment.Payment/getWithdrawalWagerSnapshot',
|
|
1714
1737
|
requestStream: false,
|
package/payment/payment_pb.js
CHANGED
|
@@ -53,6 +53,7 @@ goog.exportSymbol('proto.payment.CurrencyItemsResponse', null, global);
|
|
|
53
53
|
goog.exportSymbol('proto.payment.CurrencyMetadataItem', null, global);
|
|
54
54
|
goog.exportSymbol('proto.payment.CurrencyMetadataResponse', null, global);
|
|
55
55
|
goog.exportSymbol('proto.payment.CurrencyResponse', null, global);
|
|
56
|
+
goog.exportSymbol('proto.payment.DeleteSavedDepositCardRequest', null, global);
|
|
56
57
|
goog.exportSymbol('proto.payment.DepositItem', null, global);
|
|
57
58
|
goog.exportSymbol('proto.payment.DepositItemsResponse', null, global);
|
|
58
59
|
goog.exportSymbol('proto.payment.DepositReconciliationRequest', null, global);
|
|
@@ -1768,6 +1769,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1768
1769
|
*/
|
|
1769
1770
|
proto.payment.UserWalletOperationHistoryItemsResponse.displayName = 'proto.payment.UserWalletOperationHistoryItemsResponse';
|
|
1770
1771
|
}
|
|
1772
|
+
/**
|
|
1773
|
+
* Generated by JsPbCodeGenerator.
|
|
1774
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1775
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1776
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1777
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1778
|
+
* valid.
|
|
1779
|
+
* @extends {jspb.Message}
|
|
1780
|
+
* @constructor
|
|
1781
|
+
*/
|
|
1782
|
+
proto.payment.DeleteSavedDepositCardRequest = function(opt_data) {
|
|
1783
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1784
|
+
};
|
|
1785
|
+
goog.inherits(proto.payment.DeleteSavedDepositCardRequest, jspb.Message);
|
|
1786
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1787
|
+
/**
|
|
1788
|
+
* @public
|
|
1789
|
+
* @override
|
|
1790
|
+
*/
|
|
1791
|
+
proto.payment.DeleteSavedDepositCardRequest.displayName = 'proto.payment.DeleteSavedDepositCardRequest';
|
|
1792
|
+
}
|
|
1771
1793
|
/**
|
|
1772
1794
|
* Generated by JsPbCodeGenerator.
|
|
1773
1795
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -38336,6 +38358,196 @@ proto.payment.UserWalletOperationHistoryItemsResponse.prototype.hasTotalItems =
|
|
|
38336
38358
|
|
|
38337
38359
|
|
|
38338
38360
|
|
|
38361
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
38362
|
+
/**
|
|
38363
|
+
* Creates an object representation of this proto.
|
|
38364
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
38365
|
+
* Optional fields that are not set will be set to undefined.
|
|
38366
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
38367
|
+
* For the list of reserved names please see:
|
|
38368
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
38369
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
38370
|
+
* JSPB instance for transitional soy proto support:
|
|
38371
|
+
* http://goto/soy-param-migration
|
|
38372
|
+
* @return {!Object}
|
|
38373
|
+
*/
|
|
38374
|
+
proto.payment.DeleteSavedDepositCardRequest.prototype.toObject = function(opt_includeInstance) {
|
|
38375
|
+
return proto.payment.DeleteSavedDepositCardRequest.toObject(opt_includeInstance, this);
|
|
38376
|
+
};
|
|
38377
|
+
|
|
38378
|
+
|
|
38379
|
+
/**
|
|
38380
|
+
* Static version of the {@see toObject} method.
|
|
38381
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
38382
|
+
* the JSPB instance for transitional soy proto support:
|
|
38383
|
+
* http://goto/soy-param-migration
|
|
38384
|
+
* @param {!proto.payment.DeleteSavedDepositCardRequest} msg The msg instance to transform.
|
|
38385
|
+
* @return {!Object}
|
|
38386
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
38387
|
+
*/
|
|
38388
|
+
proto.payment.DeleteSavedDepositCardRequest.toObject = function(includeInstance, msg) {
|
|
38389
|
+
var f, obj = {
|
|
38390
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
38391
|
+
paymentMethodId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
38392
|
+
savedCardId: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
38393
|
+
};
|
|
38394
|
+
|
|
38395
|
+
if (includeInstance) {
|
|
38396
|
+
obj.$jspbMessageInstance = msg;
|
|
38397
|
+
}
|
|
38398
|
+
return obj;
|
|
38399
|
+
};
|
|
38400
|
+
}
|
|
38401
|
+
|
|
38402
|
+
|
|
38403
|
+
/**
|
|
38404
|
+
* Deserializes binary data (in protobuf wire format).
|
|
38405
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
38406
|
+
* @return {!proto.payment.DeleteSavedDepositCardRequest}
|
|
38407
|
+
*/
|
|
38408
|
+
proto.payment.DeleteSavedDepositCardRequest.deserializeBinary = function(bytes) {
|
|
38409
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
38410
|
+
var msg = new proto.payment.DeleteSavedDepositCardRequest;
|
|
38411
|
+
return proto.payment.DeleteSavedDepositCardRequest.deserializeBinaryFromReader(msg, reader);
|
|
38412
|
+
};
|
|
38413
|
+
|
|
38414
|
+
|
|
38415
|
+
/**
|
|
38416
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
38417
|
+
* given reader into the given message object.
|
|
38418
|
+
* @param {!proto.payment.DeleteSavedDepositCardRequest} msg The message object to deserialize into.
|
|
38419
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
38420
|
+
* @return {!proto.payment.DeleteSavedDepositCardRequest}
|
|
38421
|
+
*/
|
|
38422
|
+
proto.payment.DeleteSavedDepositCardRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
38423
|
+
while (reader.nextField()) {
|
|
38424
|
+
if (reader.isEndGroup()) {
|
|
38425
|
+
break;
|
|
38426
|
+
}
|
|
38427
|
+
var field = reader.getFieldNumber();
|
|
38428
|
+
switch (field) {
|
|
38429
|
+
case 1:
|
|
38430
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
38431
|
+
msg.setUserId(value);
|
|
38432
|
+
break;
|
|
38433
|
+
case 2:
|
|
38434
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
38435
|
+
msg.setPaymentMethodId(value);
|
|
38436
|
+
break;
|
|
38437
|
+
case 3:
|
|
38438
|
+
var value = /** @type {string} */ (reader.readString());
|
|
38439
|
+
msg.setSavedCardId(value);
|
|
38440
|
+
break;
|
|
38441
|
+
default:
|
|
38442
|
+
reader.skipField();
|
|
38443
|
+
break;
|
|
38444
|
+
}
|
|
38445
|
+
}
|
|
38446
|
+
return msg;
|
|
38447
|
+
};
|
|
38448
|
+
|
|
38449
|
+
|
|
38450
|
+
/**
|
|
38451
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
38452
|
+
* @return {!Uint8Array}
|
|
38453
|
+
*/
|
|
38454
|
+
proto.payment.DeleteSavedDepositCardRequest.prototype.serializeBinary = function() {
|
|
38455
|
+
var writer = new jspb.BinaryWriter();
|
|
38456
|
+
proto.payment.DeleteSavedDepositCardRequest.serializeBinaryToWriter(this, writer);
|
|
38457
|
+
return writer.getResultBuffer();
|
|
38458
|
+
};
|
|
38459
|
+
|
|
38460
|
+
|
|
38461
|
+
/**
|
|
38462
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
38463
|
+
* format), writing to the given BinaryWriter.
|
|
38464
|
+
* @param {!proto.payment.DeleteSavedDepositCardRequest} message
|
|
38465
|
+
* @param {!jspb.BinaryWriter} writer
|
|
38466
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
38467
|
+
*/
|
|
38468
|
+
proto.payment.DeleteSavedDepositCardRequest.serializeBinaryToWriter = function(message, writer) {
|
|
38469
|
+
var f = undefined;
|
|
38470
|
+
f = message.getUserId();
|
|
38471
|
+
if (f !== 0) {
|
|
38472
|
+
writer.writeInt32(
|
|
38473
|
+
1,
|
|
38474
|
+
f
|
|
38475
|
+
);
|
|
38476
|
+
}
|
|
38477
|
+
f = message.getPaymentMethodId();
|
|
38478
|
+
if (f !== 0) {
|
|
38479
|
+
writer.writeInt32(
|
|
38480
|
+
2,
|
|
38481
|
+
f
|
|
38482
|
+
);
|
|
38483
|
+
}
|
|
38484
|
+
f = message.getSavedCardId();
|
|
38485
|
+
if (f.length > 0) {
|
|
38486
|
+
writer.writeString(
|
|
38487
|
+
3,
|
|
38488
|
+
f
|
|
38489
|
+
);
|
|
38490
|
+
}
|
|
38491
|
+
};
|
|
38492
|
+
|
|
38493
|
+
|
|
38494
|
+
/**
|
|
38495
|
+
* optional int32 user_id = 1;
|
|
38496
|
+
* @return {number}
|
|
38497
|
+
*/
|
|
38498
|
+
proto.payment.DeleteSavedDepositCardRequest.prototype.getUserId = function() {
|
|
38499
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
38500
|
+
};
|
|
38501
|
+
|
|
38502
|
+
|
|
38503
|
+
/**
|
|
38504
|
+
* @param {number} value
|
|
38505
|
+
* @return {!proto.payment.DeleteSavedDepositCardRequest} returns this
|
|
38506
|
+
*/
|
|
38507
|
+
proto.payment.DeleteSavedDepositCardRequest.prototype.setUserId = function(value) {
|
|
38508
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
38509
|
+
};
|
|
38510
|
+
|
|
38511
|
+
|
|
38512
|
+
/**
|
|
38513
|
+
* optional int32 payment_method_id = 2;
|
|
38514
|
+
* @return {number}
|
|
38515
|
+
*/
|
|
38516
|
+
proto.payment.DeleteSavedDepositCardRequest.prototype.getPaymentMethodId = function() {
|
|
38517
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
38518
|
+
};
|
|
38519
|
+
|
|
38520
|
+
|
|
38521
|
+
/**
|
|
38522
|
+
* @param {number} value
|
|
38523
|
+
* @return {!proto.payment.DeleteSavedDepositCardRequest} returns this
|
|
38524
|
+
*/
|
|
38525
|
+
proto.payment.DeleteSavedDepositCardRequest.prototype.setPaymentMethodId = function(value) {
|
|
38526
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
38527
|
+
};
|
|
38528
|
+
|
|
38529
|
+
|
|
38530
|
+
/**
|
|
38531
|
+
* optional string saved_card_id = 3;
|
|
38532
|
+
* @return {string}
|
|
38533
|
+
*/
|
|
38534
|
+
proto.payment.DeleteSavedDepositCardRequest.prototype.getSavedCardId = function() {
|
|
38535
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
38536
|
+
};
|
|
38537
|
+
|
|
38538
|
+
|
|
38539
|
+
/**
|
|
38540
|
+
* @param {string} value
|
|
38541
|
+
* @return {!proto.payment.DeleteSavedDepositCardRequest} returns this
|
|
38542
|
+
*/
|
|
38543
|
+
proto.payment.DeleteSavedDepositCardRequest.prototype.setSavedCardId = function(value) {
|
|
38544
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
38545
|
+
};
|
|
38546
|
+
|
|
38547
|
+
|
|
38548
|
+
|
|
38549
|
+
|
|
38550
|
+
|
|
38339
38551
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
38340
38552
|
/**
|
|
38341
38553
|
* Creates an object representation of this proto.
|