protobuf-platform 1.2.599 → 1.2.602

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.599",
3
+ "version": "1.2.602",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -57,6 +57,7 @@ service Payment {
57
57
  rpc getWithdrawalWagerBucketHistory(GetWithdrawalWagerBucketHistoryRequest) returns (GetWithdrawalWagerBucketHistoryResponse);
58
58
  rpc getUserKycFinancialSnapshot(GetUserKycFinancialSnapshotRequest) returns (GetUserKycFinancialSnapshotResponse);
59
59
  rpc getUserCashbackPaymentOperands(GetUserCashbackPaymentOperandsRequest) returns (GetUserCashbackPaymentOperandsResponse);
60
+ rpc getUserFinancialSummary(GetUserFinancialSummaryRequest) returns (GetUserFinancialSummaryResponse);
60
61
  //Segmentation
61
62
  rpc getSegmentedUsers(SegmentedUserRequest) returns (SegmentedUserResponse);
62
63
  //Currency source-of-truth
@@ -899,6 +900,24 @@ message GetUserCashbackPaymentOperandsResponse {
899
900
  optional int32 completed_deposits_count = 6;
900
901
  optional int32 completed_withdrawals_count = 7;
901
902
  }
903
+ message GetUserFinancialSummaryRequest {
904
+ int32 user_id = 1;
905
+ }
906
+ message GetUserFinancialSummaryResponse {
907
+ int32 user_id = 1;
908
+ string currency = 2;
909
+ int32 currency_scale = 3;
910
+
911
+ int64 real_balance_minor = 4;
912
+ int64 bonus_balance_minor = 5;
913
+ int64 withdrawal_hold_minor = 6;
914
+
915
+ int64 total_deposits_minor = 7;
916
+ int64 total_withdrawals_minor = 8;
917
+
918
+ int64 profitability_result_minor = 9;
919
+ string profitability_status = 10;
920
+ }
902
921
  //Segmentation
903
922
  message SegmentedUserRequest {
904
923
  optional float deposit_amount_min = 1;
@@ -444,6 +444,28 @@ function deserialize_payment_GetUserDepositCountRequest(buffer_arg) {
444
444
  return payment_pb.GetUserDepositCountRequest.deserializeBinary(new Uint8Array(buffer_arg));
445
445
  }
446
446
 
447
+ function serialize_payment_GetUserFinancialSummaryRequest(arg) {
448
+ if (!(arg instanceof payment_pb.GetUserFinancialSummaryRequest)) {
449
+ throw new Error('Expected argument of type payment.GetUserFinancialSummaryRequest');
450
+ }
451
+ return Buffer.from(arg.serializeBinary());
452
+ }
453
+
454
+ function deserialize_payment_GetUserFinancialSummaryRequest(buffer_arg) {
455
+ return payment_pb.GetUserFinancialSummaryRequest.deserializeBinary(new Uint8Array(buffer_arg));
456
+ }
457
+
458
+ function serialize_payment_GetUserFinancialSummaryResponse(arg) {
459
+ if (!(arg instanceof payment_pb.GetUserFinancialSummaryResponse)) {
460
+ throw new Error('Expected argument of type payment.GetUserFinancialSummaryResponse');
461
+ }
462
+ return Buffer.from(arg.serializeBinary());
463
+ }
464
+
465
+ function deserialize_payment_GetUserFinancialSummaryResponse(buffer_arg) {
466
+ return payment_pb.GetUserFinancialSummaryResponse.deserializeBinary(new Uint8Array(buffer_arg));
467
+ }
468
+
447
469
  function serialize_payment_GetUserKycFinancialSnapshotRequest(arg) {
448
470
  if (!(arg instanceof payment_pb.GetUserKycFinancialSnapshotRequest)) {
449
471
  throw new Error('Expected argument of type payment.GetUserKycFinancialSnapshotRequest');
@@ -1433,6 +1455,17 @@ userPaymentsInfo: {
1433
1455
  responseSerialize: serialize_payment_GetUserCashbackPaymentOperandsResponse,
1434
1456
  responseDeserialize: deserialize_payment_GetUserCashbackPaymentOperandsResponse,
1435
1457
  },
1458
+ getUserFinancialSummary: {
1459
+ path: '/payment.Payment/getUserFinancialSummary',
1460
+ requestStream: false,
1461
+ responseStream: false,
1462
+ requestType: payment_pb.GetUserFinancialSummaryRequest,
1463
+ responseType: payment_pb.GetUserFinancialSummaryResponse,
1464
+ requestSerialize: serialize_payment_GetUserFinancialSummaryRequest,
1465
+ requestDeserialize: deserialize_payment_GetUserFinancialSummaryRequest,
1466
+ responseSerialize: serialize_payment_GetUserFinancialSummaryResponse,
1467
+ responseDeserialize: deserialize_payment_GetUserFinancialSummaryResponse,
1468
+ },
1436
1469
  // Segmentation
1437
1470
  getSegmentedUsers: {
1438
1471
  path: '/payment.Payment/getSegmentedUsers',
@@ -73,6 +73,8 @@ goog.exportSymbol('proto.payment.GetProviderTranslationRequest', null, global);
73
73
  goog.exportSymbol('proto.payment.GetUserCashbackPaymentOperandsRequest', null, global);
74
74
  goog.exportSymbol('proto.payment.GetUserCashbackPaymentOperandsResponse', null, global);
75
75
  goog.exportSymbol('proto.payment.GetUserDepositCountRequest', null, global);
76
+ goog.exportSymbol('proto.payment.GetUserFinancialSummaryRequest', null, global);
77
+ goog.exportSymbol('proto.payment.GetUserFinancialSummaryResponse', null, global);
76
78
  goog.exportSymbol('proto.payment.GetUserKycFinancialSnapshotRequest', null, global);
77
79
  goog.exportSymbol('proto.payment.GetUserKycFinancialSnapshotResponse', null, global);
78
80
  goog.exportSymbol('proto.payment.GetUserPaymentsInfoRequest', null, global);
@@ -1921,6 +1923,48 @@ if (goog.DEBUG && !COMPILED) {
1921
1923
  */
1922
1924
  proto.payment.GetUserCashbackPaymentOperandsResponse.displayName = 'proto.payment.GetUserCashbackPaymentOperandsResponse';
1923
1925
  }
1926
+ /**
1927
+ * Generated by JsPbCodeGenerator.
1928
+ * @param {Array=} opt_data Optional initial data array, typically from a
1929
+ * server response, or constructed directly in Javascript. The array is used
1930
+ * in place and becomes part of the constructed object. It is not cloned.
1931
+ * If no data is provided, the constructed object will be empty, but still
1932
+ * valid.
1933
+ * @extends {jspb.Message}
1934
+ * @constructor
1935
+ */
1936
+ proto.payment.GetUserFinancialSummaryRequest = function(opt_data) {
1937
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1938
+ };
1939
+ goog.inherits(proto.payment.GetUserFinancialSummaryRequest, jspb.Message);
1940
+ if (goog.DEBUG && !COMPILED) {
1941
+ /**
1942
+ * @public
1943
+ * @override
1944
+ */
1945
+ proto.payment.GetUserFinancialSummaryRequest.displayName = 'proto.payment.GetUserFinancialSummaryRequest';
1946
+ }
1947
+ /**
1948
+ * Generated by JsPbCodeGenerator.
1949
+ * @param {Array=} opt_data Optional initial data array, typically from a
1950
+ * server response, or constructed directly in Javascript. The array is used
1951
+ * in place and becomes part of the constructed object. It is not cloned.
1952
+ * If no data is provided, the constructed object will be empty, but still
1953
+ * valid.
1954
+ * @extends {jspb.Message}
1955
+ * @constructor
1956
+ */
1957
+ proto.payment.GetUserFinancialSummaryResponse = function(opt_data) {
1958
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1959
+ };
1960
+ goog.inherits(proto.payment.GetUserFinancialSummaryResponse, jspb.Message);
1961
+ if (goog.DEBUG && !COMPILED) {
1962
+ /**
1963
+ * @public
1964
+ * @override
1965
+ */
1966
+ proto.payment.GetUserFinancialSummaryResponse.displayName = 'proto.payment.GetUserFinancialSummaryResponse';
1967
+ }
1924
1968
  /**
1925
1969
  * Generated by JsPbCodeGenerator.
1926
1970
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -38868,6 +38912,536 @@ proto.payment.GetUserCashbackPaymentOperandsResponse.prototype.hasCompletedWithd
38868
38912
 
38869
38913
 
38870
38914
 
38915
+
38916
+
38917
+ if (jspb.Message.GENERATE_TO_OBJECT) {
38918
+ /**
38919
+ * Creates an object representation of this proto.
38920
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
38921
+ * Optional fields that are not set will be set to undefined.
38922
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
38923
+ * For the list of reserved names please see:
38924
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
38925
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
38926
+ * JSPB instance for transitional soy proto support:
38927
+ * http://goto/soy-param-migration
38928
+ * @return {!Object}
38929
+ */
38930
+ proto.payment.GetUserFinancialSummaryRequest.prototype.toObject = function(opt_includeInstance) {
38931
+ return proto.payment.GetUserFinancialSummaryRequest.toObject(opt_includeInstance, this);
38932
+ };
38933
+
38934
+
38935
+ /**
38936
+ * Static version of the {@see toObject} method.
38937
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
38938
+ * the JSPB instance for transitional soy proto support:
38939
+ * http://goto/soy-param-migration
38940
+ * @param {!proto.payment.GetUserFinancialSummaryRequest} msg The msg instance to transform.
38941
+ * @return {!Object}
38942
+ * @suppress {unusedLocalVariables} f is only used for nested messages
38943
+ */
38944
+ proto.payment.GetUserFinancialSummaryRequest.toObject = function(includeInstance, msg) {
38945
+ var f, obj = {
38946
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0)
38947
+ };
38948
+
38949
+ if (includeInstance) {
38950
+ obj.$jspbMessageInstance = msg;
38951
+ }
38952
+ return obj;
38953
+ };
38954
+ }
38955
+
38956
+
38957
+ /**
38958
+ * Deserializes binary data (in protobuf wire format).
38959
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
38960
+ * @return {!proto.payment.GetUserFinancialSummaryRequest}
38961
+ */
38962
+ proto.payment.GetUserFinancialSummaryRequest.deserializeBinary = function(bytes) {
38963
+ var reader = new jspb.BinaryReader(bytes);
38964
+ var msg = new proto.payment.GetUserFinancialSummaryRequest;
38965
+ return proto.payment.GetUserFinancialSummaryRequest.deserializeBinaryFromReader(msg, reader);
38966
+ };
38967
+
38968
+
38969
+ /**
38970
+ * Deserializes binary data (in protobuf wire format) from the
38971
+ * given reader into the given message object.
38972
+ * @param {!proto.payment.GetUserFinancialSummaryRequest} msg The message object to deserialize into.
38973
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
38974
+ * @return {!proto.payment.GetUserFinancialSummaryRequest}
38975
+ */
38976
+ proto.payment.GetUserFinancialSummaryRequest.deserializeBinaryFromReader = function(msg, reader) {
38977
+ while (reader.nextField()) {
38978
+ if (reader.isEndGroup()) {
38979
+ break;
38980
+ }
38981
+ var field = reader.getFieldNumber();
38982
+ switch (field) {
38983
+ case 1:
38984
+ var value = /** @type {number} */ (reader.readInt32());
38985
+ msg.setUserId(value);
38986
+ break;
38987
+ default:
38988
+ reader.skipField();
38989
+ break;
38990
+ }
38991
+ }
38992
+ return msg;
38993
+ };
38994
+
38995
+
38996
+ /**
38997
+ * Serializes the message to binary data (in protobuf wire format).
38998
+ * @return {!Uint8Array}
38999
+ */
39000
+ proto.payment.GetUserFinancialSummaryRequest.prototype.serializeBinary = function() {
39001
+ var writer = new jspb.BinaryWriter();
39002
+ proto.payment.GetUserFinancialSummaryRequest.serializeBinaryToWriter(this, writer);
39003
+ return writer.getResultBuffer();
39004
+ };
39005
+
39006
+
39007
+ /**
39008
+ * Serializes the given message to binary data (in protobuf wire
39009
+ * format), writing to the given BinaryWriter.
39010
+ * @param {!proto.payment.GetUserFinancialSummaryRequest} message
39011
+ * @param {!jspb.BinaryWriter} writer
39012
+ * @suppress {unusedLocalVariables} f is only used for nested messages
39013
+ */
39014
+ proto.payment.GetUserFinancialSummaryRequest.serializeBinaryToWriter = function(message, writer) {
39015
+ var f = undefined;
39016
+ f = message.getUserId();
39017
+ if (f !== 0) {
39018
+ writer.writeInt32(
39019
+ 1,
39020
+ f
39021
+ );
39022
+ }
39023
+ };
39024
+
39025
+
39026
+ /**
39027
+ * optional int32 user_id = 1;
39028
+ * @return {number}
39029
+ */
39030
+ proto.payment.GetUserFinancialSummaryRequest.prototype.getUserId = function() {
39031
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
39032
+ };
39033
+
39034
+
39035
+ /**
39036
+ * @param {number} value
39037
+ * @return {!proto.payment.GetUserFinancialSummaryRequest} returns this
39038
+ */
39039
+ proto.payment.GetUserFinancialSummaryRequest.prototype.setUserId = function(value) {
39040
+ return jspb.Message.setProto3IntField(this, 1, value);
39041
+ };
39042
+
39043
+
39044
+
39045
+
39046
+
39047
+ if (jspb.Message.GENERATE_TO_OBJECT) {
39048
+ /**
39049
+ * Creates an object representation of this proto.
39050
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
39051
+ * Optional fields that are not set will be set to undefined.
39052
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
39053
+ * For the list of reserved names please see:
39054
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
39055
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
39056
+ * JSPB instance for transitional soy proto support:
39057
+ * http://goto/soy-param-migration
39058
+ * @return {!Object}
39059
+ */
39060
+ proto.payment.GetUserFinancialSummaryResponse.prototype.toObject = function(opt_includeInstance) {
39061
+ return proto.payment.GetUserFinancialSummaryResponse.toObject(opt_includeInstance, this);
39062
+ };
39063
+
39064
+
39065
+ /**
39066
+ * Static version of the {@see toObject} method.
39067
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
39068
+ * the JSPB instance for transitional soy proto support:
39069
+ * http://goto/soy-param-migration
39070
+ * @param {!proto.payment.GetUserFinancialSummaryResponse} msg The msg instance to transform.
39071
+ * @return {!Object}
39072
+ * @suppress {unusedLocalVariables} f is only used for nested messages
39073
+ */
39074
+ proto.payment.GetUserFinancialSummaryResponse.toObject = function(includeInstance, msg) {
39075
+ var f, obj = {
39076
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
39077
+ currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
39078
+ currencyScale: jspb.Message.getFieldWithDefault(msg, 3, 0),
39079
+ realBalanceMinor: jspb.Message.getFieldWithDefault(msg, 4, 0),
39080
+ bonusBalanceMinor: jspb.Message.getFieldWithDefault(msg, 5, 0),
39081
+ withdrawalHoldMinor: jspb.Message.getFieldWithDefault(msg, 6, 0),
39082
+ totalDepositsMinor: jspb.Message.getFieldWithDefault(msg, 7, 0),
39083
+ totalWithdrawalsMinor: jspb.Message.getFieldWithDefault(msg, 8, 0),
39084
+ profitabilityResultMinor: jspb.Message.getFieldWithDefault(msg, 9, 0),
39085
+ profitabilityStatus: jspb.Message.getFieldWithDefault(msg, 10, "")
39086
+ };
39087
+
39088
+ if (includeInstance) {
39089
+ obj.$jspbMessageInstance = msg;
39090
+ }
39091
+ return obj;
39092
+ };
39093
+ }
39094
+
39095
+
39096
+ /**
39097
+ * Deserializes binary data (in protobuf wire format).
39098
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
39099
+ * @return {!proto.payment.GetUserFinancialSummaryResponse}
39100
+ */
39101
+ proto.payment.GetUserFinancialSummaryResponse.deserializeBinary = function(bytes) {
39102
+ var reader = new jspb.BinaryReader(bytes);
39103
+ var msg = new proto.payment.GetUserFinancialSummaryResponse;
39104
+ return proto.payment.GetUserFinancialSummaryResponse.deserializeBinaryFromReader(msg, reader);
39105
+ };
39106
+
39107
+
39108
+ /**
39109
+ * Deserializes binary data (in protobuf wire format) from the
39110
+ * given reader into the given message object.
39111
+ * @param {!proto.payment.GetUserFinancialSummaryResponse} msg The message object to deserialize into.
39112
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
39113
+ * @return {!proto.payment.GetUserFinancialSummaryResponse}
39114
+ */
39115
+ proto.payment.GetUserFinancialSummaryResponse.deserializeBinaryFromReader = function(msg, reader) {
39116
+ while (reader.nextField()) {
39117
+ if (reader.isEndGroup()) {
39118
+ break;
39119
+ }
39120
+ var field = reader.getFieldNumber();
39121
+ switch (field) {
39122
+ case 1:
39123
+ var value = /** @type {number} */ (reader.readInt32());
39124
+ msg.setUserId(value);
39125
+ break;
39126
+ case 2:
39127
+ var value = /** @type {string} */ (reader.readString());
39128
+ msg.setCurrency(value);
39129
+ break;
39130
+ case 3:
39131
+ var value = /** @type {number} */ (reader.readInt32());
39132
+ msg.setCurrencyScale(value);
39133
+ break;
39134
+ case 4:
39135
+ var value = /** @type {number} */ (reader.readInt64());
39136
+ msg.setRealBalanceMinor(value);
39137
+ break;
39138
+ case 5:
39139
+ var value = /** @type {number} */ (reader.readInt64());
39140
+ msg.setBonusBalanceMinor(value);
39141
+ break;
39142
+ case 6:
39143
+ var value = /** @type {number} */ (reader.readInt64());
39144
+ msg.setWithdrawalHoldMinor(value);
39145
+ break;
39146
+ case 7:
39147
+ var value = /** @type {number} */ (reader.readInt64());
39148
+ msg.setTotalDepositsMinor(value);
39149
+ break;
39150
+ case 8:
39151
+ var value = /** @type {number} */ (reader.readInt64());
39152
+ msg.setTotalWithdrawalsMinor(value);
39153
+ break;
39154
+ case 9:
39155
+ var value = /** @type {number} */ (reader.readInt64());
39156
+ msg.setProfitabilityResultMinor(value);
39157
+ break;
39158
+ case 10:
39159
+ var value = /** @type {string} */ (reader.readString());
39160
+ msg.setProfitabilityStatus(value);
39161
+ break;
39162
+ default:
39163
+ reader.skipField();
39164
+ break;
39165
+ }
39166
+ }
39167
+ return msg;
39168
+ };
39169
+
39170
+
39171
+ /**
39172
+ * Serializes the message to binary data (in protobuf wire format).
39173
+ * @return {!Uint8Array}
39174
+ */
39175
+ proto.payment.GetUserFinancialSummaryResponse.prototype.serializeBinary = function() {
39176
+ var writer = new jspb.BinaryWriter();
39177
+ proto.payment.GetUserFinancialSummaryResponse.serializeBinaryToWriter(this, writer);
39178
+ return writer.getResultBuffer();
39179
+ };
39180
+
39181
+
39182
+ /**
39183
+ * Serializes the given message to binary data (in protobuf wire
39184
+ * format), writing to the given BinaryWriter.
39185
+ * @param {!proto.payment.GetUserFinancialSummaryResponse} message
39186
+ * @param {!jspb.BinaryWriter} writer
39187
+ * @suppress {unusedLocalVariables} f is only used for nested messages
39188
+ */
39189
+ proto.payment.GetUserFinancialSummaryResponse.serializeBinaryToWriter = function(message, writer) {
39190
+ var f = undefined;
39191
+ f = message.getUserId();
39192
+ if (f !== 0) {
39193
+ writer.writeInt32(
39194
+ 1,
39195
+ f
39196
+ );
39197
+ }
39198
+ f = message.getCurrency();
39199
+ if (f.length > 0) {
39200
+ writer.writeString(
39201
+ 2,
39202
+ f
39203
+ );
39204
+ }
39205
+ f = message.getCurrencyScale();
39206
+ if (f !== 0) {
39207
+ writer.writeInt32(
39208
+ 3,
39209
+ f
39210
+ );
39211
+ }
39212
+ f = message.getRealBalanceMinor();
39213
+ if (f !== 0) {
39214
+ writer.writeInt64(
39215
+ 4,
39216
+ f
39217
+ );
39218
+ }
39219
+ f = message.getBonusBalanceMinor();
39220
+ if (f !== 0) {
39221
+ writer.writeInt64(
39222
+ 5,
39223
+ f
39224
+ );
39225
+ }
39226
+ f = message.getWithdrawalHoldMinor();
39227
+ if (f !== 0) {
39228
+ writer.writeInt64(
39229
+ 6,
39230
+ f
39231
+ );
39232
+ }
39233
+ f = message.getTotalDepositsMinor();
39234
+ if (f !== 0) {
39235
+ writer.writeInt64(
39236
+ 7,
39237
+ f
39238
+ );
39239
+ }
39240
+ f = message.getTotalWithdrawalsMinor();
39241
+ if (f !== 0) {
39242
+ writer.writeInt64(
39243
+ 8,
39244
+ f
39245
+ );
39246
+ }
39247
+ f = message.getProfitabilityResultMinor();
39248
+ if (f !== 0) {
39249
+ writer.writeInt64(
39250
+ 9,
39251
+ f
39252
+ );
39253
+ }
39254
+ f = message.getProfitabilityStatus();
39255
+ if (f.length > 0) {
39256
+ writer.writeString(
39257
+ 10,
39258
+ f
39259
+ );
39260
+ }
39261
+ };
39262
+
39263
+
39264
+ /**
39265
+ * optional int32 user_id = 1;
39266
+ * @return {number}
39267
+ */
39268
+ proto.payment.GetUserFinancialSummaryResponse.prototype.getUserId = function() {
39269
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
39270
+ };
39271
+
39272
+
39273
+ /**
39274
+ * @param {number} value
39275
+ * @return {!proto.payment.GetUserFinancialSummaryResponse} returns this
39276
+ */
39277
+ proto.payment.GetUserFinancialSummaryResponse.prototype.setUserId = function(value) {
39278
+ return jspb.Message.setProto3IntField(this, 1, value);
39279
+ };
39280
+
39281
+
39282
+ /**
39283
+ * optional string currency = 2;
39284
+ * @return {string}
39285
+ */
39286
+ proto.payment.GetUserFinancialSummaryResponse.prototype.getCurrency = function() {
39287
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
39288
+ };
39289
+
39290
+
39291
+ /**
39292
+ * @param {string} value
39293
+ * @return {!proto.payment.GetUserFinancialSummaryResponse} returns this
39294
+ */
39295
+ proto.payment.GetUserFinancialSummaryResponse.prototype.setCurrency = function(value) {
39296
+ return jspb.Message.setProto3StringField(this, 2, value);
39297
+ };
39298
+
39299
+
39300
+ /**
39301
+ * optional int32 currency_scale = 3;
39302
+ * @return {number}
39303
+ */
39304
+ proto.payment.GetUserFinancialSummaryResponse.prototype.getCurrencyScale = function() {
39305
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
39306
+ };
39307
+
39308
+
39309
+ /**
39310
+ * @param {number} value
39311
+ * @return {!proto.payment.GetUserFinancialSummaryResponse} returns this
39312
+ */
39313
+ proto.payment.GetUserFinancialSummaryResponse.prototype.setCurrencyScale = function(value) {
39314
+ return jspb.Message.setProto3IntField(this, 3, value);
39315
+ };
39316
+
39317
+
39318
+ /**
39319
+ * optional int64 real_balance_minor = 4;
39320
+ * @return {number}
39321
+ */
39322
+ proto.payment.GetUserFinancialSummaryResponse.prototype.getRealBalanceMinor = function() {
39323
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
39324
+ };
39325
+
39326
+
39327
+ /**
39328
+ * @param {number} value
39329
+ * @return {!proto.payment.GetUserFinancialSummaryResponse} returns this
39330
+ */
39331
+ proto.payment.GetUserFinancialSummaryResponse.prototype.setRealBalanceMinor = function(value) {
39332
+ return jspb.Message.setProto3IntField(this, 4, value);
39333
+ };
39334
+
39335
+
39336
+ /**
39337
+ * optional int64 bonus_balance_minor = 5;
39338
+ * @return {number}
39339
+ */
39340
+ proto.payment.GetUserFinancialSummaryResponse.prototype.getBonusBalanceMinor = function() {
39341
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
39342
+ };
39343
+
39344
+
39345
+ /**
39346
+ * @param {number} value
39347
+ * @return {!proto.payment.GetUserFinancialSummaryResponse} returns this
39348
+ */
39349
+ proto.payment.GetUserFinancialSummaryResponse.prototype.setBonusBalanceMinor = function(value) {
39350
+ return jspb.Message.setProto3IntField(this, 5, value);
39351
+ };
39352
+
39353
+
39354
+ /**
39355
+ * optional int64 withdrawal_hold_minor = 6;
39356
+ * @return {number}
39357
+ */
39358
+ proto.payment.GetUserFinancialSummaryResponse.prototype.getWithdrawalHoldMinor = function() {
39359
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
39360
+ };
39361
+
39362
+
39363
+ /**
39364
+ * @param {number} value
39365
+ * @return {!proto.payment.GetUserFinancialSummaryResponse} returns this
39366
+ */
39367
+ proto.payment.GetUserFinancialSummaryResponse.prototype.setWithdrawalHoldMinor = function(value) {
39368
+ return jspb.Message.setProto3IntField(this, 6, value);
39369
+ };
39370
+
39371
+
39372
+ /**
39373
+ * optional int64 total_deposits_minor = 7;
39374
+ * @return {number}
39375
+ */
39376
+ proto.payment.GetUserFinancialSummaryResponse.prototype.getTotalDepositsMinor = function() {
39377
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
39378
+ };
39379
+
39380
+
39381
+ /**
39382
+ * @param {number} value
39383
+ * @return {!proto.payment.GetUserFinancialSummaryResponse} returns this
39384
+ */
39385
+ proto.payment.GetUserFinancialSummaryResponse.prototype.setTotalDepositsMinor = function(value) {
39386
+ return jspb.Message.setProto3IntField(this, 7, value);
39387
+ };
39388
+
39389
+
39390
+ /**
39391
+ * optional int64 total_withdrawals_minor = 8;
39392
+ * @return {number}
39393
+ */
39394
+ proto.payment.GetUserFinancialSummaryResponse.prototype.getTotalWithdrawalsMinor = function() {
39395
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
39396
+ };
39397
+
39398
+
39399
+ /**
39400
+ * @param {number} value
39401
+ * @return {!proto.payment.GetUserFinancialSummaryResponse} returns this
39402
+ */
39403
+ proto.payment.GetUserFinancialSummaryResponse.prototype.setTotalWithdrawalsMinor = function(value) {
39404
+ return jspb.Message.setProto3IntField(this, 8, value);
39405
+ };
39406
+
39407
+
39408
+ /**
39409
+ * optional int64 profitability_result_minor = 9;
39410
+ * @return {number}
39411
+ */
39412
+ proto.payment.GetUserFinancialSummaryResponse.prototype.getProfitabilityResultMinor = function() {
39413
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
39414
+ };
39415
+
39416
+
39417
+ /**
39418
+ * @param {number} value
39419
+ * @return {!proto.payment.GetUserFinancialSummaryResponse} returns this
39420
+ */
39421
+ proto.payment.GetUserFinancialSummaryResponse.prototype.setProfitabilityResultMinor = function(value) {
39422
+ return jspb.Message.setProto3IntField(this, 9, value);
39423
+ };
39424
+
39425
+
39426
+ /**
39427
+ * optional string profitability_status = 10;
39428
+ * @return {string}
39429
+ */
39430
+ proto.payment.GetUserFinancialSummaryResponse.prototype.getProfitabilityStatus = function() {
39431
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
39432
+ };
39433
+
39434
+
39435
+ /**
39436
+ * @param {string} value
39437
+ * @return {!proto.payment.GetUserFinancialSummaryResponse} returns this
39438
+ */
39439
+ proto.payment.GetUserFinancialSummaryResponse.prototype.setProfitabilityStatus = function(value) {
39440
+ return jspb.Message.setProto3StringField(this, 10, value);
39441
+ };
39442
+
39443
+
39444
+
38871
39445
  /**
38872
39446
  * List of repeated fields within this message type.
38873
39447
  * @private {!Array<number>}