protobuf-platform 1.0.265 → 1.0.266

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.265",
3
+ "version": "1.0.266",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -19,6 +19,7 @@ service Payment {
19
19
  rpc readListMethods(PaginationRequest) returns (MethodItemsResponse);
20
20
  rpc readListPoorMethods(PoorMethodsRequest) returns (MethodItemsResponse);
21
21
  rpc setPaymentMethodConfig(PaymentMethodConfigRequest) returns (PaymentStatusResponse);
22
+ rpc readPaymentMethodConfig(PaymentMethodConfigRequest) returns (PaymentMethodConfigResponse);
22
23
  //Deposit
23
24
  rpc attemptDeposit(AttemptDepositRequest) returns (DepositResponse);
24
25
  rpc changeDepositStatus(GetDepositRequest) returns (DepositResponse);
@@ -129,7 +130,17 @@ message PoorMethodsRequest {
129
130
  }
130
131
  message PaymentMethodConfigRequest {
131
132
  int32 method_id = 1;
132
- optional string geo = 2;
133
+ string country = 2;
134
+ string currency = 3;
135
+ optional int32 is_active = 4;
136
+ optional float min_amount = 5;
137
+ optional float max_amount = 6;
138
+ optional string type = 7;
139
+ optional string config = 8;
140
+ }
141
+ message PaymentMethodConfigResponse {
142
+ int32 method_id = 1;
143
+ optional string country = 2;
133
144
  optional string currency = 3;
134
145
  optional int32 is_active = 4;
135
146
  optional float min_amount = 5;
@@ -169,6 +169,17 @@ function deserialize_payment_PaymentMethodConfigRequest(buffer_arg) {
169
169
  return payment_pb.PaymentMethodConfigRequest.deserializeBinary(new Uint8Array(buffer_arg));
170
170
  }
171
171
 
172
+ function serialize_payment_PaymentMethodConfigResponse(arg) {
173
+ if (!(arg instanceof payment_pb.PaymentMethodConfigResponse)) {
174
+ throw new Error('Expected argument of type payment.PaymentMethodConfigResponse');
175
+ }
176
+ return Buffer.from(arg.serializeBinary());
177
+ }
178
+
179
+ function deserialize_payment_PaymentMethodConfigResponse(buffer_arg) {
180
+ return payment_pb.PaymentMethodConfigResponse.deserializeBinary(new Uint8Array(buffer_arg));
181
+ }
182
+
172
183
  function serialize_payment_PaymentStatusResponse(arg) {
173
184
  if (!(arg instanceof payment_pb.PaymentStatusResponse)) {
174
185
  throw new Error('Expected argument of type payment.PaymentStatusResponse');
@@ -426,6 +437,17 @@ createSingleMethod: {
426
437
  responseSerialize: serialize_payment_PaymentStatusResponse,
427
438
  responseDeserialize: deserialize_payment_PaymentStatusResponse,
428
439
  },
440
+ readPaymentMethodConfig: {
441
+ path: '/payment.Payment/readPaymentMethodConfig',
442
+ requestStream: false,
443
+ responseStream: false,
444
+ requestType: payment_pb.PaymentMethodConfigRequest,
445
+ responseType: payment_pb.PaymentMethodConfigResponse,
446
+ requestSerialize: serialize_payment_PaymentMethodConfigRequest,
447
+ requestDeserialize: deserialize_payment_PaymentMethodConfigRequest,
448
+ responseSerialize: serialize_payment_PaymentMethodConfigResponse,
449
+ responseDeserialize: deserialize_payment_PaymentMethodConfigResponse,
450
+ },
429
451
  // Deposit
430
452
  attemptDeposit: {
431
453
  path: '/payment.Payment/attemptDeposit',
@@ -41,6 +41,7 @@ goog.exportSymbol('proto.payment.MethodRequest.RequestCase', null, global);
41
41
  goog.exportSymbol('proto.payment.MethodResponse', null, global);
42
42
  goog.exportSymbol('proto.payment.PaginationRequest', null, global);
43
43
  goog.exportSymbol('proto.payment.PaymentMethodConfigRequest', null, global);
44
+ goog.exportSymbol('proto.payment.PaymentMethodConfigResponse', null, global);
44
45
  goog.exportSymbol('proto.payment.PaymentSearchRequest', null, global);
45
46
  goog.exportSymbol('proto.payment.PaymentStatusResponse', null, global);
46
47
  goog.exportSymbol('proto.payment.PingRequest', null, global);
@@ -496,6 +497,27 @@ if (goog.DEBUG && !COMPILED) {
496
497
  */
497
498
  proto.payment.PaymentMethodConfigRequest.displayName = 'proto.payment.PaymentMethodConfigRequest';
498
499
  }
500
+ /**
501
+ * Generated by JsPbCodeGenerator.
502
+ * @param {Array=} opt_data Optional initial data array, typically from a
503
+ * server response, or constructed directly in Javascript. The array is used
504
+ * in place and becomes part of the constructed object. It is not cloned.
505
+ * If no data is provided, the constructed object will be empty, but still
506
+ * valid.
507
+ * @extends {jspb.Message}
508
+ * @constructor
509
+ */
510
+ proto.payment.PaymentMethodConfigResponse = function(opt_data) {
511
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
512
+ };
513
+ goog.inherits(proto.payment.PaymentMethodConfigResponse, jspb.Message);
514
+ if (goog.DEBUG && !COMPILED) {
515
+ /**
516
+ * @public
517
+ * @override
518
+ */
519
+ proto.payment.PaymentMethodConfigResponse.displayName = 'proto.payment.PaymentMethodConfigResponse';
520
+ }
499
521
  /**
500
522
  * Generated by JsPbCodeGenerator.
501
523
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -5720,7 +5742,7 @@ proto.payment.PaymentMethodConfigRequest.prototype.toObject = function(opt_inclu
5720
5742
  proto.payment.PaymentMethodConfigRequest.toObject = function(includeInstance, msg) {
5721
5743
  var f, obj = {
5722
5744
  methodId: jspb.Message.getFieldWithDefault(msg, 1, 0),
5723
- geo: jspb.Message.getFieldWithDefault(msg, 2, ""),
5745
+ country: jspb.Message.getFieldWithDefault(msg, 2, ""),
5724
5746
  currency: jspb.Message.getFieldWithDefault(msg, 3, ""),
5725
5747
  isActive: jspb.Message.getFieldWithDefault(msg, 4, 0),
5726
5748
  minAmount: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
@@ -5769,7 +5791,7 @@ proto.payment.PaymentMethodConfigRequest.deserializeBinaryFromReader = function(
5769
5791
  break;
5770
5792
  case 2:
5771
5793
  var value = /** @type {string} */ (reader.readString());
5772
- msg.setGeo(value);
5794
+ msg.setCountry(value);
5773
5795
  break;
5774
5796
  case 3:
5775
5797
  var value = /** @type {string} */ (reader.readString());
@@ -5831,15 +5853,15 @@ proto.payment.PaymentMethodConfigRequest.serializeBinaryToWriter = function(mess
5831
5853
  f
5832
5854
  );
5833
5855
  }
5834
- f = /** @type {string} */ (jspb.Message.getField(message, 2));
5835
- if (f != null) {
5856
+ f = message.getCountry();
5857
+ if (f.length > 0) {
5836
5858
  writer.writeString(
5837
5859
  2,
5838
5860
  f
5839
5861
  );
5840
5862
  }
5841
- f = /** @type {string} */ (jspb.Message.getField(message, 3));
5842
- if (f != null) {
5863
+ f = message.getCurrency();
5864
+ if (f.length > 0) {
5843
5865
  writer.writeString(
5844
5866
  3,
5845
5867
  f
@@ -5902,10 +5924,10 @@ proto.payment.PaymentMethodConfigRequest.prototype.setMethodId = function(value)
5902
5924
 
5903
5925
 
5904
5926
  /**
5905
- * optional string geo = 2;
5927
+ * optional string country = 2;
5906
5928
  * @return {string}
5907
5929
  */
5908
- proto.payment.PaymentMethodConfigRequest.prototype.getGeo = function() {
5930
+ proto.payment.PaymentMethodConfigRequest.prototype.getCountry = function() {
5909
5931
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
5910
5932
  };
5911
5933
 
@@ -5914,26 +5936,8 @@ proto.payment.PaymentMethodConfigRequest.prototype.getGeo = function() {
5914
5936
  * @param {string} value
5915
5937
  * @return {!proto.payment.PaymentMethodConfigRequest} returns this
5916
5938
  */
5917
- proto.payment.PaymentMethodConfigRequest.prototype.setGeo = function(value) {
5918
- return jspb.Message.setField(this, 2, value);
5919
- };
5920
-
5921
-
5922
- /**
5923
- * Clears the field making it undefined.
5924
- * @return {!proto.payment.PaymentMethodConfigRequest} returns this
5925
- */
5926
- proto.payment.PaymentMethodConfigRequest.prototype.clearGeo = function() {
5927
- return jspb.Message.setField(this, 2, undefined);
5928
- };
5929
-
5930
-
5931
- /**
5932
- * Returns whether this field is set.
5933
- * @return {boolean}
5934
- */
5935
- proto.payment.PaymentMethodConfigRequest.prototype.hasGeo = function() {
5936
- return jspb.Message.getField(this, 2) != null;
5939
+ proto.payment.PaymentMethodConfigRequest.prototype.setCountry = function(value) {
5940
+ return jspb.Message.setProto3StringField(this, 2, value);
5937
5941
  };
5938
5942
 
5939
5943
 
@@ -5951,25 +5955,7 @@ proto.payment.PaymentMethodConfigRequest.prototype.getCurrency = function() {
5951
5955
  * @return {!proto.payment.PaymentMethodConfigRequest} returns this
5952
5956
  */
5953
5957
  proto.payment.PaymentMethodConfigRequest.prototype.setCurrency = function(value) {
5954
- return jspb.Message.setField(this, 3, value);
5955
- };
5956
-
5957
-
5958
- /**
5959
- * Clears the field making it undefined.
5960
- * @return {!proto.payment.PaymentMethodConfigRequest} returns this
5961
- */
5962
- proto.payment.PaymentMethodConfigRequest.prototype.clearCurrency = function() {
5963
- return jspb.Message.setField(this, 3, undefined);
5964
- };
5965
-
5966
-
5967
- /**
5968
- * Returns whether this field is set.
5969
- * @return {boolean}
5970
- */
5971
- proto.payment.PaymentMethodConfigRequest.prototype.hasCurrency = function() {
5972
- return jspb.Message.getField(this, 3) != null;
5958
+ return jspb.Message.setProto3StringField(this, 3, value);
5973
5959
  };
5974
5960
 
5975
5961
 
@@ -6156,6 +6142,472 @@ proto.payment.PaymentMethodConfigRequest.prototype.hasConfig = function() {
6156
6142
 
6157
6143
 
6158
6144
 
6145
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6146
+ /**
6147
+ * Creates an object representation of this proto.
6148
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6149
+ * Optional fields that are not set will be set to undefined.
6150
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6151
+ * For the list of reserved names please see:
6152
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6153
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6154
+ * JSPB instance for transitional soy proto support:
6155
+ * http://goto/soy-param-migration
6156
+ * @return {!Object}
6157
+ */
6158
+ proto.payment.PaymentMethodConfigResponse.prototype.toObject = function(opt_includeInstance) {
6159
+ return proto.payment.PaymentMethodConfigResponse.toObject(opt_includeInstance, this);
6160
+ };
6161
+
6162
+
6163
+ /**
6164
+ * Static version of the {@see toObject} method.
6165
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6166
+ * the JSPB instance for transitional soy proto support:
6167
+ * http://goto/soy-param-migration
6168
+ * @param {!proto.payment.PaymentMethodConfigResponse} msg The msg instance to transform.
6169
+ * @return {!Object}
6170
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6171
+ */
6172
+ proto.payment.PaymentMethodConfigResponse.toObject = function(includeInstance, msg) {
6173
+ var f, obj = {
6174
+ methodId: jspb.Message.getFieldWithDefault(msg, 1, 0),
6175
+ country: jspb.Message.getFieldWithDefault(msg, 2, ""),
6176
+ currency: jspb.Message.getFieldWithDefault(msg, 3, ""),
6177
+ isActive: jspb.Message.getFieldWithDefault(msg, 4, 0),
6178
+ minAmount: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
6179
+ maxAmount: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
6180
+ type: jspb.Message.getFieldWithDefault(msg, 7, ""),
6181
+ config: jspb.Message.getFieldWithDefault(msg, 8, "")
6182
+ };
6183
+
6184
+ if (includeInstance) {
6185
+ obj.$jspbMessageInstance = msg;
6186
+ }
6187
+ return obj;
6188
+ };
6189
+ }
6190
+
6191
+
6192
+ /**
6193
+ * Deserializes binary data (in protobuf wire format).
6194
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6195
+ * @return {!proto.payment.PaymentMethodConfigResponse}
6196
+ */
6197
+ proto.payment.PaymentMethodConfigResponse.deserializeBinary = function(bytes) {
6198
+ var reader = new jspb.BinaryReader(bytes);
6199
+ var msg = new proto.payment.PaymentMethodConfigResponse;
6200
+ return proto.payment.PaymentMethodConfigResponse.deserializeBinaryFromReader(msg, reader);
6201
+ };
6202
+
6203
+
6204
+ /**
6205
+ * Deserializes binary data (in protobuf wire format) from the
6206
+ * given reader into the given message object.
6207
+ * @param {!proto.payment.PaymentMethodConfigResponse} msg The message object to deserialize into.
6208
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6209
+ * @return {!proto.payment.PaymentMethodConfigResponse}
6210
+ */
6211
+ proto.payment.PaymentMethodConfigResponse.deserializeBinaryFromReader = function(msg, reader) {
6212
+ while (reader.nextField()) {
6213
+ if (reader.isEndGroup()) {
6214
+ break;
6215
+ }
6216
+ var field = reader.getFieldNumber();
6217
+ switch (field) {
6218
+ case 1:
6219
+ var value = /** @type {number} */ (reader.readInt32());
6220
+ msg.setMethodId(value);
6221
+ break;
6222
+ case 2:
6223
+ var value = /** @type {string} */ (reader.readString());
6224
+ msg.setCountry(value);
6225
+ break;
6226
+ case 3:
6227
+ var value = /** @type {string} */ (reader.readString());
6228
+ msg.setCurrency(value);
6229
+ break;
6230
+ case 4:
6231
+ var value = /** @type {number} */ (reader.readInt32());
6232
+ msg.setIsActive(value);
6233
+ break;
6234
+ case 5:
6235
+ var value = /** @type {number} */ (reader.readFloat());
6236
+ msg.setMinAmount(value);
6237
+ break;
6238
+ case 6:
6239
+ var value = /** @type {number} */ (reader.readFloat());
6240
+ msg.setMaxAmount(value);
6241
+ break;
6242
+ case 7:
6243
+ var value = /** @type {string} */ (reader.readString());
6244
+ msg.setType(value);
6245
+ break;
6246
+ case 8:
6247
+ var value = /** @type {string} */ (reader.readString());
6248
+ msg.setConfig(value);
6249
+ break;
6250
+ default:
6251
+ reader.skipField();
6252
+ break;
6253
+ }
6254
+ }
6255
+ return msg;
6256
+ };
6257
+
6258
+
6259
+ /**
6260
+ * Serializes the message to binary data (in protobuf wire format).
6261
+ * @return {!Uint8Array}
6262
+ */
6263
+ proto.payment.PaymentMethodConfigResponse.prototype.serializeBinary = function() {
6264
+ var writer = new jspb.BinaryWriter();
6265
+ proto.payment.PaymentMethodConfigResponse.serializeBinaryToWriter(this, writer);
6266
+ return writer.getResultBuffer();
6267
+ };
6268
+
6269
+
6270
+ /**
6271
+ * Serializes the given message to binary data (in protobuf wire
6272
+ * format), writing to the given BinaryWriter.
6273
+ * @param {!proto.payment.PaymentMethodConfigResponse} message
6274
+ * @param {!jspb.BinaryWriter} writer
6275
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6276
+ */
6277
+ proto.payment.PaymentMethodConfigResponse.serializeBinaryToWriter = function(message, writer) {
6278
+ var f = undefined;
6279
+ f = message.getMethodId();
6280
+ if (f !== 0) {
6281
+ writer.writeInt32(
6282
+ 1,
6283
+ f
6284
+ );
6285
+ }
6286
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
6287
+ if (f != null) {
6288
+ writer.writeString(
6289
+ 2,
6290
+ f
6291
+ );
6292
+ }
6293
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
6294
+ if (f != null) {
6295
+ writer.writeString(
6296
+ 3,
6297
+ f
6298
+ );
6299
+ }
6300
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
6301
+ if (f != null) {
6302
+ writer.writeInt32(
6303
+ 4,
6304
+ f
6305
+ );
6306
+ }
6307
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
6308
+ if (f != null) {
6309
+ writer.writeFloat(
6310
+ 5,
6311
+ f
6312
+ );
6313
+ }
6314
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
6315
+ if (f != null) {
6316
+ writer.writeFloat(
6317
+ 6,
6318
+ f
6319
+ );
6320
+ }
6321
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
6322
+ if (f != null) {
6323
+ writer.writeString(
6324
+ 7,
6325
+ f
6326
+ );
6327
+ }
6328
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
6329
+ if (f != null) {
6330
+ writer.writeString(
6331
+ 8,
6332
+ f
6333
+ );
6334
+ }
6335
+ };
6336
+
6337
+
6338
+ /**
6339
+ * optional int32 method_id = 1;
6340
+ * @return {number}
6341
+ */
6342
+ proto.payment.PaymentMethodConfigResponse.prototype.getMethodId = function() {
6343
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
6344
+ };
6345
+
6346
+
6347
+ /**
6348
+ * @param {number} value
6349
+ * @return {!proto.payment.PaymentMethodConfigResponse} returns this
6350
+ */
6351
+ proto.payment.PaymentMethodConfigResponse.prototype.setMethodId = function(value) {
6352
+ return jspb.Message.setProto3IntField(this, 1, value);
6353
+ };
6354
+
6355
+
6356
+ /**
6357
+ * optional string country = 2;
6358
+ * @return {string}
6359
+ */
6360
+ proto.payment.PaymentMethodConfigResponse.prototype.getCountry = function() {
6361
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
6362
+ };
6363
+
6364
+
6365
+ /**
6366
+ * @param {string} value
6367
+ * @return {!proto.payment.PaymentMethodConfigResponse} returns this
6368
+ */
6369
+ proto.payment.PaymentMethodConfigResponse.prototype.setCountry = function(value) {
6370
+ return jspb.Message.setField(this, 2, value);
6371
+ };
6372
+
6373
+
6374
+ /**
6375
+ * Clears the field making it undefined.
6376
+ * @return {!proto.payment.PaymentMethodConfigResponse} returns this
6377
+ */
6378
+ proto.payment.PaymentMethodConfigResponse.prototype.clearCountry = function() {
6379
+ return jspb.Message.setField(this, 2, undefined);
6380
+ };
6381
+
6382
+
6383
+ /**
6384
+ * Returns whether this field is set.
6385
+ * @return {boolean}
6386
+ */
6387
+ proto.payment.PaymentMethodConfigResponse.prototype.hasCountry = function() {
6388
+ return jspb.Message.getField(this, 2) != null;
6389
+ };
6390
+
6391
+
6392
+ /**
6393
+ * optional string currency = 3;
6394
+ * @return {string}
6395
+ */
6396
+ proto.payment.PaymentMethodConfigResponse.prototype.getCurrency = function() {
6397
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
6398
+ };
6399
+
6400
+
6401
+ /**
6402
+ * @param {string} value
6403
+ * @return {!proto.payment.PaymentMethodConfigResponse} returns this
6404
+ */
6405
+ proto.payment.PaymentMethodConfigResponse.prototype.setCurrency = function(value) {
6406
+ return jspb.Message.setField(this, 3, value);
6407
+ };
6408
+
6409
+
6410
+ /**
6411
+ * Clears the field making it undefined.
6412
+ * @return {!proto.payment.PaymentMethodConfigResponse} returns this
6413
+ */
6414
+ proto.payment.PaymentMethodConfigResponse.prototype.clearCurrency = function() {
6415
+ return jspb.Message.setField(this, 3, undefined);
6416
+ };
6417
+
6418
+
6419
+ /**
6420
+ * Returns whether this field is set.
6421
+ * @return {boolean}
6422
+ */
6423
+ proto.payment.PaymentMethodConfigResponse.prototype.hasCurrency = function() {
6424
+ return jspb.Message.getField(this, 3) != null;
6425
+ };
6426
+
6427
+
6428
+ /**
6429
+ * optional int32 is_active = 4;
6430
+ * @return {number}
6431
+ */
6432
+ proto.payment.PaymentMethodConfigResponse.prototype.getIsActive = function() {
6433
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
6434
+ };
6435
+
6436
+
6437
+ /**
6438
+ * @param {number} value
6439
+ * @return {!proto.payment.PaymentMethodConfigResponse} returns this
6440
+ */
6441
+ proto.payment.PaymentMethodConfigResponse.prototype.setIsActive = function(value) {
6442
+ return jspb.Message.setField(this, 4, value);
6443
+ };
6444
+
6445
+
6446
+ /**
6447
+ * Clears the field making it undefined.
6448
+ * @return {!proto.payment.PaymentMethodConfigResponse} returns this
6449
+ */
6450
+ proto.payment.PaymentMethodConfigResponse.prototype.clearIsActive = function() {
6451
+ return jspb.Message.setField(this, 4, undefined);
6452
+ };
6453
+
6454
+
6455
+ /**
6456
+ * Returns whether this field is set.
6457
+ * @return {boolean}
6458
+ */
6459
+ proto.payment.PaymentMethodConfigResponse.prototype.hasIsActive = function() {
6460
+ return jspb.Message.getField(this, 4) != null;
6461
+ };
6462
+
6463
+
6464
+ /**
6465
+ * optional float min_amount = 5;
6466
+ * @return {number}
6467
+ */
6468
+ proto.payment.PaymentMethodConfigResponse.prototype.getMinAmount = function() {
6469
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
6470
+ };
6471
+
6472
+
6473
+ /**
6474
+ * @param {number} value
6475
+ * @return {!proto.payment.PaymentMethodConfigResponse} returns this
6476
+ */
6477
+ proto.payment.PaymentMethodConfigResponse.prototype.setMinAmount = function(value) {
6478
+ return jspb.Message.setField(this, 5, value);
6479
+ };
6480
+
6481
+
6482
+ /**
6483
+ * Clears the field making it undefined.
6484
+ * @return {!proto.payment.PaymentMethodConfigResponse} returns this
6485
+ */
6486
+ proto.payment.PaymentMethodConfigResponse.prototype.clearMinAmount = function() {
6487
+ return jspb.Message.setField(this, 5, undefined);
6488
+ };
6489
+
6490
+
6491
+ /**
6492
+ * Returns whether this field is set.
6493
+ * @return {boolean}
6494
+ */
6495
+ proto.payment.PaymentMethodConfigResponse.prototype.hasMinAmount = function() {
6496
+ return jspb.Message.getField(this, 5) != null;
6497
+ };
6498
+
6499
+
6500
+ /**
6501
+ * optional float max_amount = 6;
6502
+ * @return {number}
6503
+ */
6504
+ proto.payment.PaymentMethodConfigResponse.prototype.getMaxAmount = function() {
6505
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
6506
+ };
6507
+
6508
+
6509
+ /**
6510
+ * @param {number} value
6511
+ * @return {!proto.payment.PaymentMethodConfigResponse} returns this
6512
+ */
6513
+ proto.payment.PaymentMethodConfigResponse.prototype.setMaxAmount = function(value) {
6514
+ return jspb.Message.setField(this, 6, value);
6515
+ };
6516
+
6517
+
6518
+ /**
6519
+ * Clears the field making it undefined.
6520
+ * @return {!proto.payment.PaymentMethodConfigResponse} returns this
6521
+ */
6522
+ proto.payment.PaymentMethodConfigResponse.prototype.clearMaxAmount = function() {
6523
+ return jspb.Message.setField(this, 6, undefined);
6524
+ };
6525
+
6526
+
6527
+ /**
6528
+ * Returns whether this field is set.
6529
+ * @return {boolean}
6530
+ */
6531
+ proto.payment.PaymentMethodConfigResponse.prototype.hasMaxAmount = function() {
6532
+ return jspb.Message.getField(this, 6) != null;
6533
+ };
6534
+
6535
+
6536
+ /**
6537
+ * optional string type = 7;
6538
+ * @return {string}
6539
+ */
6540
+ proto.payment.PaymentMethodConfigResponse.prototype.getType = function() {
6541
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
6542
+ };
6543
+
6544
+
6545
+ /**
6546
+ * @param {string} value
6547
+ * @return {!proto.payment.PaymentMethodConfigResponse} returns this
6548
+ */
6549
+ proto.payment.PaymentMethodConfigResponse.prototype.setType = function(value) {
6550
+ return jspb.Message.setField(this, 7, value);
6551
+ };
6552
+
6553
+
6554
+ /**
6555
+ * Clears the field making it undefined.
6556
+ * @return {!proto.payment.PaymentMethodConfigResponse} returns this
6557
+ */
6558
+ proto.payment.PaymentMethodConfigResponse.prototype.clearType = function() {
6559
+ return jspb.Message.setField(this, 7, undefined);
6560
+ };
6561
+
6562
+
6563
+ /**
6564
+ * Returns whether this field is set.
6565
+ * @return {boolean}
6566
+ */
6567
+ proto.payment.PaymentMethodConfigResponse.prototype.hasType = function() {
6568
+ return jspb.Message.getField(this, 7) != null;
6569
+ };
6570
+
6571
+
6572
+ /**
6573
+ * optional string config = 8;
6574
+ * @return {string}
6575
+ */
6576
+ proto.payment.PaymentMethodConfigResponse.prototype.getConfig = function() {
6577
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
6578
+ };
6579
+
6580
+
6581
+ /**
6582
+ * @param {string} value
6583
+ * @return {!proto.payment.PaymentMethodConfigResponse} returns this
6584
+ */
6585
+ proto.payment.PaymentMethodConfigResponse.prototype.setConfig = function(value) {
6586
+ return jspb.Message.setField(this, 8, value);
6587
+ };
6588
+
6589
+
6590
+ /**
6591
+ * Clears the field making it undefined.
6592
+ * @return {!proto.payment.PaymentMethodConfigResponse} returns this
6593
+ */
6594
+ proto.payment.PaymentMethodConfigResponse.prototype.clearConfig = function() {
6595
+ return jspb.Message.setField(this, 8, undefined);
6596
+ };
6597
+
6598
+
6599
+ /**
6600
+ * Returns whether this field is set.
6601
+ * @return {boolean}
6602
+ */
6603
+ proto.payment.PaymentMethodConfigResponse.prototype.hasConfig = function() {
6604
+ return jspb.Message.getField(this, 8) != null;
6605
+ };
6606
+
6607
+
6608
+
6609
+
6610
+
6159
6611
  if (jspb.Message.GENERATE_TO_OBJECT) {
6160
6612
  /**
6161
6613
  * Creates an object representation of this proto.