protobuf-platform 1.2.713 → 1.2.715
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 +10 -0
- package/payment/payment_grpc_pb.js +23 -0
- package/payment/payment_pb.js +261 -1
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);
|
|
@@ -180,6 +182,8 @@ message ProviderTranslationRequest {
|
|
|
180
182
|
optional string title = 3;
|
|
181
183
|
optional string description = 4;
|
|
182
184
|
optional int32 is_active = 5;
|
|
185
|
+
// Explicit WYSIWYG clear. Independent of field 4 so omission and "" stay distinct.
|
|
186
|
+
optional bool clear_description = 6;
|
|
183
187
|
}
|
|
184
188
|
message GetProviderTranslationRequest {
|
|
185
189
|
int32 payment_provider_id = 1;
|
|
@@ -887,6 +891,12 @@ message UserWalletOperationHistoryItemsResponse {
|
|
|
887
891
|
optional int32 total_pages = 2;
|
|
888
892
|
optional int32 total_items = 3;
|
|
889
893
|
}
|
|
894
|
+
// Deletes one saved card for the authenticated user. user_id is taken from the session.
|
|
895
|
+
message DeleteSavedDepositCardRequest {
|
|
896
|
+
int32 user_id = 1;
|
|
897
|
+
int32 payment_method_id = 2;
|
|
898
|
+
string saved_card_id = 3;
|
|
899
|
+
}
|
|
890
900
|
// Masked saved-card selection metadata. Never carries a full PAN or CVV.
|
|
891
901
|
message SavedDepositCard {
|
|
892
902
|
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
|
|
@@ -7130,7 +7152,8 @@ proto.payment.ProviderTranslationRequest.toObject = function(includeInstance, ms
|
|
|
7130
7152
|
locale: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
7131
7153
|
title: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
7132
7154
|
description: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
7133
|
-
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
7155
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
7156
|
+
clearDescription: jspb.Message.getBooleanFieldWithDefault(msg, 6, false)
|
|
7134
7157
|
};
|
|
7135
7158
|
|
|
7136
7159
|
if (includeInstance) {
|
|
@@ -7187,6 +7210,10 @@ proto.payment.ProviderTranslationRequest.deserializeBinaryFromReader = function(
|
|
|
7187
7210
|
var value = /** @type {number} */ (reader.readInt32());
|
|
7188
7211
|
msg.setIsActive(value);
|
|
7189
7212
|
break;
|
|
7213
|
+
case 6:
|
|
7214
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
7215
|
+
msg.setClearDescription(value);
|
|
7216
|
+
break;
|
|
7190
7217
|
default:
|
|
7191
7218
|
reader.skipField();
|
|
7192
7219
|
break;
|
|
@@ -7251,6 +7278,13 @@ proto.payment.ProviderTranslationRequest.serializeBinaryToWriter = function(mess
|
|
|
7251
7278
|
f
|
|
7252
7279
|
);
|
|
7253
7280
|
}
|
|
7281
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 6));
|
|
7282
|
+
if (f != null) {
|
|
7283
|
+
writer.writeBool(
|
|
7284
|
+
6,
|
|
7285
|
+
f
|
|
7286
|
+
);
|
|
7287
|
+
}
|
|
7254
7288
|
};
|
|
7255
7289
|
|
|
7256
7290
|
|
|
@@ -7434,6 +7468,42 @@ proto.payment.ProviderTranslationRequest.prototype.hasIsActive = function() {
|
|
|
7434
7468
|
};
|
|
7435
7469
|
|
|
7436
7470
|
|
|
7471
|
+
/**
|
|
7472
|
+
* optional bool clear_description = 6;
|
|
7473
|
+
* @return {boolean}
|
|
7474
|
+
*/
|
|
7475
|
+
proto.payment.ProviderTranslationRequest.prototype.getClearDescription = function() {
|
|
7476
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
|
|
7477
|
+
};
|
|
7478
|
+
|
|
7479
|
+
|
|
7480
|
+
/**
|
|
7481
|
+
* @param {boolean} value
|
|
7482
|
+
* @return {!proto.payment.ProviderTranslationRequest} returns this
|
|
7483
|
+
*/
|
|
7484
|
+
proto.payment.ProviderTranslationRequest.prototype.setClearDescription = function(value) {
|
|
7485
|
+
return jspb.Message.setField(this, 6, value);
|
|
7486
|
+
};
|
|
7487
|
+
|
|
7488
|
+
|
|
7489
|
+
/**
|
|
7490
|
+
* Clears the field making it undefined.
|
|
7491
|
+
* @return {!proto.payment.ProviderTranslationRequest} returns this
|
|
7492
|
+
*/
|
|
7493
|
+
proto.payment.ProviderTranslationRequest.prototype.clearClearDescription = function() {
|
|
7494
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
7495
|
+
};
|
|
7496
|
+
|
|
7497
|
+
|
|
7498
|
+
/**
|
|
7499
|
+
* Returns whether this field is set.
|
|
7500
|
+
* @return {boolean}
|
|
7501
|
+
*/
|
|
7502
|
+
proto.payment.ProviderTranslationRequest.prototype.hasClearDescription = function() {
|
|
7503
|
+
return jspb.Message.getField(this, 6) != null;
|
|
7504
|
+
};
|
|
7505
|
+
|
|
7506
|
+
|
|
7437
7507
|
|
|
7438
7508
|
|
|
7439
7509
|
|
|
@@ -38336,6 +38406,196 @@ proto.payment.UserWalletOperationHistoryItemsResponse.prototype.hasTotalItems =
|
|
|
38336
38406
|
|
|
38337
38407
|
|
|
38338
38408
|
|
|
38409
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
38410
|
+
/**
|
|
38411
|
+
* Creates an object representation of this proto.
|
|
38412
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
38413
|
+
* Optional fields that are not set will be set to undefined.
|
|
38414
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
38415
|
+
* For the list of reserved names please see:
|
|
38416
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
38417
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
38418
|
+
* JSPB instance for transitional soy proto support:
|
|
38419
|
+
* http://goto/soy-param-migration
|
|
38420
|
+
* @return {!Object}
|
|
38421
|
+
*/
|
|
38422
|
+
proto.payment.DeleteSavedDepositCardRequest.prototype.toObject = function(opt_includeInstance) {
|
|
38423
|
+
return proto.payment.DeleteSavedDepositCardRequest.toObject(opt_includeInstance, this);
|
|
38424
|
+
};
|
|
38425
|
+
|
|
38426
|
+
|
|
38427
|
+
/**
|
|
38428
|
+
* Static version of the {@see toObject} method.
|
|
38429
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
38430
|
+
* the JSPB instance for transitional soy proto support:
|
|
38431
|
+
* http://goto/soy-param-migration
|
|
38432
|
+
* @param {!proto.payment.DeleteSavedDepositCardRequest} msg The msg instance to transform.
|
|
38433
|
+
* @return {!Object}
|
|
38434
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
38435
|
+
*/
|
|
38436
|
+
proto.payment.DeleteSavedDepositCardRequest.toObject = function(includeInstance, msg) {
|
|
38437
|
+
var f, obj = {
|
|
38438
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
38439
|
+
paymentMethodId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
38440
|
+
savedCardId: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
38441
|
+
};
|
|
38442
|
+
|
|
38443
|
+
if (includeInstance) {
|
|
38444
|
+
obj.$jspbMessageInstance = msg;
|
|
38445
|
+
}
|
|
38446
|
+
return obj;
|
|
38447
|
+
};
|
|
38448
|
+
}
|
|
38449
|
+
|
|
38450
|
+
|
|
38451
|
+
/**
|
|
38452
|
+
* Deserializes binary data (in protobuf wire format).
|
|
38453
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
38454
|
+
* @return {!proto.payment.DeleteSavedDepositCardRequest}
|
|
38455
|
+
*/
|
|
38456
|
+
proto.payment.DeleteSavedDepositCardRequest.deserializeBinary = function(bytes) {
|
|
38457
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
38458
|
+
var msg = new proto.payment.DeleteSavedDepositCardRequest;
|
|
38459
|
+
return proto.payment.DeleteSavedDepositCardRequest.deserializeBinaryFromReader(msg, reader);
|
|
38460
|
+
};
|
|
38461
|
+
|
|
38462
|
+
|
|
38463
|
+
/**
|
|
38464
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
38465
|
+
* given reader into the given message object.
|
|
38466
|
+
* @param {!proto.payment.DeleteSavedDepositCardRequest} msg The message object to deserialize into.
|
|
38467
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
38468
|
+
* @return {!proto.payment.DeleteSavedDepositCardRequest}
|
|
38469
|
+
*/
|
|
38470
|
+
proto.payment.DeleteSavedDepositCardRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
38471
|
+
while (reader.nextField()) {
|
|
38472
|
+
if (reader.isEndGroup()) {
|
|
38473
|
+
break;
|
|
38474
|
+
}
|
|
38475
|
+
var field = reader.getFieldNumber();
|
|
38476
|
+
switch (field) {
|
|
38477
|
+
case 1:
|
|
38478
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
38479
|
+
msg.setUserId(value);
|
|
38480
|
+
break;
|
|
38481
|
+
case 2:
|
|
38482
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
38483
|
+
msg.setPaymentMethodId(value);
|
|
38484
|
+
break;
|
|
38485
|
+
case 3:
|
|
38486
|
+
var value = /** @type {string} */ (reader.readString());
|
|
38487
|
+
msg.setSavedCardId(value);
|
|
38488
|
+
break;
|
|
38489
|
+
default:
|
|
38490
|
+
reader.skipField();
|
|
38491
|
+
break;
|
|
38492
|
+
}
|
|
38493
|
+
}
|
|
38494
|
+
return msg;
|
|
38495
|
+
};
|
|
38496
|
+
|
|
38497
|
+
|
|
38498
|
+
/**
|
|
38499
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
38500
|
+
* @return {!Uint8Array}
|
|
38501
|
+
*/
|
|
38502
|
+
proto.payment.DeleteSavedDepositCardRequest.prototype.serializeBinary = function() {
|
|
38503
|
+
var writer = new jspb.BinaryWriter();
|
|
38504
|
+
proto.payment.DeleteSavedDepositCardRequest.serializeBinaryToWriter(this, writer);
|
|
38505
|
+
return writer.getResultBuffer();
|
|
38506
|
+
};
|
|
38507
|
+
|
|
38508
|
+
|
|
38509
|
+
/**
|
|
38510
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
38511
|
+
* format), writing to the given BinaryWriter.
|
|
38512
|
+
* @param {!proto.payment.DeleteSavedDepositCardRequest} message
|
|
38513
|
+
* @param {!jspb.BinaryWriter} writer
|
|
38514
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
38515
|
+
*/
|
|
38516
|
+
proto.payment.DeleteSavedDepositCardRequest.serializeBinaryToWriter = function(message, writer) {
|
|
38517
|
+
var f = undefined;
|
|
38518
|
+
f = message.getUserId();
|
|
38519
|
+
if (f !== 0) {
|
|
38520
|
+
writer.writeInt32(
|
|
38521
|
+
1,
|
|
38522
|
+
f
|
|
38523
|
+
);
|
|
38524
|
+
}
|
|
38525
|
+
f = message.getPaymentMethodId();
|
|
38526
|
+
if (f !== 0) {
|
|
38527
|
+
writer.writeInt32(
|
|
38528
|
+
2,
|
|
38529
|
+
f
|
|
38530
|
+
);
|
|
38531
|
+
}
|
|
38532
|
+
f = message.getSavedCardId();
|
|
38533
|
+
if (f.length > 0) {
|
|
38534
|
+
writer.writeString(
|
|
38535
|
+
3,
|
|
38536
|
+
f
|
|
38537
|
+
);
|
|
38538
|
+
}
|
|
38539
|
+
};
|
|
38540
|
+
|
|
38541
|
+
|
|
38542
|
+
/**
|
|
38543
|
+
* optional int32 user_id = 1;
|
|
38544
|
+
* @return {number}
|
|
38545
|
+
*/
|
|
38546
|
+
proto.payment.DeleteSavedDepositCardRequest.prototype.getUserId = function() {
|
|
38547
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
38548
|
+
};
|
|
38549
|
+
|
|
38550
|
+
|
|
38551
|
+
/**
|
|
38552
|
+
* @param {number} value
|
|
38553
|
+
* @return {!proto.payment.DeleteSavedDepositCardRequest} returns this
|
|
38554
|
+
*/
|
|
38555
|
+
proto.payment.DeleteSavedDepositCardRequest.prototype.setUserId = function(value) {
|
|
38556
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
38557
|
+
};
|
|
38558
|
+
|
|
38559
|
+
|
|
38560
|
+
/**
|
|
38561
|
+
* optional int32 payment_method_id = 2;
|
|
38562
|
+
* @return {number}
|
|
38563
|
+
*/
|
|
38564
|
+
proto.payment.DeleteSavedDepositCardRequest.prototype.getPaymentMethodId = function() {
|
|
38565
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
38566
|
+
};
|
|
38567
|
+
|
|
38568
|
+
|
|
38569
|
+
/**
|
|
38570
|
+
* @param {number} value
|
|
38571
|
+
* @return {!proto.payment.DeleteSavedDepositCardRequest} returns this
|
|
38572
|
+
*/
|
|
38573
|
+
proto.payment.DeleteSavedDepositCardRequest.prototype.setPaymentMethodId = function(value) {
|
|
38574
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
38575
|
+
};
|
|
38576
|
+
|
|
38577
|
+
|
|
38578
|
+
/**
|
|
38579
|
+
* optional string saved_card_id = 3;
|
|
38580
|
+
* @return {string}
|
|
38581
|
+
*/
|
|
38582
|
+
proto.payment.DeleteSavedDepositCardRequest.prototype.getSavedCardId = function() {
|
|
38583
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
38584
|
+
};
|
|
38585
|
+
|
|
38586
|
+
|
|
38587
|
+
/**
|
|
38588
|
+
* @param {string} value
|
|
38589
|
+
* @return {!proto.payment.DeleteSavedDepositCardRequest} returns this
|
|
38590
|
+
*/
|
|
38591
|
+
proto.payment.DeleteSavedDepositCardRequest.prototype.setSavedCardId = function(value) {
|
|
38592
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
38593
|
+
};
|
|
38594
|
+
|
|
38595
|
+
|
|
38596
|
+
|
|
38597
|
+
|
|
38598
|
+
|
|
38339
38599
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
38340
38600
|
/**
|
|
38341
38601
|
* Creates an object representation of this proto.
|