protobuf-platform 1.2.299 → 1.2.303

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/cms/cms.proto CHANGED
@@ -336,11 +336,17 @@ message BannerGroupItemsResponse {
336
336
  optional int32 total_pages = 2;
337
337
  optional int32 total_items = 3;
338
338
  }
339
+ message UserBannerGameImages {
340
+ optional string portrait = 1;
341
+ optional string landscape = 2;
342
+ optional string square = 3;
343
+ }
339
344
  message UserBannerGameItem {
340
345
  optional string title = 1;
341
346
  optional string image = 2;
342
347
  optional string game_slug = 3;
343
348
  optional string provider_slug = 4;
349
+ optional UserBannerGameImages images = 5;
344
350
  }
345
351
  message UserBannerItem {
346
352
  optional string title = 1;
package/cms/cms_pb.js CHANGED
@@ -165,6 +165,7 @@ goog.exportSymbol('proto.cms.PromosItemsResponse', null, global);
165
165
  goog.exportSymbol('proto.cms.SetPageSeoAttributesRequest', null, global);
166
166
  goog.exportSymbol('proto.cms.SignUpFormWidgetItem', null, global);
167
167
  goog.exportSymbol('proto.cms.TranslationItem', null, global);
168
+ goog.exportSymbol('proto.cms.UserBannerGameImages', null, global);
168
169
  goog.exportSymbol('proto.cms.UserBannerGameItem', null, global);
169
170
  goog.exportSymbol('proto.cms.UserBannerGroupResponse', null, global);
170
171
  goog.exportSymbol('proto.cms.UserBannerItem', null, global);
@@ -1050,6 +1051,27 @@ if (goog.DEBUG && !COMPILED) {
1050
1051
  */
1051
1052
  proto.cms.BannerGroupItemsResponse.displayName = 'proto.cms.BannerGroupItemsResponse';
1052
1053
  }
1054
+ /**
1055
+ * Generated by JsPbCodeGenerator.
1056
+ * @param {Array=} opt_data Optional initial data array, typically from a
1057
+ * server response, or constructed directly in Javascript. The array is used
1058
+ * in place and becomes part of the constructed object. It is not cloned.
1059
+ * If no data is provided, the constructed object will be empty, but still
1060
+ * valid.
1061
+ * @extends {jspb.Message}
1062
+ * @constructor
1063
+ */
1064
+ proto.cms.UserBannerGameImages = function(opt_data) {
1065
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1066
+ };
1067
+ goog.inherits(proto.cms.UserBannerGameImages, jspb.Message);
1068
+ if (goog.DEBUG && !COMPILED) {
1069
+ /**
1070
+ * @public
1071
+ * @override
1072
+ */
1073
+ proto.cms.UserBannerGameImages.displayName = 'proto.cms.UserBannerGameImages';
1074
+ }
1053
1075
  /**
1054
1076
  * Generated by JsPbCodeGenerator.
1055
1077
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -13489,6 +13511,250 @@ proto.cms.BannerGroupItemsResponse.prototype.hasTotalItems = function() {
13489
13511
 
13490
13512
 
13491
13513
 
13514
+ if (jspb.Message.GENERATE_TO_OBJECT) {
13515
+ /**
13516
+ * Creates an object representation of this proto.
13517
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
13518
+ * Optional fields that are not set will be set to undefined.
13519
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
13520
+ * For the list of reserved names please see:
13521
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
13522
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
13523
+ * JSPB instance for transitional soy proto support:
13524
+ * http://goto/soy-param-migration
13525
+ * @return {!Object}
13526
+ */
13527
+ proto.cms.UserBannerGameImages.prototype.toObject = function(opt_includeInstance) {
13528
+ return proto.cms.UserBannerGameImages.toObject(opt_includeInstance, this);
13529
+ };
13530
+
13531
+
13532
+ /**
13533
+ * Static version of the {@see toObject} method.
13534
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
13535
+ * the JSPB instance for transitional soy proto support:
13536
+ * http://goto/soy-param-migration
13537
+ * @param {!proto.cms.UserBannerGameImages} msg The msg instance to transform.
13538
+ * @return {!Object}
13539
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13540
+ */
13541
+ proto.cms.UserBannerGameImages.toObject = function(includeInstance, msg) {
13542
+ var f, obj = {
13543
+ portrait: jspb.Message.getFieldWithDefault(msg, 1, ""),
13544
+ landscape: jspb.Message.getFieldWithDefault(msg, 2, ""),
13545
+ square: jspb.Message.getFieldWithDefault(msg, 3, "")
13546
+ };
13547
+
13548
+ if (includeInstance) {
13549
+ obj.$jspbMessageInstance = msg;
13550
+ }
13551
+ return obj;
13552
+ };
13553
+ }
13554
+
13555
+
13556
+ /**
13557
+ * Deserializes binary data (in protobuf wire format).
13558
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
13559
+ * @return {!proto.cms.UserBannerGameImages}
13560
+ */
13561
+ proto.cms.UserBannerGameImages.deserializeBinary = function(bytes) {
13562
+ var reader = new jspb.BinaryReader(bytes);
13563
+ var msg = new proto.cms.UserBannerGameImages;
13564
+ return proto.cms.UserBannerGameImages.deserializeBinaryFromReader(msg, reader);
13565
+ };
13566
+
13567
+
13568
+ /**
13569
+ * Deserializes binary data (in protobuf wire format) from the
13570
+ * given reader into the given message object.
13571
+ * @param {!proto.cms.UserBannerGameImages} msg The message object to deserialize into.
13572
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
13573
+ * @return {!proto.cms.UserBannerGameImages}
13574
+ */
13575
+ proto.cms.UserBannerGameImages.deserializeBinaryFromReader = function(msg, reader) {
13576
+ while (reader.nextField()) {
13577
+ if (reader.isEndGroup()) {
13578
+ break;
13579
+ }
13580
+ var field = reader.getFieldNumber();
13581
+ switch (field) {
13582
+ case 1:
13583
+ var value = /** @type {string} */ (reader.readString());
13584
+ msg.setPortrait(value);
13585
+ break;
13586
+ case 2:
13587
+ var value = /** @type {string} */ (reader.readString());
13588
+ msg.setLandscape(value);
13589
+ break;
13590
+ case 3:
13591
+ var value = /** @type {string} */ (reader.readString());
13592
+ msg.setSquare(value);
13593
+ break;
13594
+ default:
13595
+ reader.skipField();
13596
+ break;
13597
+ }
13598
+ }
13599
+ return msg;
13600
+ };
13601
+
13602
+
13603
+ /**
13604
+ * Serializes the message to binary data (in protobuf wire format).
13605
+ * @return {!Uint8Array}
13606
+ */
13607
+ proto.cms.UserBannerGameImages.prototype.serializeBinary = function() {
13608
+ var writer = new jspb.BinaryWriter();
13609
+ proto.cms.UserBannerGameImages.serializeBinaryToWriter(this, writer);
13610
+ return writer.getResultBuffer();
13611
+ };
13612
+
13613
+
13614
+ /**
13615
+ * Serializes the given message to binary data (in protobuf wire
13616
+ * format), writing to the given BinaryWriter.
13617
+ * @param {!proto.cms.UserBannerGameImages} message
13618
+ * @param {!jspb.BinaryWriter} writer
13619
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13620
+ */
13621
+ proto.cms.UserBannerGameImages.serializeBinaryToWriter = function(message, writer) {
13622
+ var f = undefined;
13623
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
13624
+ if (f != null) {
13625
+ writer.writeString(
13626
+ 1,
13627
+ f
13628
+ );
13629
+ }
13630
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
13631
+ if (f != null) {
13632
+ writer.writeString(
13633
+ 2,
13634
+ f
13635
+ );
13636
+ }
13637
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
13638
+ if (f != null) {
13639
+ writer.writeString(
13640
+ 3,
13641
+ f
13642
+ );
13643
+ }
13644
+ };
13645
+
13646
+
13647
+ /**
13648
+ * optional string portrait = 1;
13649
+ * @return {string}
13650
+ */
13651
+ proto.cms.UserBannerGameImages.prototype.getPortrait = function() {
13652
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
13653
+ };
13654
+
13655
+
13656
+ /**
13657
+ * @param {string} value
13658
+ * @return {!proto.cms.UserBannerGameImages} returns this
13659
+ */
13660
+ proto.cms.UserBannerGameImages.prototype.setPortrait = function(value) {
13661
+ return jspb.Message.setField(this, 1, value);
13662
+ };
13663
+
13664
+
13665
+ /**
13666
+ * Clears the field making it undefined.
13667
+ * @return {!proto.cms.UserBannerGameImages} returns this
13668
+ */
13669
+ proto.cms.UserBannerGameImages.prototype.clearPortrait = function() {
13670
+ return jspb.Message.setField(this, 1, undefined);
13671
+ };
13672
+
13673
+
13674
+ /**
13675
+ * Returns whether this field is set.
13676
+ * @return {boolean}
13677
+ */
13678
+ proto.cms.UserBannerGameImages.prototype.hasPortrait = function() {
13679
+ return jspb.Message.getField(this, 1) != null;
13680
+ };
13681
+
13682
+
13683
+ /**
13684
+ * optional string landscape = 2;
13685
+ * @return {string}
13686
+ */
13687
+ proto.cms.UserBannerGameImages.prototype.getLandscape = function() {
13688
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
13689
+ };
13690
+
13691
+
13692
+ /**
13693
+ * @param {string} value
13694
+ * @return {!proto.cms.UserBannerGameImages} returns this
13695
+ */
13696
+ proto.cms.UserBannerGameImages.prototype.setLandscape = function(value) {
13697
+ return jspb.Message.setField(this, 2, value);
13698
+ };
13699
+
13700
+
13701
+ /**
13702
+ * Clears the field making it undefined.
13703
+ * @return {!proto.cms.UserBannerGameImages} returns this
13704
+ */
13705
+ proto.cms.UserBannerGameImages.prototype.clearLandscape = function() {
13706
+ return jspb.Message.setField(this, 2, undefined);
13707
+ };
13708
+
13709
+
13710
+ /**
13711
+ * Returns whether this field is set.
13712
+ * @return {boolean}
13713
+ */
13714
+ proto.cms.UserBannerGameImages.prototype.hasLandscape = function() {
13715
+ return jspb.Message.getField(this, 2) != null;
13716
+ };
13717
+
13718
+
13719
+ /**
13720
+ * optional string square = 3;
13721
+ * @return {string}
13722
+ */
13723
+ proto.cms.UserBannerGameImages.prototype.getSquare = function() {
13724
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
13725
+ };
13726
+
13727
+
13728
+ /**
13729
+ * @param {string} value
13730
+ * @return {!proto.cms.UserBannerGameImages} returns this
13731
+ */
13732
+ proto.cms.UserBannerGameImages.prototype.setSquare = function(value) {
13733
+ return jspb.Message.setField(this, 3, value);
13734
+ };
13735
+
13736
+
13737
+ /**
13738
+ * Clears the field making it undefined.
13739
+ * @return {!proto.cms.UserBannerGameImages} returns this
13740
+ */
13741
+ proto.cms.UserBannerGameImages.prototype.clearSquare = function() {
13742
+ return jspb.Message.setField(this, 3, undefined);
13743
+ };
13744
+
13745
+
13746
+ /**
13747
+ * Returns whether this field is set.
13748
+ * @return {boolean}
13749
+ */
13750
+ proto.cms.UserBannerGameImages.prototype.hasSquare = function() {
13751
+ return jspb.Message.getField(this, 3) != null;
13752
+ };
13753
+
13754
+
13755
+
13756
+
13757
+
13492
13758
  if (jspb.Message.GENERATE_TO_OBJECT) {
13493
13759
  /**
13494
13760
  * Creates an object representation of this proto.
@@ -13521,7 +13787,8 @@ proto.cms.UserBannerGameItem.toObject = function(includeInstance, msg) {
13521
13787
  title: jspb.Message.getFieldWithDefault(msg, 1, ""),
13522
13788
  image: jspb.Message.getFieldWithDefault(msg, 2, ""),
13523
13789
  gameSlug: jspb.Message.getFieldWithDefault(msg, 3, ""),
13524
- providerSlug: jspb.Message.getFieldWithDefault(msg, 4, "")
13790
+ providerSlug: jspb.Message.getFieldWithDefault(msg, 4, ""),
13791
+ images: (f = msg.getImages()) && proto.cms.UserBannerGameImages.toObject(includeInstance, f)
13525
13792
  };
13526
13793
 
13527
13794
  if (includeInstance) {
@@ -13574,6 +13841,11 @@ proto.cms.UserBannerGameItem.deserializeBinaryFromReader = function(msg, reader)
13574
13841
  var value = /** @type {string} */ (reader.readString());
13575
13842
  msg.setProviderSlug(value);
13576
13843
  break;
13844
+ case 5:
13845
+ var value = new proto.cms.UserBannerGameImages;
13846
+ reader.readMessage(value,proto.cms.UserBannerGameImages.deserializeBinaryFromReader);
13847
+ msg.setImages(value);
13848
+ break;
13577
13849
  default:
13578
13850
  reader.skipField();
13579
13851
  break;
@@ -13631,6 +13903,14 @@ proto.cms.UserBannerGameItem.serializeBinaryToWriter = function(message, writer)
13631
13903
  f
13632
13904
  );
