protobuf-platform 1.0.220 → 1.0.221
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 +6 -0
- package/payment/payment_grpc_pb.js +22 -0
- package/payment/payment_pb.js +248 -0
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
@@ -19,6 +19,7 @@ service Payment {
|
|
19
19
|
rpc readListMethods(PaginationRequest) returns (MethodItemsResponse);
|
20
20
|
//Deposit
|
21
21
|
rpc attemptDeposit(AttemptDepositRequest) returns (DepositResponse);
|
22
|
+
rpc changeDepositStatus(GetDepositRequest) returns (DepositResponse);
|
22
23
|
}
|
23
24
|
//Technical
|
24
25
|
message PingRequest { string ping = 1; }
|
@@ -115,6 +116,11 @@ message AttemptDepositRequest {
|
|
115
116
|
optional int32 bonus_id = 4;
|
116
117
|
optional string user_currency = 5;
|
117
118
|
}
|
119
|
+
message GetDepositRequest {
|
120
|
+
int32 id = 1;
|
121
|
+
optional int32 maker_id = 2;
|
122
|
+
optional string reason = 3;
|
123
|
+
}
|
118
124
|
message DepositResponse {
|
119
125
|
int32 id = 1;
|
120
126
|
string status = 2;
|
@@ -37,6 +37,17 @@ function deserialize_payment_File(buffer_arg) {
|
|
37
37
|
return payment_pb.File.deserializeBinary(new Uint8Array(buffer_arg));
|
38
38
|
}
|
39
39
|
|
40
|
+
function serialize_payment_GetDepositRequest(arg) {
|
41
|
+
if (!(arg instanceof payment_pb.GetDepositRequest)) {
|
42
|
+
throw new Error('Expected argument of type payment.GetDepositRequest');
|
43
|
+
}
|
44
|
+
return Buffer.from(arg.serializeBinary());
|
45
|
+
}
|
46
|
+
|
47
|
+
function deserialize_payment_GetDepositRequest(buffer_arg) {
|
48
|
+
return payment_pb.GetDepositRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
49
|
+
}
|
50
|
+
|
40
51
|
function serialize_payment_GetFileRequest(arg) {
|
41
52
|
if (!(arg instanceof payment_pb.GetFileRequest)) {
|
42
53
|
throw new Error('Expected argument of type payment.GetFileRequest');
|
@@ -328,6 +339,17 @@ attemptDeposit: {
|
|
328
339
|
responseSerialize: serialize_payment_DepositResponse,
|
329
340
|
responseDeserialize: deserialize_payment_DepositResponse,
|
330
341
|
},
|
342
|
+
changeDepositStatus: {
|
343
|
+
path: '/payment.Payment/changeDepositStatus',
|
344
|
+
requestStream: false,
|
345
|
+
responseStream: false,
|
346
|
+
requestType: payment_pb.GetDepositRequest,
|
347
|
+
responseType: payment_pb.DepositResponse,
|
348
|
+
requestSerialize: serialize_payment_GetDepositRequest,
|
349
|
+
requestDeserialize: deserialize_payment_GetDepositRequest,
|
350
|
+
responseSerialize: serialize_payment_DepositResponse,
|
351
|
+
responseDeserialize: deserialize_payment_DepositResponse,
|
352
|
+
},
|
331
353
|
};
|
332
354
|
|
333
355
|
exports.PaymentClient = grpc.makeGenericClientConstructor(PaymentService);
|
package/payment/payment_pb.js
CHANGED
@@ -24,6 +24,7 @@ var global = (function() {
|
|
24
24
|
goog.exportSymbol('proto.payment.AttemptDepositRequest', null, global);
|
25
25
|
goog.exportSymbol('proto.payment.DepositResponse', null, global);
|
26
26
|
goog.exportSymbol('proto.payment.File', null, global);
|
27
|
+
goog.exportSymbol('proto.payment.GetDepositRequest', null, global);
|
27
28
|
goog.exportSymbol('proto.payment.GetFileRequest', null, global);
|
28
29
|
goog.exportSymbol('proto.payment.GetMethodRequest', null, global);
|
29
30
|
goog.exportSymbol('proto.payment.GetProviderRequest', null, global);
|
@@ -464,6 +465,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
464
465
|
*/
|
465
466
|
proto.payment.AttemptDepositRequest.displayName = 'proto.payment.AttemptDepositRequest';
|
466
467
|
}
|
468
|
+
/**
|
469
|
+
* Generated by JsPbCodeGenerator.
|
470
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
471
|
+
* server response, or constructed directly in Javascript. The array is used
|
472
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
473
|
+
* If no data is provided, the constructed object will be empty, but still
|
474
|
+
* valid.
|
475
|
+
* @extends {jspb.Message}
|
476
|
+
* @constructor
|
477
|
+
*/
|
478
|
+
proto.payment.GetDepositRequest = function(opt_data) {
|
479
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
480
|
+
};
|
481
|
+
goog.inherits(proto.payment.GetDepositRequest, jspb.Message);
|
482
|
+
if (goog.DEBUG && !COMPILED) {
|
483
|
+
/**
|
484
|
+
* @public
|
485
|
+
* @override
|
486
|
+
*/
|
487
|
+
proto.payment.GetDepositRequest.displayName = 'proto.payment.GetDepositRequest';
|
488
|
+
}
|
467
489
|
/**
|
468
490
|
* Generated by JsPbCodeGenerator.
|
469
491
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -5180,6 +5202,232 @@ proto.payment.AttemptDepositRequest.prototype.hasUserCurrency = function() {
|
|
5180
5202
|
|
5181
5203
|
|
5182
5204
|
|
5205
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
5206
|
+
/**
|
5207
|
+
* Creates an object representation of this proto.
|
5208
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
5209
|
+
* Optional fields that are not set will be set to undefined.
|
5210
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
5211
|
+
* For the list of reserved names please see:
|
5212
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
5213
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
5214
|
+
* JSPB instance for transitional soy proto support:
|
5215
|
+
* http://goto/soy-param-migration
|
5216
|
+
* @return {!Object}
|
5217
|
+
*/
|
5218
|
+
proto.payment.GetDepositRequest.prototype.toObject = function(opt_includeInstance) {
|
5219
|
+
return proto.payment.GetDepositRequest.toObject(opt_includeInstance, this);
|
5220
|
+
};
|
5221
|
+
|
5222
|
+
|
5223
|
+
/**
|
5224
|
+
* Static version of the {@see toObject} method.
|
5225
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
5226
|
+
* the JSPB instance for transitional soy proto support:
|
5227
|
+
* http://goto/soy-param-migration
|
5228
|
+
* @param {!proto.payment.GetDepositRequest} msg The msg instance to transform.
|
5229
|
+
* @return {!Object}
|
5230
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5231
|
+
*/
|
5232
|
+
proto.payment.GetDepositRequest.toObject = function(includeInstance, msg) {
|
5233
|
+
var f, obj = {
|
5234
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
5235
|
+
makerId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
5236
|
+
reason: jspb.Message.getFieldWithDefault(msg, 3, "")
|
5237
|
+
};
|
5238
|
+
|
5239
|
+
if (includeInstance) {
|
5240
|
+
obj.$jspbMessageInstance = msg;
|
5241
|
+
}
|
5242
|
+
return obj;
|
5243
|
+
};
|
5244
|
+
}
|
5245
|
+
|
5246
|
+
|
5247
|
+
/**
|
5248
|
+
* Deserializes binary data (in protobuf wire format).
|
5249
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
5250
|
+
* @return {!proto.payment.GetDepositRequest}
|
5251
|
+
*/
|
5252
|
+
proto.payment.GetDepositRequest.deserializeBinary = function(bytes) {
|
5253
|
+
var reader = new jspb.BinaryReader(bytes);
|
5254
|
+
var msg = new proto.payment.GetDepositRequest;
|
5255
|
+
return proto.payment.GetDepositRequest.deserializeBinaryFromReader(msg, reader);
|
5256
|
+
};
|
5257
|
+
|
5258
|
+
|
5259
|
+
/**
|
5260
|
+
* Deserializes binary data (in protobuf wire format) from the
|
5261
|
+
* given reader into the given message object.
|
5262
|
+
* @param {!proto.payment.GetDepositRequest} msg The message object to deserialize into.
|
5263
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
5264
|
+
* @return {!proto.payment.GetDepositRequest}
|
5265
|
+
*/
|
5266
|
+
proto.payment.GetDepositRequest.deserializeBinaryFromReader = function(msg, reader) {
|
5267
|
+
while (reader.nextField()) {
|
5268
|
+
if (reader.isEndGroup()) {
|
5269
|
+
break;
|
5270
|
+
}
|
5271
|
+
var field = reader.getFieldNumber();
|
5272
|
+
switch (field) {
|
5273
|
+
case 1:
|
5274
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5275
|
+
msg.setId(value);
|
5276
|
+
break;
|
5277
|
+
case 2:
|
5278
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5279
|
+
msg.setMakerId(value);
|
5280
|
+
break;
|
5281
|
+
case 3:
|
5282
|
+
var value = /** @type {string} */ (reader.readString());
|
5283
|
+
msg.setReason(value);
|
5284
|
+
break;
|
5285
|
+
default:
|
5286
|
+
reader.skipField();
|
5287
|
+
break;
|
5288
|
+
}
|
5289
|
+
}
|
5290
|
+
return msg;
|
5291
|
+
};
|
5292
|
+
|
5293
|
+
|
5294
|
+
/**
|
5295
|
+
* Serializes the message to binary data (in protobuf wire format).
|
5296
|
+
* @return {!Uint8Array}
|
5297
|
+
*/
|
5298
|
+
proto.payment.GetDepositRequest.prototype.serializeBinary = function() {
|
5299
|
+
var writer = new jspb.BinaryWriter();
|
5300
|
+
proto.payment.GetDepositRequest.serializeBinaryToWriter(this, writer);
|
5301
|
+
return writer.getResultBuffer();
|
5302
|
+
};
|
5303
|
+
|
5304
|
+
|
5305
|
+
/**
|
5306
|
+
* Serializes the given message to binary data (in protobuf wire
|
5307
|
+
* format), writing to the given BinaryWriter.
|
5308
|
+
* @param {!proto.payment.GetDepositRequest} message
|
5309
|
+
* @param {!jspb.BinaryWriter} writer
|
5310
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5311
|
+
*/
|
5312
|
+
proto.payment.GetDepositRequest.serializeBinaryToWriter = function(message, writer) {
|
5313
|
+
var f = undefined;
|
5314
|
+
f = message.getId();
|
5315
|
+
if (f !== 0) {
|
5316
|
+
writer.writeInt32(
|
5317
|
+
1,
|
5318
|
+
f
|
5319
|
+
);
|
5320
|
+
}
|
5321
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
5322
|
+
if (f != null) {
|
5323
|
+
writer.writeInt32(
|
5324
|
+
2,
|
5325
|
+
f
|
5326
|
+
);
|
5327
|
+
}
|
5328
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
5329
|
+
if (f != null) {
|
5330
|
+
writer.writeString(
|
5331
|
+
3,
|
5332
|
+
f
|
5333
|
+
);
|
5334
|
+
}
|
5335
|
+
};
|
5336
|
+
|
5337
|
+
|
5338
|
+
/**
|
5339
|
+
* optional int32 id = 1;
|
5340
|
+
* @return {number}
|
5341
|
+
*/
|
5342
|
+
proto.payment.GetDepositRequest.prototype.getId = function() {
|
5343
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
5344
|
+
};
|
5345
|
+
|
5346
|
+
|
5347
|
+
/**
|
5348
|
+
* @param {number} value
|
5349
|
+
* @return {!proto.payment.GetDepositRequest} returns this
|
5350
|
+
*/
|
5351
|
+
proto.payment.GetDepositRequest.prototype.setId = function(value) {
|
5352
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
5353
|
+
};
|
5354
|
+
|
5355
|
+
|
5356
|
+
/**
|
5357
|
+
* optional int32 maker_id = 2;
|
5358
|
+
* @return {number}
|
5359
|
+
*/
|
5360
|
+
proto.payment.GetDepositRequest.prototype.getMakerId = function() {
|
5361
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
5362
|
+
};
|
5363
|
+
|
5364
|
+
|
5365
|
+
/**
|
5366
|
+
* @param {number} value
|
5367
|
+
* @return {!proto.payment.GetDepositRequest} returns this
|
5368
|
+
*/
|
5369
|
+
proto.payment.GetDepositRequest.prototype.setMakerId = function(value) {
|
5370
|
+
return jspb.Message.setField(this, 2, value);
|
5371
|
+
};
|
5372
|
+
|
5373
|
+
|
5374
|
+
/**
|
5375
|
+
* Clears the field making it undefined.
|
5376
|
+
* @return {!proto.payment.GetDepositRequest} returns this
|
5377
|
+
*/
|
5378
|
+
proto.payment.GetDepositRequest.prototype.clearMakerId = function() {
|
5379
|
+
return jspb.Message.setField(this, 2, undefined);
|
5380
|
+
};
|
5381
|
+
|
5382
|
+
|
5383
|
+
/**
|
5384
|
+
* Returns whether this field is set.
|
5385
|
+
* @return {boolean}
|
5386
|
+
*/
|
5387
|
+
proto.payment.GetDepositRequest.prototype.hasMakerId = function() {
|
5388
|
+
return jspb.Message.getField(this, 2) != null;
|
5389
|
+
};
|
5390
|
+
|
5391
|
+
|
5392
|
+
/**
|
5393
|
+
* optional string reason = 3;
|
5394
|
+
* @return {string}
|
5395
|
+
*/
|
5396
|
+
proto.payment.GetDepositRequest.prototype.getReason = function() {
|
5397
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
5398
|
+
};
|
5399
|
+
|
5400
|
+
|
5401
|
+
/**
|
5402
|
+
* @param {string} value
|
5403
|
+
* @return {!proto.payment.GetDepositRequest} returns this
|
5404
|
+
*/
|
5405
|
+
proto.payment.GetDepositRequest.prototype.setReason = function(value) {
|
5406
|
+
return jspb.Message.setField(this, 3, value);
|
5407
|
+
};
|
5408
|
+
|
5409
|
+
|
5410
|
+
/**
|
5411
|
+
* Clears the field making it undefined.
|
5412
|
+
* @return {!proto.payment.GetDepositRequest} returns this
|
5413
|
+
*/
|
5414
|
+
proto.payment.GetDepositRequest.prototype.clearReason = function() {
|
5415
|
+
return jspb.Message.setField(this, 3, undefined);
|
5416
|
+
};
|
5417
|
+
|
5418
|
+
|
5419
|
+
/**
|
5420
|
+
* Returns whether this field is set.
|
5421
|
+
* @return {boolean}
|
5422
|
+
*/
|
5423
|
+
proto.payment.GetDepositRequest.prototype.hasReason = function() {
|
5424
|
+
return jspb.Message.getField(this, 3) != null;
|
5425
|
+
};
|
5426
|
+
|
5427
|
+
|
5428
|
+
|
5429
|
+
|
5430
|
+
|
5183
5431
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
5184
5432
|
/**
|
5185
5433
|
* Creates an object representation of this proto.
|