protobuf-platform 1.2.384 → 1.2.386

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.2.384",
3
+ "version": "1.2.386",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -265,6 +265,8 @@ message OperationDetailsItem {
265
265
  string completion_mode = 14;
266
266
  string created = 15;
267
267
  string completed = 16;
268
+ optional string comment = 17;
269
+ optional string provider_code = 18;
268
270
  }
269
271
  message OperationLedgerItem {
270
272
  int32 id = 1;
@@ -319,6 +321,16 @@ message GetDepositRequest {
319
321
  optional int32 maker_id = 3;
320
322
  optional string reason = 4;
321
323
  }
324
+ message CryptoDepositInstructions {
325
+ optional string address = 1;
326
+ optional string memo = 2;
327
+ optional string memo_type = 3;
328
+ optional string asset = 4;
329
+ optional string network = 5;
330
+ optional string qr_payload = 6;
331
+ optional string provider_payment_id = 7;
332
+ optional float min_deposit = 8;
333
+ }
322
334
  message DepositResponse {
323
335
  int32 id = 1;
324
336
  optional int32 user_id = 2;
@@ -333,6 +345,7 @@ message DepositResponse {
333
345
  optional string payment_redirect_url = 11;
334
346
  optional string country = 12;
335
347
  optional string processing_type = 13;
348
+ optional CryptoDepositInstructions crypto_instructions = 14;
336
349
  }
337
350
  message DepositItem {
338
351
  int32 id = 1;
@@ -23,6 +23,7 @@ var global = (function() {
23
23
 
24
24
  goog.exportSymbol('proto.payment.AttemptDepositRequest', null, global);
25
25
  goog.exportSymbol('proto.payment.AttemptWithdrawalRequest', null, global);
26
+ goog.exportSymbol('proto.payment.CryptoDepositInstructions', null, global);
26
27
  goog.exportSymbol('proto.payment.CurrenciesMetadataResponse', null, global);
27
28
  goog.exportSymbol('proto.payment.CurrencyItem', null, global);
28
29
  goog.exportSymbol('proto.payment.CurrencyItemsResponse', null, global);
@@ -834,6 +835,27 @@ if (goog.DEBUG && !COMPILED) {
834
835
  */
835
836
  proto.payment.GetDepositRequest.displayName = 'proto.payment.GetDepositRequest';
836
837
  }
838
+ /**
839
+ * Generated by JsPbCodeGenerator.
840
+ * @param {Array=} opt_data Optional initial data array, typically from a
841
+ * server response, or constructed directly in Javascript. The array is used
842
+ * in place and becomes part of the constructed object. It is not cloned.
843
+ * If no data is provided, the constructed object will be empty, but still
844
+ * valid.
845
+ * @extends {jspb.Message}
846
+ * @constructor
847
+ */
848
+ proto.payment.CryptoDepositInstructions = function(opt_data) {
849
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
850
+ };
851
+ goog.inherits(proto.payment.CryptoDepositInstructions, jspb.Message);
852
+ if (goog.DEBUG && !COMPILED) {
853
+ /**
854
+ * @public
855
+ * @override
856
+ */
857
+ proto.payment.CryptoDepositInstructions.displayName = 'proto.payment.CryptoDepositInstructions';
858
+ }
837
859
  /**
838
860
  * Generated by JsPbCodeGenerator.
839
861
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -10609,7 +10631,9 @@ proto.payment.OperationDetailsItem.toObject = function(includeInstance, msg) {
10609
10631
  processingType: jspb.Message.getFieldWithDefault(msg, 13, ""),
10610
10632
  completionMode: jspb.Message.getFieldWithDefault(msg, 14, ""),
10611
10633
  created: jspb.Message.getFieldWithDefault(msg, 15, ""),
10612
- completed: jspb.Message.getFieldWithDefault(msg, 16, "")
10634
+ completed: jspb.Message.getFieldWithDefault(msg, 16, ""),
10635
+ comment: jspb.Message.getFieldWithDefault(msg, 17, ""),
10636
+ providerCode: jspb.Message.getFieldWithDefault(msg, 18, "")
10613
10637
  };
10614
10638
 
10615
10639
  if (includeInstance) {
@@ -10710,6 +10734,14 @@ proto.payment.OperationDetailsItem.deserializeBinaryFromReader = function(msg, r
10710
10734
  var value = /** @type {string} */ (reader.readString());
10711
10735
  msg.setCompleted(value);
10712
10736
  break;
10737
+ case 17:
10738
+ var value = /** @type {string} */ (reader.readString());
10739
+ msg.setComment(value);
10740
+ break;
10741
+ case 18:
10742
+ var value = /** @type {string} */ (reader.readString());
10743
+ msg.setProviderCode(value);
10744
+ break;
10713
10745
  default:
10714
10746
  reader.skipField();
10715
10747
  break;
@@ -10851,6 +10883,20 @@ proto.payment.OperationDetailsItem.serializeBinaryToWriter = function(message, w
10851
10883
  f
10852
10884
  );
10853
10885
  }
10886
+ f = /** @type {string} */ (jspb.Message.getField(message, 17));
10887
+ if (f != null) {
10888
+ writer.writeString(
10889
+ 17,
10890
+ f
10891
+ );
10892
+ }
10893
+ f = /** @type {string} */ (jspb.Message.getField(message, 18));
10894
+ if (f != null) {
10895
+ writer.writeString(
10896
+ 18,
10897
+ f
10898
+ );
10899
+ }
10854
10900
  };
10855
10901
 
10856
10902
 
@@ -11142,6 +11188,78 @@ proto.payment.OperationDetailsItem.prototype.setCompleted = function(value) {
11142
11188
  };
11143
11189
 
11144
11190
 
11191
+ /**
11192
+ * optional string comment = 17;
11193
+ * @return {string}
11194
+ */
11195
+ proto.payment.OperationDetailsItem.prototype.getComment = function() {
11196
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
11197
+ };
11198
+
11199
+
11200
+ /**
11201
+ * @param {string} value
11202
+ * @return {!proto.payment.OperationDetailsItem} returns this
11203
+ */
11204
+ proto.payment.OperationDetailsItem.prototype.setComment = function(value) {
11205
+ return jspb.Message.setField(this, 17, value);
11206
+ };
11207
+
11208
+
11209
+ /**
11210
+ * Clears the field making it undefined.
11211
+ * @return {!proto.payment.OperationDetailsItem} returns this
11212
+ */
11213
+ proto.payment.OperationDetailsItem.prototype.clearComment = function() {
11214
+ return jspb.Message.setField(this, 17, undefined);
11215
+ };
11216
+
11217
+
11218
+ /**
11219
+ * Returns whether this field is set.
11220
+ * @return {boolean}
11221
+ */
11222
+ proto.payment.OperationDetailsItem.prototype.hasComment = function() {
11223
+ return jspb.Message.getField(this, 17) != null;
11224
+ };
11225
+
11226
+
11227
+ /**
11228
+ * optional string provider_code = 18;
11229
+ * @return {string}
11230
+ */
11231
+ proto.payment.OperationDetailsItem.prototype.getProviderCode = function() {
11232
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
11233
+ };
11234
+
11235
+
11236
+ /**
11237
+ * @param {string} value
11238
+ * @return {!proto.payment.OperationDetailsItem} returns this
11239
+ */
11240
+ proto.payment.OperationDetailsItem.prototype.setProviderCode = function(value) {
11241
+ return jspb.Message.setField(this, 18, value);
11242
+ };
11243
+
11244
+
11245
+ /**
11246
+ * Clears the field making it undefined.
11247
+ * @return {!proto.payment.OperationDetailsItem} returns this
11248
+ */
11249
+ proto.payment.OperationDetailsItem.prototype.clearProviderCode = function() {
11250
+ return jspb.Message.setField(this, 18, undefined);
11251
+ };
11252
+
11253
+
11254
+ /**
11255
+ * Returns whether this field is set.
11256
+ * @return {boolean}
11257
+ */
11258
+ proto.payment.OperationDetailsItem.prototype.hasProviderCode = function() {
11259
+ return jspb.Message.getField(this, 18) != null;
11260
+ };
11261
+
11262
+
11145
11263
 
11146
11264
 
11147
11265
 
@@ -13401,8 +13519,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
13401
13519
  * http://goto/soy-param-migration
13402
13520
  * @return {!Object}
13403
13521
  */
13404
- proto.payment.DepositResponse.prototype.toObject = function(opt_includeInstance) {
13405
- return proto.payment.DepositResponse.toObject(opt_includeInstance, this);
13522
+ proto.payment.CryptoDepositInstructions.prototype.toObject = function(opt_includeInstance) {
13523
+ return proto.payment.CryptoDepositInstructions.toObject(opt_includeInstance, this);
13406
13524
  };
13407
13525
 
13408
13526
 
@@ -13411,25 +13529,20 @@ proto.payment.DepositResponse.prototype.toObject = function(opt_includeInstance)
13411
13529
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
13412
13530
  * the JSPB instance for transitional soy proto support:
13413
13531
  * http://goto/soy-param-migration
13414
- * @param {!proto.payment.DepositResponse} msg The msg instance to transform.
13532
+ * @param {!proto.payment.CryptoDepositInstructions} msg The msg instance to transform.
13415
13533
  * @return {!Object}
13416
13534
  * @suppress {unusedLocalVariables} f is only used for nested messages
13417
13535
  */
13418
- proto.payment.DepositResponse.toObject = function(includeInstance, msg) {
13536
+ proto.payment.CryptoDepositInstructions.toObject = function(includeInstance, msg) {
13419
13537
  var f, obj = {
13420
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
13421
- userId: jspb.Message.getFieldWithDefault(msg, 2, 0),
13422
- status: jspb.Message.getFieldWithDefault(msg, 3, ""),
13423
- amountAttempt: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
13424
- amountPaid: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
13425
- fee: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
13426
- currency: jspb.Message.getFieldWithDefault(msg, 7, ""),
13427
- paymentMethodTitle: jspb.Message.getFieldWithDefault(msg, 8, ""),
13428
- paymentProviderImage: jspb.Message.getFieldWithDefault(msg, 9, ""),
13429
- created: jspb.Message.getFieldWithDefault(msg, 10, ""),
13430
- paymentRedirectUrl: jspb.Message.getFieldWithDefault(msg, 11, ""),
13431
- country: jspb.Message.getFieldWithDefault(msg, 12, ""),
13432
- processingType: jspb.Message.getFieldWithDefault(msg, 13, "")
13538
+ address: jspb.Message.getFieldWithDefault(msg, 1, ""),
13539
+ memo: jspb.Message.getFieldWithDefault(msg, 2, ""),
13540
+ memoType: jspb.Message.getFieldWithDefault(msg, 3, ""),
13541
+ asset: jspb.Message.getFieldWithDefault(msg, 4, ""),
13542
+ network: jspb.Message.getFieldWithDefault(msg, 5, ""),
13543
+ qrPayload: jspb.Message.getFieldWithDefault(msg, 6, ""),
13544
+ providerPaymentId: jspb.Message.getFieldWithDefault(msg, 7, ""),
13545
+ minDeposit: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0)
13433
13546
  };
13434
13547
 
13435
13548
  if (includeInstance) {
@@ -13443,23 +13556,23 @@ proto.payment.DepositResponse.toObject = function(includeInstance, msg) {
13443
13556
  /**
13444
13557
  * Deserializes binary data (in protobuf wire format).
13445
13558
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
13446
- * @return {!proto.payment.DepositResponse}
13559
+ * @return {!proto.payment.CryptoDepositInstructions}
13447
13560
  */
13448
- proto.payment.DepositResponse.deserializeBinary = function(bytes) {
13561
+ proto.payment.CryptoDepositInstructions.deserializeBinary = function(bytes) {
13449
13562
  var reader = new jspb.BinaryReader(bytes);
13450
- var msg = new proto.payment.DepositResponse;
13451
- return proto.payment.DepositResponse.deserializeBinaryFromReader(msg, reader);
13563
+ var msg = new proto.payment.CryptoDepositInstructions;
13564
+ return proto.payment.CryptoDepositInstructions.deserializeBinaryFromReader(msg, reader);
13452
13565
  };
13453
13566
 
13454
13567
 
13455
13568
  /**
13456
13569
  * Deserializes binary data (in protobuf wire format) from the
13457
13570
  * given reader into the given message object.
13458
- * @param {!proto.payment.DepositResponse} msg The message object to deserialize into.
13571
+ * @param {!proto.payment.CryptoDepositInstructions} msg The message object to deserialize into.
13459
13572
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
13460
- * @return {!proto.payment.DepositResponse}
13573
+ * @return {!proto.payment.CryptoDepositInstructions}
13461
13574
  */
13462
- proto.payment.DepositResponse.deserializeBinaryFromReader = function(msg, reader) {
13575
+ proto.payment.CryptoDepositInstructions.deserializeBinaryFromReader = function(msg, reader) {
13463
13576
  while (reader.nextField()) {
13464
13577
  if (reader.isEndGroup()) {
13465
13578
  break;
@@ -13467,56 +13580,36 @@ proto.payment.DepositResponse.deserializeBinaryFromReader = function(msg, reader
13467
13580
  var field = reader.getFieldNumber();
13468
13581
  switch (field) {
13469
13582
  case 1:
13470
- var value = /** @type {number} */ (reader.readInt32());
13471
- msg.setId(value);
13583
+ var value = /** @type {string} */ (reader.readString());
13584
+ msg.setAddress(value);
13472
13585
  break;
13473
13586
  case 2:
13474
- var value = /** @type {number} */ (reader.readInt32());
13475
- msg.setUserId(value);
13587
+ var value = /** @type {string} */ (reader.readString());
13588
+ msg.setMemo(value);
13476
13589
  break;
13477
13590
  case 3:
13478
13591
  var value = /** @type {string} */ (reader.readString());
13479
- msg.setStatus(value);
13592
+ msg.setMemoType(value);
13480
13593
  break;
13481
13594
  case 4:
13482
- var value = /** @type {number} */ (reader.readFloat());
13483
- msg.setAmountAttempt(value);
13595
+ var value = /** @type {string} */ (reader.readString());
13596
+ msg.setAsset(value);
13484
13597
  break;
13485
13598
  case 5:
13486
- var value = /** @type {number} */ (reader.readFloat());
13487
- msg.setAmountPaid(value);
13599
+ var value = /** @type {string} */ (reader.readString());
13600
+ msg.setNetwork(value);
13488
13601
  break;
13489
13602
  case 6:
13490
- var value = /** @type {number} */ (reader.readFloat());
13491
- msg.setFee(value);
13603
+ var value = /** @type {string} */ (reader.readString());
13604
+ msg.setQrPayload(value);
13492
13605
  break;
13493
13606
  case 7:
13494
13607
  var value = /** @type {string} */ (reader.readString());
13495
- msg.setCurrency(value);
13608
+ msg.setProviderPaymentId(value);
13496
13609
  break;
13497
13610
  case 8:
13498
- var value = /** @type {string} */ (reader.readString());
13499
- msg.setPaymentMethodTitle(value);
13500
- break;
13501
- case 9:
13502
- var value = /** @type {string} */ (reader.readString());
13503
- msg.setPaymentProviderImage(value);
13504
- break;
13505
- case 10:
13506
- var value = /** @type {string} */ (reader.readString());
13507
- msg.setCreated(value);
13508
- break;
13509
- case 11:
13510
- var value = /** @type {string} */ (reader.readString());
13511
- msg.setPaymentRedirectUrl(value);
13512
- break;
13513
- case 12:
13514
- var value = /** @type {string} */ (reader.readString());
13515
- msg.setCountry(value);
13516
- break;
13517
- case 13:
13518
- var value = /** @type {string} */ (reader.readString());
13519
- msg.setProcessingType(value);
13611
+ var value = /** @type {number} */ (reader.readFloat());
13612
+ msg.setMinDeposit(value);
13520
13613
  break;
13521
13614
  default:
13522
13615
  reader.skipField();
@@ -13531,9 +13624,9 @@ proto.payment.DepositResponse.deserializeBinaryFromReader = function(msg, reader
13531
13624
  * Serializes the message to binary data (in protobuf wire format).
13532
13625
  * @return {!Uint8Array}
13533
13626
  */
13534
- proto.payment.DepositResponse.prototype.serializeBinary = function() {
13627
+ proto.payment.CryptoDepositInstructions.prototype.serializeBinary = function() {
13535
13628
  var writer = new jspb.BinaryWriter();
13536
- proto.payment.DepositResponse.serializeBinaryToWriter(this, writer);
13629
+ proto.payment.CryptoDepositInstructions.serializeBinaryToWriter(this, writer);
13537
13630
  return writer.getResultBuffer();
13538
13631
  };
13539
13632
 
@@ -13541,22 +13634,22 @@ proto.payment.DepositResponse.prototype.serializeBinary = function() {
13541
13634
  /**
13542
13635
  * Serializes the given message to binary data (in protobuf wire
13543
13636
  * format), writing to the given BinaryWriter.
13544
- * @param {!proto.payment.DepositResponse} message
13637
+ * @param {!proto.payment.CryptoDepositInstructions} message
13545
13638
  * @param {!jspb.BinaryWriter} writer
13546
13639
  * @suppress {unusedLocalVariables} f is only used for nested messages
13547
13640
  */
13548
- proto.payment.DepositResponse.serializeBinaryToWriter = function(message, writer) {
13641
+ proto.payment.CryptoDepositInstructions.serializeBinaryToWriter = function(message, writer) {
13549
13642
  var f = undefined;
13550
- f = message.getId();
13551
- if (f !== 0) {
13552
- writer.writeInt32(
13643
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
13644
+ if (f != null) {
13645
+ writer.writeString(
13553
13646
  1,
13554
13647
  f
13555
13648
  );
13556
13649
  }
13557
- f = /** @type {number} */ (jspb.Message.getField(message, 2));
13650
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
13558
13651
  if (f != null) {
13559
- writer.writeInt32(
13652
+ writer.writeString(
13560
13653
  2,
13561
13654
  f
13562
13655
  );
@@ -13568,23 +13661,23 @@ proto.payment.DepositResponse.serializeBinaryToWriter = function(message, writer
13568
13661
  f
13569
13662
  );
13570
13663
  }
13571
- f = /** @type {number} */ (jspb.Message.getField(message, 4));
13664
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
13572
13665
  if (f != null) {
13573
- writer.writeFloat(
13666
+ writer.writeString(
13574
13667
  4,
13575
13668
  f
13576
13669
  );
13577
13670
  }
13578
- f = /** @type {number} */ (jspb.Message.getField(message, 5));
13671
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
13579
13672
  if (f != null) {
13580
- writer.writeFloat(
13673
+ writer.writeString(
13581
13674
  5,
13582
13675
  f
13583
13676
  );
13584
13677
  }
13585
- f = /** @type {number} */ (jspb.Message.getField(message, 6));
13678
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
13586
13679
  if (f != null) {
13587
- writer.writeFloat(
13680
+ writer.writeString(
13588
13681
  6,
13589
13682
  f
13590
13683
  );
@@ -13596,92 +13689,615 @@ proto.payment.DepositResponse.serializeBinaryToWriter = function(message, writer
13596
13689
  f
13597
13690
  );
13598
13691
  }
13599
- f = /** @type {string} */ (jspb.Message.getField(message, 8));
13692
+ f = /** @type {number} */ (jspb.Message.getField(message, 8));
13600
13693
  if (f != null) {
13601
- writer.writeString(
13694
+ writer.writeFloat(
13602
13695
  8,
13603
13696
  f
13604
13697
  );
13605
13698
  }
13606
- f = /** @type {string} */ (jspb.Message.getField(message, 9));
13607
- if (f != null) {
13608
- writer.writeString(
13609
- 9,
13610
- f
13611
- );
13612
- }
13613
- f = /** @type {string} */ (jspb.Message.getField(message, 10));
13614
- if (f != null) {
13615
- writer.writeString(
13616
- 10,
13617
- f
13618
- );
13619
- }
13620
- f = /** @type {string} */ (jspb.Message.getField(message, 11));
13621
- if (f != null) {
13622
- writer.writeString(
13623
- 11,
13624
- f
13625
- );
13626
- }
13627
- f = /** @type {string} */ (jspb.Message.getField(message, 12));
13628
- if (f != null) {
13629
- writer.writeString(
13630
- 12,
13631
- f
13632
- );
13633
- }
13634
- f = /** @type {string} */ (jspb.Message.getField(message, 13));
13635
- if (f != null) {
13636
- writer.writeString(
13637
- 13,
13638
- f
13639
- );
13640
- }
13641
13699
  };
13642
13700
 
13643
13701
 
13644
13702
  /**
13645
- * optional int32 id = 1;
13646
- * @return {number}
13703
+ * optional string address = 1;
13704
+ * @return {string}
13647
13705
  */
13648
- proto.payment.DepositResponse.prototype.getId = function() {
13649
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
13706
+ proto.payment.CryptoDepositInstructions.prototype.getAddress = function() {
13707
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
13650
13708
  };
13651
13709
 
13652
13710
 
13653
13711
  /**
13654
- * @param {number} value
13655
- * @return {!proto.payment.DepositResponse} returns this
13712
+ * @param {string} value
13713
+ * @return {!proto.payment.CryptoDepositInstructions} returns this
13656
13714
  */
13657
- proto.payment.DepositResponse.prototype.setId = function(value) {
13658
- return jspb.Message.setProto3IntField(this, 1, value);
13715
+ proto.payment.CryptoDepositInstructions.prototype.setAddress = function(value) {
13716
+ return jspb.Message.setField(this, 1, value);
13659
13717
  };
13660
13718
 
13661
13719
 
13662
13720
  /**
13663
- * optional int32 user_id = 2;
13664
- * @return {number}
13721
+ * Clears the field making it undefined.
13722
+ * @return {!proto.payment.CryptoDepositInstructions} returns this
13665
13723
  */
13666
- proto.payment.DepositResponse.prototype.getUserId = function() {
13667
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
13724
+ proto.payment.CryptoDepositInstructions.prototype.clearAddress = function() {
13725
+ return jspb.Message.setField(this, 1, undefined);
13668
13726
  };
13669
13727
 
13670
13728
 
13671
13729
  /**
13672
- * @param {number} value
13673
- * @return {!proto.payment.DepositResponse} returns this
13730
+ * Returns whether this field is set.
13731
+ * @return {boolean}
13674
13732
  */
13675
- proto.payment.DepositResponse.prototype.setUserId = function(value) {
13676
- return jspb.Message.setField(this, 2, value);
13733
+ proto.payment.CryptoDepositInstructions.prototype.hasAddress = function() {
13734
+ return jspb.Message.getField(this, 1) != null;
13677
13735
  };
13678
13736
 
13679
13737
 
13680
13738
  /**
13681
- * Clears the field making it undefined.
13682
- * @return {!proto.payment.DepositResponse} returns this
13739
+ * optional string memo = 2;
13740
+ * @return {string}
13683
13741
  */
13684
- proto.payment.DepositResponse.prototype.clearUserId = function() {
13742
+ proto.payment.CryptoDepositInstructions.prototype.getMemo = function() {
13743
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
13744
+ };
13745
+
13746
+
13747
+ /**
13748
+ * @param {string} value
13749
+ * @return {!proto.payment.CryptoDepositInstructions} returns this
13750
+ */
13751
+ proto.payment.CryptoDepositInstructions.prototype.setMemo = function(value) {
13752
+ return jspb.Message.setField(this, 2, value);
13753
+ };
13754
+
13755
+
13756
+ /**
13757
+ * Clears the field making it undefined.
13758
+ * @return {!proto.payment.CryptoDepositInstructions} returns this
13759
+ */
13760
+ proto.payment.CryptoDepositInstructions.prototype.clearMemo = function() {
13761
+ return jspb.Message.setField(this, 2, undefined);
13762
+ };
13763
+
13764
+
13765
+ /**
13766
+ * Returns whether this field is set.
13767
+ * @return {boolean}
13768
+ */
13769
+ proto.payment.CryptoDepositInstructions.prototype.hasMemo = function() {
13770
+ return jspb.Message.getField(this, 2) != null;
13771
+ };
13772
+
13773
+
13774
+ /**
13775
+ * optional string memo_type = 3;
13776
+ * @return {string}
13777
+ */
13778
+ proto.payment.CryptoDepositInstructions.prototype.getMemoType = function() {
13779
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
13780
+ };
13781
+
13782
+
13783
+ /**
13784
+ * @param {string} value
13785
+ * @return {!proto.payment.CryptoDepositInstructions} returns this
13786
+ */
13787
+ proto.payment.CryptoDepositInstructions.prototype.setMemoType = function(value) {
13788
+ return jspb.Message.setField(this, 3, value);
13789
+ };
13790
+
13791
+
13792
+ /**
13793
+ * Clears the field making it undefined.
13794
+ * @return {!proto.payment.CryptoDepositInstructions} returns this
13795
+ */
13796
+ proto.payment.CryptoDepositInstructions.prototype.clearMemoType = function() {
13797
+ return jspb.Message.setField(this, 3, undefined);
13798
+ };
13799
+
13800
+
13801
+ /**
13802
+ * Returns whether this field is set.
13803
+ * @return {boolean}
13804
+ */
13805
+ proto.payment.CryptoDepositInstructions.prototype.hasMemoType = function() {
13806
+ return jspb.Message.getField(this, 3) != null;
13807
+ };
13808
+
13809
+
13810
+ /**
13811
+ * optional string asset = 4;
13812
+ * @return {string}
13813
+ */
13814
+ proto.payment.CryptoDepositInstructions.prototype.getAsset = function() {
13815
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
13816
+ };
13817
+
13818
+
13819
+ /**
13820
+ * @param {string} value
13821
+ * @return {!proto.payment.CryptoDepositInstructions} returns this
13822
+ */
13823
+ proto.payment.CryptoDepositInstructions.prototype.setAsset = function(value) {
13824
+ return jspb.Message.setField(this, 4, value);
13825
+ };
13826
+
13827
+
13828
+ /**
13829
+ * Clears the field making it undefined.
13830
+ * @return {!proto.payment.CryptoDepositInstructions} returns this
13831
+ */
13832
+ proto.payment.CryptoDepositInstructions.prototype.clearAsset = function() {
13833
+ return jspb.Message.setField(this, 4, undefined);
13834
+ };
13835
+
13836
+
13837
+ /**
13838
+ * Returns whether this field is set.
13839
+ * @return {boolean}
13840
+ */
13841
+ proto.payment.CryptoDepositInstructions.prototype.hasAsset = function() {
13842
+ return jspb.Message.getField(this, 4) != null;
13843
+ };
13844
+
13845
+
13846
+ /**
13847
+ * optional string network = 5;
13848
+ * @return {string}
13849
+ */
13850
+ proto.payment.CryptoDepositInstructions.prototype.getNetwork = function() {
13851
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
13852
+ };
13853
+
13854
+
13855
+ /**
13856
+ * @param {string} value
13857
+ * @return {!proto.payment.CryptoDepositInstructions} returns this
13858
+ */
13859
+ proto.payment.CryptoDepositInstructions.prototype.setNetwork = function(value) {
13860
+ return jspb.Message.setField(this, 5, value);
13861
+ };
13862
+
13863
+
13864
+ /**
13865
+ * Clears the field making it undefined.
13866
+ * @return {!proto.payment.CryptoDepositInstructions} returns this
13867
+ */
13868
+ proto.payment.CryptoDepositInstructions.prototype.clearNetwork = function() {
13869
+ return jspb.Message.setField(this, 5, undefined);
13870
+ };
13871
+
13872
+
13873
+ /**
13874
+ * Returns whether this field is set.
13875
+ * @return {boolean}
13876
+ */
13877
+ proto.payment.CryptoDepositInstructions.prototype.hasNetwork = function() {
13878
+ return jspb.Message.getField(this, 5) != null;
13879
+ };
13880
+
13881
+
13882
+ /**
13883
+ * optional string qr_payload = 6;
13884
+ * @return {string}
13885
+ */
13886
+ proto.payment.CryptoDepositInstructions.prototype.getQrPayload = function() {
13887
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
13888
+ };
13889
+
13890
+
13891
+ /**
13892
+ * @param {string} value
13893
+ * @return {!proto.payment.CryptoDepositInstructions} returns this
13894
+ */
13895
+ proto.payment.CryptoDepositInstructions.prototype.setQrPayload = function(value) {
13896
+ return jspb.Message.setField(this, 6, value);
13897
+ };
13898
+
13899
+
13900
+ /**
13901
+ * Clears the field making it undefined.
13902
+ * @return {!proto.payment.CryptoDepositInstructions} returns this
13903
+ */
13904
+ proto.payment.CryptoDepositInstructions.prototype.clearQrPayload = function() {
13905
+ return jspb.Message.setField(this, 6, undefined);
13906
+ };
13907
+
13908
+
13909
+ /**
13910
+ * Returns whether this field is set.
13911
+ * @return {boolean}
13912
+ */
13913
+ proto.payment.CryptoDepositInstructions.prototype.hasQrPayload = function() {
13914
+ return jspb.Message.getField(this, 6) != null;
13915
+ };
13916
+
13917
+
13918
+ /**
13919
+ * optional string provider_payment_id = 7;
13920
+ * @return {string}
13921
+ */
13922
+ proto.payment.CryptoDepositInstructions.prototype.getProviderPaymentId = function() {
13923
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
13924
+ };
13925
+
13926
+
13927
+ /**
13928
+ * @param {string} value
13929
+ * @return {!proto.payment.CryptoDepositInstructions} returns this
13930
+ */
13931
+ proto.payment.CryptoDepositInstructions.prototype.setProviderPaymentId = function(value) {
13932
+ return jspb.Message.setField(this, 7, value);
13933
+ };
13934
+
13935
+
13936
+ /**
13937
+ * Clears the field making it undefined.
13938
+ * @return {!proto.payment.CryptoDepositInstructions} returns this
13939
+ */
13940
+ proto.payment.CryptoDepositInstructions.prototype.clearProviderPaymentId = function() {
13941
+ return jspb.Message.setField(this, 7, undefined);
13942
+ };
13943
+
13944
+
13945
+ /**
13946
+ * Returns whether this field is set.
13947
+ * @return {boolean}
13948
+ */
13949
+ proto.payment.CryptoDepositInstructions.prototype.hasProviderPaymentId = function() {
13950
+ return jspb.Message.getField(this, 7) != null;
13951
+ };
13952
+
13953
+
13954
+ /**
13955
+ * optional float min_deposit = 8;
13956
+ * @return {number}
13957
+ */
13958
+ proto.payment.CryptoDepositInstructions.prototype.getMinDeposit = function() {
13959
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
13960
+ };
13961
+
13962
+
13963
+ /**
13964
+ * @param {number} value
13965
+ * @return {!proto.payment.CryptoDepositInstructions} returns this
13966
+ */
13967
+ proto.payment.CryptoDepositInstructions.prototype.setMinDeposit = function(value) {
13968
+ return jspb.Message.setField(this, 8, value);
13969
+ };
13970
+
13971
+
13972
+ /**
13973
+ * Clears the field making it undefined.
13974
+ * @return {!proto.payment.CryptoDepositInstructions} returns this
13975
+ */
13976
+ proto.payment.CryptoDepositInstructions.prototype.clearMinDeposit = function() {
13977
+ return jspb.Message.setField(this, 8, undefined);
13978
+ };
13979
+
13980
+
13981
+ /**
13982
+ * Returns whether this field is set.
13983
+ * @return {boolean}
13984
+ */
13985
+ proto.payment.CryptoDepositInstructions.prototype.hasMinDeposit = function() {
13986
+ return jspb.Message.getField(this, 8) != null;
13987
+ };
13988
+
13989
+
13990
+
13991
+
13992
+
13993
+ if (jspb.Message.GENERATE_TO_OBJECT) {
13994
+ /**
13995
+ * Creates an object representation of this proto.
13996
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
13997
+ * Optional fields that are not set will be set to undefined.
13998
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
13999
+ * For the list of reserved names please see:
14000
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
14001
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
14002
+ * JSPB instance for transitional soy proto support:
14003
+ * http://goto/soy-param-migration
14004
+ * @return {!Object}
14005
+ */
14006
+ proto.payment.DepositResponse.prototype.toObject = function(opt_includeInstance) {
14007
+ return proto.payment.DepositResponse.toObject(opt_includeInstance, this);
14008
+ };
14009
+
14010
+
14011
+ /**
14012
+ * Static version of the {@see toObject} method.
14013
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
14014
+ * the JSPB instance for transitional soy proto support:
14015
+ * http://goto/soy-param-migration
14016
+ * @param {!proto.payment.DepositResponse} msg The msg instance to transform.
14017
+ * @return {!Object}
14018
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14019
+ */
14020
+ proto.payment.DepositResponse.toObject = function(includeInstance, msg) {
14021
+ var f, obj = {
14022
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
14023
+ userId: jspb.Message.getFieldWithDefault(msg, 2, 0),
14024
+ status: jspb.Message.getFieldWithDefault(msg, 3, ""),
14025
+ amountAttempt: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
14026
+ amountPaid: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
14027
+ fee: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
14028
+ currency: jspb.Message.getFieldWithDefault(msg, 7, ""),
14029
+ paymentMethodTitle: jspb.Message.getFieldWithDefault(msg, 8, ""),
14030
+ paymentProviderImage: jspb.Message.getFieldWithDefault(msg, 9, ""),
14031
+ created: jspb.Message.getFieldWithDefault(msg, 10, ""),
14032
+ paymentRedirectUrl: jspb.Message.getFieldWithDefault(msg, 11, ""),
14033
+ country: jspb.Message.getFieldWithDefault(msg, 12, ""),
14034
+ processingType: jspb.Message.getFieldWithDefault(msg, 13, ""),
14035
+ cryptoInstructions: (f = msg.getCryptoInstructions()) && proto.payment.CryptoDepositInstructions.toObject(includeInstance, f)
14036
+ };
14037
+
14038
+ if (includeInstance) {
14039
+ obj.$jspbMessageInstance = msg;
14040
+ }
14041
+ return obj;
14042
+ };
14043
+ }
14044
+
14045
+
14046
+ /**
14047
+ * Deserializes binary data (in protobuf wire format).
14048
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
14049
+ * @return {!proto.payment.DepositResponse}
14050
+ */
14051
+ proto.payment.DepositResponse.deserializeBinary = function(bytes) {
14052
+ var reader = new jspb.BinaryReader(bytes);
14053
+ var msg = new proto.payment.DepositResponse;
14054
+ return proto.payment.DepositResponse.deserializeBinaryFromReader(msg, reader);
14055
+ };
14056
+
14057
+
14058
+ /**
14059
+ * Deserializes binary data (in protobuf wire format) from the
14060
+ * given reader into the given message object.
14061
+ * @param {!proto.payment.DepositResponse} msg The message object to deserialize into.
14062
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
14063
+ * @return {!proto.payment.DepositResponse}
14064
+ */
14065
+ proto.payment.DepositResponse.deserializeBinaryFromReader = function(msg, reader) {
14066
+ while (reader.nextField()) {
14067
+ if (reader.isEndGroup()) {
14068
+ break;
14069
+ }
14070
+ var field = reader.getFieldNumber();
14071
+ switch (field) {
14072
+ case 1:
14073
+ var value = /** @type {number} */ (reader.readInt32());
14074
+ msg.setId(value);
14075
+ break;
14076
+ case 2:
14077
+ var value = /** @type {number} */ (reader.readInt32());
14078
+ msg.setUserId(value);
14079
+ break;
14080
+ case 3:
14081
+ var value = /** @type {string} */ (reader.readString());
14082
+ msg.setStatus(value);
14083
+ break;
14084
+ case 4:
14085
+ var value = /** @type {number} */ (reader.readFloat());
14086
+ msg.setAmountAttempt(value);
14087
+ break;
14088
+ case 5:
14089
+ var value = /** @type {number} */ (reader.readFloat());
14090
+ msg.setAmountPaid(value);
14091
+ break;
14092
+ case 6:
14093
+ var value = /** @type {number} */ (reader.readFloat());
14094
+ msg.setFee(value);
14095
+ break;
14096
+ case 7:
14097
+ var value = /** @type {string} */ (reader.readString());
14098
+ msg.setCurrency(value);
14099
+ break;
14100
+ case 8:
14101
+ var value = /** @type {string} */ (reader.readString());
14102
+ msg.setPaymentMethodTitle(value);
14103
+ break;
14104
+ case 9:
14105
+ var value = /** @type {string} */ (reader.readString());
14106
+ msg.setPaymentProviderImage(value);
14107
+ break;
14108
+ case 10:
14109
+ var value = /** @type {string} */ (reader.readString());
14110
+ msg.setCreated(value);
14111
+ break;
14112
+ case 11:
14113
+ var value = /** @type {string} */ (reader.readString());
14114
+ msg.setPaymentRedirectUrl(value);
14115
+ break;
14116
+ case 12:
14117
+ var value = /** @type {string} */ (reader.readString());
14118
+ msg.setCountry(value);
14119
+ break;
14120
+ case 13:
14121
+ var value = /** @type {string} */ (reader.readString());
14122
+ msg.setProcessingType(value);
14123
+ break;
14124
+ case 14:
14125
+ var value = new proto.payment.CryptoDepositInstructions;
14126
+ reader.readMessage(value,proto.payment.CryptoDepositInstructions.deserializeBinaryFromReader);
14127
+ msg.setCryptoInstructions(value);
14128
+ break;
14129
+ default:
14130
+ reader.skipField();
14131
+ break;
14132
+ }
14133
+ }
14134
+ return msg;
14135
+ };
14136
+
14137
+
14138
+ /**
14139
+ * Serializes the message to binary data (in protobuf wire format).
14140
+ * @return {!Uint8Array}
14141
+ */
14142
+ proto.payment.DepositResponse.prototype.serializeBinary = function() {
14143
+ var writer = new jspb.BinaryWriter();
14144
+ proto.payment.DepositResponse.serializeBinaryToWriter(this, writer);
14145
+ return writer.getResultBuffer();
14146
+ };
14147
+
14148
+
14149
+ /**
14150
+ * Serializes the given message to binary data (in protobuf wire
14151
+ * format), writing to the given BinaryWriter.
14152
+ * @param {!proto.payment.DepositResponse} message
14153
+ * @param {!jspb.BinaryWriter} writer
14154
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14155
+ */
14156
+ proto.payment.DepositResponse.serializeBinaryToWriter = function(message, writer) {
14157
+ var f = undefined;
14158
+ f = message.getId();
14159
+ if (f !== 0) {
14160
+ writer.writeInt32(
14161
+ 1,
14162
+ f
14163
+ );
14164
+ }
14165
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
14166
+ if (f != null) {
14167
+ writer.writeInt32(
14168
+ 2,
14169
+ f
14170
+ );
14171
+ }
14172
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
14173
+ if (f != null) {
14174
+ writer.writeString(
14175
+ 3,
14176
+ f
14177
+ );
14178
+ }
14179
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
14180
+ if (f != null) {
14181
+ writer.writeFloat(
14182
+ 4,
14183
+ f
14184
+ );
14185
+ }
14186
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
14187
+ if (f != null) {
14188
+ writer.writeFloat(
14189
+ 5,
14190
+ f
14191
+ );
14192
+ }
14193
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
14194
+ if (f != null) {
14195
+ writer.writeFloat(
14196
+ 6,
14197
+ f
14198
+ );
14199
+ }
14200
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
14201
+ if (f != null) {
14202
+ writer.writeString(
14203
+ 7,
14204
+ f
14205
+ );
14206
+ }
14207
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
14208
+ if (f != null) {
14209
+ writer.writeString(
14210
+ 8,
14211
+ f
14212
+ );
14213
+ }
14214
+ f = /** @type {string} */ (jspb.Message.getField(message, 9));
14215
+ if (f != null) {
14216
+ writer.writeString(
14217
+ 9,
14218
+ f
14219
+ );
14220
+ }
14221
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
14222
+ if (f != null) {
14223
+ writer.writeString(
14224
+ 10,
14225
+ f
14226
+ );
14227
+ }
14228
+ f = /** @type {string} */ (jspb.Message.getField(message, 11));
14229
+ if (f != null) {
14230
+ writer.writeString(
14231
+ 11,
14232
+ f
14233
+ );
14234
+ }
14235
+ f = /** @type {string} */ (jspb.Message.getField(message, 12));
14236
+ if (f != null) {
14237
+ writer.writeString(
14238
+ 12,
14239
+ f
14240
+ );
14241
+ }
14242
+ f = /** @type {string} */ (jspb.Message.getField(message, 13));
14243
+ if (f != null) {
14244
+ writer.writeString(
14245
+ 13,
14246
+ f
14247
+ );
14248
+ }
14249
+ f = message.getCryptoInstructions();
14250
+ if (f != null) {
14251
+ writer.writeMessage(
14252
+ 14,
14253
+ f,
14254
+ proto.payment.CryptoDepositInstructions.serializeBinaryToWriter
14255
+ );
14256
+ }
14257
+ };
14258
+
14259
+
14260
+ /**
14261
+ * optional int32 id = 1;
14262
+ * @return {number}
14263
+ */
14264
+ proto.payment.DepositResponse.prototype.getId = function() {
14265
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
14266
+ };
14267
+
14268
+
14269
+ /**
14270
+ * @param {number} value
14271
+ * @return {!proto.payment.DepositResponse} returns this
14272
+ */
14273
+ proto.payment.DepositResponse.prototype.setId = function(value) {
14274
+ return jspb.Message.setProto3IntField(this, 1, value);
14275
+ };
14276
+
14277
+
14278
+ /**
14279
+ * optional int32 user_id = 2;
14280
+ * @return {number}
14281
+ */
14282
+ proto.payment.DepositResponse.prototype.getUserId = function() {
14283
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
14284
+ };
14285
+
14286
+
14287
+ /**
14288
+ * @param {number} value
14289
+ * @return {!proto.payment.DepositResponse} returns this
14290
+ */
14291
+ proto.payment.DepositResponse.prototype.setUserId = function(value) {
14292
+ return jspb.Message.setField(this, 2, value);
14293
+ };
14294
+
14295
+
14296
+ /**
14297
+ * Clears the field making it undefined.
14298
+ * @return {!proto.payment.DepositResponse} returns this
14299
+ */
14300
+ proto.payment.DepositResponse.prototype.clearUserId = function() {
13685
14301
  return jspb.Message.setField(this, 2, undefined);
13686
14302
  };
13687
14303
 
@@ -14091,6 +14707,43 @@ proto.payment.DepositResponse.prototype.hasProcessingType = function() {
14091
14707
  };
14092
14708
 
14093
14709
 
14710
+ /**
14711
+ * optional CryptoDepositInstructions crypto_instructions = 14;
14712
+ * @return {?proto.payment.CryptoDepositInstructions}
14713
+ */
14714
+ proto.payment.DepositResponse.prototype.getCryptoInstructions = function() {
14715
+ return /** @type{?proto.payment.CryptoDepositInstructions} */ (
14716
+ jspb.Message.getWrapperField(this, proto.payment.CryptoDepositInstructions, 14));
14717
+ };
14718
+
14719
+
14720
+ /**
14721
+ * @param {?proto.payment.CryptoDepositInstructions|undefined} value
14722
+ * @return {!proto.payment.DepositResponse} returns this
14723
+ */
14724
+ proto.payment.DepositResponse.prototype.setCryptoInstructions = function(value) {
14725
+ return jspb.Message.setWrapperField(this, 14, value);
14726
+ };
14727
+
14728
+
14729
+ /**
14730
+ * Clears the message field making it undefined.
14731
+ * @return {!proto.payment.DepositResponse} returns this
14732
+ */
14733
+ proto.payment.DepositResponse.prototype.clearCryptoInstructions = function() {
14734
+ return this.setCryptoInstructions(undefined);
14735
+ };
14736
+
14737
+
14738
+ /**
14739
+ * Returns whether this field is set.
14740
+ * @return {boolean}
14741
+ */
14742
+ proto.payment.DepositResponse.prototype.hasCryptoInstructions = function() {
14743
+ return jspb.Message.getField(this, 14) != null;
14744
+ };
14745
+
14746
+
14094
14747
 
14095
14748
 
14096
14749