13633
13905
  }
13906
+ f = message.getImages();
13907
+ if (f != null) {
13908
+ writer.writeMessage(
13909
+ 5,
13910
+ f,
13911
+ proto.cms.UserBannerGameImages.serializeBinaryToWriter
13912
+ );
13913
+ }
13634
13914
  };
13635
13915
 
13636
13916
 
@@ -13778,6 +14058,43 @@ proto.cms.UserBannerGameItem.prototype.hasProviderSlug = function() {
13778
14058
  };
13779
14059
 
13780
14060
 
14061
+ /**
14062
+ * optional UserBannerGameImages images = 5;
14063
+ * @return {?proto.cms.UserBannerGameImages}
14064
+ */
14065
+ proto.cms.UserBannerGameItem.prototype.getImages = function() {
14066
+ return /** @type{?proto.cms.UserBannerGameImages} */ (
14067
+ jspb.Message.getWrapperField(this, proto.cms.UserBannerGameImages, 5));
14068
+ };
14069
+
14070
+
14071
+ /**
14072
+ * @param {?proto.cms.UserBannerGameImages|undefined} value
14073
+ * @return {!proto.cms.UserBannerGameItem} returns this
14074
+ */
14075
+ proto.cms.UserBannerGameItem.prototype.setImages = function(value) {
14076
+ return jspb.Message.setWrapperField(this, 5, value);
14077
+ };
14078
+
14079
+
14080
+ /**
14081
+ * Clears the message field making it undefined.
14082
+ * @return {!proto.cms.UserBannerGameItem} returns this
14083
+ */
14084
+ proto.cms.UserBannerGameItem.prototype.clearImages = function() {
14085
+ return this.setImages(undefined);
14086
+ };
14087
+
14088
+
14089
+ /**
14090
+ * Returns whether this field is set.
14091
+ * @return {boolean}
14092
+ */
14093
+ proto.cms.UserBannerGameItem.prototype.hasImages = function() {
14094
+ return jspb.Message.getField(this, 5) != null;
14095
+ };
14096
+
14097
+
13781
14098
 
