protobuf-platform 1.2.661 → 1.2.662

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.661",
3
+ "version": "1.2.662",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -83,6 +83,9 @@ service Payment {
83
83
  rpc readListConfiscations(PaginationRequest) returns (ConfiscationItemsResponse);
84
84
  rpc createAdjustment(AdjustmentRequest) returns (FinancialOperationResponse);
85
85
  rpc readListAdjustments(PaginationRequest) returns (AdjustmentItemsResponse);
86
+ // Internal Bonus lifecycle monetary materialization.
87
+ rpc issueBonusBalanceReward(BonusBalanceRewardIssueRequest) returns (BonusBalanceRewardOperationResponse);
88
+ rpc reverseBonusBalanceReward(BonusBalanceRewardReversalRequest) returns (BonusBalanceRewardOperationResponse);
86
89
  rpc prepareGameplayPrecisionCommand(PrepareGameplayPrecisionCommandRequest)
87
90
  returns (PrepareGameplayPrecisionCommandResponse);
88
91
  }
@@ -1237,6 +1240,39 @@ message FinancialOperationResponse {
1237
1240
  optional string completed_at = 18;
1238
1241
  }
1239
1242
 
1243
+ message BonusBalanceRewardIssueRequest {
1244
+ int32 user_id = 1;
1245
+ int32 user_bonus_id = 2;
1246
+ int32 bonus_template_id = 3;
1247
+ string currency = 4;
1248
+ // Exact positive major-unit decimal configured on the Bonus template.
1249
+ string amount = 5;
1250
+ string grant_source = 6;
1251
+ string grant_id = 7;
1252
+ }
1253
+ message BonusBalanceRewardReversalRequest {
1254
+ int32 user_id = 1;
1255
+ int32 user_bonus_id = 2;
1256
+ int32 bonus_template_id = 3;
1257
+ string currency = 4;
1258
+ // Must match the original issued amount.
1259
+ string amount = 5;
1260
+ string grant_source = 6;
1261
+ string grant_id = 7;
1262
+ string reason = 8;
1263
+ }
1264
+ message BonusBalanceRewardOperationResponse {
1265
+ string operation_id = 1;
1266
+ string operation_public_id = 2;
1267
+ string operation_type = 3;
1268
+ string status_code = 4;
1269
+ string currency = 5;
1270
+ int32 currency_scale = 6;
1271
+ string amount_minor = 7;
1272
+ repeated string ledger_entry_ids = 8;
1273
+ bool idempotent_replay = 9;
1274
+ }
1275
+
1240
1276
  // Exact money and identifiers are decimal strings, never floating-point values.
