protobuf-platform 1.0.220 → 1.0.222
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 +21 -0
- package/payment/payment_grpc_pb.js +45 -0
- package/payment/payment_pb.js +881 -29
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
@@ -19,6 +19,9 @@ 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);
|
23
|
+
//Deposit Statuses
|
24
|
+
rpc readListDepositStatuses(PaginationRequest) returns (DepositStatusItemsResponse);
|
22
25
|
}
|
23
26
|
//Technical
|
24
27
|
message PingRequest { string ping = 1; }
|
@@ -115,7 +118,25 @@ message AttemptDepositRequest {
|
|
115
118
|
optional int32 bonus_id = 4;
|
116
119
|
optional string user_currency = 5;
|
117
120
|
}
|
121
|
+
message GetDepositRequest {
|
122
|
+
int32 id = 1;
|
123
|
+
optional int32 status_id = 2;
|
124
|
+
optional int32 maker_id = 3;
|
125
|
+
optional string reason = 4;
|
126
|
+
}
|
118
127
|
message DepositResponse {
|
119
128
|
int32 id = 1;
|
120
129
|
string status = 2;
|
130
|
+
}
|
131
|
+
//Deposit Status
|
132
|
+
message DepositStatus {
|
133
|
+
int32 id = 1;
|
134
|
+
string title = 2;
|
135
|
+
optional string description = 3;
|
136
|
+
optional int32 is_active = 4;
|
137
|
+
}
|
138
|
+
message DepositStatusItemsResponse {
|
139
|
+
repeated DepositStatus items = 1;
|
140
|
+
optional int32 total_pages = 2;
|
141
|
+
optional int32 total_items = 3;
|
121
142
|
}
|
@@ -26,6 +26,17 @@ function deserialize_payment_DepositResponse(buffer_arg) {
|
|
26
26
|
return payment_pb.DepositResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
27
27
|
}
|
28
28
|
|
29
|
+
function serialize_payment_DepositStatusItemsResponse(arg) {
|
30
|
+
if (!(arg instanceof payment_pb.DepositStatusItemsResponse)) {
|
31
|
+
throw new Error('Expected argument of type payment.DepositStatusItemsResponse');
|
32
|
+
}
|
33
|
+
return Buffer.from(arg.serializeBinary());
|
34
|
+
}
|
35
|
+
|
36
|
+
function deserialize_payment_DepositStatusItemsResponse(buffer_arg) {
|
37
|
+
return payment_pb.DepositStatusItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
38
|
+
}
|
39
|
+
|
29
40
|
function serialize_payment_File(arg) {
|
30
41
|
if (!(arg instanceof payment_pb.File)) {
|
31
42
|
throw new Error('Expected argument of type payment.File');
|
@@ -37,6 +48,17 @@ function deserialize_payment_File(buffer_arg) {
|
|
37
48
|
return payment_pb.File.deserializeBinary(new Uint8Array(buffer_arg));
|
38
49
|
}
|
39
50
|
|
51
|
+
function serialize_payment_GetDepositRequest(arg) {
|
52
|
+
if (!(arg instanceof payment_pb.GetDepositRequest)) {
|
53
|
+
throw new Error('Expected argument of type payment.GetDepositRequest');
|
54
|
+
}
|
55
|
+
return Buffer.from(arg.serializeBinary());
|
56
|
+
}
|
57
|
+
|
58
|
+
function deserialize_payment_GetDepositRequest(buffer_arg) {
|
59
|
+
return payment_pb.GetDepositRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
60
|
+
}
|
61
|
+
|
40
62
|
function serialize_payment_GetFileRequest(arg) {
|
41
63
|
if (!(arg instanceof payment_pb.GetFileRequest)) {
|
42
64
|
throw new Error('Expected argument of type payment.GetFileRequest');
|
@@ -328,6 +350,29 @@ attemptDeposit: {
|
|
328
350
|
responseSerialize: serialize_payment_DepositResponse,
|
329
351
|
responseDeserialize: deserialize_payment_DepositResponse,
|
330
352
|
},
|
353
|
+
changeDepositStatus: {
|
354
|
+
path: '/payment.Payment/changeDepositStatus',
|
355
|
+
requestStream: false,
|
356
|
+
responseStream: false,
|
357
|
+
requestType: payment_pb.GetDepositRequest,
|
358
|
+
responseType: payment_pb.DepositResponse,
|
359
|
+
requestSerialize: serialize_payment_GetDepositRequest,
|
360
|
+
requestDeserialize: deserialize_payment_GetDepositRequest,
|
361
|
+
responseSerialize: serialize_payment_DepositResponse,
|
362
|
+
responseDeserialize: deserialize_payment_DepositResponse,
|
363
|
+
},
|
364
|
+
// Deposit Statuses
|
365
|
+
readListDepositStatuses: {
|
366
|
+
path: '/payment.Payment/readListDepositStatuses',
|
367
|
+
requestStream: false,
|
368
|
+
responseStream: false,
|
369
|
+
requestType: payment_pb.PaginationRequest,
|
370
|
+
responseType: payment_pb.DepositStatusItemsResponse,
|
371
|
+
requestSerialize: serialize_payment_PaginationRequest,
|
372
|
+
requestDeserialize: deserialize_payment_PaginationRequest,
|
373
|
+
responseSerialize: serialize_payment_DepositStatusItemsResponse,
|
374
|
+
responseDeserialize: deserialize_payment_DepositStatusItemsResponse,
|
375
|
+
},
|
331
376
|
};
|
332
377
|
|
333
378
|
exports.PaymentClient = grpc.makeGenericClientConstructor(PaymentService);
|
package/payment/payment_pb.js
CHANGED
@@ -23,7 +23,10 @@ var global = (function() {
|
|
23
23
|
|
24
24
|
goog.exportSymbol('proto.payment.AttemptDepositRequest', null, global);
|
25
25
|
goog.exportSymbol('proto.payment.DepositResponse', null, global);
|
26
|
+
goog.exportSymbol('proto.payment.DepositStatus', null, global);
|
27
|
+
goog.exportSymbol('proto.payment.DepositStatusItemsResponse', null, global);
|
26
28
|
goog.exportSymbol('proto.payment.File', null, global);
|
29
|
+
goog.exportSymbol('proto.payment.GetDepositRequest', null, global);
|
27
30
|
goog.exportSymbol('proto.payment.GetFileRequest', null, global);
|
28
31
|
goog.exportSymbol('proto.payment.GetMethodRequest', null, global);
|
29
32
|
goog.exportSymbol('proto.payment.GetProviderRequest', null, global);
|
@@ -464,6 +467,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
464
467
|
*/
|
465
468
|
proto.payment.AttemptDepositRequest.displayName = 'proto.payment.AttemptDepositRequest';
|
466
469
|
}
|
470
|
+
/**
|
471
|
+
* Generated by JsPbCodeGenerator.
|
472
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
473
|
+
* server response, or constructed directly in Javascript. The array is used
|
474
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
475
|
+
* If no data is provided, the constructed object will be empty, but still
|
476
|
+
* valid.
|
477
|
+
* @extends {jspb.Message}
|
478
|
+
* @constructor
|
479
|
+
*/
|
480
|
+
proto.payment.GetDepositRequest = function(opt_data) {
|
481
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
482
|
+
};
|
483
|
+
goog.inherits(proto.payment.GetDepositRequest, jspb.Message);
|
484
|
+
if (goog.DEBUG && !COMPILED) {
|
485
|
+
/**
|
486
|
+
* @public
|
487
|
+
* @override
|
488
|
+
*/
|
489
|
+
proto.payment.GetDepositRequest.displayName = 'proto.payment.GetDepositRequest';
|
490
|
+
}
|
467
491
|
/**
|
468
492
|
* Generated by JsPbCodeGenerator.
|
469
493
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -485,6 +509,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
485
509
|
*/
|
486
510
|
proto.payment.DepositResponse.displayName = 'proto.payment.DepositResponse';
|
487
511
|
}
|
512
|
+
/**
|
513
|
+
* Generated by JsPbCodeGenerator.
|
514
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
515
|
+
* server response, or constructed directly in Javascript. The array is used
|
516
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
517
|
+
* If no data is provided, the constructed object will be empty, but still
|
518
|
+
* valid.
|
519
|
+
* @extends {jspb.Message}
|
520
|
+
* @constructor
|
521
|
+
*/
|
522
|
+
proto.payment.DepositStatus = function(opt_data) {
|
523
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
524
|
+
};
|
525
|
+
goog.inherits(proto.payment.DepositStatus, jspb.Message);
|
526
|
+
if (goog.DEBUG && !COMPILED) {
|
527
|
+
/**
|
528
|
+
* @public
|
529
|
+
* @override
|
530
|
+
*/
|
531
|
+
proto.payment.DepositStatus.displayName = 'proto.payment.DepositStatus';
|
532
|
+
}
|
533
|
+
/**
|
534
|
+
* Generated by JsPbCodeGenerator.
|
535
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
536
|
+
* server response, or constructed directly in Javascript. The array is used
|
537
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
538
|
+
* If no data is provided, the constructed object will be empty, but still
|
539
|
+
* valid.
|
540
|
+
* @extends {jspb.Message}
|
541
|
+
* @constructor
|
542
|
+
*/
|
543
|
+
proto.payment.DepositStatusItemsResponse = function(opt_data) {
|
544
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.payment.DepositStatusItemsResponse.repeatedFields_, null);
|
545
|
+
};
|
546
|
+
goog.inherits(proto.payment.DepositStatusItemsResponse, jspb.Message);
|
547
|
+
if (goog.DEBUG && !COMPILED) {
|
548
|
+
/**
|
549
|
+
* @public
|
550
|
+
* @override
|
551
|
+
*/
|
552
|
+
proto.payment.DepositStatusItemsResponse.displayName = 'proto.payment.DepositStatusItemsResponse';
|
553
|
+
}
|
488
554
|
|
489
555
|
|
490
556
|
|
@@ -5193,8 +5259,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5193
5259
|
* http://goto/soy-param-migration
|
5194
5260
|
* @return {!Object}
|
5195
5261
|
*/
|
5196
|
-
proto.payment.
|
5197
|
-
return proto.payment.
|
5262
|
+
proto.payment.GetDepositRequest.prototype.toObject = function(opt_includeInstance) {
|
5263
|
+
return proto.payment.GetDepositRequest.toObject(opt_includeInstance, this);
|
5198
5264
|
};
|
5199
5265
|
|
5200
5266
|
|
@@ -5203,14 +5269,16 @@ proto.payment.DepositResponse.prototype.toObject = function(opt_includeInstance)
|
|
5203
5269
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
5204
5270
|
* the JSPB instance for transitional soy proto support:
|
5205
5271
|
* http://goto/soy-param-migration
|
5206
|
-
* @param {!proto.payment.
|
5272
|
+
* @param {!proto.payment.GetDepositRequest} msg The msg instance to transform.
|
5207
5273
|
* @return {!Object}
|
5208
5274
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5209
5275
|
*/
|
5210
|
-
proto.payment.
|
5276
|
+
proto.payment.GetDepositRequest.toObject = function(includeInstance, msg) {
|
5211
5277
|
var f, obj = {
|
5212
5278
|
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
5213
|
-
|
5279
|
+
statusId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
5280
|
+
makerId: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
5281
|
+
reason: jspb.Message.getFieldWithDefault(msg, 4, "")
|
5214
5282
|
};
|
5215
5283
|
|
5216
5284
|
if (includeInstance) {
|
@@ -5224,23 +5292,23 @@ proto.payment.DepositResponse.toObject = function(includeInstance, msg) {
|
|
5224
5292
|
/**
|
5225
5293
|
* Deserializes binary data (in protobuf wire format).
|
5226
5294
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
5227
|
-
* @return {!proto.payment.
|
5295
|
+
* @return {!proto.payment.GetDepositRequest}
|
5228
5296
|
*/
|
5229
|
-
proto.payment.
|
5297
|
+
proto.payment.GetDepositRequest.deserializeBinary = function(bytes) {
|
5230
5298
|
var reader = new jspb.BinaryReader(bytes);
|
5231
|
-
var msg = new proto.payment.
|
5232
|
-
return proto.payment.
|
5299
|
+
var msg = new proto.payment.GetDepositRequest;
|
5300
|
+
return proto.payment.GetDepositRequest.deserializeBinaryFromReader(msg, reader);
|
5233
5301
|
};
|
5234
5302
|
|
5235
5303
|
|
5236
5304
|
/**
|
5237
5305
|
* Deserializes binary data (in protobuf wire format) from the
|
5238
5306
|
* given reader into the given message object.
|
5239
|
-
* @param {!proto.payment.
|
5307
|
+
* @param {!proto.payment.GetDepositRequest} msg The message object to deserialize into.
|
5240
5308
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
5241
|
-
* @return {!proto.payment.
|
5309
|
+
* @return {!proto.payment.GetDepositRequest}
|
5242
5310
|
*/
|
5243
|
-
proto.payment.
|
5311
|
+
proto.payment.GetDepositRequest.deserializeBinaryFromReader = function(msg, reader) {
|
5244
5312
|
while (reader.nextField()) {
|
5245
5313
|
if (reader.isEndGroup()) {
|
5246
5314
|
break;
|
@@ -5252,8 +5320,16 @@ proto.payment.DepositResponse.deserializeBinaryFromReader = function(msg, reader
|
|
5252
5320
|
msg.setId(value);
|
5253
5321
|
break;
|
5254
5322
|
case 2:
|
5323
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5324
|
+
msg.setStatusId(value);
|
5325
|
+
break;
|
5326
|
+
case 3:
|
5327
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5328
|
+
msg.setMakerId(value);
|
5329
|
+
break;
|
5330
|
+
case 4:
|
5255
5331
|
var value = /** @type {string} */ (reader.readString());
|
5256
|
-
msg.
|
5332
|
+
msg.setReason(value);
|
5257
5333
|
break;
|
5258
5334
|
default:
|
5259
5335
|
reader.skipField();
|
@@ -5268,9 +5344,9 @@ proto.payment.DepositResponse.deserializeBinaryFromReader = function(msg, reader
|
|
5268
5344
|
* Serializes the message to binary data (in protobuf wire format).
|
5269
5345
|
* @return {!Uint8Array}
|
5270
5346
|
*/
|
5271
|
-
proto.payment.
|
5347
|
+
proto.payment.GetDepositRequest.prototype.serializeBinary = function() {
|
5272
5348
|
var writer = new jspb.BinaryWriter();
|
5273
|
-
proto.payment.
|
5349
|
+
proto.payment.GetDepositRequest.serializeBinaryToWriter(this, writer);
|
5274
5350
|
return writer.getResultBuffer();
|
5275
5351
|
};
|
5276
5352
|
|
@@ -5278,11 +5354,11 @@ proto.payment.DepositResponse.prototype.serializeBinary = function() {
|
|
5278
5354
|
/**
|
5279
5355
|
* Serializes the given message to binary data (in protobuf wire
|
5280
5356
|
* format), writing to the given BinaryWriter.
|
5281
|
-
* @param {!proto.payment.
|
5357
|
+
* @param {!proto.payment.GetDepositRequest} message
|
5282
5358
|
* @param {!jspb.BinaryWriter} writer
|
5283
5359
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5284
5360
|
*/
|
5285
|
-
proto.payment.
|
5361
|
+
proto.payment.GetDepositRequest.serializeBinaryToWriter = function(message, writer) {
|
5286
5362
|
var f = undefined;
|
5287
5363
|
f = message.getId();
|
5288
5364
|
if (f !== 0) {
|
@@ -5291,13 +5367,27 @@ proto.payment.DepositResponse.serializeBinaryToWriter = function(message, writer
|
|
5291
5367
|
f
|
5292
5368
|
);
|
5293
5369
|
}
|
5294
|
-
f =
|
5295
|
-
if (f
|
5296
|
-
writer.
|
5370
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
5371
|
+
if (f != null) {
|
5372
|
+
writer.writeInt32(
|
5297
5373
|
2,
|
5298
5374
|
f
|
5299
5375
|
);
|
5300
5376
|
}
|
5377
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
5378
|
+
if (f != null) {
|
5379
|
+
writer.writeInt32(
|
5380
|
+
3,
|
5381
|
+
f
|
5382
|
+
);
|
5383
|
+
}
|
5384
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
5385
|
+
if (f != null) {
|
5386
|
+
writer.writeString(
|
5387
|
+
4,
|
5388
|
+
f
|
5389
|
+
);
|
5390
|
+
}
|
5301
5391
|
};
|
5302
5392
|
|
5303
5393
|
|
@@ -5305,35 +5395,797 @@ proto.payment.DepositResponse.serializeBinaryToWriter = function(message, writer
|
|
5305
5395
|
* optional int32 id = 1;
|
5306
5396
|
* @return {number}
|
5307
5397
|
*/
|
5308
|
-
proto.payment.
|
5398
|
+
proto.payment.GetDepositRequest.prototype.getId = function() {
|
5309
5399
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
5310
5400
|
};
|
5311
5401
|
|
5312
5402
|
|
5313
5403
|
/**
|
5314
5404
|
* @param {number} value
|
5315
|
-
* @return {!proto.payment.
|
5405
|
+
* @return {!proto.payment.GetDepositRequest} returns this
|
5316
5406
|
*/
|
5317
|
-
proto.payment.
|
5407
|
+
proto.payment.GetDepositRequest.prototype.setId = function(value) {
|
5318
5408
|
return jspb.Message.setProto3IntField(this, 1, value);
|
5319
5409
|
};
|
5320
5410
|
|
5321
5411
|
|
5322
5412
|
/**
|
5323
|
-
* optional
|
5413
|
+
* optional int32 status_id = 2;
|
5414
|
+
* @return {number}
|
5415
|
+
*/
|
5416
|
+
proto.payment.GetDepositRequest.prototype.getStatusId = function() {
|
5417
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
5418
|
+
};
|
5419
|
+
|
5420
|
+
|
5421
|
+
/**
|
5422
|
+
* @param {number} value
|
5423
|
+
* @return {!proto.payment.GetDepositRequest} returns this
|
5424
|
+
*/
|
5425
|
+
proto.payment.GetDepositRequest.prototype.setStatusId = function(value) {
|
5426
|
+
return jspb.Message.setField(this, 2, value);
|
5427
|
+
};
|
5428
|
+
|
5429
|
+
|
5430
|
+
/**
|
5431
|
+
* Clears the field making it undefined.
|
5432
|
+
* @return {!proto.payment.GetDepositRequest} returns this
|
5433
|
+
*/
|
5434
|
+
proto.payment.GetDepositRequest.prototype.clearStatusId = function() {
|
5435
|
+
return jspb.Message.setField(this, 2, undefined);
|
5436
|
+
};
|
5437
|
+
|
5438
|
+
|
5439
|
+
/**
|
5440
|
+
* Returns whether this field is set.
|
5441
|
+
* @return {boolean}
|
5442
|
+
*/
|
5443
|
+
proto.payment.GetDepositRequest.prototype.hasStatusId = function() {
|
5444
|
+
return jspb.Message.getField(this, 2) != null;
|
5445
|
+
};
|
5446
|
+
|
5447
|
+
|
5448
|
+
/**
|
5449
|
+
* optional int32 maker_id = 3;
|
5450
|
+
* @return {number}
|
5451
|
+
*/
|
5452
|
+
proto.payment.GetDepositRequest.prototype.getMakerId = function() {
|
5453
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
5454
|
+
};
|
5455
|
+
|
5456
|
+
|
5457
|
+
/**
|
5458
|
+
* @param {number} value
|
5459
|
+
* @return {!proto.payment.GetDepositRequest} returns this
|
5460
|
+
*/
|
5461
|
+
proto.payment.GetDepositRequest.prototype.setMakerId = function(value) {
|
5462
|
+
return jspb.Message.setField(this, 3, value);
|
5463
|
+
};
|
5464
|
+
|
5465
|
+
|
5466
|
+
/**
|
5467
|
+
* Clears the field making it undefined.
|
5468
|
+
* @return {!proto.payment.GetDepositRequest} returns this
|
5469
|
+
*/
|
5470
|
+
proto.payment.GetDepositRequest.prototype.clearMakerId = function() {
|
5471
|
+
return jspb.Message.setField(this, 3, undefined);
|
5472
|
+
};
|
5473
|
+
|
5474
|
+
|
5475
|
+
/**
|
5476
|
+
* Returns whether this field is set.
|
5477
|
+
* @return {boolean}
|
5478
|
+
*/
|
5479
|
+
proto.payment.GetDepositRequest.prototype.hasMakerId = function() {
|
5480
|
+
return jspb.Message.getField(this, 3) != null;
|
5481
|
+
};
|
5482
|
+
|
5483
|
+
|
5484
|
+
/**
|
5485
|
+
* optional string reason = 4;
|
5324
5486
|
* @return {string}
|
5325
5487
|
*/
|
5326
|
-
proto.payment.
|
5327
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
5488
|
+
proto.payment.GetDepositRequest.prototype.getReason = function() {
|
5489
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
5328
5490
|
};
|
5329
5491
|
|
5330
5492
|
|
5331
5493
|
/**
|
5332
5494
|
* @param {string} value
|
5333
|
-
* @return {!proto.payment.
|
5495
|
+
* @return {!proto.payment.GetDepositRequest} returns this
|
5334
5496
|
*/
|
5335
|
-
proto.payment.
|
5336
|
-
return jspb.Message.
|
5497
|
+
proto.payment.GetDepositRequest.prototype.setReason = function(value) {
|
5498
|
+
return jspb.Message.setField(this, 4, value);
|
5499
|
+
};
|
5500
|
+
|
5501
|
+
|
5502
|
+
/**
|
5503
|
+
* Clears the field making it undefined.
|
5504
|
+
* @return {!proto.payment.GetDepositRequest} returns this
|
5505
|
+
*/
|
5506
|
+
proto.payment.GetDepositRequest.prototype.clearReason = function() {
|
5507
|
+
return jspb.Message.setField(this, 4, undefined);
|
5508
|
+
};
|
5509
|
+
|
5510
|
+
|
5511
|
+
/**
|
5512
|
+
* Returns whether this field is set.
|
5513
|
+
* @return {boolean}
|
5514
|
+
*/
|
5515
|
+
proto.payment.GetDepositRequest.prototype.hasReason = function() {
|
5516
|
+
return jspb.Message.getField(this, 4) != null;
|
5517
|
+
};
|
5518
|
+
|
5519
|
+
|
5520
|
+
|
5521
|
+
|
5522
|
+
|
5523
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
5524
|
+
/**
|
5525
|
+
* Creates an object representation of this proto.
|
5526
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
5527
|
+
* Optional fields that are not set will be set to undefined.
|
5528
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
5529
|
+
* For the list of reserved names please see:
|
5530
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
5531
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
5532
|
+
* JSPB instance for transitional soy proto support:
|
5533
|
+
* http://goto/soy-param-migration
|
5534
|
+
* @return {!Object}
|
5535
|
+
*/
|
5536
|
+
proto.payment.DepositResponse.prototype.toObject = function(opt_includeInstance) {
|
5537
|
+
return proto.payment.DepositResponse.toObject(opt_includeInstance, this);
|
5538
|
+
};
|
5539
|
+
|
5540
|
+
|
5541
|
+
/**
|
5542
|
+
* Static version of the {@see toObject} method.
|
5543
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
5544
|
+
* the JSPB instance for transitional soy proto support:
|
5545
|
+
* http://goto/soy-param-migration
|
5546
|
+
* @param {!proto.payment.DepositResponse} msg The msg instance to transform.
|
5547
|
+
* @return {!Object}
|
5548
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5549
|
+
*/
|
5550
|
+
proto.payment.DepositResponse.toObject = function(includeInstance, msg) {
|
5551
|
+
var f, obj = {
|
5552
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
5553
|
+
status: jspb.Message.getFieldWithDefault(msg, 2, "")
|
5554
|
+
};
|
5555
|
+
|
5556
|
+
if (includeInstance) {
|
5557
|
+
obj.$jspbMessageInstance = msg;
|
5558
|
+
}
|
5559
|
+
return obj;
|
5560
|
+
};
|
5561
|
+
}
|
5562
|
+
|
5563
|
+
|
5564
|
+
/**
|
5565
|
+
* Deserializes binary data (in protobuf wire format).
|
5566
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
5567
|
+
* @return {!proto.payment.DepositResponse}
|
5568
|
+
*/
|
5569
|
+
proto.payment.DepositResponse.deserializeBinary = function(bytes) {
|
5570
|
+
var reader = new jspb.BinaryReader(bytes);
|
5571
|
+
var msg = new proto.payment.DepositResponse;
|
5572
|
+
return proto.payment.DepositResponse.deserializeBinaryFromReader(msg, reader);
|
5573
|
+
};
|
5574
|
+
|
5575
|
+
|
5576
|
+
/**
|
5577
|
+
* Deserializes binary data (in protobuf wire format) from the
|
5578
|
+
* given reader into the given message object.
|
5579
|
+
* @param {!proto.payment.DepositResponse} msg The message object to deserialize into.
|
5580
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
5581
|
+
* @return {!proto.payment.DepositResponse}
|
5582
|
+
*/
|
5583
|
+
proto.payment.DepositResponse.deserializeBinaryFromReader = function(msg, reader) {
|
5584
|
+
while (reader.nextField()) {
|
5585
|
+
if (reader.isEndGroup()) {
|
5586
|
+
break;
|
5587
|
+
}
|
5588
|
+
var field = reader.getFieldNumber();
|
5589
|
+
switch (field) {
|
5590
|
+
case 1:
|
5591
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5592
|
+
msg.setId(value);
|
5593
|
+
break;
|
5594
|
+
case 2:
|
5595
|
+
var value = /** @type {string} */ (reader.readString());
|
5596
|
+
msg.setStatus(value);
|
5597
|
+
break;
|
5598
|
+
default:
|
5599
|
+
reader.skipField();
|
5600
|
+
break;
|
5601
|
+
}
|
5602
|
+
}
|
5603
|
+
return msg;
|
5604
|
+
};
|
5605
|
+
|
5606
|
+
|
5607
|
+
/**
|
5608
|
+
* Serializes the message to binary data (in protobuf wire format).
|
5609
|
+
* @return {!Uint8Array}
|
5610
|
+
*/
|
5611
|
+
proto.payment.DepositResponse.prototype.serializeBinary = function() {
|
5612
|
+
var writer = new jspb.BinaryWriter();
|
5613
|
+
proto.payment.DepositResponse.serializeBinaryToWriter(this, writer);
|
5614
|
+
return writer.getResultBuffer();
|
5615
|
+
};
|
5616
|
+
|
5617
|
+
|
5618
|
+
/**
|
5619
|
+
* Serializes the given message to binary data (in protobuf wire
|
5620
|
+
* format), writing to the given BinaryWriter.
|
5621
|
+
* @param {!proto.payment.DepositResponse} message
|
5622
|
+
* @param {!jspb.BinaryWriter} writer
|
5623
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5624
|
+
*/
|
5625
|
+
proto.payment.DepositResponse.serializeBinaryToWriter = function(message, writer) {
|
5626
|
+
var f = undefined;
|
5627
|
+
f = message.getId();
|
5628
|
+
if (f !== 0) {
|
5629
|
+
writer.writeInt32(
|
5630
|
+
1,
|
5631
|
+
f
|
5632
|
+
);
|
5633
|
+
}
|
5634
|
+
f = message.getStatus();
|
5635
|
+
if (f.length > 0) {
|
5636
|
+
writer.writeString(
|
5637
|
+
2,
|
5638
|
+
f
|
5639
|
+
);
|
5640
|
+
}
|
5641
|
+
};
|
5642
|
+
|
5643
|
+
|
5644
|
+
/**
|
5645
|
+
* optional int32 id = 1;
|
5646
|
+
* @return {number}
|
5647
|
+
*/
|
5648
|
+
proto.payment.DepositResponse.prototype.getId = function() {
|
5649
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
5650
|
+
};
|
5651
|
+
|
5652
|
+
|
5653
|
+
/**
|
5654
|
+
* @param {number} value
|
5655
|
+
* @return {!proto.payment.DepositResponse} returns this
|
5656
|
+
*/
|
5657
|
+
proto.payment.DepositResponse.prototype.setId = function(value) {
|
5658
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
5659
|
+
};
|
5660
|
+
|
5661
|
+
|
5662
|
+
/**
|
5663
|
+
* optional string status = 2;
|
5664
|
+
* @return {string}
|
5665
|
+
*/
|
5666
|
+
proto.payment.DepositResponse.prototype.getStatus = function() {
|
5667
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
5668
|
+
};
|
5669
|
+
|
5670
|
+
|
5671
|
+
/**
|
5672
|
+
* @param {string} value
|
5673
|
+
* @return {!proto.payment.DepositResponse} returns this
|
5674
|
+
*/
|
5675
|
+
proto.payment.DepositResponse.prototype.setStatus = function(value) {
|
5676
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
5677
|
+
};
|
5678
|
+
|
5679
|
+
|
5680
|
+
|
5681
|
+
|
5682
|
+
|
5683
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
5684
|
+
/**
|
5685
|
+
* Creates an object representation of this proto.
|
5686
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
5687
|
+
* Optional fields that are not set will be set to undefined.
|
5688
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
5689
|
+
* For the list of reserved names please see:
|
5690
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
5691
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
5692
|
+
* JSPB instance for transitional soy proto support:
|
5693
|
+
* http://goto/soy-param-migration
|
5694
|
+
* @return {!Object}
|
5695
|
+
*/
|
5696
|
+
proto.payment.DepositStatus.prototype.toObject = function(opt_includeInstance) {
|
5697
|
+
return proto.payment.DepositStatus.toObject(opt_includeInstance, this);
|
5698
|
+
};
|
5699
|
+
|
5700
|
+
|
5701
|
+
/**
|
5702
|
+
* Static version of the {@see toObject} method.
|
5703
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
5704
|
+
* the JSPB instance for transitional soy proto support:
|
5705
|
+
* http://goto/soy-param-migration
|
5706
|
+
* @param {!proto.payment.DepositStatus} msg The msg instance to transform.
|
5707
|
+
* @return {!Object}
|
5708
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5709
|
+
*/
|
5710
|
+
proto.payment.DepositStatus.toObject = function(includeInstance, msg) {
|
5711
|
+
var f, obj = {
|
5712
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
5713
|
+
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
5714
|
+
description: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
5715
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
5716
|
+
};
|
5717
|
+
|
5718
|
+
if (includeInstance) {
|
5719
|
+
obj.$jspbMessageInstance = msg;
|
5720
|
+
}
|
5721
|
+
return obj;
|
5722
|
+
};
|
5723
|
+
}
|
5724
|
+
|
5725
|
+
|
5726
|
+
/**
|
5727
|
+
* Deserializes binary data (in protobuf wire format).
|
5728
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
5729
|
+
* @return {!proto.payment.DepositStatus}
|
5730
|
+
*/
|
5731
|
+
proto.payment.DepositStatus.deserializeBinary = function(bytes) {
|
5732
|
+
var reader = new jspb.BinaryReader(bytes);
|
5733
|
+
var msg = new proto.payment.DepositStatus;
|
5734
|
+
return proto.payment.DepositStatus.deserializeBinaryFromReader(msg, reader);
|
5735
|
+
};
|
5736
|
+
|
5737
|
+
|
5738
|
+
/**
|
5739
|
+
* Deserializes binary data (in protobuf wire format) from the
|
5740
|
+
* given reader into the given message object.
|
5741
|
+
* @param {!proto.payment.DepositStatus} msg The message object to deserialize into.
|
5742
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
5743
|
+
* @return {!proto.payment.DepositStatus}
|
5744
|
+
*/
|
5745
|
+
proto.payment.DepositStatus.deserializeBinaryFromReader = function(msg, reader) {
|
5746
|
+
while (reader.nextField()) {
|
5747
|
+
if (reader.isEndGroup()) {
|
5748
|
+
break;
|
5749
|
+
}
|
5750
|
+
var field = reader.getFieldNumber();
|
5751
|
+
switch (field) {
|
5752
|
+
case 1:
|
5753
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5754
|
+
msg.setId(value);
|
5755
|
+
break;
|
5756
|
+
case 2:
|
5757
|
+
var value = /** @type {string} */ (reader.readString());
|
5758
|
+
msg.setTitle(value);
|
5759
|
+
break;
|
5760
|
+
case 3:
|
5761
|
+
var value = /** @type {string} */ (reader.readString());
|
5762
|
+
msg.setDescription(value);
|
5763
|
+
break;
|
5764
|
+
case 4:
|
5765
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5766
|
+
msg.setIsActive(value);
|
5767
|
+
break;
|
5768
|
+
default:
|
5769
|
+
reader.skipField();
|
5770
|
+
break;
|
5771
|
+
}
|
5772
|
+
}
|
5773
|
+
return msg;
|
5774
|
+
};
|
5775
|
+
|
5776
|
+
|
5777
|
+
/**
|
5778
|
+
* Serializes the message to binary data (in protobuf wire format).
|
5779
|
+
* @return {!Uint8Array}
|
5780
|
+
*/
|
5781
|
+
proto.payment.DepositStatus.prototype.serializeBinary = function() {
|
5782
|
+
var writer = new jspb.BinaryWriter();
|
5783
|
+
proto.payment.DepositStatus.serializeBinaryToWriter(this, writer);
|
5784
|
+
return writer.getResultBuffer();
|
5785
|
+
};
|
5786
|
+
|
5787
|
+
|
5788
|
+
/**
|
5789
|
+
* Serializes the given message to binary data (in protobuf wire
|
5790
|
+
* format), writing to the given BinaryWriter.
|
5791
|
+
* @param {!proto.payment.DepositStatus} message
|
5792
|
+
* @param {!jspb.BinaryWriter} writer
|
5793
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5794
|
+
*/
|
5795
|
+
proto.payment.DepositStatus.serializeBinaryToWriter = function(message, writer) {
|
5796
|
+
var f = undefined;
|
5797
|
+
f = message.getId();
|
5798
|
+
if (f !== 0) {
|
5799
|
+
writer.writeInt32(
|
5800
|
+
1,
|
5801
|
+
f
|
5802
|
+
);
|
5803
|
+
}
|
5804
|
+
f = message.getTitle();
|
5805
|
+
if (f.length > 0) {
|
5806
|
+
writer.writeString(
|
5807
|
+
2,
|
5808
|
+
f
|
5809
|
+
);
|
5810
|
+
}
|
5811
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
5812
|
+
if (f != null) {
|
5813
|
+
writer.writeString(
|
5814
|
+
3,
|
5815
|
+
f
|
5816
|
+
);
|
5817
|
+
}
|
5818
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
5819
|
+
if (f != null) {
|
5820
|
+
writer.writeInt32(
|
5821
|
+
4,
|
5822
|
+
f
|
5823
|
+
);
|
5824
|
+
}
|
5825
|
+
};
|
5826
|
+
|
5827
|
+
|
5828
|
+
/**
|
5829
|
+
* optional int32 id = 1;
|
5830
|
+
* @return {number}
|
5831
|
+
*/
|
5832
|
+
proto.payment.DepositStatus.prototype.getId = function() {
|
5833
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
5834
|
+
};
|
5835
|
+
|
5836
|
+
|
5837
|
+
/**
|
5838
|
+
* @param {number} value
|
5839
|
+
* @return {!proto.payment.DepositStatus} returns this
|
5840
|
+
*/
|
5841
|
+
proto.payment.DepositStatus.prototype.setId = function(value) {
|
5842
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
5843
|
+
};
|
5844
|
+
|
5845
|
+
|
5846
|
+
/**
|
5847
|
+
* optional string title = 2;
|
5848
|
+
* @return {string}
|
5849
|
+
*/
|
5850
|
+
proto.payment.DepositStatus.prototype.getTitle = function() {
|
5851
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
5852
|
+
};
|
5853
|
+
|
5854
|
+
|
5855
|
+
/**
|
5856
|
+
* @param {string} value
|
5857
|
+
* @return {!proto.payment.DepositStatus} returns this
|
5858
|
+
*/
|
5859
|
+
proto.payment.DepositStatus.prototype.setTitle = function(value) {
|
5860
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
5861
|
+
};
|
5862
|
+
|
5863
|
+
|
5864
|
+
/**
|
5865
|
+
* optional string description = 3;
|
5866
|
+
* @return {string}
|
5867
|
+
*/
|
5868
|
+
proto.payment.DepositStatus.prototype.getDescription = function() {
|
5869
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
5870
|
+
};
|
5871
|
+
|
5872
|
+
|
5873
|
+
/**
|
5874
|
+
* @param {string} value
|
5875
|
+
* @return {!proto.payment.DepositStatus} returns this
|
5876
|
+
*/
|
5877
|
+
proto.payment.DepositStatus.prototype.setDescription = function(value) {
|
5878
|
+
return jspb.Message.setField(this, 3, value);
|
5879
|
+
};
|
5880
|
+
|
5881
|
+
|
5882
|
+
/**
|
5883
|
+
* Clears the field making it undefined.
|
5884
|
+
* @return {!proto.payment.DepositStatus} returns this
|
5885
|
+
*/
|
5886
|
+
proto.payment.DepositStatus.prototype.clearDescription = function() {
|
5887
|
+
return jspb.Message.setField(this, 3, undefined);
|
5888
|
+
};
|
5889
|
+
|
5890
|
+
|
5891
|
+
/**
|
5892
|
+
* Returns whether this field is set.
|
5893
|
+
* @return {boolean}
|
5894
|
+
*/
|
5895
|
+
proto.payment.DepositStatus.prototype.hasDescription = function() {
|
5896
|
+
return jspb.Message.getField(this, 3) != null;
|
5897
|
+
};
|
5898
|
+
|
5899
|
+
|
5900
|
+
/**
|
5901
|
+
* optional int32 is_active = 4;
|
5902
|
+
* @return {number}
|
5903
|
+
*/
|
5904
|
+
proto.payment.DepositStatus.prototype.getIsActive = function() {
|
5905
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
5906
|
+
};
|
5907
|
+
|
5908
|
+
|
5909
|
+
/**
|
5910
|
+
* @param {number} value
|
5911
|
+
* @return {!proto.payment.DepositStatus} returns this
|
5912
|
+
*/
|
5913
|
+
proto.payment.DepositStatus.prototype.setIsActive = function(value) {
|
5914
|
+
return jspb.Message.setField(this, 4, value);
|
5915
|
+
};
|
5916
|
+
|
5917
|
+
|
5918
|
+
/**
|
5919
|
+
* Clears the field making it undefined.
|
5920
|
+
* @return {!proto.payment.DepositStatus} returns this
|
5921
|
+
*/
|
5922
|
+
proto.payment.DepositStatus.prototype.clearIsActive = function() {
|
5923
|
+
return jspb.Message.setField(this, 4, undefined);
|
5924
|
+
};
|
5925
|
+
|
5926
|
+
|
5927
|
+
/**
|
5928
|
+
* Returns whether this field is set.
|
5929
|
+
* @return {boolean}
|
5930
|
+
*/
|
5931
|
+
proto.payment.DepositStatus.prototype.hasIsActive = function() {
|
5932
|
+
return jspb.Message.getField(this, 4) != null;
|
5933
|
+
};
|
5934
|
+
|
5935
|
+
|
5936
|
+
|
5937
|
+
/**
|
5938
|
+
* List of repeated fields within this message type.
|
5939
|
+
* @private {!Array<number>}
|
5940
|
+
* @const
|
5941
|
+
*/
|
5942
|
+
proto.payment.DepositStatusItemsResponse.repeatedFields_ = [1];
|
5943
|
+
|
5944
|
+
|
5945
|
+
|
5946
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
5947
|
+
/**
|
5948
|
+
* Creates an object representation of this proto.
|
5949
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
5950
|
+
* Optional fields that are not set will be set to undefined.
|
5951
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
5952
|
+
* For the list of reserved names please see:
|
5953
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
5954
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
5955
|
+
* JSPB instance for transitional soy proto support:
|
5956
|
+
* http://goto/soy-param-migration
|
5957
|
+
* @return {!Object}
|
5958
|
+
*/
|
5959
|
+
proto.payment.DepositStatusItemsResponse.prototype.toObject = function(opt_includeInstance) {
|
5960
|
+
return proto.payment.DepositStatusItemsResponse.toObject(opt_includeInstance, this);
|
5961
|
+
};
|
5962
|
+
|
5963
|
+
|
5964
|
+
/**
|
5965
|
+
* Static version of the {@see toObject} method.
|
5966
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
5967
|
+
* the JSPB instance for transitional soy proto support:
|
5968
|
+
* http://goto/soy-param-migration
|
5969
|
+
* @param {!proto.payment.DepositStatusItemsResponse} msg The msg instance to transform.
|
5970
|
+
* @return {!Object}
|
5971
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5972
|
+
*/
|
5973
|
+
proto.payment.DepositStatusItemsResponse.toObject = function(includeInstance, msg) {
|
5974
|
+
var f, obj = {
|
5975
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
5976
|
+
proto.payment.DepositStatus.toObject, includeInstance),
|
5977
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
5978
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
5979
|
+
};
|
5980
|
+
|
5981
|
+
if (includeInstance) {
|
5982
|
+
obj.$jspbMessageInstance = msg;
|
5983
|
+
}
|
5984
|
+
return obj;
|
5985
|
+
};
|
5986
|
+
}
|
5987
|
+
|
5988
|
+
|
5989
|
+
/**
|
5990
|
+
* Deserializes binary data (in protobuf wire format).
|
5991
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
5992
|
+
* @return {!proto.payment.DepositStatusItemsResponse}
|
5993
|
+
*/
|
5994
|
+
proto.payment.DepositStatusItemsResponse.deserializeBinary = function(bytes) {
|
5995
|
+
var reader = new jspb.BinaryReader(bytes);
|
5996
|
+
var msg = new proto.payment.DepositStatusItemsResponse;
|
5997
|
+
return proto.payment.DepositStatusItemsResponse.deserializeBinaryFromReader(msg, reader);
|
5998
|
+
};
|
5999
|
+
|
6000
|
+
|
6001
|
+
/**
|
6002
|
+
* Deserializes binary data (in protobuf wire format) from the
|
6003
|
+
* given reader into the given message object.
|
6004
|
+
* @param {!proto.payment.DepositStatusItemsResponse} msg The message object to deserialize into.
|
6005
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
6006
|
+
* @return {!proto.payment.DepositStatusItemsResponse}
|
6007
|
+
*/
|
6008
|
+
proto.payment.DepositStatusItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
6009
|
+
while (reader.nextField()) {
|
6010
|
+
if (reader.isEndGroup()) {
|
6011
|
+
break;
|
6012
|
+
}
|
6013
|
+
var field = reader.getFieldNumber();
|
6014
|
+
switch (field) {
|
6015
|
+
case 1:
|
6016
|
+
var value = new proto.payment.DepositStatus;
|
6017
|
+
reader.readMessage(value,proto.payment.DepositStatus.deserializeBinaryFromReader);
|
6018
|
+
msg.addItems(value);
|
6019
|
+
break;
|
6020
|
+
case 2:
|
6021
|
+
var value = /** @type {number} */ (reader.readInt32());
|
6022
|
+
msg.setTotalPages(value);
|
6023
|
+
break;
|
6024
|
+
case 3:
|
6025
|
+
var value = /** @type {number} */ (reader.readInt32());
|
6026
|
+
msg.setTotalItems(value);
|
6027
|
+
break;
|
6028
|
+
default:
|
6029
|
+
reader.skipField();
|
6030
|
+
break;
|
6031
|
+
}
|
6032
|
+
}
|
6033
|
+
return msg;
|
6034
|
+
};
|
6035
|
+
|
6036
|
+
|
6037
|
+
/**
|
6038
|
+
* Serializes the message to binary data (in protobuf wire format).
|
6039
|
+
* @return {!Uint8Array}
|
6040
|
+
*/
|
6041
|
+
proto.payment.DepositStatusItemsResponse.prototype.serializeBinary = function() {
|
6042
|
+
var writer = new jspb.BinaryWriter();
|
6043
|
+
proto.payment.DepositStatusItemsResponse.serializeBinaryToWriter(this, writer);
|
6044
|
+
return writer.getResultBuffer();
|
6045
|
+
};
|
6046
|
+
|
6047
|
+
|
6048
|
+
/**
|
6049
|
+
* Serializes the given message to binary data (in protobuf wire
|
6050
|
+
* format), writing to the given BinaryWriter.
|
6051
|
+
* @param {!proto.payment.DepositStatusItemsResponse} message
|
6052
|
+
* @param {!jspb.BinaryWriter} writer
|
6053
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6054
|
+
*/
|
6055
|
+
proto.payment.DepositStatusItemsResponse.serializeBinaryToWriter = function(message, writer) {
|
6056
|
+
var f = undefined;
|
6057
|
+
f = message.getItemsList();
|
6058
|
+
if (f.length > 0) {
|
6059
|
+
writer.writeRepeatedMessage(
|
6060
|
+
1,
|
6061
|
+
f,
|
6062
|
+
proto.payment.DepositStatus.serializeBinaryToWriter
|
6063
|
+
);
|
6064
|
+
}
|
6065
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
6066
|
+
if (f != null) {
|
6067
|
+
writer.writeInt32(
|
6068
|
+
2,
|
6069
|
+
f
|
6070
|
+
);
|
6071
|
+
}
|
6072
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
6073
|
+
if (f != null) {
|
6074
|
+
writer.writeInt32(
|
6075
|
+
3,
|
6076
|
+
f
|
6077
|
+
);
|
6078
|
+
}
|
6079
|
+
};
|
6080
|
+
|
6081
|
+
|
6082
|
+
/**
|
6083
|
+
* repeated DepositStatus items = 1;
|
6084
|
+
* @return {!Array<!proto.payment.DepositStatus>}
|
6085
|
+
*/
|
6086
|
+
proto.payment.DepositStatusItemsResponse.prototype.getItemsList = function() {
|
6087
|
+
return /** @type{!Array<!proto.payment.DepositStatus>} */ (
|
6088
|
+
jspb.Message.getRepeatedWrapperField(this, proto.payment.DepositStatus, 1));
|
6089
|
+
};
|
6090
|
+
|
6091
|
+
|
6092
|
+
/**
|
6093
|
+
* @param {!Array<!proto.payment.DepositStatus>} value
|
6094
|
+
* @return {!proto.payment.DepositStatusItemsResponse} returns this
|
6095
|
+
*/
|
6096
|
+
proto.payment.DepositStatusItemsResponse.prototype.setItemsList = function(value) {
|
6097
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
6098
|
+
};
|
6099
|
+
|
6100
|
+
|
6101
|
+
/**
|
6102
|
+
* @param {!proto.payment.DepositStatus=} opt_value
|
6103
|
+
* @param {number=} opt_index
|
6104
|
+
* @return {!proto.payment.DepositStatus}
|
6105
|
+
*/
|
6106
|
+
proto.payment.DepositStatusItemsResponse.prototype.addItems = function(opt_value, opt_index) {
|
6107
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.payment.DepositStatus, opt_index);
|
6108
|
+
};
|
6109
|
+
|
6110
|
+
|
6111
|
+
/**
|
6112
|
+
* Clears the list making it empty but non-null.
|
6113
|
+
* @return {!proto.payment.DepositStatusItemsResponse} returns this
|
6114
|
+
*/
|
6115
|
+
proto.payment.DepositStatusItemsResponse.prototype.clearItemsList = function() {
|
6116
|
+
return this.setItemsList([]);
|
6117
|
+
};
|
6118
|
+
|
6119
|
+
|
6120
|
+
/**
|
6121
|
+
* optional int32 total_pages = 2;
|
6122
|
+
* @return {number}
|
6123
|
+
*/
|
6124
|
+
proto.payment.DepositStatusItemsResponse.prototype.getTotalPages = function() {
|
6125
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
6126
|
+
};
|
6127
|
+
|
6128
|
+
|
6129
|
+
/**
|
6130
|
+
* @param {number} value
|
6131
|
+
* @return {!proto.payment.DepositStatusItemsResponse} returns this
|
6132
|
+
*/
|
6133
|
+
proto.payment.DepositStatusItemsResponse.prototype.setTotalPages = function(value) {
|
6134
|
+
return jspb.Message.setField(this, 2, value);
|
6135
|
+
};
|
6136
|
+
|
6137
|
+
|
6138
|
+
/**
|
6139
|
+
* Clears the field making it undefined.
|
6140
|
+
* @return {!proto.payment.DepositStatusItemsResponse} returns this
|
6141
|
+
*/
|
6142
|
+
proto.payment.DepositStatusItemsResponse.prototype.clearTotalPages = function() {
|
6143
|
+
return jspb.Message.setField(this, 2, undefined);
|
6144
|
+
};
|
6145
|
+
|
6146
|
+
|
6147
|
+
/**
|
6148
|
+
* Returns whether this field is set.
|
6149
|
+
* @return {boolean}
|
6150
|
+
*/
|
6151
|
+
proto.payment.DepositStatusItemsResponse.prototype.hasTotalPages = function() {
|
6152
|
+
return jspb.Message.getField(this, 2) != null;
|
6153
|
+
};
|
6154
|
+
|
6155
|
+
|
6156
|
+
/**
|
6157
|
+
* optional int32 total_items = 3;
|
6158
|
+
* @return {number}
|
6159
|
+
*/
|
6160
|
+
proto.payment.DepositStatusItemsResponse.prototype.getTotalItems = function() {
|
6161
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
6162
|
+
};
|
6163
|
+
|
6164
|
+
|
6165
|
+
/**
|
6166
|
+
* @param {number} value
|
6167
|
+
* @return {!proto.payment.DepositStatusItemsResponse} returns this
|
6168
|
+
*/
|
6169
|
+
proto.payment.DepositStatusItemsResponse.prototype.setTotalItems = function(value) {
|
6170
|
+
return jspb.Message.setField(this, 3, value);
|
6171
|
+
};
|
6172
|
+
|
6173
|
+
|
6174
|
+
/**
|
6175
|
+
* Clears the field making it undefined.
|
6176
|
+
* @return {!proto.payment.DepositStatusItemsResponse} returns this
|
6177
|
+
*/
|
6178
|
+
proto.payment.DepositStatusItemsResponse.prototype.clearTotalItems = function() {
|
6179
|
+
return jspb.Message.setField(this, 3, undefined);
|
6180
|
+
};
|
6181
|
+
|
6182
|
+
|
6183
|
+
/**
|
6184
|
+
* Returns whether this field is set.
|
6185
|
+
* @return {boolean}
|
6186
|
+
*/
|
6187
|
+
proto.payment.DepositStatusItemsResponse.prototype.hasTotalItems = function() {
|
6188
|
+
return jspb.Message.getField(this, 3) != null;
|
5337
6189
|
};
|
5338
6190
|
|
5339
6191
|
|