protobuf-platform 1.2.482 → 1.2.485

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.
@@ -28,6 +28,8 @@ goog.exportSymbol('proto.payment.CashierFieldItemsResponse', null, global);
28
28
  goog.exportSymbol('proto.payment.CashierFieldsRequest', null, global);
29
29
  goog.exportSymbol('proto.payment.CheckFastDepositRequest', null, global);
30
30
  goog.exportSymbol('proto.payment.CheckFastDepositResponse', null, global);
31
+ goog.exportSymbol('proto.payment.CompensationRequest', null, global);
32
+ goog.exportSymbol('proto.payment.ConfiscationRequest', null, global);
31
33
  goog.exportSymbol('proto.payment.CryptoDepositInstructions', null, global);
32
34
  goog.exportSymbol('proto.payment.CurrenciesMetadataResponse', null, global);
33
35
  goog.exportSymbol('proto.payment.CurrencyItem', null, global);
@@ -44,6 +46,7 @@ goog.exportSymbol('proto.payment.DepositStatus', null, global);
44
46
  goog.exportSymbol('proto.payment.DepositStatusItemsResponse', null, global);
45
47
  goog.exportSymbol('proto.payment.DepositWebHookRequest', null, global);
46
48
  goog.exportSymbol('proto.payment.File', null, global);
49
+ goog.exportSymbol('proto.payment.FinancialOperationResponse', null, global);
47
50
  goog.exportSymbol('proto.payment.GetCurrenciesMetadataRequest', null, global);
48
51
  goog.exportSymbol('proto.payment.GetCurrencyMetadataRequest', null, global);
49
52
  goog.exportSymbol('proto.payment.GetCurrencyRequest', null, global);