1241
1277
  message RegisterGameplayPrecisionSessionRequest {
1242
1278
  string user_id = 1;
@@ -48,6 +48,39 @@ function deserialize_payment_AttemptWithdrawalRequest(buffer_arg) {
48
48
  return payment_pb.AttemptWithdrawalRequest.deserializeBinary(new Uint8Array(buffer_arg));
49
49
  }
50
50
 
51
+ function serialize_payment_BonusBalanceRewardIssueRequest(arg) {
52
+ if (!(arg instanceof payment_pb.BonusBalanceRewardIssueRequest)) {
53
+ throw new Error('Expected argument of type payment.BonusBalanceRewardIssueRequest');
54
+ }
55
+ return Buffer.from(arg.serializeBinary());
56
+ }
57
+
58
+ function deserialize_payment_BonusBalanceRewardIssueRequest(buffer_arg) {
59
+ return payment_pb.BonusBalanceRewardIssueRequest.deserializeBinary(new Uint8Array(buffer_arg));
60
+ }
61
+
62
+ function serialize_payment_BonusBalanceRewardOperationResponse(arg) {
63
+ if (!(arg instanceof payment_pb.BonusBalanceRewardOperationResponse)) {
64
+ throw new Error('Expected argument of type payment.BonusBalanceRewardOperationResponse');
65
+ }
66
+ return Buffer.from(arg.serializeBinary());
67
+ }
68
+
69
+ function deserialize_payment_BonusBalanceRewardOperationResponse(buffer_arg) {
70
+ return payment_pb.BonusBalanceRewardOperationResponse.deserializeBinary(new Uint8Array(buffer_arg));
71
+ }
72
+
73
+ function serialize_payment_BonusBalanceRewardReversalRequest(arg) {
74
+ if (!(arg instanceof payment_pb.BonusBalanceRewardReversalRequest)) {
75
+ throw new Error('Expected argument of type payment.BonusBalanceRewardReversalRequest');
76
+ }
77
+ return Buffer.from(arg.serializeBinary());
78
+ }
79
+
80
+ function deserialize_payment_BonusBalanceRewardReversalRequest(buffer_arg) {
81
+ return payment_pb.BonusBalanceRewardReversalRequest.deserializeBinary(new Uint8Array(buffer_arg));
82
+ }
83
+
51
84
  function serialize_payment_CashierFieldItemsResponse(arg) {
52
85
  if (!(arg instanceof payment_pb.CashierFieldItemsResponse)) {
53
86
  throw new Error('Expected argument of type payment.CashierFieldItemsResponse');
@@ -1779,6 +1812,29 @@ createManualDeposit: {
1779
1812
  responseSerialize: serialize_payment_AdjustmentItemsResponse,
1780
1813
  responseDeserialize: deserialize_payment_AdjustmentItemsResponse,
1781
1814
  },
1815
+ // Internal Bonus lifecycle monetary materialization.
1816
+ issueBonusBalanceReward: {
1817
+ path: '/payment.Payment/issueBonusBalanceReward',
1818
+ requestStream: false,
1819
+ responseStream: false,
1820
+ requestType: payment_pb.BonusBalanceRewardIssueRequest,
1821
+ responseType: payment_pb.BonusBalanceRewardOperationResponse,
1822
+ requestSerialize: serialize_payment_BonusBalanceRewardIssueRequest,
1823
+ requestDeserialize: deserialize_payment_BonusBalanceRewardIssueRequest,
1824
+ responseSerialize: serialize_payment_BonusBalanceRewardOperationResponse,
1825
+ responseDeserialize: deserialize_payment_BonusBalanceRewardOperationResponse,
1826
+ },
1827
+ reverseBonusBalanceReward: {
1828
+ path: '/payment.Payment/reverseBonusBalanceReward',
1829
+ requestStream: false,
1830
+ responseStream: false,
1831
+ requestType: payment_pb.BonusBalanceRewardReversalRequest,
1832
+ responseType: payment_pb.BonusBalanceRewardOperationResponse,
1833
+ requestSerialize: serialize_payment_BonusBalanceRewardReversalRequest,
1834
+ requestDeserialize: deserialize_payment_BonusBalanceRewardReversalRequest,
1835
+ responseSerialize: serialize_payment_BonusBalanceRewardOperationResponse,
1836
+ responseDeserialize: deserialize_payment_BonusBalanceRewardOperationResponse,
1837
+ },
1782
1838
  prepareGameplayPrecisionCommand: {
1783
1839
  path: '/payment.Payment/prepareGameplayPrecisionCommand',
1784
1840
  requestStream: false,
@@ -27,6 +27,9 @@ goog.exportSymbol('proto.payment.AdjustmentRequest', null, global);
27
27
  goog.exportSymbol('proto.payment.AdjustmentSearchRequest', null, global);
28
28
  goog.exportSymbol('proto.payment.AttemptDepositRequest', null, global);
29
29
  goog.exportSymbol('proto.payment.AttemptWithdrawalRequest', null, global);
30
+ goog.exportSymbol('proto.payment.BonusBalanceRewardIssueRequest', null, global);
31
+ goog.exportSymbol('proto.payment.BonusBalanceRewardOperationResponse', null, global);
32
+ goog.exportSymbol('proto.payment.BonusBalanceRewardReversalRequest', null, global);
30
33
  goog.exportSymbol('proto.payment.CashierFieldItem', null, global);
31
34
  goog.exportSymbol('proto.payment.CashierFieldItemsResponse', null, global);
32
35
  goog.exportSymbol('proto.payment.CashierFieldsRequest', null, global);
@@ -2608,6 +2611,69 @@ if (goog.DEBUG && !COMPILED) {
2608
2611
  */
2609
2612
  proto.payment.FinancialOperationResponse.displayName = 'proto.payment.FinancialOperationResponse';
2610
2613
  }
2614
+ /**
2615
+ * Generated by JsPbCodeGenerator.
2616
+ * @param {Array=} opt_data Optional initial data array, typically from a
2617
+ * server response, or constructed directly in Javascript. The array is used
2618
+ * in place and becomes part of the constructed object. It is not cloned.
2619
+ * If no data is provided, the constructed object will be empty, but still
2620
+ * valid.
2621
+ * @extends {jspb.Message}
2622
+ * @constructor
2623
+ */
2624
+ proto.payment.BonusBalanceRewardIssueRequest = function(opt_data) {
2625
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2626
+ };
2627
+ goog.inherits(proto.payment.BonusBalanceRewardIssueRequest, jspb.Message);
2628
+ if (goog.DEBUG && !COMPILED) {
2629
+ /**
2630
+ * @public
2631
+ * @override
2632
+ */
2633
+ proto.payment.BonusBalanceRewardIssueRequest.displayName = 'proto.payment.BonusBalanceRewardIssueRequest';
2634
+ }
2635
+ /**
2636
+ * Generated by JsPbCodeGenerator.
2637
+ * @param {Array=} opt_data Optional initial data array, typically from a
2638
+ * server response, or constructed directly in Javascript. The array is used
2639
+ * in place and becomes part of the constructed object. It is not cloned.
2640
+ * If no data is provided, the constructed object will be empty, but still
2641
+ * valid.
2642
+ * @extends {jspb.Message}
2643
+ * @constructor
2644
+ */
2645
+ proto.payment.BonusBalanceRewardReversalRequest = function(opt_data) {
2646
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2647
+ };
2648
+ goog.inherits(proto.payment.BonusBalanceRewardReversalRequest, jspb.Message);
2649
+ if (goog.DEBUG && !COMPILED) {
2650
+ /**
2651
+ * @public
2652
+ * @override
2653
+ */
2654
+ proto.payment.BonusBalanceRewardReversalRequest.displayName = 'proto.payment.BonusBalanceRewardReversalRequest';
2655
+ }
2656
+ /**
2657
+ * Generated by JsPbCodeGenerator.
2658
+ * @param {Array=} opt_data Optional initial data array, typically from a
2659
+ * server response, or constructed directly in Javascript. The array is used
2660
+ * in place and becomes part of the constructed object. It is not cloned.
2661
+ * If no data is provided, the constructed object will be empty, but still
2662
+ * valid.
2663
+ * @extends {jspb.Message}
2664
+ * @constructor
2665
+ */
2666
+ proto.payment.BonusBalanceRewardOperationResponse = function(opt_data) {
2667
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.payment.BonusBalanceRewardOperationResponse.repeatedFields_, null);
2668
+ };
2669
+ goog.inherits(proto.payment.BonusBalanceRewardOperationResponse, jspb.Message);
2670
+ if (goog.DEBUG && !COMPILED) {
2671
+ /**
2672
+ * @public
2673
+ * @override
2674
+ */
2675
+ proto.payment.BonusBalanceRewardOperationResponse.displayName = 'proto.payment.BonusBalanceRewardOperationResponse';
2676
+ }
2611
2677
  /**
2612
2678
  * Generated by JsPbCodeGenerator.
2613
2679
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -52227,6 +52293,1052 @@ proto.payment.FinancialOperationResponse.prototype.hasCompletedAt = function() {
52227
52293
 
52228
52294
 
52229
52295
 
52296
+ if (jspb.Message.GENERATE_TO_OBJECT) {
52297
+ /**
52298
+ * Creates an object representation of this proto.
52299
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
52300
+ * Optional fields that are not set will be set to undefined.
52301
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
52302
+ * For the list of reserved names please see:
52303
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
52304
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
52305
+ * JSPB instance for transitional soy proto support:
52306
+ * http://goto/soy-param-migration
52307
+ * @return {!Object}
52308
+ */
52309
+ proto.payment.BonusBalanceRewardIssueRequest.prototype.toObject = function(opt_includeInstance) {
52310
+ return proto.payment.BonusBalanceRewardIssueRequest.toObject(opt_includeInstance, this);
52311
+ };
52312
+
52313
+
52314
+ /**
52315
+ * Static version of the {@see toObject} method.
52316
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
52317
+ * the JSPB instance for transitional soy proto support:
52318
+ * http://goto/soy-param-migration
52319
+ * @param {!proto.payment.BonusBalanceRewardIssueRequest} msg The msg instance to transform.
52320
+ * @return {!Object}
52321
+ * @suppress {unusedLocalVariables} f is only used for nested messages
52322
+ */
52323
+ proto.payment.BonusBalanceRewardIssueRequest.toObject = function(includeInstance, msg) {
52324
+ var f, obj = {
52325
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
52326
+ userBonusId: jspb.Message.getFieldWithDefault(msg, 2, 0),
52327
+ bonusTemplateId: jspb.Message.getFieldWithDefault(msg, 3, 0),
52328
+ currency: jspb.Message.getFieldWithDefault(msg, 4, ""),
52329
+ amount: jspb.Message.getFieldWithDefault(msg, 5, ""),
52330
+ grantSource: jspb.Message.getFieldWithDefault(msg, 6, ""),
52331
+ grantId: jspb.Message.getFieldWithDefault(msg, 7, "")
52332
+ };
52333
+
52334
+ if (includeInstance) {
52335
+ obj.$jspbMessageInstance = msg;
52336
+ }
52337
+ return obj;
52338
+ };
52339
+ }
52340
+
52341
+
52342
+ /**
52343
+ * Deserializes binary data (in protobuf wire format).
52344
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
52345
+ * @return {!proto.payment.BonusBalanceRewardIssueRequest}
52346
+ */
52347
+ proto.payment.BonusBalanceRewardIssueRequest.deserializeBinary = function(bytes) {
52348
+ var reader = new jspb.BinaryReader(bytes);
52349
+ var msg = new proto.payment.BonusBalanceRewardIssueRequest;
52350
+ return proto.payment.BonusBalanceRewardIssueRequest.deserializeBinaryFromReader(msg, reader);
52351
+ };
52352
+
52353
+
52354
+ /**
52355
+ * Deserializes binary data (in protobuf wire format) from the
52356
+ * given reader into the given message object.
52357
+ * @param {!proto.payment.BonusBalanceRewardIssueRequest} msg The message object to deserialize into.
52358
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
52359
+ * @return {!proto.payment.BonusBalanceRewardIssueRequest}
52360
+ */
52361
+ proto.payment.BonusBalanceRewardIssueRequest.deserializeBinaryFromReader = function(msg, reader) {
52362
+ while (reader.nextField()) {
52363
+ if (reader.isEndGroup()) {
52364
+ break;
52365
+ }
52366
+ var field = reader.getFieldNumber();
52367
+ switch (field) {
52368
+ case 1:
52369
+ var value = /** @type {number} */ (reader.readInt32());
52370
+ msg.setUserId(value);
52371
+ break;
52372
+ case 2:
52373
+ var value = /** @type {number} */ (reader.readInt32());
52374
+ msg.setUserBonusId(value);
52375
+ break;
52376
+ case 3:
52377
+ var value = /** @type {number} */ (reader.readInt32());
52378
+ msg.setBonusTemplateId(value);
52379
+ break;
52380
+ case 4:
52381
+ var value = /** @type {string} */ (reader.readString());
52382
+ msg.setCurrency(value);
52383
+ break;
52384
+ case 5:
52385
+ var value = /** @type {string} */ (reader.readString());
52386
+ msg.setAmount(value);
52387
+ break;
52388
+ case 6:
52389
+ var value = /** @type {string} */ (reader.readString());
52390
+ msg.setGrantSource(value);
52391
+ break;
52392
+ case 7:
52393
+ var value = /** @type {string} */ (reader.readString());
52394
+ msg.setGrantId(value);
52395
+ break;
52396
+ default:
52397
+ reader.skipField();
52398
+ break;
52399
+ }
52400
+ }
52401
+ return msg;
52402
+ };
52403
+
52404
+
52405
+ /**
52406
+ * Serializes the message to binary data (in protobuf wire format).
52407
+ * @return {!Uint8Array}
52408
+ */
52409
+ proto.payment.BonusBalanceRewardIssueRequest.prototype.serializeBinary = function() {
52410
+ var writer = new jspb.BinaryWriter();
52411
+ proto.payment.BonusBalanceRewardIssueRequest.serializeBinaryToWriter(this, writer);
52412
+ return writer.getResultBuffer();
52413
+ };
52414
+
52415
+
52416
+ /**
52417
+ * Serializes the given message to binary data (in protobuf wire
52418
+ * format), writing to the given BinaryWriter.
52419
+ * @param {!proto.payment.BonusBalanceRewardIssueRequest} message
52420
+ * @param {!jspb.BinaryWriter} writer
52421
+ * @suppress {unusedLocalVariables} f is only used for nested messages
52422
+ */
52423
+ proto.payment.BonusBalanceRewardIssueRequest.serializeBinaryToWriter = function(message, writer) {
52424
+ var f = undefined;
52425
+ f = message.getUserId();
52426
+ if (f !== 0) {
52427
+ writer.writeInt32(
52428
+ 1,
52429
+ f
52430
+ );
52431
+ }
52432
+ f = message.getUserBonusId();
52433
+ if (f !== 0) {
52434
+ writer.writeInt32(
52435
+ 2,
52436
+ f
52437
+ );
52438
+ }
52439
+ f = message.getBonusTemplateId();
52440
+ if (f !== 0) {
52441
+ writer.writeInt32(
52442
+ 3,
52443
+ f
52444
+ );
52445
+ }
52446
+ f = message.getCurrency();
52447
+ if (f.length > 0) {
52448
+ writer.writeString(
52449
+ 4,
52450
+ f
52451
+ );
52452
+ }
52453
+ f = message.getAmount();
52454
+ if (f.length > 0) {
52455
+ writer.writeString(
52456
+ 5,
52457
+ f
52458
+ );
52459
+ }
52460
+ f = message.getGrantSource();
52461
+ if (f.length > 0) {
52462
+ writer.writeString(
52463
+ 6,
52464
+ f
52465
+ );
52466
+ }
52467
+ f = message.getGrantId();
52468
+ if (f.length > 0) {
52469
+ writer.writeString(
52470
+ 7,
52471
+ f
52472
+ );
52473
+ }
52474
+ };
52475
+
52476
+
52477
+ /**
52478
+ * optional int32 user_id = 1;
52479
+ * @return {number}
52480
+ */
52481
+ proto.payment.BonusBalanceRewardIssueRequest.prototype.getUserId = function() {
52482
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
52483
+ };
52484
+
52485
+
52486
+ /**
52487
+ * @param {number} value
52488
+ * @return {!proto.payment.BonusBalanceRewardIssueRequest} returns this
52489
+ */
52490
+ proto.payment.BonusBalanceRewardIssueRequest.prototype.setUserId = function(value) {
52491
+ return jspb.Message.setProto3IntField(this, 1, value);
52492
+ };
52493
+
52494
+
52495
+ /**
52496
+ * optional int32 user_bonus_id = 2;
52497
+ * @return {number}
52498
+ */
52499
+ proto.payment.BonusBalanceRewardIssueRequest.prototype.getUserBonusId = function() {
52500
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
52501
+ };
52502
+
52503
+
52504
+ /**
52505
+ * @param {number} value
52506
+ * @return {!proto.payment.BonusBalanceRewardIssueRequest} returns this
52507
+ */
52508
+ proto.payment.BonusBalanceRewardIssueRequest.prototype.setUserBonusId = function(value) {
52509
+ return jspb.Message.setProto3IntField(this, 2, value);
52510
+ };
52511
+
52512
+
52513
+ /**
52514
+ * optional int32 bonus_template_id = 3;
52515
+ * @return {number}
52516
+ */
52517
+ proto.payment.BonusBalanceRewardIssueRequest.prototype.getBonusTemplateId = function() {
52518
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
52519
+ };
52520
+
52521
+
52522
+ /**
52523
+ * @param {number} value
52524
+ * @return {!proto.payment.BonusBalanceRewardIssueRequest} returns this
52525
+ */
52526
+ proto.payment.BonusBalanceRewardIssueRequest.prototype.setBonusTemplateId = function(value) {
52527
+ return jspb.Message.setProto3IntField(this, 3, value);
52528
+ };
52529
+
52530
+
52531
+ /**
52532
+ * optional string currency = 4;
52533
+ * @return {string}
52534
+ */
52535
+ proto.payment.BonusBalanceRewardIssueRequest.prototype.getCurrency = function() {
52536
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
52537
+ };
52538
+
52539
+
52540
+ /**
52541
+ * @param {string} value
52542
+ * @return {!proto.payment.BonusBalanceRewardIssueRequest} returns this
52543
+ */
52544
+ proto.payment.BonusBalanceRewardIssueRequest.prototype.setCurrency = function(value) {
52545
+ return jspb.Message.setProto3StringField(this, 4, value);
52546
+ };
52547
+
52548
+
52549
+ /**
52550
+ * optional string amount = 5;
52551
+ * @return {string}
52552
+ */
52553
+ proto.payment.BonusBalanceRewardIssueRequest.prototype.getAmount = function() {
52554
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
52555
+ };
52556
+
52557
+
52558
+ /**
52559
+ * @param {string} value
52560
+ * @return {!proto.payment.BonusBalanceRewardIssueRequest} returns this
52561
+ */
52562
+ proto.payment.BonusBalanceRewardIssueRequest.prototype.setAmount = function(value) {
52563
+ return jspb.Message.setProto3StringField(this, 5, value);
52564
+ };
52565
+
52566
+
52567
+ /**
52568
+ * optional string grant_source = 6;
52569
+ * @return {string}
52570
+ */
52571
+ proto.payment.BonusBalanceRewardIssueRequest.prototype.getGrantSource = function() {
52572
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
52573
+ };
52574
+
52575
+
52576
+ /**
52577
+ * @param {string} value
52578
+ * @return {!proto.payment.BonusBalanceRewardIssueRequest} returns this
52579
+ */
52580
+ proto.payment.BonusBalanceRewardIssueRequest.prototype.setGrantSource = function(value) {
52581
+ return jspb.Message.setProto3StringField(this, 6, value);
52582
+ };
52583
+
52584
+
52585
+ /**
52586
+ * optional string grant_id = 7;
52587
+ * @return {string}
52588
+ */
52589
+ proto.payment.BonusBalanceRewardIssueRequest.prototype.getGrantId = function() {
52590
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
52591
+ };
52592
+
52593
+
52594
+ /**
52595
+ * @param {string} value
52596
+ * @return {!proto.payment.BonusBalanceRewardIssueRequest} returns this
52597
+ */
52598
+ proto.payment.BonusBalanceRewardIssueRequest.prototype.setGrantId = function(value) {
52599
+ return jspb.Message.setProto3StringField(this, 7, value);
52600
+ };
52601
+
52602
+
52603
+
52604
+
52605
+
52606
+ if (jspb.Message.GENERATE_TO_OBJECT) {
52607
+ /**
52608
+ * Creates an object representation of this proto.
52609
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
52610
+ * Optional fields that are not set will be set to undefined.
52611
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
52612
+ * For the list of reserved names please see:
52613
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
52614
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
52615
+ * JSPB instance for transitional soy proto support:
52616
+ * http://goto/soy-param-migration
52617
+ * @return {!Object}
52618
+ */
52619
+ proto.payment.BonusBalanceRewardReversalRequest.prototype.toObject = function(opt_includeInstance) {
52620
+ return proto.payment.BonusBalanceRewardReversalRequest.toObject(opt_includeInstance, this);
52621
+ };
52622
+
52623
+
52624
+ /**
52625
+ * Static version of the {@see toObject} method.
52626
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
52627
+ * the JSPB instance for transitional soy proto support:
52628
+ * http://goto/soy-param-migration
52629
+ * @param {!proto.payment.BonusBalanceRewardReversalRequest} msg The msg instance to transform.
52630
+ * @return {!Object}
52631
+ * @suppress {unusedLocalVariables} f is only used for nested messages
52632
+ */
52633
+ proto.payment.BonusBalanceRewardReversalRequest.toObject = function(includeInstance, msg) {
52634
+ var f, obj = {
52635
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
52636
+ userBonusId: jspb.Message.getFieldWithDefault(msg, 2, 0),
52637
+ bonusTemplateId: jspb.Message.getFieldWithDefault(msg, 3, 0),
52638
+ currency: jspb.Message.getFieldWithDefault(msg, 4, ""),
52639
+ amount: jspb.Message.getFieldWithDefault(msg, 5, ""),
52640
+ grantSource: jspb.Message.getFieldWithDefault(msg, 6, ""),
52641
+ grantId: jspb.Message.getFieldWithDefault(msg, 7, ""),
52642
+ reason: jspb.Message.getFieldWithDefault(msg, 8, "")
52643
+ };
52644
+
52645
+ if (includeInstance) {
52646
+ obj.$jspbMessageInstance = msg;
52647
+ }
52648
+ return obj;
52649
+ };
52650
+ }
52651
+
52652
+
52653
+ /**
52654
+ * Deserializes binary data (in protobuf wire format).
52655
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
52656
+ * @return {!proto.payment.BonusBalanceRewardReversalRequest}
52657
+ */
52658
+ proto.payment.BonusBalanceRewardReversalRequest.deserializeBinary = function(bytes) {
52659
+ var reader = new jspb.BinaryReader(bytes);
52660
+ var msg = new proto.payment.BonusBalanceRewardReversalRequest;
52661
+ return proto.payment.BonusBalanceRewardReversalRequest.deserializeBinaryFromReader(msg, reader);
52662
+ };
52663
+
52664
+
52665
+ /**
52666
+ * Deserializes binary data (in protobuf wire format) from the
52667
+ * given reader into the given message object.
52668
+ * @param {!proto.payment.BonusBalanceRewardReversalRequest} msg The message object to deserialize into.
52669
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
52670
+ * @return {!proto.payment.BonusBalanceRewardReversalRequest}
52671
+ */
52672
+ proto.payment.BonusBalanceRewardReversalRequest.deserializeBinaryFromReader = function(msg, reader) {
52673
+ while (reader.nextField()) {
52674
+ if (reader.isEndGroup()) {
52675
+ break;
52676
+ }
52677
+ var field = reader.getFieldNumber();
52678
+ switch (field) {
52679
+ case 1:
52680
+ var value = /** @type {number} */ (reader.readInt32());
52681
+ msg.setUserId(value);
52682
+ break;
52683
+ case 2:
52684
+ var value = /** @type {number} */ (reader.readInt32());
52685
+ msg.setUserBonusId(value);
52686
+ break;
52687
+ case 3:
52688
+ var value = /** @type {number} */ (reader.readInt32());
52689
+ msg.setBonusTemplateId(value);
52690
+ break;
52691
+ case 4:
52692
+ var value = /** @type {string} */ (reader.readString());
52693
+ msg.setCurrency(value);
52694
+ break;
52695
+ case 5:
52696
+ var value = /** @type {string} */ (reader.readString());
52697
+ msg.setAmount(value);
52698
+ break;
52699
+ case 6:
52700
+ var value = /** @type {string} */ (reader.readString());
52701
+ msg.setGrantSource(value);
52702
+ break;
52703
+ case 7:
52704
+ var value = /** @type {string} */ (reader.readString());
52705
+ msg.setGrantId(value);
52706
+ break;
52707
+ case 8:
52708
+ var value = /** @type {string} */ (reader.readString());
52709
+ msg.setReason(value);
52710
+ break;
52711
+ default:
52712
+ reader.skipField();
52713
+ break;
52714
+ }
52715
+ }
52716
+ return msg;
52717
+ };
52718
+
52719
+
52720
+ /**
52721
+ * Serializes the message to binary data (in protobuf wire format).
52722
+ * @return {!Uint8Array}
52723
+ */
52724
+ proto.payment.BonusBalanceRewardReversalRequest.prototype.serializeBinary = function() {
52725
+ var writer = new jspb.BinaryWriter();
52726
+ proto.payment.BonusBalanceRewardReversalRequest.serializeBinaryToWriter(this, writer);
52727
+ return writer.getResultBuffer();
52728
+ };
52729
+
52730
+
52731
+ /**
52732
+ * Serializes the given message to binary data (in protobuf wire
52733
+ * format), writing to the given BinaryWriter.
52734
+ * @param {!proto.payment.BonusBalanceRewardReversalRequest} message
52735
+ * @param {!jspb.BinaryWriter} writer
52736
+ * @suppress {unusedLocalVariables} f is only used for nested messages
52737
+ */
52738
+ proto.payment.BonusBalanceRewardReversalRequest.serializeBinaryToWriter = function(message, writer) {
52739
+ var f = undefined;
52740
+ f = message.getUserId();
52741
+ if (f !== 0) {
52742
+ writer.writeInt32(
52743
+ 1,
52744
+ f
52745
+ );
52746
+ }
52747
+ f = message.getUserBonusId();
52748
+ if (f !== 0) {
52749
+ writer.writeInt32(
52750
+ 2,
52751
+ f
52752
+ );
52753
+ }
52754
+ f = message.getBonusTemplateId();
52755
+ if (f !== 0) {
52756
+ writer.writeInt32(
52757
+ 3,
52758
+ f
52759
+ );
52760
+ }
52761
+ f = message.getCurrency();
52762
+ if (f.length > 0) {
52763
+ writer.writeString(
52764
+ 4,
52765
+ f
52766
+ );
52767
+ }
52768
+ f = message.getAmount();
52769
+ if (f.length > 0) {
52770
+ writer.writeString(
52771
+ 5,
52772
+ f
52773
+ );
52774
+ }
52775
+ f = message.getGrantSource();
52776
+ if (f.length > 0) {
52777
+ writer.writeString(
52778
+ 6,
52779
+ f
52780
+ );
52781
+ }
52782
+ f = message.getGrantId();
52783
+ if (f.length > 0) {
52784
+ writer.writeString(
52785
+ 7,
52786
+ f
52787
+ );
52788
+ }
52789
+ f = message.getReason();
52790
+ if (f.length > 0) {
52791
+ writer.writeString(
52792
+ 8,
52793
+ f
52794
+ );
52795
+ }
52796
+ };
52797
+
52798
+
52799
+ /**
52800
+ * optional int32 user_id = 1;
52801
+ * @return {number}
52802
+ */
52803
+ proto.payment.BonusBalanceRewardReversalRequest.prototype.getUserId = function() {
52804
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
52805
+ };
52806
+
52807
+
52808
+ /**
52809
+ * @param {number} value
52810
+ * @return {!proto.payment.BonusBalanceRewardReversalRequest} returns this
52811
+ */
52812
+ proto.payment.BonusBalanceRewardReversalRequest.prototype.setUserId = function(value) {
52813
+ return jspb.Message.setProto3IntField(this, 1, value);
52814
+ };
52815
+
52816
+
52817
+ /**
52818
+ * optional int32 user_bonus_id = 2;
52819
+ * @return {number}
52820
+ */
52821
+ proto.payment.BonusBalanceRewardReversalRequest.prototype.getUserBonusId = function() {
52822
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
52823
+ };
52824
+
52825
+
52826
+ /**
52827
+ * @param {number} value
52828
+ * @return {!proto.payment.BonusBalanceRewardReversalRequest} returns this
52829
+ */
52830
+ proto.payment.BonusBalanceRewardReversalRequest.prototype.setUserBonusId = function(value) {
52831
+ return jspb.Message.setProto3IntField(this, 2, value);
52832
+ };
52833
+
52834
+
52835
+ /**
52836
+ * optional int32 bonus_template_id = 3;
52837
+ * @return {number}
52838
+ */
52839
+ proto.payment.BonusBalanceRewardReversalRequest.prototype.getBonusTemplateId = function() {
52840
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
52841
+ };
52842
+
52843
+
52844
+ /**
52845
+ * @param {number} value
52846
+ * @return {!proto.payment.BonusBalanceRewardReversalRequest} returns this
52847
+ */
52848
+ proto.payment.BonusBalanceRewardReversalRequest.prototype.setBonusTemplateId = function(value) {
52849
+ return jspb.Message.setProto3IntField(this, 3, value);
52850
+ };
52851
+
52852
+
52853
+ /**
52854
+ * optional string currency = 4;
52855
+ * @return {string}
52856
+ */
52857
+ proto.payment.BonusBalanceRewardReversalRequest.prototype.getCurrency = function() {
52858
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
52859
+ };
52860
+
52861
+
52862
+ /**
52863
+ * @param {string} value
52864
+ * @return {!proto.payment.BonusBalanceRewardReversalRequest} returns this
52865
+ */
52866
+ proto.payment.BonusBalanceRewardReversalRequest.prototype.setCurrency = function(value) {
52867
+ return jspb.Message.setProto3StringField(this, 4, value);
52868
+ };
52869
+
52870
+
52871
+ /**
52872
+ * optional string amount = 5;
52873
+ * @return {string}
52874
+ */
52875
+ proto.payment.BonusBalanceRewardReversalRequest.prototype.getAmount = function() {
52876
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
52877
+ };
52878
+
52879
+
52880
+ /**
52881
+ * @param {string} value
52882
+ * @return {!proto.payment.BonusBalanceRewardReversalRequest} returns this
52883
+ */
52884
+ proto.payment.BonusBalanceRewardReversalRequest.prototype.setAmount = function(value) {
52885
+ return jspb.Message.setProto3StringField(this, 5, value);
52886
+ };
52887
+
52888
+
52889
+ /**
52890
+ * optional string grant_source = 6;
52891
+ * @return {string}
52892
+ */
52893
+ proto.payment.BonusBalanceRewardReversalRequest.prototype.getGrantSource = function() {
52894
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
52895
+ };
52896
+
52897
+
52898
+ /**
52899
+ * @param {string} value
52900
+ * @return {!proto.payment.BonusBalanceRewardReversalRequest} returns this
52901
+ */
52902
+ proto.payment.BonusBalanceRewardReversalRequest.prototype.setGrantSource = function(value) {
52903
+ return jspb.Message.setProto3StringField(this, 6, value);
52904
+ };
52905
+
52906
+
52907
+ /**
52908
+ * optional string grant_id = 7;
52909
+ * @return {string}
52910
+ */
52911
+ proto.payment.BonusBalanceRewardReversalRequest.prototype.getGrantId = function() {
52912
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
52913
+ };
52914
+
52915
+
52916
+ /**
52917
+ * @param {string} value
52918
+ * @return {!proto.payment.BonusBalanceRewardReversalRequest} returns this
52919
+ */
52920
+ proto.payment.BonusBalanceRewardReversalRequest.prototype.setGrantId = function(value) {
52921
+ return jspb.Message.setProto3StringField(this, 7, value);
52922
+ };
52923
+
52924
+
52925
+ /**
52926
+ * optional string reason = 8;
52927
+ * @return {string}
52928
+ */
52929
+ proto.payment.BonusBalanceRewardReversalRequest.prototype.getReason = function() {
52930
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
52931
+ };
52932
+
52933
+
52934
+ /**
52935
+ * @param {string} value
52936
+ * @return {!proto.payment.BonusBalanceRewardReversalRequest} returns this
52937
+ */
52938
+ proto.payment.BonusBalanceRewardReversalRequest.prototype.setReason = function(value) {
52939
+ return jspb.Message.setProto3StringField(this, 8, value);
52940
+ };
52941
+
52942
+
52943
+
52944
+ /**
52945
+ * List of repeated fields within this message type.
52946
+ * @private {!Array<number>}
52947
+ * @const
52948
+ */
52949
+ proto.payment.BonusBalanceRewardOperationResponse.repeatedFields_ = [8];
52950
+
52951
+
52952
+
52953
+ if (jspb.Message.GENERATE_TO_OBJECT) {
52954
+ /**
52955
+ * Creates an object representation of this proto.
52956
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
52957
+ * Optional fields that are not set will be set to undefined.
52958
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
52959
+ * For the list of reserved names please see:
52960
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
52961
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
52962
+ * JSPB instance for transitional soy proto support:
52963
+ * http://goto/soy-param-migration
52964
+ * @return {!Object}
52965
+ */
52966
+ proto.payment.BonusBalanceRewardOperationResponse.prototype.toObject = function(opt_includeInstance) {
52967
+ return proto.payment.BonusBalanceRewardOperationResponse.toObject(opt_includeInstance, this);
52968
+ };
52969
+
52970
+
52971
+ /**
52972
+ * Static version of the {@see toObject} method.
52973
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
52974
+ * the JSPB instance for transitional soy proto support:
52975
+ * http://goto/soy-param-migration
52976
+ * @param {!proto.payment.BonusBalanceRewardOperationResponse} msg The msg instance to transform.
52977
+ * @return {!Object}
52978
+ * @suppress {unusedLocalVariables} f is only used for nested messages
52979
+ */
52980
+ proto.payment.BonusBalanceRewardOperationResponse.toObject = function(includeInstance, msg) {
52981
+ var f, obj = {
52982
+ operationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
52983
+ operationPublicId: jspb.Message.getFieldWithDefault(msg, 2, ""),
52984
+ operationType: jspb.Message.getFieldWithDefault(msg, 3, ""),
52985
+ statusCode: jspb.Message.getFieldWithDefault(msg, 4, ""),
52986
+ currency: jspb.Message.getFieldWithDefault(msg, 5, ""),
52987
+ currencyScale: jspb.Message.getFieldWithDefault(msg, 6, 0),
52988
+ amountMinor: jspb.Message.getFieldWithDefault(msg, 7, ""),
52989
+ ledgerEntryIdsList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f,
52990
+ idempotentReplay: jspb.Message.getBooleanFieldWithDefault(msg, 9, false)
52991
+ };
52992
+
52993
+ if (includeInstance) {
52994
+ obj.$jspbMessageInstance = msg;
52995
+ }
52996
+ return obj;
52997
+ };
52998
+ }
52999
+
53000
+
53001
+ /**
53002
+ * Deserializes binary data (in protobuf wire format).
53003
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
53004
+ * @return {!proto.payment.BonusBalanceRewardOperationResponse}
53005
+ */
53006
+ proto.payment.BonusBalanceRewardOperationResponse.deserializeBinary = function(bytes) {
53007
+ var reader = new jspb.BinaryReader(bytes);
53008
+ var msg = new proto.payment.BonusBalanceRewardOperationResponse;
53009
+ return proto.payment.BonusBalanceRewardOperationResponse.deserializeBinaryFromReader(msg, reader);
53010
+ };
53011
+
53012
+
53013
+ /**
53014
+ * Deserializes binary data (in protobuf wire format) from the
53015
+ * given reader into the given message object.
53016
+ * @param {!proto.payment.BonusBalanceRewardOperationResponse} msg The message object to deserialize into.
53017
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
53018
+ * @return {!proto.payment.BonusBalanceRewardOperationResponse}
53019
+ */
53020
+ proto.payment.BonusBalanceRewardOperationResponse.deserializeBinaryFromReader = function(msg, reader) {
53021
+ while (reader.nextField()) {
53022
+ if (reader.isEndGroup()) {
53023
+ break;
53024
+ }
53025
+ var field = reader.getFieldNumber();
53026
+ switch (field) {
53027
+ case 1:
53028
+ var value = /** @type {string} */ (reader.readString());
53029
+ msg.setOperationId(value);
53030
+ break;
53031
+ case 2:
53032
+ var value = /** @type {string} */ (reader.readString());
53033
+ msg.setOperationPublicId(value);
53034
+ break;
53035
+ case 3:
53036
+ var value = /** @type {string} */ (reader.readString());
53037
+ msg.setOperationType(value);
53038
+ break;
53039
+ case 4:
53040
+ var value = /** @type {string} */ (reader.readString());
53041
+ msg.setStatusCode(value);
53042
+ break;
53043
+ case 5:
53044
+ var value = /** @type {string} */ (reader.readString());
53045
+ msg.setCurrency(value);
53046
+ break;
53047
+ case 6:
53048
+ var value = /** @type {number} */ (reader.readInt32());
53049
+ msg.setCurrencyScale(value);
53050
+ break;
53051
+ case 7:
53052
+ var value = /** @type {string} */ (reader.readString());
53053
+ msg.setAmountMinor(value);
53054
+ break;
53055
+ case 8:
53056
+ var value = /** @type {string} */ (reader.readString());
53057
+ msg.addLedgerEntryIds(value);
53058
+ break;
53059
+ case 9:
53060
+ var value = /** @type {boolean} */ (reader.readBool());
53061
+ msg.setIdempotentReplay(value);
53062
+ break;
53063
+ default:
53064
+ reader.skipField();
53065
+ break;
53066
+ }
53067
+ }
53068
+ return msg;
53069
+ };
53070
+
53071
+
53072
+ /**
53073
+ * Serializes the message to binary data (in protobuf wire format).
53074
+ * @return {!Uint8Array}
53075
+ */
53076
+ proto.payment.BonusBalanceRewardOperationResponse.prototype.serializeBinary = function() {
53077
+ var writer = new jspb.BinaryWriter();
53078
+ proto.payment.BonusBalanceRewardOperationResponse.serializeBinaryToWriter(this, writer);
53079
+ return writer.getResultBuffer();
53080
+ };
53081
+
53082
+
53083
+ /**
53084
+ * Serializes the given message to binary data (in protobuf wire
53085
+ * format), writing to the given BinaryWriter.
53086
+ * @param {!proto.payment.BonusBalanceRewardOperationResponse} message
53087
+ * @param {!jspb.BinaryWriter} writer
53088
+ * @suppress {unusedLocalVariables} f is only used for nested messages
53089
+ */
53090
+ proto.payment.BonusBalanceRewardOperationResponse.serializeBinaryToWriter = function(message, writer) {
53091
+ var f = undefined;
53092
+ f = message.getOperationId();
53093
+ if (f.length > 0) {
53094
+ writer.writeString(
53095
+ 1,
53096
+ f
53097
+ );
53098
+ }
53099
+ f = message.getOperationPublicId();
53100
+ if (f.length > 0) {
53101
+ writer.writeString(
53102
+ 2,
53103
+ f
53104
+ );
53105
+ }
53106
+ f = message.getOperationType();
53107
+ if (f.length > 0) {
53108
+ writer.writeString(
53109
+ 3,
53110
+ f
53111
+ );
53112
+ }
53113
+ f = message.getStatusCode();
53114
+ if (f.length > 0) {
53115
+ writer.writeString(
53116
+ 4,
53117
+ f
53118
+ );
53119
+ }
53120
+ f = message.getCurrency();
53121
+ if (f.length > 0) {
53122
+ writer.writeString(
53123
+ 5,
53124
+ f
53125
+ );
53126
+ }
53127
+ f = message.getCurrencyScale();
53128
+ if (f !== 0) {
53129
+ writer.writeInt32(
53130
+ 6,
53131
+ f
53132
+ );
53133
+ }
53134
+ f = message.getAmountMinor();
53135
+ if (f.length > 0) {
53136
+ writer.writeString(
53137
+ 7,
53138
+ f
53139
+ );
53140
+ }
53141
+ f = message.getLedgerEntryIdsList();
53142
+ if (f.length > 0) {
53143
+ writer.writeRepeatedString(
53144
+ 8,
53145
+ f
53146
+ );
53147
+ }
53148
+ f = message.getIdempotentReplay();
53149
+ if (f) {
53150
+ writer.writeBool(
53151
+ 9,
53152
+ f
53153
+ );
53154
+ }
53155
+ };
53156
+
53157
+
53158
+ /**
53159
+ * optional string operation_id = 1;
53160
+ * @return {string}
53161
+ */
53162
+ proto.payment.BonusBalanceRewardOperationResponse.prototype.getOperationId = function() {
53163
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
53164
+ };
53165
+
53166
+
53167
+ /**
53168
+ * @param {string} value
53169
+ * @return {!proto.payment.BonusBalanceRewardOperationResponse} returns this
53170
+ */
53171
+ proto.payment.BonusBalanceRewardOperationResponse.prototype.setOperationId = function(value) {
53172
+ return jspb.Message.setProto3StringField(this, 1, value);
53173
+ };
53174
+
53175
+
53176
+ /**
53177
+ * optional string operation_public_id = 2;
53178
+ * @return {string}
53179
+ */
53180
+ proto.payment.BonusBalanceRewardOperationResponse.prototype.getOperationPublicId = function() {
53181
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
53182
+ };
53183
+
53184
+
53185
+ /**
53186
+ * @param {string} value
53187
+ * @return {!proto.payment.BonusBalanceRewardOperationResponse} returns this
53188
+ */
53189
+ proto.payment.BonusBalanceRewardOperationResponse.prototype.setOperationPublicId = function(value) {
53190
+ return jspb.Message.setProto3StringField(this, 2, value);
53191
+ };
53192
+
53193
+
53194
+ /**
53195
+ * optional string operation_type = 3;
53196
+ * @return {string}
53197
+ */
53198
+ proto.payment.BonusBalanceRewardOperationResponse.prototype.getOperationType = function() {
53199
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
53200
+ };
53201
+
53202
+
53203
+ /**
53204
+ * @param {string} value
53205
+ * @return {!proto.payment.BonusBalanceRewardOperationResponse} returns this
53206
+ */
53207
+ proto.payment.BonusBalanceRewardOperationResponse.prototype.setOperationType = function(value) {
53208
+ return jspb.Message.setProto3StringField(this, 3, value);
53209
+ };
53210
+
53211
+
53212
+ /**
53213
+ * optional string status_code = 4;
53214
+ * @return {string}
53215
+ */
53216
+ proto.payment.BonusBalanceRewardOperationResponse.prototype.getStatusCode = function() {
53217
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
53218
+ };
53219
+
53220
+
53221
+ /**
53222
+ * @param {string} value
53223
+ * @return {!proto.payment.BonusBalanceRewardOperationResponse} returns this
53224
+ */
53225
+ proto.payment.BonusBalanceRewardOperationResponse.prototype.setStatusCode = function(value) {
53226
+ return jspb.Message.setProto3StringField(this, 4, value);
53227
+ };
53228
+
53229
+
53230
+ /**
53231
+ * optional string currency = 5;
53232
+ * @return {string}
53233
+ */
53234
+ proto.payment.BonusBalanceRewardOperationResponse.prototype.getCurrency = function() {
53235
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
53236
+ };
53237
+
53238
+
53239
+ /**
53240
+ * @param {string} value
53241
+ * @return {!proto.payment.BonusBalanceRewardOperationResponse} returns this
53242
+ */
53243
+ proto.payment.BonusBalanceRewardOperationResponse.prototype.setCurrency = function(value) {
53244
+ return jspb.Message.setProto3StringField(this, 5, value);
53245
+ };
53246
+
53247
+
53248
+ /**
53249
+ * optional int32 currency_scale = 6;
53250
+ * @return {number}
53251
+ */
53252
+ proto.payment.BonusBalanceRewardOperationResponse.prototype.getCurrencyScale = function() {
53253
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
53254
+ };
53255
+
53256
+
53257
+ /**
53258
+ * @param {number} value
53259
+ * @return {!proto.payment.BonusBalanceRewardOperationResponse} returns this
53260
+ */
53261
+ proto.payment.BonusBalanceRewardOperationResponse.prototype.setCurrencyScale = function(value) {
53262
+ return jspb.Message.setProto3IntField(this, 6, value);
53263
+ };
53264
+
53265
+
53266
+ /**
53267
+ * optional string amount_minor = 7;
53268
+ * @return {string}
53269
+ */
53270
+ proto.payment.BonusBalanceRewardOperationResponse.prototype.getAmountMinor = function() {
53271
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
53272
+ };
53273
+
53274
+
53275
+ /**
53276
+ * @param {string} value
53277
+ * @return {!proto.payment.BonusBalanceRewardOperationResponse} returns this
53278
+ */
53279
+ proto.payment.BonusBalanceRewardOperationResponse.prototype.setAmountMinor = function(value) {
53280
+ return jspb.Message.setProto3StringField(this, 7, value);
53281
+ };
53282
+
53283
+
53284
+ /**
53285
+ * repeated string ledger_entry_ids = 8;
53286
+ * @return {!Array<string>}
53287
+ */
53288
+ proto.payment.BonusBalanceRewardOperationResponse.prototype.getLedgerEntryIdsList = function() {
53289
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 8));
53290
+ };
53291
+
53292
+
53293
+ /**
53294
+ * @param {!Array<string>} value
53295
+ * @return {!proto.payment.BonusBalanceRewardOperationResponse} returns this
53296
+ */
53297
+ proto.payment.BonusBalanceRewardOperationResponse.prototype.setLedgerEntryIdsList = function(value) {
53298
+ return jspb.Message.setField(this, 8, value || []);
53299
+ };
53300
+
53301
+
53302
+ /**
53303
+ * @param {string} value
53304
+ * @param {number=} opt_index
53305
+ * @return {!proto.payment.BonusBalanceRewardOperationResponse} returns this
53306
+ */
53307
+ proto.payment.BonusBalanceRewardOperationResponse.prototype.addLedgerEntryIds = function(value, opt_index) {
53308
+ return jspb.Message.addToRepeatedField(this, 8, value, opt_index);
53309
+ };
53310
+
53311
+
53312
+ /**
53313
+ * Clears the list making it empty but non-null.
53314
+ * @return {!proto.payment.BonusBalanceRewardOperationResponse} returns this
53315
+ */
53316
+ proto.payment.BonusBalanceRewardOperationResponse.prototype.clearLedgerEntryIdsList = function() {
53317
+ return this.setLedgerEntryIdsList([]);
53318
+ };
53319
+
53320
+
53321
+ /**
53322
+ * optional bool idempotent_replay = 9;
53323
+ * @return {boolean}
53324
+ */
53325
+ proto.payment.BonusBalanceRewardOperationResponse.prototype.getIdempotentReplay = function() {
53326
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
53327
+ };
53328
+
53329
+
53330
+ /**
53331
+ * @param {boolean} value
53332
+ * @return {!proto.payment.BonusBalanceRewardOperationResponse} returns this
53333
+ */
53334
+ proto.payment.BonusBalanceRewardOperationResponse.prototype.setIdempotentReplay = function(value) {
53335
+ return jspb.Message.setProto3BooleanField(this, 9, value);
53336
+ };
53337
+
53338
+
53339
+
53340
+
53341
+
52230
53342
  if (jspb.Message.GENERATE_TO_OBJECT) {
52231
53343
  /**
52232
53344
  * Creates an object representation of this proto.