protobuf-platform 1.2.742 → 1.2.743
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 +1 -1
- package/user/exactDepositAmountMinor.test.js +68 -0
- package/user/user.proto +8 -0
- package/user/user_pb.js +292 -4
package/package.json
CHANGED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const { describe, it } = require('node:test');
|
|
4
|
+
const assert = require('node:assert/strict');
|
|
5
|
+
const messages = require('./user_pb');
|
|
6
|
+
|
|
7
|
+
const DEPOSIT_663_MINOR = '283737049999999991';
|
|
8
|
+
|
|
9
|
+
describe('deposit minor exact protobuf fields', () => {
|
|
10
|
+
it('round-trips requested_amount_minor_exact as field 8 without an int64 value', () => {
|
|
11
|
+
const request = new messages.ReserveResponsibleGamingDepositRequest();
|
|
12
|
+
request.setUserId(405);
|
|
13
|
+
request.setOperationKey('32fe4f60-77c2-4069-b539-94c498d21178');
|
|
14
|
+
request.setCurrency('ETH');
|
|
15
|
+
request.setCurrencyScale(18);
|
|
16
|
+
request.setRequestedAmountMinorExact(DEPOSIT_663_MINOR);
|
|
17
|
+
const decoded = messages.ReserveResponsibleGamingDepositRequest.deserializeBinary(
|
|
18
|
+
request.serializeBinary()
|
|
19
|
+
);
|
|
20
|
+
assert.equal(decoded.getRequestedAmountMinorExact(), DEPOSIT_663_MINOR);
|
|
21
|
+
assert.equal(decoded.getRequestedAmountMinor(), 0);
|
|
22
|
+
assert.equal(decoded.hasRequestedAmountMinorExact(), true);
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
it('round-trips actual_amount_minor_exact as field 7', () => {
|
|
26
|
+
const request = new messages.FinalizeResponsibleGamingDepositReservationRequest();
|
|
27
|
+
request.setUserId(405);
|
|
28
|
+
request.setOperationKey('32fe4f60-77c2-4069-b539-94c498d21178');
|
|
29
|
+
request.setOutcome(2);
|
|
30
|
+
request.setActualAmountMinorExact(DEPOSIT_663_MINOR);
|
|
31
|
+
const decoded = messages.FinalizeResponsibleGamingDepositReservationRequest.deserializeBinary(
|
|
32
|
+
request.serializeBinary()
|
|
33
|
+
);
|
|
34
|
+
assert.equal(decoded.getActualAmountMinorExact(), DEPOSIT_663_MINOR);
|
|
35
|
+
assert.equal(decoded.getActualAmountMinor(), 0);
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
it('round-trips reserve and finalize response exact amounts', () => {
|
|
39
|
+
const reserve = new messages.ReserveResponsibleGamingDepositResponse();
|
|
40
|
+
reserve.setRequestedAmountMinorExact(DEPOSIT_663_MINOR);
|
|
41
|
+
reserve.setReservedAmountMinorExact(DEPOSIT_663_MINOR);
|
|
42
|
+
const decodedReserve = messages.ReserveResponsibleGamingDepositResponse.deserializeBinary(
|
|
43
|
+
reserve.serializeBinary()
|
|
44
|
+
);
|
|
45
|
+
assert.equal(decodedReserve.getRequestedAmountMinorExact(), DEPOSIT_663_MINOR);
|
|
46
|
+
assert.equal(decodedReserve.getReservedAmountMinorExact(), DEPOSIT_663_MINOR);
|
|
47
|
+
|
|
48
|
+
const finalize = new messages.FinalizeResponsibleGamingDepositReservationResponse();
|
|
49
|
+
finalize.setReservationId('32fe4f60-77c2-4069-b539-94c498d21178');
|
|
50
|
+
finalize.setOperationKey('32fe4f60-77c2-4069-b539-94c498d21178');
|
|
51
|
+
finalize.setRequestedAmountMinorExact(DEPOSIT_663_MINOR);
|
|
52
|
+
finalize.setCommittedAmountMinorExact(DEPOSIT_663_MINOR);
|
|
53
|
+
const decodedFinalize = messages.FinalizeResponsibleGamingDepositReservationResponse.deserializeBinary(
|
|
54
|
+
finalize.serializeBinary()
|
|
55
|
+
);
|
|
56
|
+
assert.equal(decodedFinalize.getCommittedAmountMinorExact(), DEPOSIT_663_MINOR);
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
it('keeps a legacy safe int64 amount readable when the exact field is absent', () => {
|
|
60
|
+
const request = new messages.ReserveResponsibleGamingDepositRequest();
|
|
61
|
+
request.setRequestedAmountMinor(1);
|
|
62
|
+
const decoded = messages.ReserveResponsibleGamingDepositRequest.deserializeBinary(
|
|
63
|
+
request.serializeBinary()
|
|
64
|
+
);
|
|
65
|
+
assert.equal(decoded.getRequestedAmountMinor(), 1);
|
|
66
|
+
assert.equal(decoded.getRequestedAmountMinorExact(), '');
|
|
67
|
+
});
|
|
68
|
+
});
|
package/user/user.proto
CHANGED
|
@@ -2613,6 +2613,8 @@ message ReserveResponsibleGamingDepositRequest {
|
|
|
2613
2613
|
int32 currency_scale = 5;
|
|
2614
2614
|
optional string policy_id = 6;
|
|
2615
2615
|
optional string reservation_at = 7;
|
|
2616
|
+
// Canonical decimal minor units. Preferred when set. Field 3 stays for safe legacy amounts.
|
|
2617
|
+
optional string requested_amount_minor_exact = 8;
|
|
2616
2618
|
}
|
|
2617
2619
|
message ReserveResponsibleGamingDepositResponse {
|
|
2618
2620
|
bool allowed = 1;
|
|
@@ -2626,6 +2628,8 @@ message ReserveResponsibleGamingDepositResponse {
|
|
|
2626
2628
|
ResponsibleGamingDepositReservationStatus status = 9;
|
|
2627
2629
|
optional string operation_key = 10;
|
|
2628
2630
|
optional ResponsibleGamingDecisionDetails decision_details = 11;
|
|
2631
|
+
optional string requested_amount_minor_exact = 12;
|
|
2632
|
+
optional string reserved_amount_minor_exact = 13;
|
|
2629
2633
|
}
|
|
2630
2634
|
message FinalizeResponsibleGamingDepositReservationRequest {
|
|
2631
2635
|
int32 user_id = 1;
|
|
@@ -2634,6 +2638,8 @@ message FinalizeResponsibleGamingDepositReservationRequest {
|
|
|
2634
2638
|
ResponsibleGamingDepositReservationOutcome outcome = 4;
|
|
2635
2639
|
optional int64 actual_amount_minor = 5;
|
|
2636
2640
|
optional string finalized_at = 6;
|
|
2641
|
+
// Canonical decimal minor units. Preferred when set. Field 5 stays for safe legacy amounts.
|
|
2642
|
+
optional string actual_amount_minor_exact = 7;
|
|
2637
2643
|
}
|
|
2638
2644
|
message FinalizeResponsibleGamingDepositReservationResponse {
|
|
2639
2645
|
string reservation_id = 1;
|
|
@@ -2644,6 +2650,8 @@ message FinalizeResponsibleGamingDepositReservationResponse {
|
|
|
2644
2650
|
optional int32 currency_scale = 6;
|
|
2645
2651
|
string operation_key = 7;
|
|
2646
2652
|
optional string policy_id = 8;
|
|
2653
|
+
optional string requested_amount_minor_exact = 9;
|
|
2654
|
+
optional string committed_amount_minor_exact = 10;
|
|
2647
2655
|
}
|
|
2648
2656
|
message ReserveResponsibleGamingLossExposureRequest {
|
|
2649
2657
|
int32 user_id = 1;
|
package/user/user_pb.js
CHANGED
|
@@ -105113,7 +105113,8 @@ proto.user.ReserveResponsibleGamingDepositRequest.toObject = function(includeIns
|
|
|
105113
105113
|
currency: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
105114
105114
|
currencyScale: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
105115
105115
|
policyId: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
105116
|
-
reservationAt: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
105116
|
+
reservationAt: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
105117
|
+
requestedAmountMinorExact: jspb.Message.getFieldWithDefault(msg, 8, "")
|
|
105117
105118
|
};
|
|
105118
105119
|
|
|
105119
105120
|
if (includeInstance) {
|
|
@@ -105178,6 +105179,10 @@ proto.user.ReserveResponsibleGamingDepositRequest.deserializeBinaryFromReader =
|
|
|
105178
105179
|
var value = /** @type {string} */ (reader.readString());
|
|
105179
105180
|
msg.setReservationAt(value);
|
|
105180
105181
|
break;
|
|
105182
|
+
case 8:
|
|
105183
|
+
var value = /** @type {string} */ (reader.readString());
|
|
105184
|
+
msg.setRequestedAmountMinorExact(value);
|
|
105185
|
+
break;
|
|
105181
105186
|
default:
|
|
105182
105187
|
reader.skipField();
|
|
105183
105188
|
break;
|
|
@@ -105256,6 +105261,13 @@ proto.user.ReserveResponsibleGamingDepositRequest.serializeBinaryToWriter = func
|
|
|
105256
105261
|
f
|
|
105257
105262
|
);
|
|
105258
105263
|
}
|
|
105264
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
|
105265
|
+
if (f != null) {
|
|
105266
|
+
writer.writeString(
|
|
105267
|
+
8,
|
|
105268
|
+
f
|
|
105269
|
+
);
|
|
105270
|
+
}
|
|
105259
105271
|
};
|
|
105260
105272
|
|
|
105261
105273
|
|
|
@@ -105421,6 +105433,42 @@ proto.user.ReserveResponsibleGamingDepositRequest.prototype.hasReservationAt = f
|
|
|
105421
105433
|
};
|
|
105422
105434
|
|
|
105423
105435
|
|
|
105436
|
+
/**
|
|
105437
|
+
* optional string requested_amount_minor_exact = 8;
|
|
105438
|
+
* @return {string}
|
|
105439
|
+
*/
|
|
105440
|
+
proto.user.ReserveResponsibleGamingDepositRequest.prototype.getRequestedAmountMinorExact = function() {
|
|
105441
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
105442
|
+
};
|
|
105443
|
+
|
|
105444
|
+
|
|
105445
|
+
/**
|
|
105446
|
+
* @param {string} value
|
|
105447
|
+
* @return {!proto.user.ReserveResponsibleGamingDepositRequest} returns this
|
|
105448
|
+
*/
|
|
105449
|
+
proto.user.ReserveResponsibleGamingDepositRequest.prototype.setRequestedAmountMinorExact = function(value) {
|
|
105450
|
+
return jspb.Message.setField(this, 8, value);
|
|
105451
|
+
};
|
|
105452
|
+
|
|
105453
|
+
|
|
105454
|
+
/**
|
|
105455
|
+
* Clears the field making it undefined.
|
|
105456
|
+
* @return {!proto.user.ReserveResponsibleGamingDepositRequest} returns this
|
|
105457
|
+
*/
|
|
105458
|
+
proto.user.ReserveResponsibleGamingDepositRequest.prototype.clearRequestedAmountMinorExact = function() {
|
|
105459
|
+
return jspb.Message.setField(this, 8, undefined);
|
|
105460
|
+
};
|
|
105461
|
+
|
|
105462
|
+
|
|
105463
|
+
/**
|
|
105464
|
+
* Returns whether this field is set.
|
|
105465
|
+
* @return {boolean}
|
|
105466
|
+
*/
|
|
105467
|
+
proto.user.ReserveResponsibleGamingDepositRequest.prototype.hasRequestedAmountMinorExact = function() {
|
|
105468
|
+
return jspb.Message.getField(this, 8) != null;
|
|
105469
|
+
};
|
|
105470
|
+
|
|
105471
|
+
|
|
105424
105472
|
|
|
105425
105473
|
|
|
105426
105474
|
|
|
@@ -105463,7 +105511,9 @@ proto.user.ReserveResponsibleGamingDepositResponse.toObject = function(includeIn
|
|
|
105463
105511
|
currencyScale: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
105464
105512
|
status: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
|
105465
105513
|
operationKey: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
105466
|
-
decisionDetails: (f = msg.getDecisionDetails()) && proto.user.ResponsibleGamingDecisionDetails.toObject(includeInstance, f)
|
|
105514
|
+
decisionDetails: (f = msg.getDecisionDetails()) && proto.user.ResponsibleGamingDecisionDetails.toObject(includeInstance, f),
|
|
105515
|
+
requestedAmountMinorExact: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
105516
|
+
reservedAmountMinorExact: jspb.Message.getFieldWithDefault(msg, 13, "")
|
|
105467
105517
|
};
|
|
105468
105518
|
|
|
105469
105519
|
if (includeInstance) {
|
|
@@ -105545,6 +105595,14 @@ proto.user.ReserveResponsibleGamingDepositResponse.deserializeBinaryFromReader =
|
|
|
105545
105595
|
reader.readMessage(value,proto.user.ResponsibleGamingDecisionDetails.deserializeBinaryFromReader);
|
|
105546
105596
|
msg.setDecisionDetails(value);
|
|
105547
105597
|
break;
|
|
105598
|
+
case 12:
|
|
105599
|
+
var value = /** @type {string} */ (reader.readString());
|
|
105600
|
+
msg.setRequestedAmountMinorExact(value);
|
|
105601
|
+
break;
|
|
105602
|
+
case 13:
|
|
105603
|
+
var value = /** @type {string} */ (reader.readString());
|
|
105604
|
+
msg.setReservedAmountMinorExact(value);
|
|
105605
|
+
break;
|
|
105548
105606
|
default:
|
|
105549
105607
|
reader.skipField();
|
|
105550
105608
|
break;
|
|
@@ -105652,6 +105710,20 @@ proto.user.ReserveResponsibleGamingDepositResponse.serializeBinaryToWriter = fun
|
|
|
105652
105710
|
proto.user.ResponsibleGamingDecisionDetails.serializeBinaryToWriter
|
|
105653
105711
|
);
|
|
105654
105712
|
}
|
|
105713
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 12));
|
|
105714
|
+
if (f != null) {
|
|
105715
|
+
writer.writeString(
|
|
105716
|
+
12,
|
|
105717
|
+
f
|
|
105718
|
+
);
|
|
105719
|
+
}
|
|
105720
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 13));
|
|
105721
|
+
if (f != null) {
|
|
105722
|
+
writer.writeString(
|
|
105723
|
+
13,
|
|
105724
|
+
f
|
|
105725
|
+
);
|
|
105726
|
+
}
|
|
105655
105727
|
};
|
|
105656
105728
|
|
|
105657
105729
|
|
|
@@ -106016,6 +106088,78 @@ proto.user.ReserveResponsibleGamingDepositResponse.prototype.hasDecisionDetails
|
|
|
106016
106088
|
};
|
|
106017
106089
|
|
|
106018
106090
|
|
|
106091
|
+
/**
|
|
106092
|
+
* optional string requested_amount_minor_exact = 12;
|
|
106093
|
+
* @return {string}
|
|
106094
|
+
*/
|
|
106095
|
+
proto.user.ReserveResponsibleGamingDepositResponse.prototype.getRequestedAmountMinorExact = function() {
|
|
106096
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
|
|
106097
|
+
};
|
|
106098
|
+
|
|
106099
|
+
|
|
106100
|
+
/**
|
|
106101
|
+
* @param {string} value
|
|
106102
|
+
* @return {!proto.user.ReserveResponsibleGamingDepositResponse} returns this
|
|
106103
|
+
*/
|
|
106104
|
+
proto.user.ReserveResponsibleGamingDepositResponse.prototype.setRequestedAmountMinorExact = function(value) {
|
|
106105
|
+
return jspb.Message.setField(this, 12, value);
|
|
106106
|
+
};
|
|
106107
|
+
|
|
106108
|
+
|
|
106109
|
+
/**
|
|
106110
|
+
* Clears the field making it undefined.
|
|
106111
|
+
* @return {!proto.user.ReserveResponsibleGamingDepositResponse} returns this
|
|
106112
|
+
*/
|
|
106113
|
+
proto.user.ReserveResponsibleGamingDepositResponse.prototype.clearRequestedAmountMinorExact = function() {
|
|
106114
|
+
return jspb.Message.setField(this, 12, undefined);
|
|
106115
|
+
};
|
|
106116
|
+
|
|
106117
|
+
|
|
106118
|
+
/**
|
|
106119
|
+
* Returns whether this field is set.
|
|
106120
|
+
* @return {boolean}
|
|
106121
|
+
*/
|
|
106122
|
+
proto.user.ReserveResponsibleGamingDepositResponse.prototype.hasRequestedAmountMinorExact = function() {
|
|
106123
|
+
return jspb.Message.getField(this, 12) != null;
|
|
106124
|
+
};
|
|
106125
|
+
|
|
106126
|
+
|
|
106127
|
+
/**
|
|
106128
|
+
* optional string reserved_amount_minor_exact = 13;
|
|
106129
|
+
* @return {string}
|
|
106130
|
+
*/
|
|
106131
|
+
proto.user.ReserveResponsibleGamingDepositResponse.prototype.getReservedAmountMinorExact = function() {
|
|
106132
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
|
|
106133
|
+
};
|
|
106134
|
+
|
|
106135
|
+
|
|
106136
|
+
/**
|
|
106137
|
+
* @param {string} value
|
|
106138
|
+
* @return {!proto.user.ReserveResponsibleGamingDepositResponse} returns this
|
|
106139
|
+
*/
|
|
106140
|
+
proto.user.ReserveResponsibleGamingDepositResponse.prototype.setReservedAmountMinorExact = function(value) {
|
|
106141
|
+
return jspb.Message.setField(this, 13, value);
|
|
106142
|
+
};
|
|
106143
|
+
|
|
106144
|
+
|
|
106145
|
+
/**
|
|
106146
|
+
* Clears the field making it undefined.
|
|
106147
|
+
* @return {!proto.user.ReserveResponsibleGamingDepositResponse} returns this
|
|
106148
|
+
*/
|
|
106149
|
+
proto.user.ReserveResponsibleGamingDepositResponse.prototype.clearReservedAmountMinorExact = function() {
|
|
106150
|
+
return jspb.Message.setField(this, 13, undefined);
|
|
106151
|
+
};
|
|
106152
|
+
|
|
106153
|
+
|
|
106154
|
+
/**
|
|
106155
|
+
* Returns whether this field is set.
|
|
106156
|
+
* @return {boolean}
|
|
106157
|
+
*/
|
|
106158
|
+
proto.user.ReserveResponsibleGamingDepositResponse.prototype.hasReservedAmountMinorExact = function() {
|
|
106159
|
+
return jspb.Message.getField(this, 13) != null;
|
|
106160
|
+
};
|
|
106161
|
+
|
|
106162
|
+
|
|
106019
106163
|
|
|
106020
106164
|
|
|
106021
106165
|
|
|
@@ -106053,7 +106197,8 @@ proto.user.FinalizeResponsibleGamingDepositReservationRequest.toObject = functio
|
|
|
106053
106197
|
reservationId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
106054
106198
|
outcome: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
106055
106199
|
actualAmountMinor: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
106056
|
-
finalizedAt: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
106200
|
+
finalizedAt: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
106201
|
+
actualAmountMinorExact: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
106057
106202
|
};
|
|
106058
106203
|
|
|
106059
106204
|
if (includeInstance) {
|
|
@@ -106114,6 +106259,10 @@ proto.user.FinalizeResponsibleGamingDepositReservationRequest.deserializeBinaryF
|
|
|
106114
106259
|
var value = /** @type {string} */ (reader.readString());
|
|
106115
106260
|
msg.setFinalizedAt(value);
|
|
106116
106261
|
break;
|
|
106262
|
+
case 7:
|
|
106263
|
+
var value = /** @type {string} */ (reader.readString());
|
|
106264
|
+
msg.setActualAmountMinorExact(value);
|
|
106265
|
+
break;
|
|
106117
106266
|
default:
|
|
106118
106267
|
reader.skipField();
|
|
106119
106268
|
break;
|
|
@@ -106185,6 +106334,13 @@ proto.user.FinalizeResponsibleGamingDepositReservationRequest.serializeBinaryToW
|
|
|
106185
106334
|
f
|
|
106186
106335
|
);
|
|
106187
106336
|
}
|
|
106337
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
|
106338
|
+
if (f != null) {
|
|
106339
|
+
writer.writeString(
|
|
106340
|
+
7,
|
|
106341
|
+
f
|
|
106342
|
+
);
|
|
106343
|
+
}
|
|
106188
106344
|
};
|
|
106189
106345
|
|
|
106190
106346
|
|
|
@@ -106350,6 +106506,42 @@ proto.user.FinalizeResponsibleGamingDepositReservationRequest.prototype.hasFinal
|
|
|
106350
106506
|
};
|
|
106351
106507
|
|
|
106352
106508
|
|
|
106509
|
+
/**
|
|
106510
|
+
* optional string actual_amount_minor_exact = 7;
|
|
106511
|
+
* @return {string}
|
|
106512
|
+
*/
|
|
106513
|
+
proto.user.FinalizeResponsibleGamingDepositReservationRequest.prototype.getActualAmountMinorExact = function() {
|
|
106514
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
106515
|
+
};
|
|
106516
|
+
|
|
106517
|
+
|
|
106518
|
+
/**
|
|
106519
|
+
* @param {string} value
|
|
106520
|
+
* @return {!proto.user.FinalizeResponsibleGamingDepositReservationRequest} returns this
|
|
106521
|
+
*/
|
|
106522
|
+
proto.user.FinalizeResponsibleGamingDepositReservationRequest.prototype.setActualAmountMinorExact = function(value) {
|
|
106523
|
+
return jspb.Message.setField(this, 7, value);
|
|
106524
|
+
};
|
|
106525
|
+
|
|
106526
|
+
|
|
106527
|
+
/**
|
|
106528
|
+
* Clears the field making it undefined.
|
|
106529
|
+
* @return {!proto.user.FinalizeResponsibleGamingDepositReservationRequest} returns this
|
|
106530
|
+
*/
|
|
106531
|
+
proto.user.FinalizeResponsibleGamingDepositReservationRequest.prototype.clearActualAmountMinorExact = function() {
|
|
106532
|
+
return jspb.Message.setField(this, 7, undefined);
|
|
106533
|
+
};
|
|
106534
|
+
|
|
106535
|
+
|
|
106536
|
+
/**
|
|
106537
|
+
* Returns whether this field is set.
|
|
106538
|
+
* @return {boolean}
|
|
106539
|
+
*/
|
|
106540
|
+
proto.user.FinalizeResponsibleGamingDepositReservationRequest.prototype.hasActualAmountMinorExact = function() {
|
|
106541
|
+
return jspb.Message.getField(this, 7) != null;
|
|
106542
|
+
};
|
|
106543
|
+
|
|
106544
|
+
|
|
106353
106545
|
|
|
106354
106546
|
|
|
106355
106547
|
|
|
@@ -106389,7 +106581,9 @@ proto.user.FinalizeResponsibleGamingDepositReservationResponse.toObject = functi
|
|
|
106389
106581
|
currency: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
106390
106582
|
currencyScale: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
106391
106583
|
operationKey: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
106392
|
-
policyId: jspb.Message.getFieldWithDefault(msg, 8, "")
|
|
106584
|
+
policyId: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
106585
|
+
requestedAmountMinorExact: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
106586
|
+
committedAmountMinorExact: jspb.Message.getFieldWithDefault(msg, 10, "")
|
|
106393
106587
|
};
|
|
106394
106588
|
|
|
106395
106589
|
if (includeInstance) {
|
|
@@ -106458,6 +106652,14 @@ proto.user.FinalizeResponsibleGamingDepositReservationResponse.deserializeBinary
|
|
|
106458
106652
|
var value = /** @type {string} */ (reader.readString());
|
|
106459
106653
|
msg.setPolicyId(value);
|
|
106460
106654
|
break;
|
|
106655
|
+
case 9:
|
|
106656
|
+
var value = /** @type {string} */ (reader.readString());
|
|
106657
|
+
msg.setRequestedAmountMinorExact(value);
|
|
106658
|
+
break;
|
|
106659
|
+
case 10:
|
|
106660
|
+
var value = /** @type {string} */ (reader.readString());
|
|
106661
|
+
msg.setCommittedAmountMinorExact(value);
|
|
106662
|
+
break;
|
|
106461
106663
|
default:
|
|
106462
106664
|
reader.skipField();
|
|
106463
106665
|
break;
|
|
@@ -106543,6 +106745,20 @@ proto.user.FinalizeResponsibleGamingDepositReservationResponse.serializeBinaryTo
|
|
|
106543
106745
|
f
|
|
106544
106746
|
);
|
|
106545
106747
|
}
|
|
106748
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 9));
|
|
106749
|
+
if (f != null) {
|
|
106750
|
+
writer.writeString(
|
|
106751
|
+
9,
|
|
106752
|
+
f
|
|
106753
|
+
);
|
|
106754
|
+
}
|
|
106755
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 10));
|
|
106756
|
+
if (f != null) {
|
|
106757
|
+
writer.writeString(
|
|
106758
|
+
10,
|
|
106759
|
+
f
|
|
106760
|
+
);
|
|
106761
|
+
}
|
|
106546
106762
|
};
|
|
106547
106763
|
|
|
106548
106764
|
|
|
@@ -106780,6 +106996,78 @@ proto.user.FinalizeResponsibleGamingDepositReservationResponse.prototype.hasPoli
|
|
|
106780
106996
|
};
|
|
106781
106997
|
|
|
106782
106998
|
|
|
106999
|
+
/**
|
|
107000
|
+
* optional string requested_amount_minor_exact = 9;
|
|
107001
|
+
* @return {string}
|
|
107002
|
+
*/
|
|
107003
|
+
proto.user.FinalizeResponsibleGamingDepositReservationResponse.prototype.getRequestedAmountMinorExact = function() {
|
|
107004
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
107005
|
+
};
|
|
107006
|
+
|
|
107007
|
+
|
|
107008
|
+
/**
|
|
107009
|
+
* @param {string} value
|
|
107010
|
+
* @return {!proto.user.FinalizeResponsibleGamingDepositReservationResponse} returns this
|
|
107011
|
+
*/
|
|
107012
|
+
proto.user.FinalizeResponsibleGamingDepositReservationResponse.prototype.setRequestedAmountMinorExact = function(value) {
|
|
107013
|
+
return jspb.Message.setField(this, 9, value);
|
|
107014
|
+
};
|
|
107015
|
+
|
|
107016
|
+
|
|
107017
|
+
/**
|
|
107018
|
+
* Clears the field making it undefined.
|
|
107019
|
+
* @return {!proto.user.FinalizeResponsibleGamingDepositReservationResponse} returns this
|
|
107020
|
+
*/
|
|
107021
|
+
proto.user.FinalizeResponsibleGamingDepositReservationResponse.prototype.clearRequestedAmountMinorExact = function() {
|
|
107022
|
+
return jspb.Message.setField(this, 9, undefined);
|
|
107023
|
+
};
|
|
107024
|
+
|
|
107025
|
+
|
|
107026
|
+
/**
|
|
107027
|
+
* Returns whether this field is set.
|
|
107028
|
+
* @return {boolean}
|
|
107029
|
+
*/
|
|
107030
|
+
proto.user.FinalizeResponsibleGamingDepositReservationResponse.prototype.hasRequestedAmountMinorExact = function() {
|
|
107031
|
+
return jspb.Message.getField(this, 9) != null;
|
|
107032
|
+
};
|
|
107033
|
+
|
|
107034
|
+
|
|
107035
|
+
/**
|
|
107036
|
+
* optional string committed_amount_minor_exact = 10;
|
|
107037
|
+
* @return {string}
|
|
107038
|
+
*/
|
|
107039
|
+
proto.user.FinalizeResponsibleGamingDepositReservationResponse.prototype.getCommittedAmountMinorExact = function() {
|
|
107040
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
107041
|
+
};
|
|
107042
|
+
|
|
107043
|
+
|
|
107044
|
+
/**
|
|
107045
|
+
* @param {string} value
|
|
107046
|
+
* @return {!proto.user.FinalizeResponsibleGamingDepositReservationResponse} returns this
|
|
107047
|
+
*/
|
|
107048
|
+
proto.user.FinalizeResponsibleGamingDepositReservationResponse.prototype.setCommittedAmountMinorExact = function(value) {
|
|
107049
|
+
return jspb.Message.setField(this, 10, value);
|
|
107050
|
+
};
|
|
107051
|
+
|
|
107052
|
+
|
|
107053
|
+
/**
|
|
107054
|
+
* Clears the field making it undefined.
|
|
107055
|
+
* @return {!proto.user.FinalizeResponsibleGamingDepositReservationResponse} returns this
|
|
107056
|
+
*/
|
|
107057
|
+
proto.user.FinalizeResponsibleGamingDepositReservationResponse.prototype.clearCommittedAmountMinorExact = function() {
|
|
107058
|
+
return jspb.Message.setField(this, 10, undefined);
|
|
107059
|
+
};
|
|
107060
|
+
|
|
107061
|
+
|
|
107062
|
+
/**
|
|
107063
|
+
* Returns whether this field is set.
|
|
107064
|
+
* @return {boolean}
|
|
107065
|
+
*/
|
|
107066
|
+
proto.user.FinalizeResponsibleGamingDepositReservationResponse.prototype.hasCommittedAmountMinorExact = function() {
|
|
107067
|
+
return jspb.Message.getField(this, 10) != null;
|
|
107068
|
+
};
|
|
107069
|
+
|
|
107070
|
+
|
|
106783
107071
|
|
|
106784
107072
|
|
|
106785
107073
|
|