@@ -63,6 +66,7 @@ goog.exportSymbol('proto.payment.GetWithdrawalWagerBucketHistoryResponse', null,
63
66
  goog.exportSymbol('proto.payment.GetWithdrawalWagerSnapshotRequest', null, global);
64
67
  goog.exportSymbol('proto.payment.GetWithdrawalWagerSnapshotResponse', null, global);
65
68
  goog.exportSymbol('proto.payment.ItemsBunchRequest', null, global);
69
+ goog.exportSymbol('proto.payment.ManualDepositRequest', null, global);
66
70
  goog.exportSymbol('proto.payment.MethodItem', null, global);
67
71
  goog.exportSymbol('proto.payment.MethodItemRequest', null, global);
68
72
  goog.exportSymbol('proto.payment.MethodItemsResponse', null, global);
@@ -2003,6 +2007,90 @@ if (goog.DEBUG && !COMPILED) {
2003
2007
  */
2004
2008
  proto.payment.CurrencyItemsResponse.displayName = 'proto.payment.CurrencyItemsResponse';
2005
2009
  }
2010
+ /**
2011
+ * Generated by JsPbCodeGenerator.
2012
+ * @param {Array=} opt_data Optional initial data array, typically from a
2013
+ * server response, or constructed directly in Javascript. The array is used
2014
+ * in place and becomes part of the constructed object. It is not cloned.
2015
+ * If no data is provided, the constructed object will be empty, but still
2016
+ * valid.
2017
+ * @extends {jspb.Message}
2018
+ * @constructor
2019
+ */
2020
+ proto.payment.ManualDepositRequest = function(opt_data) {
2021
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2022
+ };
2023
+ goog.inherits(proto.payment.ManualDepositRequest, jspb.Message);
2024
+ if (goog.DEBUG && !COMPILED) {
2025
+ /**
2026
+ * @public
2027
+ * @override
2028
+ */
2029
+ proto.payment.ManualDepositRequest.displayName = 'proto.payment.ManualDepositRequest';
2030
+ }
2031
+ /**
2032
+ * Generated by JsPbCodeGenerator.
2033
+ * @param {Array=} opt_data Optional initial data array, typically from a
2034
+ * server response, or constructed directly in Javascript. The array is used
2035
+ * in place and becomes part of the constructed object. It is not cloned.
2036
+ * If no data is provided, the constructed object will be empty, but still
2037
+ * valid.
2038
+ * @extends {jspb.Message}
2039
+ * @constructor
2040
+ */
2041
+ proto.payment.CompensationRequest = function(opt_data) {
2042
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2043
+ };
2044
+ goog.inherits(proto.payment.CompensationRequest, jspb.Message);
2045
+ if (goog.DEBUG && !COMPILED) {
2046
+ /**
2047
+ * @public
2048
+ * @override
2049
+ */
2050
+ proto.payment.CompensationRequest.displayName = 'proto.payment.CompensationRequest';
2051
+ }
2052
+ /**
2053
+ * Generated by JsPbCodeGenerator.
2054
+ * @param {Array=} opt_data Optional initial data array, typically from a
2055
+ * server response, or constructed directly in Javascript. The array is used
2056
+ * in place and becomes part of the constructed object. It is not cloned.
2057
+ * If no data is provided, the constructed object will be empty, but still
2058
+ * valid.
2059
+ * @extends {jspb.Message}
2060
+ * @constructor
2061
+ */
2062
+ proto.payment.ConfiscationRequest = function(opt_data) {
2063
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2064
+ };
2065
+ goog.inherits(proto.payment.ConfiscationRequest, jspb.Message);
2066
+ if (goog.DEBUG && !COMPILED) {
2067
+ /**
2068
+ * @public
2069
+ * @override
2070
+ */
2071
+ proto.payment.ConfiscationRequest.displayName = 'proto.payment.ConfiscationRequest';
2072
+ }
2073
+ /**
2074
+ * Generated by JsPbCodeGenerator.
2075
+ * @param {Array=} opt_data Optional initial data array, typically from a
2076
+ * server response, or constructed directly in Javascript. The array is used
2077
+ * in place and becomes part of the constructed object. It is not cloned.
2078
+ * If no data is provided, the constructed object will be empty, but still
2079
+ * valid.
2080
+ * @extends {jspb.Message}
2081
+ * @constructor
2082
+ */
2083
+ proto.payment.FinancialOperationResponse = function(opt_data) {
2084
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2085
+ };
2086
+ goog.inherits(proto.payment.FinancialOperationResponse, jspb.Message);
2087
+ if (goog.DEBUG && !COMPILED) {
2088
+ /**
2089
+ * @public
2090
+ * @override
2091
+ */
2092
+ proto.payment.FinancialOperationResponse.displayName = 'proto.payment.FinancialOperationResponse';
2093
+ }
2006
2094
 
2007
2095
 
2008
2096
 
@@ -35887,4 +35975,1712 @@ proto.payment.CurrencyItemsResponse.prototype.hasTotalItems = function() {
35887
35975
  };
35888
35976
 
35889
35977
 
35978
+
35979
+
35980
+
35981
+ if (jspb.Message.GENERATE_TO_OBJECT) {
35982
+ /**
35983
+ * Creates an object representation of this proto.
35984
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
35985
+ * Optional fields that are not set will be set to undefined.
35986
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
35987
+ * For the list of reserved names please see:
35988
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
35989
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
35990
+ * JSPB instance for transitional soy proto support:
35991
+ * http://goto/soy-param-migration
35992
+ * @return {!Object}
35993
+ */
35994
+ proto.payment.ManualDepositRequest.prototype.toObject = function(opt_includeInstance) {
35995
+ return proto.payment.ManualDepositRequest.toObject(opt_includeInstance, this);
35996
+ };
35997
+
35998
+
35999
+ /**
36000
+ * Static version of the {@see toObject} method.
36001
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
36002
+ * the JSPB instance for transitional soy proto support:
36003
+ * http://goto/soy-param-migration
36004
+ * @param {!proto.payment.ManualDepositRequest} msg The msg instance to transform.
36005
+ * @return {!Object}
36006
+ * @suppress {unusedLocalVariables} f is only used for nested messages
36007
+ */
36008
+ proto.payment.ManualDepositRequest.toObject = function(includeInstance, msg) {
36009
+ var f, obj = {
36010
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
36011
+ amountMinor: jspb.Message.getFieldWithDefault(msg, 2, 0),
36012
+ currency: jspb.Message.getFieldWithDefault(msg, 3, ""),
36013
+ wagerMultiplier: jspb.Message.getFieldWithDefault(msg, 4, ""),
36014
+ reason: jspb.Message.getFieldWithDefault(msg, 5, ""),
36015
+ idempotencyId: jspb.Message.getFieldWithDefault(msg, 6, "")
36016
+ };
36017
+
36018
+ if (includeInstance) {
36019
+ obj.$jspbMessageInstance = msg;
36020
+ }
36021
+ return obj;
36022
+ };
36023
+ }
36024
+
36025
+
36026
+ /**
36027
+ * Deserializes binary data (in protobuf wire format).
36028
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
36029
+ * @return {!proto.payment.ManualDepositRequest}
36030
+ */
36031
+ proto.payment.ManualDepositRequest.deserializeBinary = function(bytes) {
36032
+ var reader = new jspb.BinaryReader(bytes);
36033
+ var msg = new proto.payment.ManualDepositRequest;
36034
+ return proto.payment.ManualDepositRequest.deserializeBinaryFromReader(msg, reader);
36035
+ };
36036
+
36037
+
36038
+ /**
36039
+ * Deserializes binary data (in protobuf wire format) from the
36040
+ * given reader into the given message object.
36041
+ * @param {!proto.payment.ManualDepositRequest} msg The message object to deserialize into.
36042
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
36043
+ * @return {!proto.payment.ManualDepositRequest}
36044
+ */
36045
+ proto.payment.ManualDepositRequest.deserializeBinaryFromReader = function(msg, reader) {
36046
+ while (reader.nextField()) {
36047
+ if (reader.isEndGroup()) {
36048
+ break;
36049
+ }
36050
+ var field = reader.getFieldNumber();
36051
+ switch (field) {
36052
+ case 1:
36053
+ var value = /** @type {number} */ (reader.readInt32());
36054
+ msg.setUserId(value);
36055
+ break;
36056
+ case 2:
36057
+ var value = /** @type {number} */ (reader.readInt64());
36058
+ msg.setAmountMinor(value);
36059
+ break;
36060
+ case 3:
36061
+ var value = /** @type {string} */ (reader.readString());
36062
+ msg.setCurrency(value);
36063
+ break;
36064
+ case 4:
36065
+ var value = /** @type {string} */ (reader.readString());
36066
+ msg.setWagerMultiplier(value);
36067
+ break;
36068
+ case 5:
36069
+ var value = /** @type {string} */ (reader.readString());
36070
+ msg.setReason(value);
36071
+ break;
36072
+ case 6:
36073
+ var value = /** @type {string} */ (reader.readString());
36074
+ msg.setIdempotencyId(value);
36075
+ break;
36076
+ default:
36077
+ reader.skipField();
36078
+ break;
36079
+ }
36080
+ }
36081
+ return msg;
36082
+ };
36083
+
36084
+
36085
+ /**
36086
+ * Serializes the message to binary data (in protobuf wire format).
36087
+ * @return {!Uint8Array}
36088
+ */
36089
+ proto.payment.ManualDepositRequest.prototype.serializeBinary = function() {
36090
+ var writer = new jspb.BinaryWriter();
36091
+ proto.payment.ManualDepositRequest.serializeBinaryToWriter(this, writer);
36092
+ return writer.getResultBuffer();
36093
+ };
36094
+
36095
+
36096
+ /**
36097
+ * Serializes the given message to binary data (in protobuf wire
36098
+ * format), writing to the given BinaryWriter.
36099
+ * @param {!proto.payment.ManualDepositRequest} message
36100
+ * @param {!jspb.BinaryWriter} writer
36101
+ * @suppress {unusedLocalVariables} f is only used for nested messages
36102
+ */
36103
+ proto.payment.ManualDepositRequest.serializeBinaryToWriter = function(message, writer) {
36104
+ var f = undefined;
36105
+ f = message.getUserId();
36106
+ if (f !== 0) {
36107
+ writer.writeInt32(
36108
+ 1,
36109
+ f
36110
+ );
36111
+ }
36112
+ f = message.getAmountMinor();
36113
+ if (f !== 0) {
36114
+ writer.writeInt64(
36115
+ 2,
36116
+ f
36117
+ );
36118
+ }
36119
+ f = message.getCurrency();
36120
+ if (f.length > 0) {
36121
+ writer.writeString(
36122
+ 3,
36123
+ f
36124
+ );
36125
+ }
36126
+ f = message.getWagerMultiplier();
36127
+ if (f.length > 0) {
36128
+ writer.writeString(
36129
+ 4,
36130
+ f
36131
+ );
36132
+ }
36133
+ f = message.getReason();
36134
+ if (f.length > 0) {
36135
+ writer.writeString(
36136
+ 5,
36137
+ f
36138
+ );
36139
+ }
36140
+ f = message.getIdempotencyId();
36141
+ if (f.length > 0) {
36142
+ writer.writeString(
36143
+ 6,
36144
+ f
36145
+ );
36146
+ }
36147
+ };
36148
+
36149
+
36150
+ /**
36151
+ * optional int32 user_id = 1;
36152
+ * @return {number}
36153
+ */
36154
+ proto.payment.ManualDepositRequest.prototype.getUserId = function() {
36155
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
36156
+ };
36157
+
36158
+
36159
+ /**
36160
+ * @param {number} value
36161
+ * @return {!proto.payment.ManualDepositRequest} returns this
36162
+ */
36163
+ proto.payment.ManualDepositRequest.prototype.setUserId = function(value) {
36164
+ return jspb.Message.setProto3IntField(this, 1, value);
36165
+ };
36166
+
36167
+
36168
+ /**
36169
+ * optional int64 amount_minor = 2;
36170
+ * @return {number}
36171
+ */
36172
+ proto.payment.ManualDepositRequest.prototype.getAmountMinor = function() {
36173
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
36174
+ };
36175
+
36176
+
36177
+ /**
36178
+ * @param {number} value
36179
+ * @return {!proto.payment.ManualDepositRequest} returns this
36180
+ */
36181
+ proto.payment.ManualDepositRequest.prototype.setAmountMinor = function(value) {
36182
+ return jspb.Message.setProto3IntField(this, 2, value);
36183
+ };
36184
+
36185
+
36186
+ /**
36187
+ * optional string currency = 3;
36188
+ * @return {string}
36189
+ */
36190
+ proto.payment.ManualDepositRequest.prototype.getCurrency = function() {
36191
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
36192
+ };
36193
+
36194
+
36195
+ /**
36196
+ * @param {string} value
36197
+ * @return {!proto.payment.ManualDepositRequest} returns this
36198
+ */
36199
+ proto.payment.ManualDepositRequest.prototype.setCurrency = function(value) {
36200
+ return jspb.Message.setProto3StringField(this, 3, value);
36201
+ };
36202
+
36203
+
36204
+ /**
36205
+ * optional string wager_multiplier = 4;
36206
+ * @return {string}
36207
+ */
36208
+ proto.payment.ManualDepositRequest.prototype.getWagerMultiplier = function() {
36209
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
36210
+ };
36211
+
36212
+
36213
+ /**
36214
+ * @param {string} value
36215
+ * @return {!proto.payment.ManualDepositRequest} returns this
36216
+ */
36217
+ proto.payment.ManualDepositRequest.prototype.setWagerMultiplier = function(value) {
36218
+ return jspb.Message.setProto3StringField(this, 4, value);
36219
+ };
36220
+
36221
+
36222
+ /**
36223
+ * optional string reason = 5;
36224
+ * @return {string}
36225
+ */
36226
+ proto.payment.ManualDepositRequest.prototype.getReason = function() {
36227
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
36228
+ };
36229
+
36230
+
36231
+ /**
36232
+ * @param {string} value
36233
+ * @return {!proto.payment.ManualDepositRequest} returns this
36234
+ */
36235
+ proto.payment.ManualDepositRequest.prototype.setReason = function(value) {
36236
+ return jspb.Message.setProto3StringField(this, 5, value);
36237
+ };
36238
+
36239
+
36240
+ /**
36241
+ * optional string idempotency_id = 6;
36242
+ * @return {string}
36243
+ */
36244
+ proto.payment.ManualDepositRequest.prototype.getIdempotencyId = function() {
36245
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
36246
+ };
36247
+
36248
+
36249
+ /**
36250
+ * @param {string} value
36251
+ * @return {!proto.payment.ManualDepositRequest} returns this
36252
+ */
36253
+ proto.payment.ManualDepositRequest.prototype.setIdempotencyId = function(value) {
36254
+ return jspb.Message.setProto3StringField(this, 6, value);
36255
+ };
36256
+
36257
+
36258
+
36259
+
36260
+
36261
+ if (jspb.Message.GENERATE_TO_OBJECT) {
36262
+ /**
36263
+ * Creates an object representation of this proto.
36264
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
36265
+ * Optional fields that are not set will be set to undefined.
36266
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
36267
+ * For the list of reserved names please see:
36268
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
36269
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
36270
+ * JSPB instance for transitional soy proto support:
36271
+ * http://goto/soy-param-migration
36272
+ * @return {!Object}
36273
+ */
36274
+ proto.payment.CompensationRequest.prototype.toObject = function(opt_includeInstance) {
36275
+ return proto.payment.CompensationRequest.toObject(opt_includeInstance, this);
36276
+ };
36277
+
36278
+
36279
+ /**
36280
+ * Static version of the {@see toObject} method.
36281
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
36282
+ * the JSPB instance for transitional soy proto support:
36283
+ * http://goto/soy-param-migration
36284
+ * @param {!proto.payment.CompensationRequest} msg The msg instance to transform.
36285
+ * @return {!Object}
36286
+ * @suppress {unusedLocalVariables} f is only used for nested messages
36287
+ */
36288
+ proto.payment.CompensationRequest.toObject = function(includeInstance, msg) {
36289
+ var f, obj = {
36290
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
36291
+ amountMinor: jspb.Message.getFieldWithDefault(msg, 2, 0),
36292
+ currency: jspb.Message.getFieldWithDefault(msg, 3, ""),
36293
+ wagerMultiplier: jspb.Message.getFieldWithDefault(msg, 4, ""),
36294
+ reason: jspb.Message.getFieldWithDefault(msg, 5, ""),
36295
+ idempotencyId: jspb.Message.getFieldWithDefault(msg, 6, ""),
36296
+ compensationType: jspb.Message.getFieldWithDefault(msg, 7, ""),
36297
+ transactionCode: jspb.Message.getFieldWithDefault(msg, 8, ""),
36298
+ internalComment: jspb.Message.getFieldWithDefault(msg, 9, "")
36299
+ };
36300
+
36301
+ if (includeInstance) {
36302
+ obj.$jspbMessageInstance = msg;
36303
+ }
36304
+ return obj;
36305
+ };
36306
+ }
36307
+
36308
+
36309
+ /**
36310
+ * Deserializes binary data (in protobuf wire format).
36311
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
36312
+ * @return {!proto.payment.CompensationRequest}
36313
+ */
36314
+ proto.payment.CompensationRequest.deserializeBinary = function(bytes) {
36315
+ var reader = new jspb.BinaryReader(bytes);
36316
+ var msg = new proto.payment.CompensationRequest;
36317
+ return proto.payment.CompensationRequest.deserializeBinaryFromReader(msg, reader);
36318
+ };
36319
+
36320
+
36321
+ /**
36322
+ * Deserializes binary data (in protobuf wire format) from the
36323
+ * given reader into the given message object.
36324
+ * @param {!proto.payment.CompensationRequest} msg The message object to deserialize into.
36325
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
36326
+ * @return {!proto.payment.CompensationRequest}
36327
+ */
36328
+ proto.payment.CompensationRequest.deserializeBinaryFromReader = function(msg, reader) {
36329
+ while (reader.nextField()) {
36330
+ if (reader.isEndGroup()) {
36331
+ break;
36332
+ }
36333
+ var field = reader.getFieldNumber();
36334
+ switch (field) {
36335
+ case 1:
36336
+ var value = /** @type {number} */ (reader.readInt32());
36337
+ msg.setUserId(value);
36338
+ break;
36339
+ case 2:
36340
+ var value = /** @type {number} */ (reader.readInt64());
36341
+ msg.setAmountMinor(value);
36342
+ break;
36343
+ case 3:
36344
+ var value = /** @type {string} */ (reader.readString());
36345
+ msg.setCurrency(value);
36346
+ break;
36347
+ case 4:
36348
+ var value = /** @type {string} */ (reader.readString());
36349
+ msg.setWagerMultiplier(value);
36350
+ break;
36351
+ case 5:
36352
+ var value = /** @type {string} */ (reader.readString());
36353
+ msg.setReason(value);
36354
+ break;
36355
+ case 6:
36356
+ var value = /** @type {string} */ (reader.readString());
36357
+ msg.setIdempotencyId(value);
36358
+ break;
36359
+ case 7:
36360
+ var value = /** @type {string} */ (reader.readString());
36361
+ msg.setCompensationType(value);
36362
+ break;
36363
+ case 8:
36364
+ var value = /** @type {string} */ (reader.readString());
36365
+ msg.setTransactionCode(value);
36366
+ break;
36367
+ case 9:
36368
+ var value = /** @type {string} */ (reader.readString());
36369
+ msg.setInternalComment(value);
36370
+ break;
36371
+ default:
36372
+ reader.skipField();
36373
+ break;
36374
+ }
36375
+ }
36376
+ return msg;
36377
+ };
36378
+
36379
+
36380
+ /**
36381
+ * Serializes the message to binary data (in protobuf wire format).
36382
+ * @return {!Uint8Array}
36383
+ */
36384
+ proto.payment.CompensationRequest.prototype.serializeBinary = function() {
36385
+ var writer = new jspb.BinaryWriter();
36386
+ proto.payment.CompensationRequest.serializeBinaryToWriter(this, writer);
36387
+ return writer.getResultBuffer();
36388
+ };
36389
+
36390
+
36391
+ /**
36392
+ * Serializes the given message to binary data (in protobuf wire
36393
+ * format), writing to the given BinaryWriter.
36394
+ * @param {!proto.payment.CompensationRequest} message
36395
+ * @param {!jspb.BinaryWriter} writer
36396
+ * @suppress {unusedLocalVariables} f is only used for nested messages
36397
+ */
36398
+ proto.payment.CompensationRequest.serializeBinaryToWriter = function(message, writer) {
36399
+ var f = undefined;
36400
+ f = message.getUserId();
36401
+ if (f !== 0) {
36402
+ writer.writeInt32(
36403
+ 1,
36404
+ f
36405
+ );
36406
+ }
36407
+ f = message.getAmountMinor();
36408
+ if (f !== 0) {
36409
+ writer.writeInt64(
36410
+ 2,
36411
+ f
36412
+ );
36413
+ }
36414
+ f = message.getCurrency();
36415
+ if (f.length > 0) {
36416
+ writer.writeString(
36417
+ 3,
36418
+ f
36419
+ );
36420
+ }
36421
+ f = message.getWagerMultiplier();
36422
+ if (f.length > 0) {
36423
+ writer.writeString(
36424
+ 4,
36425
+ f
36426
+ );
36427
+ }
36428
+ f = message.getReason();
36429
+ if (f.length > 0) {
36430
+ writer.writeString(
36431
+ 5,
36432
+ f
36433
+ );
36434
+ }
36435
+ f = message.getIdempotencyId();
36436
+ if (f.length > 0) {
36437
+ writer.writeString(
36438
+ 6,
36439
+ f
36440
+ );
36441
+ }
36442
+ f = message.getCompensationType();
36443
+ if (f.length > 0) {
36444
+ writer.writeString(
36445
+ 7,
36446
+ f
36447
+ );
36448
+ }
36449
+ f = message.getTransactionCode();
36450
+ if (f.length > 0) {
36451
+ writer.writeString(
36452
+ 8,
36453
+ f
36454
+ );
36455
+ }
36456
+ f = message.getInternalComment();
36457
+ if (f.length > 0) {
36458
+ writer.writeString(
36459
+ 9,
36460
+ f
36461
+ );
36462
+ }
36463
+ };
36464
+
36465
+
36466
+ /**
36467
+ * optional int32 user_id = 1;
36468
+ * @return {number}
36469
+ */
36470
+ proto.payment.CompensationRequest.prototype.getUserId = function() {
36471
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
36472
+ };
36473
+
36474
+
36475
+ /**
36476
+ * @param {number} value
36477
+ * @return {!proto.payment.CompensationRequest} returns this
36478
+ */
36479
+ proto.payment.CompensationRequest.prototype.setUserId = function(value) {
36480
+ return jspb.Message.setProto3IntField(this, 1, value);
36481
+ };
36482
+
36483
+
36484
+ /**
36485
+ * optional int64 amount_minor = 2;
36486
+ * @return {number}
36487
+ */
36488
+ proto.payment.CompensationRequest.prototype.getAmountMinor = function() {
36489
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
36490
+ };
36491
+
36492
+
36493
+ /**
36494
+ * @param {number} value
36495
+ * @return {!proto.payment.CompensationRequest} returns this
36496
+ */
36497
+ proto.payment.CompensationRequest.prototype.setAmountMinor = function(value) {
36498
+ return jspb.Message.setProto3IntField(this, 2, value);
36499
+ };
36500
+
36501
+
36502
+ /**
36503
+ * optional string currency = 3;
36504
+ * @return {string}
36505
+ */
36506
+ proto.payment.CompensationRequest.prototype.getCurrency = function() {
36507
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
36508
+ };
36509
+
36510
+
36511
+ /**
36512
+ * @param {string} value
36513
+ * @return {!proto.payment.CompensationRequest} returns this
36514
+ */
36515
+ proto.payment.CompensationRequest.prototype.setCurrency = function(value) {
36516
+ return jspb.Message.setProto3StringField(this, 3, value);
36517
+ };
36518
+
36519
+
36520
+ /**
36521
+ * optional string wager_multiplier = 4;
36522
+ * @return {string}
36523
+ */
36524
+ proto.payment.CompensationRequest.prototype.getWagerMultiplier = function() {
36525
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
36526
+ };
36527
+
36528
+
36529
+ /**
36530
+ * @param {string} value
36531
+ * @return {!proto.payment.CompensationRequest} returns this
36532
+ */
36533
+ proto.payment.CompensationRequest.prototype.setWagerMultiplier = function(value) {
36534
+ return jspb.Message.setProto3StringField(this, 4, value);
36535
+ };
36536
+
36537
+
36538
+ /**
36539
+ * optional string reason = 5;
36540
+ * @return {string}
36541
+ */
36542
+ proto.payment.CompensationRequest.prototype.getReason = function() {
36543
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
36544
+ };
36545
+
36546
+
36547
+ /**
36548
+ * @param {string} value
36549
+ * @return {!proto.payment.CompensationRequest} returns this
36550
+ */
36551
+ proto.payment.CompensationRequest.prototype.setReason = function(value) {
36552
+ return jspb.Message.setProto3StringField(this, 5, value);
36553
+ };
36554
+
36555
+
36556
+ /**
36557
+ * optional string idempotency_id = 6;
36558
+ * @return {string}
36559
+ */
36560
+ proto.payment.CompensationRequest.prototype.getIdempotencyId = function() {
36561
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
36562
+ };
36563
+
36564
+
36565
+ /**
36566
+ * @param {string} value
36567
+ * @return {!proto.payment.CompensationRequest} returns this
36568
+ */
36569
+ proto.payment.CompensationRequest.prototype.setIdempotencyId = function(value) {
36570
+ return jspb.Message.setProto3StringField(this, 6, value);
36571
+ };
36572
+
36573
+
36574
+ /**
36575
+ * optional string compensation_type = 7;
36576
+ * @return {string}
36577
+ */
36578
+ proto.payment.CompensationRequest.prototype.getCompensationType = function() {
36579
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
36580
+ };
36581
+
36582
+
36583
+ /**
36584
+ * @param {string} value
36585
+ * @return {!proto.payment.CompensationRequest} returns this
36586
+ */
36587
+ proto.payment.CompensationRequest.prototype.setCompensationType = function(value) {
36588
+ return jspb.Message.setProto3StringField(this, 7, value);
36589
+ };
36590
+
36591
+
36592
+ /**
36593
+ * optional string transaction_code = 8;
36594
+ * @return {string}
36595
+ */
36596
+ proto.payment.CompensationRequest.prototype.getTransactionCode = function() {
36597
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
36598
+ };
36599
+
36600
+
36601
+ /**
36602
+ * @param {string} value
36603
+ * @return {!proto.payment.CompensationRequest} returns this
36604
+ */
36605
+ proto.payment.CompensationRequest.prototype.setTransactionCode = function(value) {
36606
+ return jspb.Message.setProto3StringField(this, 8, value);
36607
+ };
36608
+
36609
+
36610
+ /**
36611
+ * optional string internal_comment = 9;
36612
+ * @return {string}
36613
+ */
36614
+ proto.payment.CompensationRequest.prototype.getInternalComment = function() {
36615
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
36616
+ };
36617
+
36618
+
36619
+ /**
36620
+ * @param {string} value
36621
+ * @return {!proto.payment.CompensationRequest} returns this
36622
+ */
36623
+ proto.payment.CompensationRequest.prototype.setInternalComment = function(value) {
36624
+ return jspb.Message.setProto3StringField(this, 9, value);
36625
+ };
36626
+
36627
+
36628
+
36629
+
36630
+
36631
+ if (jspb.Message.GENERATE_TO_OBJECT) {
36632
+ /**
36633
+ * Creates an object representation of this proto.
36634
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
36635
+ * Optional fields that are not set will be set to undefined.
36636
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
36637
+ * For the list of reserved names please see:
36638
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
36639
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
36640
+ * JSPB instance for transitional soy proto support:
36641
+ * http://goto/soy-param-migration
36642
+ * @return {!Object}
36643
+ */
36644
+ proto.payment.ConfiscationRequest.prototype.toObject = function(opt_includeInstance) {
36645
+ return proto.payment.ConfiscationRequest.toObject(opt_includeInstance, this);
36646
+ };
36647
+
36648
+
36649
+ /**
36650
+ * Static version of the {@see toObject} method.
36651
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
36652
+ * the JSPB instance for transitional soy proto support:
36653
+ * http://goto/soy-param-migration
36654
+ * @param {!proto.payment.ConfiscationRequest} msg The msg instance to transform.
36655
+ * @return {!Object}
36656
+ * @suppress {unusedLocalVariables} f is only used for nested messages
36657
+ */
36658
+ proto.payment.ConfiscationRequest.toObject = function(includeInstance, msg) {
36659
+ var f, obj = {
36660
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
36661
+ amountMinor: jspb.Message.getFieldWithDefault(msg, 2, 0),
36662
+ currency: jspb.Message.getFieldWithDefault(msg, 3, ""),
36663
+ reason: jspb.Message.getFieldWithDefault(msg, 4, ""),
36664
+ idempotencyId: jspb.Message.getFieldWithDefault(msg, 5, ""),
36665
+ transactionCode: jspb.Message.getFieldWithDefault(msg, 6, ""),
36666
+ internalComment: jspb.Message.getFieldWithDefault(msg, 7, "")
36667
+ };
36668
+
36669
+ if (includeInstance) {
36670
+ obj.$jspbMessageInstance = msg;
36671
+ }
36672
+ return obj;
36673
+ };
36674
+ }
36675
+
36676
+
36677
+ /**
36678
+ * Deserializes binary data (in protobuf wire format).
36679
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
36680
+ * @return {!proto.payment.ConfiscationRequest}
36681
+ */
36682
+ proto.payment.ConfiscationRequest.deserializeBinary = function(bytes) {
36683
+ var reader = new jspb.BinaryReader(bytes);
36684
+ var msg = new proto.payment.ConfiscationRequest;
36685
+ return proto.payment.ConfiscationRequest.deserializeBinaryFromReader(msg, reader);
36686
+ };
36687
+
36688
+
36689
+ /**
36690
+ * Deserializes binary data (in protobuf wire format) from the
36691
+ * given reader into the given message object.
36692
+ * @param {!proto.payment.ConfiscationRequest} msg The message object to deserialize into.
36693
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
36694
+ * @return {!proto.payment.ConfiscationRequest}
36695
+ */
36696
+ proto.payment.ConfiscationRequest.deserializeBinaryFromReader = function(msg, reader) {
36697
+ while (reader.nextField()) {
36698
+ if (reader.isEndGroup()) {
36699
+ break;
36700
+ }
36701
+ var field = reader.getFieldNumber();
36702
+ switch (field) {
36703
+ case 1:
36704
+ var value = /** @type {number} */ (reader.readInt32());
36705
+ msg.setUserId(value);
36706
+ break;
36707
+ case 2:
36708
+ var value = /** @type {number} */ (reader.readInt64());
36709
+ msg.setAmountMinor(value);
36710
+ break;
36711
+ case 3:
36712
+ var value = /** @type {string} */ (reader.readString());
36713
+ msg.setCurrency(value);
36714
+ break;
36715
+ case 4:
36716
+ var value = /** @type {string} */ (reader.readString());
36717
+ msg.setReason(value);
36718
+ break;
36719
+ case 5:
36720
+ var value = /** @type {string} */ (reader.readString());
36721
+ msg.setIdempotencyId(value);
36722
+ break;
36723
+ case 6:
36724
+ var value = /** @type {string} */ (reader.readString());
36725
+ msg.setTransactionCode(value);
36726
+ break;
36727
+ case 7:
36728
+ var value = /** @type {string} */ (reader.readString());
36729
+ msg.setInternalComment(value);
36730
+ break;
36731
+ default:
36732
+ reader.skipField();
36733
+ break;
36734
+ }
36735
+ }
36736
+ return msg;
36737
+ };
36738
+
36739
+
36740
+ /**
36741
+ * Serializes the message to binary data (in protobuf wire format).
36742
+ * @return {!Uint8Array}
36743
+ */
36744
+ proto.payment.ConfiscationRequest.prototype.serializeBinary = function() {
36745
+ var writer = new jspb.BinaryWriter();
36746
+ proto.payment.ConfiscationRequest.serializeBinaryToWriter(this, writer);
36747
+ return writer.getResultBuffer();
36748
+ };
36749
+
36750
+
36751
+ /**
36752
+ * Serializes the given message to binary data (in protobuf wire
36753
+ * format), writing to the given BinaryWriter.
36754
+ * @param {!proto.payment.ConfiscationRequest} message
36755
+ * @param {!jspb.BinaryWriter} writer
36756
+ * @suppress {unusedLocalVariables} f is only used for nested messages
36757
+ */
36758
+ proto.payment.ConfiscationRequest.serializeBinaryToWriter = function(message, writer) {
36759
+ var f = undefined;
36760
+ f = message.getUserId();
36761
+ if (f !== 0) {
36762
+ writer.writeInt32(
36763
+ 1,
36764
+ f
36765
+ );
36766
+ }
36767
+ f = message.getAmountMinor();
36768
+ if (f !== 0) {
36769
+ writer.writeInt64(
36770
+ 2,
36771
+ f
36772
+ );
36773
+ }
36774
+ f = message.getCurrency();
36775
+ if (f.length > 0) {
36776
+ writer.writeString(
36777
+ 3,
36778
+ f
36779
+ );
36780
+ }
36781
+ f = message.getReason();
36782
+ if (f.length > 0) {
36783
+ writer.writeString(
36784
+ 4,
36785
+ f
36786
+ );
36787
+ }
36788
+ f = message.getIdempotencyId();
36789
+ if (f.length > 0) {
36790
+ writer.writeString(
36791
+ 5,
36792
+ f
36793
+ );
36794
+ }
36795
+ f = message.getTransactionCode();
36796
+ if (f.length > 0) {
36797
+ writer.writeString(
36798
+ 6,
36799
+ f
36800
+ );
36801
+ }
36802
+ f = message.getInternalComment();
36803
+ if (f.length > 0) {
36804
+ writer.writeString(
36805
+ 7,
36806
+ f
36807
+ );
36808
+ }
36809
+ };
36810
+
36811
+
36812
+ /**
36813
+ * optional int32 user_id = 1;
36814
+ * @return {number}
36815
+ */
36816
+ proto.payment.ConfiscationRequest.prototype.getUserId = function() {
36817
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
36818
+ };
36819
+
36820
+
36821
+ /**
36822
+ * @param {number} value
36823
+ * @return {!proto.payment.ConfiscationRequest} returns this
36824
+ */
36825
+ proto.payment.ConfiscationRequest.prototype.setUserId = function(value) {
36826
+ return jspb.Message.setProto3IntField(this, 1, value);
36827
+ };
36828
+
36829
+
36830
+ /**
36831
+ * optional int64 amount_minor = 2;
36832
+ * @return {number}
36833
+ */
36834
+ proto.payment.ConfiscationRequest.prototype.getAmountMinor = function() {
36835
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
36836
+ };
36837
+
36838
+
36839
+ /**
36840
+ * @param {number} value
36841
+ * @return {!proto.payment.ConfiscationRequest} returns this
36842
+ */
36843
+ proto.payment.ConfiscationRequest.prototype.setAmountMinor = function(value) {
36844
+ return jspb.Message.setProto3IntField(this, 2, value);
36845
+ };
36846
+
36847
+
36848
+ /**
36849
+ * optional string currency = 3;
36850
+ * @return {string}
36851
+ */
36852
+ proto.payment.ConfiscationRequest.prototype.getCurrency = function() {
36853
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
36854
+ };
36855
+
36856
+
36857
+ /**
36858
+ * @param {string} value
36859
+ * @return {!proto.payment.ConfiscationRequest} returns this
36860
+ */
36861
+ proto.payment.ConfiscationRequest.prototype.setCurrency = function(value) {
36862
+ return jspb.Message.setProto3StringField(this, 3, value);
36863
+ };
36864
+
36865
+
36866
+ /**
36867
+ * optional string reason = 4;
36868
+ * @return {string}
36869
+ */
36870
+ proto.payment.ConfiscationRequest.prototype.getReason = function() {
36871
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
36872
+ };
36873
+
36874
+
36875
+ /**
36876
+ * @param {string} value
36877
+ * @return {!proto.payment.ConfiscationRequest} returns this
36878
+ */
36879
+ proto.payment.ConfiscationRequest.prototype.setReason = function(value) {
36880
+ return jspb.Message.setProto3StringField(this, 4, value);
36881
+ };
36882
+
36883
+
36884
+ /**
36885
+ * optional string idempotency_id = 5;
36886
+ * @return {string}
36887
+ */
36888
+ proto.payment.ConfiscationRequest.prototype.getIdempotencyId = function() {
36889
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
36890
+ };
36891
+
36892
+
36893
+ /**
36894
+ * @param {string} value
36895
+ * @return {!proto.payment.ConfiscationRequest} returns this
36896
+ */
36897
+ proto.payment.ConfiscationRequest.prototype.setIdempotencyId = function(value) {
36898
+ return jspb.Message.setProto3StringField(this, 5, value);
36899
+ };
36900
+
36901
+
36902
+ /**
36903
+ * optional string transaction_code = 6;
36904
+ * @return {string}
36905
+ */
36906
+ proto.payment.ConfiscationRequest.prototype.getTransactionCode = function() {
36907
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
36908
+ };
36909
+
36910
+
36911
+ /**
36912
+ * @param {string} value
36913
+ * @return {!proto.payment.ConfiscationRequest} returns this
36914
+ */
36915
+ proto.payment.ConfiscationRequest.prototype.setTransactionCode = function(value) {
36916
+ return jspb.Message.setProto3StringField(this, 6, value);
36917
+ };
36918
+
36919
+
36920
+ /**
36921
+ * optional string internal_comment = 7;
36922
+ * @return {string}
36923
+ */
36924
+ proto.payment.ConfiscationRequest.prototype.getInternalComment = function() {
36925
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
36926
+ };
36927
+
36928
+
36929
+ /**
36930
+ * @param {string} value
36931
+ * @return {!proto.payment.ConfiscationRequest} returns this
36932
+ */
36933
+ proto.payment.ConfiscationRequest.prototype.setInternalComment = function(value) {
36934
+ return jspb.Message.setProto3StringField(this, 7, value);
36935
+ };
36936
+
36937
+
36938
+
36939
+
36940
+
36941
+ if (jspb.Message.GENERATE_TO_OBJECT) {
36942
+ /**
36943
+ * Creates an object representation of this proto.
36944
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
36945
+ * Optional fields that are not set will be set to undefined.
36946
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
36947
+ * For the list of reserved names please see:
36948
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
36949
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
36950
+ * JSPB instance for transitional soy proto support:
36951
+ * http://goto/soy-param-migration
36952
+ * @return {!Object}
36953
+ */
36954
+ proto.payment.FinancialOperationResponse.prototype.toObject = function(opt_includeInstance) {
36955
+ return proto.payment.FinancialOperationResponse.toObject(opt_includeInstance, this);
36956
+ };
36957
+
36958
+
36959
+ /**
36960
+ * Static version of the {@see toObject} method.
36961
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
36962
+ * the JSPB instance for transitional soy proto support:
36963
+ * http://goto/soy-param-migration
36964
+ * @param {!proto.payment.FinancialOperationResponse} msg The msg instance to transform.
36965
+ * @return {!Object}
36966
+ * @suppress {unusedLocalVariables} f is only used for nested messages
36967
+ */
36968
+ proto.payment.FinancialOperationResponse.toObject = function(includeInstance, msg) {
36969
+ var f, obj = {
36970
+ operationId: jspb.Message.getFieldWithDefault(msg, 1, 0),
36971
+ operationPublicId: jspb.Message.getFieldWithDefault(msg, 2, ""),
36972
+ operationType: jspb.Message.getFieldWithDefault(msg, 3, ""),
36973
+ statusCode: jspb.Message.getFieldWithDefault(msg, 4, ""),
36974
+ userId: jspb.Message.getFieldWithDefault(msg, 5, 0),
36975
+ amountMinor: jspb.Message.getFieldWithDefault(msg, 6, 0),
36976
+ currency: jspb.Message.getFieldWithDefault(msg, 7, ""),
36977
+ currencyScale: jspb.Message.getFieldWithDefault(msg, 8, 0),
36978
+ balanceBeforeMinor: jspb.Message.getFieldWithDefault(msg, 9, 0),
36979
+ balanceAfterMinor: jspb.Message.getFieldWithDefault(msg, 10, 0),
36980
+ reason: jspb.Message.getFieldWithDefault(msg, 11, ""),
36981
+ idempotencyId: jspb.Message.getFieldWithDefault(msg, 12, ""),
36982
+ depositId: jspb.Message.getFieldWithDefault(msg, 13, 0),
36983
+ wagerBucketId: jspb.Message.getFieldWithDefault(msg, 14, ""),
36984
+ wagerMultiplier: jspb.Message.getFieldWithDefault(msg, 15, ""),
36985
+ requiredWagerMinor: jspb.Message.getFieldWithDefault(msg, 16, 0),
36986
+ createdAt: jspb.Message.getFieldWithDefault(msg, 17, ""),
36987
+ completedAt: jspb.Message.getFieldWithDefault(msg, 18, "")
36988
+ };
36989
+
36990
+ if (includeInstance) {
36991
+ obj.$jspbMessageInstance = msg;
36992
+ }
36993
+ return obj;
36994
+ };
36995
+ }
36996
+
36997
+
36998
+ /**
36999
+ * Deserializes binary data (in protobuf wire format).
37000
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
37001
+ * @return {!proto.payment.FinancialOperationResponse}
37002
+ */
37003
+ proto.payment.FinancialOperationResponse.deserializeBinary = function(bytes) {
37004
+ var reader = new jspb.BinaryReader(bytes);
37005
+ var msg = new proto.payment.FinancialOperationResponse;
37006
+ return proto.payment.FinancialOperationResponse.deserializeBinaryFromReader(msg, reader);
37007
+ };
37008
+
37009
+
37010
+ /**
37011
+ * Deserializes binary data (in protobuf wire format) from the
37012
+ * given reader into the given message object.
37013
+ * @param {!proto.payment.FinancialOperationResponse} msg The message object to deserialize into.
37014
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
37015
+ * @return {!proto.payment.FinancialOperationResponse}
37016
+ */
37017
+ proto.payment.FinancialOperationResponse.deserializeBinaryFromReader = function(msg, reader) {
37018
+ while (reader.nextField()) {
37019
+ if (reader.isEndGroup()) {
37020
+ break;
37021
+ }
37022
+ var field = reader.getFieldNumber();
37023
+ switch (field) {
37024
+ case 1:
37025
+ var value = /** @type {number} */ (reader.readInt32());
37026
+ msg.setOperationId(value);
37027
+ break;
37028
+ case 2:
37029
+ var value = /** @type {string} */ (reader.readString());
37030
+ msg.setOperationPublicId(value);
37031
+ break;
37032
+ case 3:
37033
+ var value = /** @type {string} */ (reader.readString());
37034
+ msg.setOperationType(value);
37035
+ break;
37036
+ case 4:
37037
+ var value = /** @type {string} */ (reader.readString());
37038
+ msg.setStatusCode(value);
37039
+ break;
37040
+ case 5:
37041
+ var value = /** @type {number} */ (reader.readInt32());
37042
+ msg.setUserId(value);
37043
+ break;
37044
+ case 6:
37045
+ var value = /** @type {number} */ (reader.readInt64());
37046
+ msg.setAmountMinor(value);
37047
+ break;
37048
+ case 7:
37049
+ var value = /** @type {string} */ (reader.readString());
37050
+ msg.setCurrency(value);
37051
+ break;
37052
+ case 8:
37053
+ var value = /** @type {number} */ (reader.readInt32());
37054
+ msg.setCurrencyScale(value);
37055
+ break;
37056
+ case 9:
37057
+ var value = /** @type {number} */ (reader.readInt64());
37058
+ msg.setBalanceBeforeMinor(value);
37059
+ break;
37060
+ case 10:
37061
+ var value = /** @type {number} */ (reader.readInt64());
37062
+ msg.setBalanceAfterMinor(value);
37063
+ break;
37064
+ case 11:
37065
+ var value = /** @type {string} */ (reader.readString());
37066
+ msg.setReason(value);
37067
+ break;
37068
+ case 12:
37069
+ var value = /** @type {string} */ (reader.readString());
37070
+ msg.setIdempotencyId(value);
37071
+ break;
37072
+ case 13:
37073
+ var value = /** @type {number} */ (reader.readInt32());
37074
+ msg.setDepositId(value);
37075
+ break;
37076
+ case 14:
37077
+ var value = /** @type {string} */ (reader.readString());
37078
+ msg.setWagerBucketId(value);
37079
+ break;
37080
+ case 15:
37081
+ var value = /** @type {string} */ (reader.readString());
37082
+ msg.setWagerMultiplier(value);
37083
+ break;
37084
+ case 16:
37085
+ var value = /** @type {number} */ (reader.readInt64());
37086
+ msg.setRequiredWagerMinor(value);
37087
+ break;
37088
+ case 17:
37089
+ var value = /** @type {string} */ (reader.readString());
37090
+ msg.setCreatedAt(value);
37091
+ break;
37092
+ case 18:
37093
+ var value = /** @type {string} */ (reader.readString());
37094
+ msg.setCompletedAt(value);
37095
+ break;
37096
+ default:
37097
+ reader.skipField();
37098
+ break;
37099
+ }
37100
+ }
37101
+ return msg;
37102
+ };
37103
+
37104
+
37105
+ /**
37106
+ * Serializes the message to binary data (in protobuf wire format).
37107
+ * @return {!Uint8Array}
37108
+ */
37109
+ proto.payment.FinancialOperationResponse.prototype.serializeBinary = function() {
37110
+ var writer = new jspb.BinaryWriter();
37111
+ proto.payment.FinancialOperationResponse.serializeBinaryToWriter(this, writer);
37112
+ return writer.getResultBuffer();
37113
+ };
37114
+
37115
+
37116
+ /**
37117
+ * Serializes the given message to binary data (in protobuf wire
37118
+ * format), writing to the given BinaryWriter.
37119
+ * @param {!proto.payment.FinancialOperationResponse} message
37120
+ * @param {!jspb.BinaryWriter} writer
37121
+ * @suppress {unusedLocalVariables} f is only used for nested messages
37122
+ */
37123
+ proto.payment.FinancialOperationResponse.serializeBinaryToWriter = function(message, writer) {
37124
+ var f = undefined;
37125
+ f = message.getOperationId();
37126
+ if (f !== 0) {
37127
+ writer.writeInt32(
37128
+ 1,
37129
+ f
37130
+ );
37131
+ }
37132
+ f = message.getOperationPublicId();
37133
+ if (f.length > 0) {
37134
+ writer.writeString(
37135
+ 2,
37136
+ f
37137
+ );
37138
+ }
37139
+ f = message.getOperationType();
37140
+ if (f.length > 0) {
37141
+ writer.writeString(
37142
+ 3,
37143
+ f
37144
+ );
37145
+ }
37146
+ f = message.getStatusCode();
37147
+ if (f.length > 0) {
37148
+ writer.writeString(
37149
+ 4,
37150
+ f
37151
+ );
37152
+ }
37153
+ f = message.getUserId();
37154
+ if (f !== 0) {
37155
+ writer.writeInt32(
37156
+ 5,
37157
+ f
37158
+ );
37159
+ }
37160
+ f = message.getAmountMinor();
37161
+ if (f !== 0) {
37162
+ writer.writeInt64(
37163
+ 6,
37164
+ f
37165
+ );
37166
+ }
37167
+ f = message.getCurrency();
37168
+ if (f.length > 0) {
37169
+ writer.writeString(
37170
+ 7,
37171
+ f
37172
+ );
37173
+ }
37174
+ f = message.getCurrencyScale();
37175
+ if (f !== 0) {
37176
+ writer.writeInt32(
37177
+ 8,
37178
+ f
37179
+ );
37180
+ }
37181
+ f = message.getBalanceBeforeMinor();
37182
+ if (f !== 0) {
37183
+ writer.writeInt64(
37184
+ 9,
37185
+ f
37186
+ );
37187
+ }
37188
+ f = message.getBalanceAfterMinor();
37189
+ if (f !== 0) {
37190
+ writer.writeInt64(
37191
+ 10,
37192
+ f
37193
+ );
37194
+ }
37195
+ f = message.getReason();
37196
+ if (f.length > 0) {
37197
+ writer.writeString(
37198
+ 11,
37199
+ f
37200
+ );
37201
+ }
37202
+ f = message.getIdempotencyId();
37203
+ if (f.length > 0) {
37204
+ writer.writeString(
37205
+ 12,
37206
+ f
37207
+ );
37208
+ }
37209
+ f = /** @type {number} */ (jspb.Message.getField(message, 13));
37210
+ if (f != null) {
37211
+ writer.writeInt32(
37212
+ 13,
37213
+ f
37214
+ );
37215
+ }
37216
+ f = /** @type {string} */ (jspb.Message.getField(message, 14));
37217
+ if (f != null) {
37218
+ writer.writeString(
37219
+ 14,
37220
+ f
37221
+ );
37222
+ }
37223
+ f = /** @type {string} */ (jspb.Message.getField(message, 15));
37224
+ if (f != null) {
37225
+ writer.writeString(
37226
+ 15,
37227
+ f
37228
+ );
37229
+ }
37230
+ f = /** @type {number} */ (jspb.Message.getField(message, 16));
37231
+ if (f != null) {
37232
+ writer.writeInt64(
37233
+ 16,
37234
+ f
37235
+ );
37236
+ }
37237
+ f = /** @type {string} */ (jspb.Message.getField(message, 17));
37238
+ if (f != null) {
37239
+ writer.writeString(
37240
+ 17,
37241
+ f
37242
+ );
37243
+ }
37244
+ f = /** @type {string} */ (jspb.Message.getField(message, 18));
37245
+ if (f != null) {
37246
+ writer.writeString(
37247
+ 18,
37248
+ f
37249
+ );
37250
+ }
37251
+ };
37252
+
37253
+
37254
+ /**
37255
+ * optional int32 operation_id = 1;
37256
+ * @return {number}
37257
+ */
37258
+ proto.payment.FinancialOperationResponse.prototype.getOperationId = function() {
37259
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
37260
+ };
37261
+
37262
+
37263
+ /**
37264
+ * @param {number} value
37265
+ * @return {!proto.payment.FinancialOperationResponse} returns this
37266
+ */
37267
+ proto.payment.FinancialOperationResponse.prototype.setOperationId = function(value) {
37268
+ return jspb.Message.setProto3IntField(this, 1, value);
37269
+ };
37270
+
37271
+
37272
+ /**
37273
+ * optional string operation_public_id = 2;
37274
+ * @return {string}
37275
+ */
37276
+ proto.payment.FinancialOperationResponse.prototype.getOperationPublicId = function() {
37277
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
37278
+ };
37279
+
37280
+
37281
+ /**
37282
+ * @param {string} value
37283
+ * @return {!proto.payment.FinancialOperationResponse} returns this
37284
+ */
37285
+ proto.payment.FinancialOperationResponse.prototype.setOperationPublicId = function(value) {
37286
+ return jspb.Message.setProto3StringField(this, 2, value);
37287
+ };
37288
+
37289
+
37290
+ /**
37291
+ * optional string operation_type = 3;
37292
+ * @return {string}
37293
+ */
37294
+ proto.payment.FinancialOperationResponse.prototype.getOperationType = function() {
37295
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
37296
+ };
37297
+
37298
+
37299
+ /**
37300
+ * @param {string} value
37301
+ * @return {!proto.payment.FinancialOperationResponse} returns this
37302
+ */
37303
+ proto.payment.FinancialOperationResponse.prototype.setOperationType = function(value) {
37304
+ return jspb.Message.setProto3StringField(this, 3, value);
37305
+ };
37306
+
37307
+
37308
+ /**
37309
+ * optional string status_code = 4;
37310
+ * @return {string}
37311
+ */
37312
+ proto.payment.FinancialOperationResponse.prototype.getStatusCode = function() {
37313
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
37314
+ };
37315
+
37316
+
37317
+ /**
37318
+ * @param {string} value
37319
+ * @return {!proto.payment.FinancialOperationResponse} returns this
37320
+ */
37321
+ proto.payment.FinancialOperationResponse.prototype.setStatusCode = function(value) {
37322
+ return jspb.Message.setProto3StringField(this, 4, value);
37323
+ };
37324
+
37325
+
37326
+ /**
37327
+ * optional int32 user_id = 5;
37328
+ * @return {number}
37329
+ */
37330
+ proto.payment.FinancialOperationResponse.prototype.getUserId = function() {
37331
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
37332
+ };
37333
+
37334
+
37335
+ /**
37336
+ * @param {number} value
37337
+ * @return {!proto.payment.FinancialOperationResponse} returns this
37338
+ */
37339
+ proto.payment.FinancialOperationResponse.prototype.setUserId = function(value) {
37340
+ return jspb.Message.setProto3IntField(this, 5, value);
37341
+ };
37342
+
37343
+
37344
+ /**
37345
+ * optional int64 amount_minor = 6;
37346
+ * @return {number}
37347
+ */
37348
+ proto.payment.FinancialOperationResponse.prototype.getAmountMinor = function() {
37349
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
37350
+ };
37351
+
37352
+
37353
+ /**
37354
+ * @param {number} value
37355
+ * @return {!proto.payment.FinancialOperationResponse} returns this
37356
+ */
37357
+ proto.payment.FinancialOperationResponse.prototype.setAmountMinor = function(value) {
37358
+ return jspb.Message.setProto3IntField(this, 6, value);
37359
+ };
37360
+
37361
+
37362
+ /**
37363
+ * optional string currency = 7;
37364
+ * @return {string}
37365
+ */
37366
+ proto.payment.FinancialOperationResponse.prototype.getCurrency = function() {
37367
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
37368
+ };
37369
+
37370
+
37371
+ /**
37372
+ * @param {string} value
37373
+ * @return {!proto.payment.FinancialOperationResponse} returns this
37374
+ */
37375
+ proto.payment.FinancialOperationResponse.prototype.setCurrency = function(value) {
37376
+ return jspb.Message.setProto3StringField(this, 7, value);
37377
+ };
37378
+
37379
+
37380
+ /**
37381
+ * optional int32 currency_scale = 8;
37382
+ * @return {number}
37383
+ */
37384
+ proto.payment.FinancialOperationResponse.prototype.getCurrencyScale = function() {
37385
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
37386
+ };
37387
+
37388
+
37389
+ /**
37390
+ * @param {number} value
37391
+ * @return {!proto.payment.FinancialOperationResponse} returns this
37392
+ */
37393
+ proto.payment.FinancialOperationResponse.prototype.setCurrencyScale = function(value) {
37394
+ return jspb.Message.setProto3IntField(this, 8, value);
37395
+ };
37396
+
37397
+
37398
+ /**
37399
+ * optional int64 balance_before_minor = 9;
37400
+ * @return {number}
37401
+ */
37402
+ proto.payment.FinancialOperationResponse.prototype.getBalanceBeforeMinor = function() {
37403
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
37404
+ };
37405
+
37406
+
37407
+ /**
37408
+ * @param {number} value
37409
+ * @return {!proto.payment.FinancialOperationResponse} returns this
37410
+ */
37411
+ proto.payment.FinancialOperationResponse.prototype.setBalanceBeforeMinor = function(value) {
37412
+ return jspb.Message.setProto3IntField(this, 9, value);
37413
+ };
37414
+
37415
+
37416
+ /**
37417
+ * optional int64 balance_after_minor = 10;
37418
+ * @return {number}
37419
+ */
37420
+ proto.payment.FinancialOperationResponse.prototype.getBalanceAfterMinor = function() {
37421
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
37422
+ };
37423
+
37424
+
37425
+ /**
37426
+ * @param {number} value
37427
+ * @return {!proto.payment.FinancialOperationResponse} returns this
37428
+ */
37429
+ proto.payment.FinancialOperationResponse.prototype.setBalanceAfterMinor = function(value) {
37430
+ return jspb.Message.setProto3IntField(this, 10, value);
37431
+ };
37432
+
37433
+
37434
+ /**
37435
+ * optional string reason = 11;
37436
+ * @return {string}
37437
+ */
37438
+ proto.payment.FinancialOperationResponse.prototype.getReason = function() {
37439
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
37440
+ };
37441
+
37442
+
37443
+ /**
37444
+ * @param {string} value
37445
+ * @return {!proto.payment.FinancialOperationResponse} returns this
37446
+ */
37447
+ proto.payment.FinancialOperationResponse.prototype.setReason = function(value) {
37448
+ return jspb.Message.setProto3StringField(this, 11, value);
37449
+ };
37450
+
37451
+
37452
+ /**
37453
+ * optional string idempotency_id = 12;
37454
+ * @return {string}
37455
+ */
37456
+ proto.payment.FinancialOperationResponse.prototype.getIdempotencyId = function() {
37457
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
37458
+ };
37459
+
37460
+
37461
+ /**
37462
+ * @param {string} value
37463
+ * @return {!proto.payment.FinancialOperationResponse} returns this
37464
+ */
37465
+ proto.payment.FinancialOperationResponse.prototype.setIdempotencyId = function(value) {
37466
+ return jspb.Message.setProto3StringField(this, 12, value);
37467
+ };
37468
+
37469
+
37470
+ /**
37471
+ * optional int32 deposit_id = 13;
37472
+ * @return {number}
37473
+ */
37474
+ proto.payment.FinancialOperationResponse.prototype.getDepositId = function() {
37475
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
37476
+ };
37477
+
37478
+
37479
+ /**
37480
+ * @param {number} value
37481
+ * @return {!proto.payment.FinancialOperationResponse} returns this
37482
+ */
37483
+ proto.payment.FinancialOperationResponse.prototype.setDepositId = function(value) {
37484
+ return jspb.Message.setField(this, 13, value);
37485
+ };
37486
+
37487
+
37488
+ /**
37489
+ * Clears the field making it undefined.
37490
+ * @return {!proto.payment.FinancialOperationResponse} returns this
37491
+ */
37492
+ proto.payment.FinancialOperationResponse.prototype.clearDepositId = function() {
37493
+ return jspb.Message.setField(this, 13, undefined);
37494
+ };
37495
+
37496
+
37497
+ /**
37498
+ * Returns whether this field is set.
37499
+ * @return {boolean}
37500
+ */
37501
+ proto.payment.FinancialOperationResponse.prototype.hasDepositId = function() {
37502
+ return jspb.Message.getField(this, 13) != null;
37503
+ };
37504
+
37505
+
37506
+ /**
37507
+ * optional string wager_bucket_id = 14;
37508
+ * @return {string}
37509
+ */
37510
+ proto.payment.FinancialOperationResponse.prototype.getWagerBucketId = function() {
37511
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
37512
+ };
37513
+
37514
+
37515
+ /**
37516
+ * @param {string} value
37517
+ * @return {!proto.payment.FinancialOperationResponse} returns this
37518
+ */
37519
+ proto.payment.FinancialOperationResponse.prototype.setWagerBucketId = function(value) {
37520
+ return jspb.Message.setField(this, 14, value);
37521
+ };
37522
+
37523
+
37524
+ /**
37525
+ * Clears the field making it undefined.
37526
+ * @return {!proto.payment.FinancialOperationResponse} returns this
37527
+ */
37528
+ proto.payment.FinancialOperationResponse.prototype.clearWagerBucketId = function() {
37529
+ return jspb.Message.setField(this, 14, undefined);
37530
+ };
37531
+
37532
+
37533
+ /**
37534
+ * Returns whether this field is set.
37535
+ * @return {boolean}
37536
+ */
37537
+ proto.payment.FinancialOperationResponse.prototype.hasWagerBucketId = function() {
37538
+ return jspb.Message.getField(this, 14) != null;
37539
+ };
37540
+
37541
+
37542
+ /**
37543
+ * optional string wager_multiplier = 15;
37544
+ * @return {string}
37545
+ */
37546
+ proto.payment.FinancialOperationResponse.prototype.getWagerMultiplier = function() {
37547
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
37548
+ };
37549
+
37550
+
37551
+ /**
37552
+ * @param {string} value
37553
+ * @return {!proto.payment.FinancialOperationResponse} returns this
37554
+ */
37555
+ proto.payment.FinancialOperationResponse.prototype.setWagerMultiplier = function(value) {
37556
+ return jspb.Message.setField(this, 15, value);
37557
+ };
37558
+
37559
+
37560
+ /**
37561
+ * Clears the field making it undefined.
37562
+ * @return {!proto.payment.FinancialOperationResponse} returns this
37563
+ */
37564
+ proto.payment.FinancialOperationResponse.prototype.clearWagerMultiplier = function() {
37565
+ return jspb.Message.setField(this, 15, undefined);
37566
+ };
37567
+
37568
+
37569
+ /**
37570
+ * Returns whether this field is set.
37571
+ * @return {boolean}
37572
+ */
37573
+ proto.payment.FinancialOperationResponse.prototype.hasWagerMultiplier = function() {
37574
+ return jspb.Message.getField(this, 15) != null;
37575
+ };
37576
+
37577
+
37578
+ /**
37579
+ * optional int64 required_wager_minor = 16;
37580
+ * @return {number}
37581
+ */
37582
+ proto.payment.FinancialOperationResponse.prototype.getRequiredWagerMinor = function() {
37583
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0));
37584
+ };
37585
+
37586
+
37587
+ /**
37588
+ * @param {number} value
37589
+ * @return {!proto.payment.FinancialOperationResponse} returns this
37590
+ */
37591
+ proto.payment.FinancialOperationResponse.prototype.setRequiredWagerMinor = function(value) {
37592
+ return jspb.Message.setField(this, 16, value);
37593
+ };
37594
+
37595
+
37596
+ /**
37597
+ * Clears the field making it undefined.
37598
+ * @return {!proto.payment.FinancialOperationResponse} returns this
37599
+ */
37600
+ proto.payment.FinancialOperationResponse.prototype.clearRequiredWagerMinor = function() {
37601
+ return jspb.Message.setField(this, 16, undefined);
37602
+ };
37603
+
37604
+
37605
+ /**
37606
+ * Returns whether this field is set.
37607
+ * @return {boolean}
37608
+ */
37609
+ proto.payment.FinancialOperationResponse.prototype.hasRequiredWagerMinor = function() {
37610
+ return jspb.Message.getField(this, 16) != null;
37611
+ };
37612
+
37613
+
37614
+ /**
37615
+ * optional string created_at = 17;
37616
+ * @return {string}
37617
+ */
37618
+ proto.payment.FinancialOperationResponse.prototype.getCreatedAt = function() {
37619
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
37620
+ };
37621
+
37622
+
37623
+ /**
37624
+ * @param {string} value
37625
+ * @return {!proto.payment.FinancialOperationResponse} returns this
37626
+ */
37627
+ proto.payment.FinancialOperationResponse.prototype.setCreatedAt = function(value) {
37628
+ return jspb.Message.setField(this, 17, value);
37629
+ };
37630
+
37631
+
37632
+ /**
37633
+ * Clears the field making it undefined.
37634
+ * @return {!proto.payment.FinancialOperationResponse} returns this
37635
+ */
37636
+ proto.payment.FinancialOperationResponse.prototype.clearCreatedAt = function() {
37637
+ return jspb.Message.setField(this, 17, undefined);
37638
+ };
37639
+
37640
+
37641
+ /**
37642
+ * Returns whether this field is set.
37643
+ * @return {boolean}
37644
+ */
37645
+ proto.payment.FinancialOperationResponse.prototype.hasCreatedAt = function() {
37646
+ return jspb.Message.getField(this, 17) != null;
37647
+ };
37648
+
37649
+
37650
+ /**
37651
+ * optional string completed_at = 18;
37652
+ * @return {string}
37653
+ */
37654
+ proto.payment.FinancialOperationResponse.prototype.getCompletedAt = function() {
37655
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
37656
+ };
37657
+
37658
+
37659
+ /**
37660
+ * @param {string} value
37661
+ * @return {!proto.payment.FinancialOperationResponse} returns this
37662
+ */
37663
+ proto.payment.FinancialOperationResponse.prototype.setCompletedAt = function(value) {
37664
+ return jspb.Message.setField(this, 18, value);
37665
+ };
37666
+
37667
+
37668
+ /**
37669
+ * Clears the field making it undefined.
37670
+ * @return {!proto.payment.FinancialOperationResponse} returns this
37671
+ */
37672
+ proto.payment.FinancialOperationResponse.prototype.clearCompletedAt = function() {
37673
+ return jspb.Message.setField(this, 18, undefined);
37674
+ };
37675
+
37676
+
37677
+ /**
37678
+ * Returns whether this field is set.
37679
+ * @return {boolean}
37680
+ */
37681
+ proto.payment.FinancialOperationResponse.prototype.hasCompletedAt = function() {
37682
+ return jspb.Message.getField(this, 18) != null;
37683
+ };
37684
+
37685
+
35890
37686
  goog.object.extend(exports, proto.payment);