protobuf-platform 1.0.219 → 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 +20 -0
- package/payment/payment_grpc_pb.js +56 -0
- package/payment/payment_pb.js +738 -0
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
@@ -17,6 +17,9 @@ service Payment {
|
|
17
17
|
rpc updateSingleMethod(stream MethodRequest) returns (MethodResponse);
|
18
18
|
rpc deleteSingleMethod(GetMethodRequest) returns (PaymentStatusResponse);
|
19
19
|
rpc readListMethods(PaginationRequest) returns (MethodItemsResponse);
|
20
|
+
//Deposit
|
21
|
+
rpc attemptDeposit(AttemptDepositRequest) returns (DepositResponse);
|
22
|
+
rpc changeDepositStatus(GetDepositRequest) returns (DepositResponse);
|
20
23
|
}
|
21
24
|
//Technical
|
22
25
|
message PingRequest { string ping = 1; }
|
@@ -104,4 +107,21 @@ message MethodItemsResponse {
|
|
104
107
|
repeated MethodItem items = 1;
|
105
108
|
optional int32 total_pages = 2;
|
106
109
|
optional int32 total_items = 3;
|
110
|
+
}
|
111
|
+
//Deposit
|
112
|
+
message AttemptDepositRequest {
|
113
|
+
int32 payment_method_id = 1;
|
114
|
+
int32 user_id = 2;
|
115
|
+
float amount = 3;
|
116
|
+
optional int32 bonus_id = 4;
|
117
|
+
optional string user_currency = 5;
|
118
|
+
}
|
119
|
+
message GetDepositRequest {
|
120
|
+
int32 id = 1;
|
121
|
+
optional int32 maker_id = 2;
|
122
|
+
optional string reason = 3;
|
123
|
+
}
|
124
|
+
message DepositResponse {
|
125
|
+
int32 id = 1;
|
126
|
+
string status = 2;
|
107
127
|
}
|
@@ -4,6 +4,28 @@
|
|
4
4
|
var grpc = require('@grpc/grpc-js');
|
5
5
|
var payment_pb = require('./payment_pb.js');
|
6
6
|
|
7
|
+
function serialize_payment_AttemptDepositRequest(arg) {
|
8
|
+
if (!(arg instanceof payment_pb.AttemptDepositRequest)) {
|
9
|
+
throw new Error('Expected argument of type payment.AttemptDepositRequest');
|
10
|
+
}
|
11
|
+
return Buffer.from(arg.serializeBinary());
|
12
|
+
}
|
13
|
+
|
14
|
+
function deserialize_payment_AttemptDepositRequest(buffer_arg) {
|
15
|
+
return payment_pb.AttemptDepositRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
16
|
+
}
|
17
|
+
|
18
|
+
function serialize_payment_DepositResponse(arg) {
|
19
|
+
if (!(arg instanceof payment_pb.DepositResponse)) {
|
20
|
+
throw new Error('Expected argument of type payment.DepositResponse');
|
21
|
+
}
|
22
|
+
return Buffer.from(arg.serializeBinary());
|
23
|
+
}
|
24
|
+
|
25
|
+
function deserialize_payment_DepositResponse(buffer_arg) {
|
26
|
+
return payment_pb.DepositResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
27
|
+
}
|
28
|
+
|
7
29
|
function serialize_payment_File(arg) {
|
8
30
|
if (!(arg instanceof payment_pb.File)) {
|
9
31
|
throw new Error('Expected argument of type payment.File');
|
@@ -15,6 +37,17 @@ function deserialize_payment_File(buffer_arg) {
|
|
15
37
|
return payment_pb.File.deserializeBinary(new Uint8Array(buffer_arg));
|
16
38
|
}
|
17
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
|
+
|
18
51
|
function serialize_payment_GetFileRequest(arg) {
|
19
52
|
if (!(arg instanceof payment_pb.GetFileRequest)) {
|
20
53
|
throw new Error('Expected argument of type payment.GetFileRequest');
|
@@ -294,6 +327,29 @@ createSingleMethod: {
|
|
294
327
|
responseSerialize: serialize_payment_MethodItemsResponse,
|
295
328
|
responseDeserialize: deserialize_payment_MethodItemsResponse,
|
296
329
|
},
|
330
|
+
// Deposit
|
331
|
+
attemptDeposit: {
|
332
|
+
path: '/payment.Payment/attemptDeposit',
|
333
|
+
requestStream: false,
|
334
|
+
responseStream: false,
|
335
|
+
requestType: payment_pb.AttemptDepositRequest,
|
336
|
+
responseType: payment_pb.DepositResponse,
|
337
|
+
requestSerialize: serialize_payment_AttemptDepositRequest,
|
338
|
+
requestDeserialize: deserialize_payment_AttemptDepositRequest,
|
339
|
+
responseSerialize: serialize_payment_DepositResponse,
|
340
|
+
responseDeserialize: deserialize_payment_DepositResponse,
|
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
|
+
},
|
297
353
|
};
|
298
354
|
|
299
355
|
exports.PaymentClient = grpc.makeGenericClientConstructor(PaymentService);
|
package/payment/payment_pb.js
CHANGED
@@ -21,7 +21,10 @@ var global = (function() {
|
|
21
21
|
return Function('return this')();
|
22
22
|
}.call(null));
|
23
23
|
|
24
|
+
goog.exportSymbol('proto.payment.AttemptDepositRequest', null, global);
|
25
|
+
goog.exportSymbol('proto.payment.DepositResponse', null, global);
|
24
26
|
goog.exportSymbol('proto.payment.File', null, global);
|
27
|
+
goog.exportSymbol('proto.payment.GetDepositRequest', null, global);
|
25
28
|
goog.exportSymbol('proto.payment.GetFileRequest', null, global);
|
26
29
|
goog.exportSymbol('proto.payment.GetMethodRequest', null, global);
|
27
30
|
goog.exportSymbol('proto.payment.GetProviderRequest', null, global);
|
@@ -441,6 +444,69 @@ if (goog.DEBUG && !COMPILED) {
|
|
441
444
|
*/
|
442
445
|
proto.payment.MethodItemsResponse.displayName = 'proto.payment.MethodItemsResponse';
|
443
446
|
}
|
447
|
+
/**
|
448
|
+
* Generated by JsPbCodeGenerator.
|
449
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
450
|
+
* server response, or constructed directly in Javascript. The array is used
|
451
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
452
|
+
* If no data is provided, the constructed object will be empty, but still
|
453
|
+
* valid.
|
454
|
+
* @extends {jspb.Message}
|
455
|
+
* @constructor
|
456
|
+
*/
|
457
|
+
proto.payment.AttemptDepositRequest = function(opt_data) {
|
458
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
459
|
+
};
|
460
|
+
goog.inherits(proto.payment.AttemptDepositRequest, jspb.Message);
|
461
|
+
if (goog.DEBUG && !COMPILED) {
|
462
|
+
/**
|
463
|
+
* @public
|
464
|
+
* @override
|
465
|
+
*/
|
466
|
+
proto.payment.AttemptDepositRequest.displayName = 'proto.payment.AttemptDepositRequest';
|
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
|
+
}
|
489
|
+
/**
|
490
|
+
* Generated by JsPbCodeGenerator.
|
491
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
492
|
+
* server response, or constructed directly in Javascript. The array is used
|
493
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
494
|
+
* If no data is provided, the constructed object will be empty, but still
|
495
|
+
* valid.
|
496
|
+
* @extends {jspb.Message}
|
497
|
+
* @constructor
|
498
|
+
*/
|
499
|
+
proto.payment.DepositResponse = function(opt_data) {
|
500
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
501
|
+
};
|
502
|
+
goog.inherits(proto.payment.DepositResponse, jspb.Message);
|
503
|
+
if (goog.DEBUG && !COMPILED) {
|
504
|
+
/**
|
505
|
+
* @public
|
506
|
+
* @override
|
507
|
+
*/
|
508
|
+
proto.payment.DepositResponse.displayName = 'proto.payment.DepositResponse';
|
509
|
+
}
|
444
510
|
|
445
511
|
|
446
512
|
|
@@ -4847,4 +4913,676 @@ proto.payment.MethodItemsResponse.prototype.hasTotalItems = function() {
|
|
4847
4913
|
};
|
4848
4914
|
|
4849
4915
|
|
4916
|
+
|
4917
|
+
|
4918
|
+
|
4919
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
4920
|
+
/**
|
4921
|
+
* Creates an object representation of this proto.
|
4922
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
4923
|
+
* Optional fields that are not set will be set to undefined.
|
4924
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
4925
|
+
* For the list of reserved names please see:
|
4926
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
4927
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
4928
|
+
* JSPB instance for transitional soy proto support:
|
4929
|
+
* http://goto/soy-param-migration
|
4930
|
+
* @return {!Object}
|
4931
|
+
*/
|
4932
|
+
proto.payment.AttemptDepositRequest.prototype.toObject = function(opt_includeInstance) {
|
4933
|
+
return proto.payment.AttemptDepositRequest.toObject(opt_includeInstance, this);
|
4934
|
+
};
|
4935
|
+
|
4936
|
+
|
4937
|
+
/**
|
4938
|
+
* Static version of the {@see toObject} method.
|
4939
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
4940
|
+
* the JSPB instance for transitional soy proto support:
|
4941
|
+
* http://goto/soy-param-migration
|
4942
|
+
* @param {!proto.payment.AttemptDepositRequest} msg The msg instance to transform.
|
4943
|
+
* @return {!Object}
|
4944
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
4945
|
+
*/
|
4946
|
+
proto.payment.AttemptDepositRequest.toObject = function(includeInstance, msg) {
|
4947
|
+
var f, obj = {
|
4948
|
+
paymentMethodId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
4949
|
+
userId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
4950
|
+
amount: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
|
4951
|
+
bonusId: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
4952
|
+
userCurrency: jspb.Message.getFieldWithDefault(msg, 5, "")
|
4953
|
+
};
|
4954
|
+
|
4955
|
+
if (includeInstance) {
|
4956
|
+
obj.$jspbMessageInstance = msg;
|
4957
|
+
}
|
4958
|
+
return obj;
|
4959
|
+
};
|
4960
|
+
}
|
4961
|
+
|
4962
|
+
|
4963
|
+
/**
|
4964
|
+
* Deserializes binary data (in protobuf wire format).
|
4965
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
4966
|
+
* @return {!proto.payment.AttemptDepositRequest}
|
4967
|
+
*/
|
4968
|
+
proto.payment.AttemptDepositRequest.deserializeBinary = function(bytes) {
|
4969
|
+
var reader = new jspb.BinaryReader(bytes);
|
4970
|
+
var msg = new proto.payment.AttemptDepositRequest;
|
4971
|
+
return proto.payment.AttemptDepositRequest.deserializeBinaryFromReader(msg, reader);
|
4972
|
+
};
|
4973
|
+
|
4974
|
+
|
4975
|
+
/**
|
4976
|
+
* Deserializes binary data (in protobuf wire format) from the
|
4977
|
+
* given reader into the given message object.
|
4978
|
+
* @param {!proto.payment.AttemptDepositRequest} msg The message object to deserialize into.
|
4979
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
4980
|
+
* @return {!proto.payment.AttemptDepositRequest}
|
4981
|
+
*/
|
4982
|
+
proto.payment.AttemptDepositRequest.deserializeBinaryFromReader = function(msg, reader) {
|
4983
|
+
while (reader.nextField()) {
|
4984
|
+
if (reader.isEndGroup()) {
|
4985
|
+
break;
|
4986
|
+
}
|
4987
|
+
var field = reader.getFieldNumber();
|
4988
|
+
switch (field) {
|
4989
|
+
case 1:
|
4990
|
+
var value = /** @type {number} */ (reader.readInt32());
|
4991
|
+
msg.setPaymentMethodId(value);
|
4992
|
+
break;
|
4993
|
+
case 2:
|
4994
|
+
var value = /** @type {number} */ (reader.readInt32());
|
4995
|
+
msg.setUserId(value);
|
4996
|
+
break;
|
4997
|
+
case 3:
|
4998
|
+
var value = /** @type {number} */ (reader.readFloat());
|
4999
|
+
msg.setAmount(value);
|
5000
|
+
break;
|
5001
|
+
case 4:
|
5002
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5003
|
+
msg.setBonusId(value);
|
5004
|
+
break;
|
5005
|
+
case 5:
|
5006
|
+
var value = /** @type {string} */ (reader.readString());
|
5007
|
+
msg.setUserCurrency(value);
|
5008
|
+
break;
|
5009
|
+
default:
|
5010
|
+
reader.skipField();
|
5011
|
+
break;
|
5012
|
+
}
|
5013
|
+
}
|
5014
|
+
return msg;
|
5015
|
+
};
|
5016
|
+
|
5017
|
+
|
5018
|
+
/**
|
5019
|
+
* Serializes the message to binary data (in protobuf wire format).
|
5020
|
+
* @return {!Uint8Array}
|
5021
|
+
*/
|
5022
|
+
proto.payment.AttemptDepositRequest.prototype.serializeBinary = function() {
|
5023
|
+
var writer = new jspb.BinaryWriter();
|
5024
|
+
proto.payment.AttemptDepositRequest.serializeBinaryToWriter(this, writer);
|
5025
|
+
return writer.getResultBuffer();
|
5026
|
+
};
|
5027
|
+
|
5028
|
+
|
5029
|
+
/**
|
5030
|
+
* Serializes the given message to binary data (in protobuf wire
|
5031
|
+
* format), writing to the given BinaryWriter.
|
5032
|
+
* @param {!proto.payment.AttemptDepositRequest} message
|
5033
|
+
* @param {!jspb.BinaryWriter} writer
|
5034
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5035
|
+
*/
|
5036
|
+
proto.payment.AttemptDepositRequest.serializeBinaryToWriter = function(message, writer) {
|
5037
|
+
var f = undefined;
|
5038
|
+
f = message.getPaymentMethodId();
|
5039
|
+
if (f !== 0) {
|
5040
|
+
writer.writeInt32(
|
5041
|
+
1,
|
5042
|
+
f
|
5043
|
+
);
|
5044
|
+
}
|
5045
|
+
f = message.getUserId();
|
5046
|
+
if (f !== 0) {
|
5047
|
+
writer.writeInt32(
|
5048
|
+
2,
|
5049
|
+
f
|
5050
|
+
);
|
5051
|
+
}
|
5052
|
+
f = message.getAmount();
|
5053
|
+
if (f !== 0.0) {
|
5054
|
+
writer.writeFloat(
|
5055
|
+
3,
|
5056
|
+
f
|
5057
|
+
);
|
5058
|
+
}
|
5059
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
5060
|
+
if (f != null) {
|
5061
|
+
writer.writeInt32(
|
5062
|
+
4,
|
5063
|
+
f
|
5064
|
+
);
|
5065
|
+
}
|
5066
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
5067
|
+
if (f != null) {
|
5068
|
+
writer.writeString(
|
5069
|
+
5,
|
5070
|
+
f
|
5071
|
+
);
|
5072
|
+
}
|
5073
|
+
};
|
5074
|
+
|
5075
|
+
|
5076
|
+
/**
|
5077
|
+
* optional int32 payment_method_id = 1;
|
5078
|
+
* @return {number}
|
5079
|
+
*/
|
5080
|
+
proto.payment.AttemptDepositRequest.prototype.getPaymentMethodId = function() {
|
5081
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
5082
|
+
};
|
5083
|
+
|
5084
|
+
|
5085
|
+
/**
|
5086
|
+
* @param {number} value
|
5087
|
+
* @return {!proto.payment.AttemptDepositRequest} returns this
|
5088
|
+
*/
|
5089
|
+
proto.payment.AttemptDepositRequest.prototype.setPaymentMethodId = function(value) {
|
5090
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
5091
|
+
};
|
5092
|
+
|
5093
|
+
|
5094
|
+
/**
|
5095
|
+
* optional int32 user_id = 2;
|
5096
|
+
* @return {number}
|
5097
|
+
*/
|
5098
|
+
proto.payment.AttemptDepositRequest.prototype.getUserId = function() {
|
5099
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
5100
|
+
};
|
5101
|
+
|
5102
|
+
|
5103
|
+
/**
|
5104
|
+
* @param {number} value
|
5105
|
+
* @return {!proto.payment.AttemptDepositRequest} returns this
|
5106
|
+
*/
|
5107
|
+
proto.payment.AttemptDepositRequest.prototype.setUserId = function(value) {
|
5108
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
5109
|
+
};
|
5110
|
+
|
5111
|
+
|
5112
|
+
/**
|
5113
|
+
* optional float amount = 3;
|
5114
|
+
* @return {number}
|
5115
|
+
*/
|
5116
|
+
proto.payment.AttemptDepositRequest.prototype.getAmount = function() {
|
5117
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
|
5118
|
+
};
|
5119
|
+
|
5120
|
+
|
5121
|
+
/**
|
5122
|
+
* @param {number} value
|
5123
|
+
* @return {!proto.payment.AttemptDepositRequest} returns this
|
5124
|
+
*/
|
5125
|
+
proto.payment.AttemptDepositRequest.prototype.setAmount = function(value) {
|
5126
|
+
return jspb.Message.setProto3FloatField(this, 3, value);
|
5127
|
+
};
|
5128
|
+
|
5129
|
+
|
5130
|
+
/**
|
5131
|
+
* optional int32 bonus_id = 4;
|
5132
|
+
* @return {number}
|
5133
|
+
*/
|
5134
|
+
proto.payment.AttemptDepositRequest.prototype.getBonusId = function() {
|
5135
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
5136
|
+
};
|
5137
|
+
|
5138
|
+
|
5139
|
+
/**
|
5140
|
+
* @param {number} value
|
5141
|
+
* @return {!proto.payment.AttemptDepositRequest} returns this
|
5142
|
+
*/
|
5143
|
+
proto.payment.AttemptDepositRequest.prototype.setBonusId = function(value) {
|
5144
|
+
return jspb.Message.setField(this, 4, value);
|
5145
|
+
};
|
5146
|
+
|
5147
|
+
|
5148
|
+
/**
|
5149
|
+
* Clears the field making it undefined.
|
5150
|
+
* @return {!proto.payment.AttemptDepositRequest} returns this
|
5151
|
+
*/
|
5152
|
+
proto.payment.AttemptDepositRequest.prototype.clearBonusId = function() {
|
5153
|
+
return jspb.Message.setField(this, 4, undefined);
|
5154
|
+
};
|
5155
|
+
|
5156
|
+
|
5157
|
+
/**
|
5158
|
+
* Returns whether this field is set.
|
5159
|
+
* @return {boolean}
|
5160
|
+
*/
|
5161
|
+
proto.payment.AttemptDepositRequest.prototype.hasBonusId = function() {
|
5162
|
+
return jspb.Message.getField(this, 4) != null;
|
5163
|
+
};
|
5164
|
+
|
5165
|
+
|
5166
|
+
/**
|
5167
|
+
* optional string user_currency = 5;
|
5168
|
+
* @return {string}
|
5169
|
+
*/
|
5170
|
+
proto.payment.AttemptDepositRequest.prototype.getUserCurrency = function() {
|
5171
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
5172
|
+
};
|
5173
|
+
|
5174
|
+
|
5175
|
+
/**
|
5176
|
+
* @param {string} value
|
5177
|
+
* @return {!proto.payment.AttemptDepositRequest} returns this
|
5178
|
+
*/
|
5179
|
+
proto.payment.AttemptDepositRequest.prototype.setUserCurrency = function(value) {
|
5180
|
+
return jspb.Message.setField(this, 5, value);
|
5181
|
+
};
|
5182
|
+
|
5183
|
+
|
5184
|
+
/**
|
5185
|
+
* Clears the field making it undefined.
|
5186
|
+
* @return {!proto.payment.AttemptDepositRequest} returns this
|
5187
|
+
*/
|
5188
|
+
proto.payment.AttemptDepositRequest.prototype.clearUserCurrency = function() {
|
5189
|
+
return jspb.Message.setField(this, 5, undefined);
|
5190
|
+
};
|
5191
|
+
|
5192
|
+
|
5193
|
+
/**
|
5194
|
+
* Returns whether this field is set.
|
5195
|
+
* @return {boolean}
|
5196
|
+
*/
|
5197
|
+
proto.payment.AttemptDepositRequest.prototype.hasUserCurrency = function() {
|
5198
|
+
return jspb.Message.getField(this, 5) != null;
|
5199
|
+
};
|
5200
|
+
|
5201
|
+
|
5202
|
+
|
5203
|
+
|
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
|
+
|
5431
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
5432
|
+
/**
|
5433
|
+
* Creates an object representation of this proto.
|
5434
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
5435
|
+
* Optional fields that are not set will be set to undefined.
|
5436
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
5437
|
+
* For the list of reserved names please see:
|
5438
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
5439
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
5440
|
+
* JSPB instance for transitional soy proto support:
|
5441
|
+
* http://goto/soy-param-migration
|
5442
|
+
* @return {!Object}
|
5443
|
+
*/
|
5444
|
+
proto.payment.DepositResponse.prototype.toObject = function(opt_includeInstance) {
|
5445
|
+
return proto.payment.DepositResponse.toObject(opt_includeInstance, this);
|
5446
|
+
};
|
5447
|
+
|
5448
|
+
|
5449
|
+
/**
|
5450
|
+
* Static version of the {@see toObject} method.
|
5451
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
5452
|
+
* the JSPB instance for transitional soy proto support:
|
5453
|
+
* http://goto/soy-param-migration
|
5454
|
+
* @param {!proto.payment.DepositResponse} msg The msg instance to transform.
|
5455
|
+
* @return {!Object}
|
5456
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5457
|
+
*/
|
5458
|
+
proto.payment.DepositResponse.toObject = function(includeInstance, msg) {
|
5459
|
+
var f, obj = {
|
5460
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
5461
|
+
status: jspb.Message.getFieldWithDefault(msg, 2, "")
|
5462
|
+
};
|
5463
|
+
|
5464
|
+
if (includeInstance) {
|
5465
|
+
obj.$jspbMessageInstance = msg;
|
5466
|
+
}
|
5467
|
+
return obj;
|
5468
|
+
};
|
5469
|
+
}
|
5470
|
+
|
5471
|
+
|
5472
|
+
/**
|
5473
|
+
* Deserializes binary data (in protobuf wire format).
|
5474
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
5475
|
+
* @return {!proto.payment.DepositResponse}
|
5476
|
+
*/
|
5477
|
+
proto.payment.DepositResponse.deserializeBinary = function(bytes) {
|
5478
|
+
var reader = new jspb.BinaryReader(bytes);
|
5479
|
+
var msg = new proto.payment.DepositResponse;
|
5480
|
+
return proto.payment.DepositResponse.deserializeBinaryFromReader(msg, reader);
|
5481
|
+
};
|
5482
|
+
|
5483
|
+
|
5484
|
+
/**
|
5485
|
+
* Deserializes binary data (in protobuf wire format) from the
|
5486
|
+
* given reader into the given message object.
|
5487
|
+
* @param {!proto.payment.DepositResponse} msg The message object to deserialize into.
|
5488
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
5489
|
+
* @return {!proto.payment.DepositResponse}
|
5490
|
+
*/
|
5491
|
+
proto.payment.DepositResponse.deserializeBinaryFromReader = function(msg, reader) {
|
5492
|
+
while (reader.nextField()) {
|
5493
|
+
if (reader.isEndGroup()) {
|
5494
|
+
break;
|
5495
|
+
}
|
5496
|
+
var field = reader.getFieldNumber();
|
5497
|
+
switch (field) {
|
5498
|
+
case 1:
|
5499
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5500
|
+
msg.setId(value);
|
5501
|
+
break;
|
5502
|
+
case 2:
|
5503
|
+
var value = /** @type {string} */ (reader.readString());
|
5504
|
+
msg.setStatus(value);
|
5505
|
+
break;
|
5506
|
+
default:
|
5507
|
+
reader.skipField();
|
5508
|
+
break;
|
5509
|
+
}
|
5510
|
+
}
|
5511
|
+
return msg;
|
5512
|
+
};
|
5513
|
+
|
5514
|
+
|
5515
|
+
/**
|
5516
|
+
* Serializes the message to binary data (in protobuf wire format).
|
5517
|
+
* @return {!Uint8Array}
|
5518
|
+
*/
|
5519
|
+
proto.payment.DepositResponse.prototype.serializeBinary = function() {
|
5520
|
+
var writer = new jspb.BinaryWriter();
|
5521
|
+
proto.payment.DepositResponse.serializeBinaryToWriter(this, writer);
|
5522
|
+
return writer.getResultBuffer();
|
5523
|
+
};
|
5524
|
+
|
5525
|
+
|
5526
|
+
/**
|
5527
|
+
* Serializes the given message to binary data (in protobuf wire
|
5528
|
+
* format), writing to the given BinaryWriter.
|
5529
|
+
* @param {!proto.payment.DepositResponse} message
|
5530
|
+
* @param {!jspb.BinaryWriter} writer
|
5531
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5532
|
+
*/
|
5533
|
+
proto.payment.DepositResponse.serializeBinaryToWriter = function(message, writer) {
|
5534
|
+
var f = undefined;
|
5535
|
+
f = message.getId();
|
5536
|
+
if (f !== 0) {
|
5537
|
+
writer.writeInt32(
|
5538
|
+
1,
|
5539
|
+
f
|
5540
|
+
);
|
5541
|
+
}
|
5542
|
+
f = message.getStatus();
|
5543
|
+
if (f.length > 0) {
|
5544
|
+
writer.writeString(
|
5545
|
+
2,
|
5546
|
+
f
|
5547
|
+
);
|
5548
|
+
}
|
5549
|
+
};
|
5550
|
+
|
5551
|
+
|
5552
|
+
/**
|
5553
|
+
* optional int32 id = 1;
|
5554
|
+
* @return {number}
|
5555
|
+
*/
|
5556
|
+
proto.payment.DepositResponse.prototype.getId = function() {
|
5557
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
5558
|
+
};
|
5559
|
+
|
5560
|
+
|
5561
|
+
/**
|
5562
|
+
* @param {number} value
|
5563
|
+
* @return {!proto.payment.DepositResponse} returns this
|
5564
|
+
*/
|
5565
|
+
proto.payment.DepositResponse.prototype.setId = function(value) {
|
5566
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
5567
|
+
};
|
5568
|
+
|
5569
|
+
|
5570
|
+
/**
|
5571
|
+
* optional string status = 2;
|
5572
|
+
* @return {string}
|
5573
|
+
*/
|
5574
|
+
proto.payment.DepositResponse.prototype.getStatus = function() {
|
5575
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
5576
|
+
};
|
5577
|
+
|
5578
|
+
|
5579
|
+
/**
|
5580
|
+
* @param {string} value
|
5581
|
+
* @return {!proto.payment.DepositResponse} returns this
|
5582
|
+
*/
|
5583
|
+
proto.payment.DepositResponse.prototype.setStatus = function(value) {
|
5584
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
5585
|
+
};
|
5586
|
+
|
5587
|
+
|
4850
5588
|
goog.object.extend(exports, proto.payment);
|