13782
14099
  /**
13783
14100
  * List of repeated fields within this message type.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.299",
3
+ "version": "1.2.303",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -33,11 +33,17 @@ service Payment {
33
33
  rpc readListDeposits(PaginationRequest) returns (DepositItemsResponse);
34
34
  rpc processingDepositWebHook(DepositWebHookRequest) returns (ProcessedDepositResponse);
35
35
  rpc getRedirectPaymentForm(DepositRedirectFormRequest) returns (DepositRedirectFormResponse);
36
+ //Withdrawal
37
+ rpc attemptWithdrawal(AttemptWithdrawalRequest) returns (WithdrawalResponse);
38
+ rpc changeWithdrawalStatus(GetWithdrawalRequest) returns (WithdrawalResponse);
39
+ rpc readListWithdrawals(PaginationRequest) returns (WithdrawalItemsResponse);
40
+ rpc processingWithdrawalWebHook(WithdrawalWebHookRequest) returns (ProcessedWithdrawalResponse);
36
41
  //Deposit Statuses
37
42
  rpc readListDepositStatuses(PaginationRequest) returns (DepositStatusItemsResponse);
38
43
  //User
39
44
  rpc userPaymentsInfo(GetUserPaymentsInfoRequest) returns (UserPaymentsInfoResponse);
40
45
  rpc userDepositHistory(GetUserPaymentsInfoRequest) returns (UserDepositItemsResponse);
46
+ rpc userWithdrawalHistory(GetUserPaymentsInfoRequest) returns (UserWithdrawalItemsResponse);
41
47
  rpc getPaymentMethodsForUser(GetUserPaymentsInfoRequest) returns (UserPaymentMethodsResponse);
42
48
  //Segmentation
43
49
  rpc getSegmentedUsers(SegmentedUserRequest) returns (SegmentedUserResponse);
@@ -79,6 +85,7 @@ message PaymentSearchRequest {
79
85
  repeated string operation_type = 15;
80
86
  repeated string operation_reason_code = 16;
81
87
  repeated string operation_status_code = 17;
88
+ repeated string withdrawal_status_code = 18;
82
89
  }
83
90
  message ItemsBunchRequest {
84
91
  repeated int32 ids = 1;
@@ -343,6 +350,74 @@ message DepositRedirectFormRequest {
343
350
  message DepositRedirectFormResponse {
344
351
  string content = 1;
345
352
  }
353
+ //Withdrawal
354
+ message AttemptWithdrawalRequest {
355
+ int32 payment_method_id = 1;
356
+ int32 user_id = 2;
357
+ float amount = 3;
358
+ optional string user_currency = 4;
359
+ optional string user_country = 5;
360
+ optional string origin_country = 6;
361
+ optional string user_ip = 7;
362
+ optional string user_locale = 8;
363
+ optional string user_first_name = 9;
364
+ optional string user_last_name = 10;
365
+ optional string user_email = 11;
366
+ optional string user_public_id = 12;
367
+ optional string destination = 13;
368
+ optional string destination_type = 14;
369
+ optional string destination_details = 15;
370
+ optional string token_id = 16;
371
+ }
372
+ message GetWithdrawalRequest {
373
+ int32 id = 1;
374
+ optional string status_code = 2;
375
+ optional int32 maker_id = 3;
376
+ optional string reason = 4;
377
+ }
378
+ message WithdrawalResponse {
379
+ int32 id = 1;
380
+ optional int32 user_id = 2;
381
+ optional string status = 3;
382
+ optional float amount = 4;
383
+ optional float fee = 5;
384
+ optional string currency = 6;
385
+ optional string payment_method_title = 7;
386
+ optional string payment_provider_image = 8;
387
+ optional string created = 9;
388
+ optional string destination = 10;
389
+ optional string destination_type = 11;
390
+ optional string external_ref = 12;
391
+ optional string country = 13;
392
+ }
393
+ message WithdrawalItem {
394
+ int32 id = 1;
395
+ int32 user_id = 2;
396
+ string status = 3;
397
+ float amount = 4;
398
+ float fee = 5;
399
+ string currency = 6;
400
+ optional string payment_method_title = 7;
401
+ optional string payment_provider_image = 8;
402
+ optional string created = 9;
403
+ optional string destination = 10;
404
+ optional string destination_type = 11;
405
+ optional string external_ref = 12;
406
+ optional string country = 13;
407
+ }
408
+ message WithdrawalItemsResponse {
409
+ repeated WithdrawalItem items = 1;
410
+ optional int32 total_pages = 2;
411
+ optional int32 total_items = 3;
412
+ }
413
+ message WithdrawalWebHookRequest {
414
+ string method = 1;
415
+ string data = 2;
416
+ optional string headers = 3;
417
+ }
418
+ message ProcessedWithdrawalResponse {
419
+ string status = 1;
420
+ }
346
421
  //Deposit Status
347
422
  message DepositStatus {
348
423
  int32 id = 1;
@@ -400,6 +475,26 @@ message UserDepositItemsResponse {
400
475
  optional int32 total_pages = 2;
401
476
  optional int32 total_items = 3;
402
477
  }
478
+ message UserWithdrawalItem {
479
+ int32 withdrawal_id = 1;
480
+ float amount = 2;
481
+ float fee = 3;
482
+ string currency = 4;
483
+ optional string payment_method_title = 5;
484
+ optional string payment_provider_image = 6;
485
+ optional string payment_provider_image_cdn = 7;
486
+ optional string payment_provider_title = 8;
487
+ optional string created = 9;
488
+ optional string status = 10;
489
+ optional string destination = 11;
490
+ optional string destination_type = 12;
491
+ optional string external_ref = 13;
492
+ }
493
+ message UserWithdrawalItemsResponse {
494
+ repeated UserWithdrawalItem items = 1;
495
+ optional int32 total_pages = 2;
496
+ optional int32 total_items = 3;
497
+ }
403
498
  //Users
404
499
  message UserPaymentMethodItem {
405
500
  int32 method_id = 1;
@@ -15,6 +15,17 @@ function deserialize_payment_AttemptDepositRequest(buffer_arg) {
15
15
  return payment_pb.AttemptDepositRequest.deserializeBinary(new Uint8Array(buffer_arg));
16
16
  }
17
17
 
18
+ function serialize_payment_AttemptWithdrawalRequest(arg) {
19
+ if (!(arg instanceof payment_pb.AttemptWithdrawalRequest)) {
20
+ throw new Error('Expected argument of type payment.AttemptWithdrawalRequest');
21
+ }
22
+ return Buffer.from(arg.serializeBinary());
23
+ }
24
+
25
+ function deserialize_payment_AttemptWithdrawalRequest(buffer_arg) {
26
+ return payment_pb.AttemptWithdrawalRequest.deserializeBinary(new Uint8Array(buffer_arg));
27
+ }
28
+
18
29
  function serialize_payment_CurrencyItemsResponse(arg) {
19
30
  if (!(arg instanceof payment_pb.CurrencyItemsResponse)) {
20
31
  throw new Error('Expected argument of type payment.CurrencyItemsResponse');
@@ -224,6 +235,17 @@ function deserialize_payment_GetUserPaymentsInfoRequest(buffer_arg) {
224
235
  return payment_pb.GetUserPaymentsInfoRequest.deserializeBinary(new Uint8Array(buffer_arg));
225
236
  }
226
237
 
238
+ function serialize_payment_GetWithdrawalRequest(arg) {
239
+ if (!(arg instanceof payment_pb.GetWithdrawalRequest)) {
240
+ throw new Error('Expected argument of type payment.GetWithdrawalRequest');
241
+ }
242
+ return Buffer.from(arg.serializeBinary());
243
+ }
244
+
245
+ function deserialize_payment_GetWithdrawalRequest(buffer_arg) {
246
+ return payment_pb.GetWithdrawalRequest.deserializeBinary(new Uint8Array(buffer_arg));
247
+ }
248
+
227
249
  function serialize_payment_ItemsBunchRequest(arg) {
228
250
  if (!(arg instanceof payment_pb.ItemsBunchRequest)) {
229
251
  throw new Error('Expected argument of type payment.ItemsBunchRequest');
@@ -378,6 +400,17 @@ function deserialize_payment_ProcessedDepositResponse(buffer_arg) {
378
400
  return payment_pb.ProcessedDepositResponse.deserializeBinary(new Uint8Array(buffer_arg));
379
401
  }
380
402
 
403
+ function serialize_payment_ProcessedWithdrawalResponse(arg) {
404
+ if (!(arg instanceof payment_pb.ProcessedWithdrawalResponse)) {
405
+ throw new Error('Expected argument of type payment.ProcessedWithdrawalResponse');
406
+ }
407
+ return Buffer.from(arg.serializeBinary());
408
+ }
409
+
410
+ function deserialize_payment_ProcessedWithdrawalResponse(buffer_arg) {
411
+ return payment_pb.ProcessedWithdrawalResponse.deserializeBinary(new Uint8Array(buffer_arg));
412
+ }
413
+
381
414
  function serialize_payment_ProviderItemsResponse(arg) {
382
415
  if (!(arg instanceof payment_pb.ProviderItemsResponse)) {
383
416
  throw new Error('Expected argument of type payment.ProviderItemsResponse');
@@ -499,6 +532,50 @@ function deserialize_payment_UserPaymentsInfoResponse(buffer_arg) {
499
532
  return payment_pb.UserPaymentsInfoResponse.deserializeBinary(new Uint8Array(buffer_arg));
500
533
  }
501
534
 
535
+ function serialize_payment_UserWithdrawalItemsResponse(arg) {
536
+ if (!(arg instanceof payment_pb.UserWithdrawalItemsResponse)) {
537
+ throw new Error('Expected argument of type payment.UserWithdrawalItemsResponse');
538
+ }
539
+ return Buffer.from(arg.serializeBinary());
540
+ }
541
+
542
+ function deserialize_payment_UserWithdrawalItemsResponse(buffer_arg) {
543
+ return payment_pb.UserWithdrawalItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
544
+ }
545
+
546
+ function serialize_payment_WithdrawalItemsResponse(arg) {
547
+ if (!(arg instanceof payment_pb.WithdrawalItemsResponse)) {
548
+ throw new Error('Expected argument of type payment.WithdrawalItemsResponse');
549
+ }
550
+ return Buffer.from(arg.serializeBinary());
551
+ }
552
+
553
+ function deserialize_payment_WithdrawalItemsResponse(buffer_arg) {
554
+ return payment_pb.WithdrawalItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
555
+ }
556
+
557
+ function serialize_payment_WithdrawalResponse(arg) {
558
+ if (!(arg instanceof payment_pb.WithdrawalResponse)) {
559
+ throw new Error('Expected argument of type payment.WithdrawalResponse');
560
+ }
561
+ return Buffer.from(arg.serializeBinary());
562
+ }
563
+
564
+ function deserialize_payment_WithdrawalResponse(buffer_arg) {
565
+ return payment_pb.WithdrawalResponse.deserializeBinary(new Uint8Array(buffer_arg));
566
+ }
567
+
568
+ function serialize_payment_WithdrawalWebHookRequest(arg) {
569
+ if (!(arg instanceof payment_pb.WithdrawalWebHookRequest)) {
570
+ throw new Error('Expected argument of type payment.WithdrawalWebHookRequest');
571
+ }
572
+ return Buffer.from(arg.serializeBinary());
573
+ }
574
+
575
+ function deserialize_payment_WithdrawalWebHookRequest(buffer_arg) {
576
+ return payment_pb.WithdrawalWebHookRequest.deserializeBinary(new Uint8Array(buffer_arg));
577
+ }
578
+
502
579
 
503
580
  var PaymentService = exports.PaymentService = {
504
581
  checkConnection: {
@@ -791,6 +868,51 @@ attemptDeposit: {
791
868
  responseSerialize: serialize_payment_DepositRedirectFormResponse,
792
869
  responseDeserialize: deserialize_payment_DepositRedirectFormResponse,
793
870
  },
871
+ // Withdrawal
872
+ attemptWithdrawal: {
873
+ path: '/payment.Payment/attemptWithdrawal',
874
+ requestStream: false,
875
+ responseStream: false,
876
+ requestType: payment_pb.AttemptWithdrawalRequest,
877
+ responseType: payment_pb.WithdrawalResponse,
878
+ requestSerialize: serialize_payment_AttemptWithdrawalRequest,
879
+ requestDeserialize: deserialize_payment_AttemptWithdrawalRequest,
880
+ responseSerialize: serialize_payment_WithdrawalResponse,
881
+ responseDeserialize: deserialize_payment_WithdrawalResponse,
882
+ },
883
+ changeWithdrawalStatus: {
884
+ path: '/payment.Payment/changeWithdrawalStatus',
885
+ requestStream: false,
886
+ responseStream: false,
887
+ requestType: payment_pb.GetWithdrawalRequest,
888
+ responseType: payment_pb.WithdrawalResponse,
889
+ requestSerialize: serialize_payment_GetWithdrawalRequest,
890
+ requestDeserialize: deserialize_payment_GetWithdrawalRequest,
891
+ responseSerialize: serialize_payment_WithdrawalResponse,
892
+ responseDeserialize: deserialize_payment_WithdrawalResponse,
893
+ },
894
+ readListWithdrawals: {
895
+ path: '/payment.Payment/readListWithdrawals',
896
+ requestStream: false,
897
+ responseStream: false,
898
+ requestType: payment_pb.PaginationRequest,
899
+ responseType: payment_pb.WithdrawalItemsResponse,
900
+ requestSerialize: serialize_payment_PaginationRequest,
901
+ requestDeserialize: deserialize_payment_PaginationRequest,
902
+ responseSerialize: serialize_payment_WithdrawalItemsResponse,
903
+ responseDeserialize: deserialize_payment_WithdrawalItemsResponse,
904
+ },
905
+ processingWithdrawalWebHook: {
906
+ path: '/payment.Payment/processingWithdrawalWebHook',
907
+ requestStream: false,
908
+ responseStream: false,
909
+ requestType: payment_pb.WithdrawalWebHookRequest,
910
+ responseType: payment_pb.ProcessedWithdrawalResponse,
911
+ requestSerialize: serialize_payment_WithdrawalWebHookRequest,
912
+ requestDeserialize: deserialize_payment_WithdrawalWebHookRequest,
913
+ responseSerialize: serialize_payment_ProcessedWithdrawalResponse,
914
+ responseDeserialize: deserialize_payment_ProcessedWithdrawalResponse,
915
+ },
794
916
  // Deposit Statuses
795
917
  readListDepositStatuses: {
796
918
  path: '/payment.Payment/readListDepositStatuses',
@@ -826,6 +948,17 @@ userPaymentsInfo: {
826
948
  responseSerialize: serialize_payment_UserDepositItemsResponse,
827
949
  responseDeserialize: deserialize_payment_UserDepositItemsResponse,
828
950
  },
951
+ userWithdrawalHistory: {
952
+ path: '/payment.Payment/userWithdrawalHistory',
953
+ requestStream: false,
954
+ responseStream: false,
955
+ requestType: payment_pb.GetUserPaymentsInfoRequest,
956
+ responseType: payment_pb.UserWithdrawalItemsResponse,
957
+ requestSerialize: serialize_payment_GetUserPaymentsInfoRequest,
958
+ requestDeserialize: deserialize_payment_GetUserPaymentsInfoRequest,
959
+ responseSerialize: serialize_payment_UserWithdrawalItemsResponse,
960
+ responseDeserialize: deserialize_payment_UserWithdrawalItemsResponse,
961
+ },
829
962
  getPaymentMethodsForUser: {
830
963
  path: '/payment.Payment/getPaymentMethodsForUser',
831
964
  requestStream: false,