protobuf-platform 1.0.221 → 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 +17 -2
- package/payment/payment_grpc_pb.js +23 -0
- package/payment/payment_pb.js +619 -15
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
@@ -20,6 +20,8 @@ service Payment {
|
|
20
20
|
//Deposit
|
21
21
|
rpc attemptDeposit(AttemptDepositRequest) returns (DepositResponse);
|
22
22
|
rpc changeDepositStatus(GetDepositRequest) returns (DepositResponse);
|
23
|
+
//Deposit Statuses
|
24
|
+
rpc readListDepositStatuses(PaginationRequest) returns (DepositStatusItemsResponse);
|
23
25
|
}
|
24
26
|
//Technical
|
25
27
|
message PingRequest { string ping = 1; }
|
@@ -118,10 +120,23 @@ message AttemptDepositRequest {
|
|
118
120
|
}
|
119
121
|
message GetDepositRequest {
|
120
122
|
int32 id = 1;
|
121
|
-
optional int32
|
122
|
-
optional
|
123
|
+
optional int32 status_id = 2;
|
124
|
+
optional int32 maker_id = 3;
|
125
|
+
optional string reason = 4;
|
123
126
|
}
|
124
127
|
message DepositResponse {
|
125
128
|
int32 id = 1;
|
126
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;
|
127
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');
|
@@ -350,6 +361,18 @@ attemptDeposit: {
|
|
350
361
|
responseSerialize: serialize_payment_DepositResponse,
|
351
362
|
responseDeserialize: deserialize_payment_DepositResponse,
|
352
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
|
+
},
|
353
376
|
};
|
354
377
|
|
355
378
|
exports.PaymentClient = grpc.makeGenericClientConstructor(PaymentService);
|
package/payment/payment_pb.js
CHANGED
@@ -23,6 +23,8 @@ 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);
|
27
29
|
goog.exportSymbol('proto.payment.GetDepositRequest', null, global);
|
28
30
|
goog.exportSymbol('proto.payment.GetFileRequest', null, global);
|
@@ -507,6 +509,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
507
509
|
*/
|
508
510
|
proto.payment.DepositResponse.displayName = 'proto.payment.DepositResponse';
|
509
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
|
+
}
|
510
554
|
|
511
555
|
|
512
556
|
|
@@ -5232,8 +5276,9 @@ proto.payment.GetDepositRequest.prototype.toObject = function(opt_includeInstanc
|
|
5232
5276
|
proto.payment.GetDepositRequest.toObject = function(includeInstance, msg) {
|
5233
5277
|
var f, obj = {
|
5234
5278
|
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
5235
|
-
|
5236
|
-
|
5279
|
+
statusId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
5280
|
+
makerId: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
5281
|
+
reason: jspb.Message.getFieldWithDefault(msg, 4, "")
|
5237
5282
|
};
|
5238
5283
|
|
5239
5284
|
if (includeInstance) {
|
@@ -5276,9 +5321,13 @@ proto.payment.GetDepositRequest.deserializeBinaryFromReader = function(msg, read
|
|
5276
5321
|
break;
|
5277
5322
|
case 2:
|
5278
5323
|
var value = /** @type {number} */ (reader.readInt32());
|
5279
|
-
msg.
|
5324
|
+
msg.setStatusId(value);
|
5280
5325
|
break;
|
5281
5326
|
case 3:
|
5327
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5328
|
+
msg.setMakerId(value);
|
5329
|
+
break;
|
5330
|
+
case 4:
|
5282
5331
|
var value = /** @type {string} */ (reader.readString());
|
5283
5332
|
msg.setReason(value);
|
5284
5333
|
break;
|
@@ -5325,13 +5374,20 @@ proto.payment.GetDepositRequest.serializeBinaryToWriter = function(message, writ
|
|
5325
5374
|
f
|
5326
5375
|
);
|
5327
5376
|
}
|
5328
|
-
f = /** @type {
|
5377
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
5329
5378
|
if (f != null) {
|
5330
|
-
writer.
|
5379
|
+
writer.writeInt32(
|
5331
5380
|
3,
|
5332
5381
|
f
|
5333
5382
|
);
|
5334
5383
|
}
|
5384
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
5385
|
+
if (f != null) {
|
5386
|
+
writer.writeString(
|
5387
|
+
4,
|
5388
|
+
f
|
5389
|
+
);
|
5390
|
+
}
|
5335
5391
|
};
|
5336
5392
|
|
5337
5393
|
|
@@ -5354,10 +5410,10 @@ proto.payment.GetDepositRequest.prototype.setId = function(value) {
|
|
5354
5410
|
|
5355
5411
|
|
5356
5412
|
/**
|
5357
|
-
* optional int32
|
5413
|
+
* optional int32 status_id = 2;
|
5358
5414
|
* @return {number}
|
5359
5415
|
*/
|
5360
|
-
proto.payment.GetDepositRequest.prototype.
|
5416
|
+
proto.payment.GetDepositRequest.prototype.getStatusId = function() {
|
5361
5417
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
5362
5418
|
};
|
5363
5419
|
|
@@ -5366,7 +5422,7 @@ proto.payment.GetDepositRequest.prototype.getMakerId = function() {
|
|
5366
5422
|
* @param {number} value
|
5367
5423
|
* @return {!proto.payment.GetDepositRequest} returns this
|
5368
5424
|
*/
|
5369
|
-
proto.payment.GetDepositRequest.prototype.
|
5425
|
+
proto.payment.GetDepositRequest.prototype.setStatusId = function(value) {
|
5370
5426
|
return jspb.Message.setField(this, 2, value);
|
5371
5427
|
};
|
5372
5428
|
|
@@ -5375,7 +5431,7 @@ proto.payment.GetDepositRequest.prototype.setMakerId = function(value) {
|
|
5375
5431
|
* Clears the field making it undefined.
|
5376
5432
|
* @return {!proto.payment.GetDepositRequest} returns this
|
5377
5433
|
*/
|
5378
|
-
proto.payment.GetDepositRequest.prototype.
|
5434
|
+
proto.payment.GetDepositRequest.prototype.clearStatusId = function() {
|
5379
5435
|
return jspb.Message.setField(this, 2, undefined);
|
5380
5436
|
};
|
5381
5437
|
|
@@ -5384,17 +5440,53 @@ proto.payment.GetDepositRequest.prototype.clearMakerId = function() {
|
|
5384
5440
|
* Returns whether this field is set.
|
5385
5441
|
* @return {boolean}
|
5386
5442
|
*/
|
5387
|
-
proto.payment.GetDepositRequest.prototype.
|
5443
|
+
proto.payment.GetDepositRequest.prototype.hasStatusId = function() {
|
5388
5444
|
return jspb.Message.getField(this, 2) != null;
|
5389
5445
|
};
|
5390
5446
|
|
5391
5447
|
|
5392
5448
|
/**
|
5393
|
-
* optional
|
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;
|
5394
5486
|
* @return {string}
|
5395
5487
|
*/
|
5396
5488
|
proto.payment.GetDepositRequest.prototype.getReason = function() {
|
5397
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
5489
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
5398
5490
|
};
|
5399
5491
|
|
5400
5492
|
|
@@ -5403,7 +5495,7 @@ proto.payment.GetDepositRequest.prototype.getReason = function() {
|
|
5403
5495
|
* @return {!proto.payment.GetDepositRequest} returns this
|
5404
5496
|
*/
|
5405
5497
|
proto.payment.GetDepositRequest.prototype.setReason = function(value) {
|
5406
|
-
return jspb.Message.setField(this,
|
5498
|
+
return jspb.Message.setField(this, 4, value);
|
5407
5499
|
};
|
5408
5500
|
|
5409
5501
|
|
@@ -5412,7 +5504,7 @@ proto.payment.GetDepositRequest.prototype.setReason = function(value) {
|
|
5412
5504
|
* @return {!proto.payment.GetDepositRequest} returns this
|
5413
5505
|
*/
|
5414
5506
|
proto.payment.GetDepositRequest.prototype.clearReason = function() {
|
5415
|
-
return jspb.Message.setField(this,
|
5507
|
+
return jspb.Message.setField(this, 4, undefined);
|
5416
5508
|
};
|
5417
5509
|
|
5418
5510
|
|
@@ -5421,7 +5513,7 @@ proto.payment.GetDepositRequest.prototype.clearReason = function() {
|
|
5421
5513
|
* @return {boolean}
|
5422
5514
|
*/
|
5423
5515
|
proto.payment.GetDepositRequest.prototype.hasReason = function() {
|
5424
|
-
return jspb.Message.getField(this,
|
5516
|
+
return jspb.Message.getField(this, 4) != null;
|
5425
5517
|
};
|
5426
5518
|
|
5427
5519
|
|
@@ -5585,4 +5677,516 @@ proto.payment.DepositResponse.prototype.setStatus = function(value) {
|
|
5585
5677
|
};
|
5586
5678
|
|
5587
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;
|
6189
|
+
};
|
6190
|
+
|
6191
|
+
|
5588
6192
|
goog.object.extend(exports, proto.payment);
|