protobuf-platform 1.2.742 → 1.2.744
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/AGENTS.md +1 -1
- package/package.json +1 -1
- package/payment/payment.proto +14 -0
- package/payment/payment_pb.js +656 -1
- package/user/exactDepositAmountMinor.test.js +68 -0
- package/user/user.proto +8 -0
- package/user/user_pb.js +292 -4
package/AGENTS.md
CHANGED
|
@@ -11,5 +11,5 @@ Read [Project Rules](../../platform-rules/PROJECT_RULES.md) for the canonical sh
|
|
|
11
11
|
- For a contract release, prepare one version bump with `npm version patch --no-git-tag-version` (or the already-approved version), verify package.json and package-lock.json agree, review generated/package contents, and create a local atomic commit including version files. Avoid a second bump if already prepared.
|
|
12
12
|
- For an approved contract release, run `npm publish` after validation and the release commit, using existing authorized registry credentials. Publication required by the approved contract is autonomous execution, including an approved breaking release after its compatibility/rollout decision; do not ask for a separate publication acknowledgement. Do not run `npm run publish-update` after preparing the version: it would bump again. On an ambiguous result, inspect the registry before retrying; never blindly republish or bump.
|
|
13
13
|
- Local npm machine authentication was verified from this repository against `https://registry.npmjs.org/` on 2026-09-15; identity and package metadata resolved. Use the existing setup without requesting OTP or a manual publication handoff. This read-only check did not exercise publication permissions. If auth actually fails, diagnose the exact error and request only the minimum action needed to restore machine authentication; never expose a token.
|
|
14
|
-
- Verify the exact release with `npm view protobuf-platform@<release-version> version`, then run only `sh sync_internal_libs.sh` directly in each affected service repository under the Project Rules. Verify installed/dependency/lockfile state and the expected contract, then continue the same master task automatically without a publication acknowledgement or manual sync handoff. Request human action only for genuinely unavailable authentication or permissions; never expose credentials.
|
|
14
|
+
- Verify the exact release with `npm view protobuf-platform@<release-version> version`, then confirm the registry tarball contains the generated getters/setters and a wire round-trip of the changed fields. A version number alone is not delivery. Then run only `sh sync_internal_libs.sh` directly in each affected service repository under the Project Rules. Verify installed/dependency/lockfile state and the expected contract, then continue the same master task automatically without a publication acknowledgement or manual sync handoff. Request human action only for genuinely unavailable authentication or permissions; never expose credentials.
|
|
15
15
|
- package.json has no lint command; its test script is a failing placeholder. For documentation-only edits use diff/link review; generation is required when contracts change, not for editing these instructions.
|
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
|
@@ -478,6 +478,20 @@ message OperationDetailsItem {
|
|
|
478
478
|
optional string origin = 20;
|
|
479
479
|
optional string canonical_status = 21;
|
|
480
480
|
optional string amount_minor = 22;
|
|
481
|
+
// Committed gameplay evidence for recovery, available only for matched game operations.
|
|
482
|
+
optional CasinoRecoveryOperationEvidence casino_recovery = 23;
|
|
483
|
+
}
|
|
484
|
+
message CasinoRecoveryOperationEvidence {
|
|
485
|
+
optional uint32 accounting_scale = 1;
|
|
486
|
+
optional string provider_currency = 2;
|
|
487
|
+
optional string provider_amount = 3;
|
|
488
|
+
optional string provider_amount_minor = 4;
|
|
489
|
+
optional uint32 provider_scale = 5;
|
|
490
|
+
repeated CasinoRecoveryOriginal originals = 6;
|
|
491
|
+
}
|
|
492
|
+
message CasinoRecoveryOriginal {
|
|
493
|
+
string action = 1;
|
|
494
|
+
string transaction_id = 2;
|
|
481
495
|
}
|
|
482
496
|
message OperationLedgerItem {
|
|
483
497
|
int32 id = 1;
|
package/payment/payment_pb.js
CHANGED
|
@@ -41,6 +41,8 @@ goog.exportSymbol('proto.payment.CashbackClaimCreditRequest', null, global);
|
|
|
41
41
|
goog.exportSymbol('proto.payment.CashierFieldItem', null, global);
|
|
42
42
|
goog.exportSymbol('proto.payment.CashierFieldItemsResponse', null, global);
|
|
43
43
|
goog.exportSymbol('proto.payment.CashierFieldsRequest', null, global);
|
|
44
|
+
goog.exportSymbol('proto.payment.CasinoRecoveryOperationEvidence', null, global);
|
|
45
|
+
goog.exportSymbol('proto.payment.CasinoRecoveryOriginal', null, global);
|
|
44
46
|
goog.exportSymbol('proto.payment.CheckFastDepositRequest', null, global);
|
|
45
47
|
goog.exportSymbol('proto.payment.CheckFastDepositResponse', null, global);
|
|
46
48
|
goog.exportSymbol('proto.payment.CheckWithdrawalEligibilityRequest', null, global);
|
|
@@ -1101,6 +1103,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1101
1103
|
*/
|
|
1102
1104
|
proto.payment.OperationDetailsItem.displayName = 'proto.payment.OperationDetailsItem';
|
|
1103
1105
|
}
|
|
1106
|
+
/**
|
|
1107
|
+
* Generated by JsPbCodeGenerator.
|
|
1108
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1109
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1110
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1111
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1112
|
+
* valid.
|
|
1113
|
+
* @extends {jspb.Message}
|
|
1114
|
+
* @constructor
|
|
1115
|
+
*/
|
|
1116
|
+
proto.payment.CasinoRecoveryOperationEvidence = function(opt_data) {
|
|
1117
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.payment.CasinoRecoveryOperationEvidence.repeatedFields_, null);
|
|
1118
|
+
};
|
|
1119
|
+
goog.inherits(proto.payment.CasinoRecoveryOperationEvidence, jspb.Message);
|
|
1120
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1121
|
+
/**
|
|
1122
|
+
* @public
|
|
1123
|
+
* @override
|
|
1124
|
+
*/
|
|
1125
|
+
proto.payment.CasinoRecoveryOperationEvidence.displayName = 'proto.payment.CasinoRecoveryOperationEvidence';
|
|
1126
|
+
}
|
|
1127
|
+
/**
|
|
1128
|
+
* Generated by JsPbCodeGenerator.
|
|
1129
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1130
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1131
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1132
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1133
|
+
* valid.
|
|
1134
|
+
* @extends {jspb.Message}
|
|
1135
|
+
* @constructor
|
|
1136
|
+
*/
|
|
1137
|
+
proto.payment.CasinoRecoveryOriginal = function(opt_data) {
|
|
1138
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1139
|
+
};
|
|
1140
|
+
goog.inherits(proto.payment.CasinoRecoveryOriginal, jspb.Message);
|
|
1141
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1142
|
+
/**
|
|
1143
|
+
* @public
|
|
1144
|
+
* @override
|
|
1145
|
+
*/
|
|
1146
|
+
proto.payment.CasinoRecoveryOriginal.displayName = 'proto.payment.CasinoRecoveryOriginal';
|
|
1147
|
+
}
|
|
1104
1148
|
/**
|
|
1105
1149
|
* Generated by JsPbCodeGenerator.
|
|
1106
1150
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -18627,7 +18671,8 @@ proto.payment.OperationDetailsItem.toObject = function(includeInstance, msg) {
|
|
|
18627
18671
|
providerOutcome: (f = msg.getProviderOutcome()) && proto.payment.ProviderOutcome.toObject(includeInstance, f),
|
|
18628
18672
|
origin: jspb.Message.getFieldWithDefault(msg, 20, ""),
|
|
18629
18673
|
canonicalStatus: jspb.Message.getFieldWithDefault(msg, 21, ""),
|
|
18630
|
-
amountMinor: jspb.Message.getFieldWithDefault(msg, 22, "")
|
|
18674
|
+
amountMinor: jspb.Message.getFieldWithDefault(msg, 22, ""),
|
|
18675
|
+
casinoRecovery: (f = msg.getCasinoRecovery()) && proto.payment.CasinoRecoveryOperationEvidence.toObject(includeInstance, f)
|
|
18631
18676
|
};
|
|
18632
18677
|
|
|
18633
18678
|
if (includeInstance) {
|
|
@@ -18753,6 +18798,11 @@ proto.payment.OperationDetailsItem.deserializeBinaryFromReader = function(msg, r
|
|
|
18753
18798
|
var value = /** @type {string} */ (reader.readString());
|
|
18754
18799
|
msg.setAmountMinor(value);
|
|
18755
18800
|
break;
|
|
18801
|
+
case 23:
|
|
18802
|
+
var value = new proto.payment.CasinoRecoveryOperationEvidence;
|
|
18803
|
+
reader.readMessage(value,proto.payment.CasinoRecoveryOperationEvidence.deserializeBinaryFromReader);
|
|
18804
|
+
msg.setCasinoRecovery(value);
|
|
18805
|
+
break;
|
|
18756
18806
|
default:
|
|
18757
18807
|
reader.skipField();
|
|
18758
18808
|
break;
|
|
@@ -18937,6 +18987,14 @@ proto.payment.OperationDetailsItem.serializeBinaryToWriter = function(message, w
|
|
|
18937
18987
|
f
|
|
18938
18988
|
);
|
|
18939
18989
|
}
|
|
18990
|
+
f = message.getCasinoRecovery();
|
|
18991
|
+
if (f != null) {
|
|
18992
|
+
writer.writeMessage(
|
|
18993
|
+
23,
|
|
18994
|
+
f,
|
|
18995
|
+
proto.payment.CasinoRecoveryOperationEvidence.serializeBinaryToWriter
|
|
18996
|
+
);
|
|
18997
|
+
}
|
|
18940
18998
|
};
|
|
18941
18999
|
|
|
18942
19000
|
|
|
@@ -19445,6 +19503,603 @@ proto.payment.OperationDetailsItem.prototype.hasAmountMinor = function() {
|
|
|
19445
19503
|
};
|
|
19446
19504
|
|
|
19447
19505
|
|
|
19506
|
+
/**
|
|
19507
|
+
* optional CasinoRecoveryOperationEvidence casino_recovery = 23;
|
|
19508
|
+
* @return {?proto.payment.CasinoRecoveryOperationEvidence}
|
|
19509
|
+
*/
|
|
19510
|
+
proto.payment.OperationDetailsItem.prototype.getCasinoRecovery = function() {
|
|
19511
|
+
return /** @type{?proto.payment.CasinoRecoveryOperationEvidence} */ (
|
|
19512
|
+
jspb.Message.getWrapperField(this, proto.payment.CasinoRecoveryOperationEvidence, 23));
|
|
19513
|
+
};
|
|
19514
|
+
|
|
19515
|
+
|
|
19516
|
+
/**
|
|
19517
|
+
* @param {?proto.payment.CasinoRecoveryOperationEvidence|undefined} value
|
|
19518
|
+
* @return {!proto.payment.OperationDetailsItem} returns this
|
|
19519
|
+
*/
|
|
19520
|
+
proto.payment.OperationDetailsItem.prototype.setCasinoRecovery = function(value) {
|
|
19521
|
+
return jspb.Message.setWrapperField(this, 23, value);
|
|
19522
|
+
};
|
|
19523
|
+
|
|
19524
|
+
|
|
19525
|
+
/**
|
|
19526
|
+
* Clears the message field making it undefined.
|
|
19527
|
+
* @return {!proto.payment.OperationDetailsItem} returns this
|
|
19528
|
+
*/
|
|
19529
|
+
proto.payment.OperationDetailsItem.prototype.clearCasinoRecovery = function() {
|
|
19530
|
+
return this.setCasinoRecovery(undefined);
|
|
19531
|
+
};
|
|
19532
|
+
|
|
19533
|
+
|
|
19534
|
+
/**
|
|
19535
|
+
* Returns whether this field is set.
|
|
19536
|
+
* @return {boolean}
|
|
19537
|
+
*/
|
|
19538
|
+
proto.payment.OperationDetailsItem.prototype.hasCasinoRecovery = function() {
|
|
19539
|
+
return jspb.Message.getField(this, 23) != null;
|
|
19540
|
+
};
|
|
19541
|
+
|
|
19542
|
+
|
|
19543
|
+
|
|
19544
|
+
/**
|
|
19545
|
+
* List of repeated fields within this message type.
|
|
19546
|
+
* @private {!Array<number>}
|
|
19547
|
+
* @const
|
|
19548
|
+
*/
|
|
19549
|
+
proto.payment.CasinoRecoveryOperationEvidence.repeatedFields_ = [6];
|
|
19550
|
+
|
|
19551
|
+
|
|
19552
|
+
|
|
19553
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
19554
|
+
/**
|
|
19555
|
+
* Creates an object representation of this proto.
|
|
19556
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
19557
|
+
* Optional fields that are not set will be set to undefined.
|
|
19558
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
19559
|
+
* For the list of reserved names please see:
|
|
19560
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
19561
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
19562
|
+
* JSPB instance for transitional soy proto support:
|
|
19563
|
+
* http://goto/soy-param-migration
|
|
19564
|
+
* @return {!Object}
|
|
19565
|
+
*/
|
|
19566
|
+
proto.payment.CasinoRecoveryOperationEvidence.prototype.toObject = function(opt_includeInstance) {
|
|
19567
|
+
return proto.payment.CasinoRecoveryOperationEvidence.toObject(opt_includeInstance, this);
|
|
19568
|
+
};
|
|
19569
|
+
|
|
19570
|
+
|
|
19571
|
+
/**
|
|
19572
|
+
* Static version of the {@see toObject} method.
|
|
19573
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
19574
|
+
* the JSPB instance for transitional soy proto support:
|
|
19575
|
+
* http://goto/soy-param-migration
|
|
19576
|
+
* @param {!proto.payment.CasinoRecoveryOperationEvidence} msg The msg instance to transform.
|
|
19577
|
+
* @return {!Object}
|
|
19578
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
19579
|
+
*/
|
|
19580
|
+
proto.payment.CasinoRecoveryOperationEvidence.toObject = function(includeInstance, msg) {
|
|
19581
|
+
var f, obj = {
|
|
19582
|
+
accountingScale: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
19583
|
+
providerCurrency: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
19584
|
+
providerAmount: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
19585
|
+
providerAmountMinor: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
19586
|
+
providerScale: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
19587
|
+
originalsList: jspb.Message.toObjectList(msg.getOriginalsList(),
|
|
19588
|
+
proto.payment.CasinoRecoveryOriginal.toObject, includeInstance)
|
|
19589
|
+
};
|
|
19590
|
+
|
|
19591
|
+
if (includeInstance) {
|
|
19592
|
+
obj.$jspbMessageInstance = msg;
|
|
19593
|
+
}
|
|
19594
|
+
return obj;
|
|
19595
|
+
};
|
|
19596
|
+
}
|
|
19597
|
+
|
|
19598
|
+
|
|
19599
|
+
/**
|
|
19600
|
+
* Deserializes binary data (in protobuf wire format).
|
|
19601
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
19602
|
+
* @return {!proto.payment.CasinoRecoveryOperationEvidence}
|
|
19603
|
+
*/
|
|
19604
|
+
proto.payment.CasinoRecoveryOperationEvidence.deserializeBinary = function(bytes) {
|
|
19605
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
19606
|
+
var msg = new proto.payment.CasinoRecoveryOperationEvidence;
|
|
19607
|
+
return proto.payment.CasinoRecoveryOperationEvidence.deserializeBinaryFromReader(msg, reader);
|
|
19608
|
+
};
|
|
19609
|
+
|
|
19610
|
+
|
|
19611
|
+
/**
|
|
19612
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
19613
|
+
* given reader into the given message object.
|
|
19614
|
+
* @param {!proto.payment.CasinoRecoveryOperationEvidence} msg The message object to deserialize into.
|
|
19615
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
19616
|
+
* @return {!proto.payment.CasinoRecoveryOperationEvidence}
|
|
19617
|
+
*/
|
|
19618
|
+
proto.payment.CasinoRecoveryOperationEvidence.deserializeBinaryFromReader = function(msg, reader) {
|
|
19619
|
+
while (reader.nextField()) {
|
|
19620
|
+
if (reader.isEndGroup()) {
|
|
19621
|
+
break;
|
|
19622
|
+
}
|
|
19623
|
+
var field = reader.getFieldNumber();
|
|
19624
|
+
switch (field) {
|
|
19625
|
+
case 1:
|
|
19626
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
19627
|
+
msg.setAccountingScale(value);
|
|
19628
|
+
break;
|
|
19629
|
+
case 2:
|
|
19630
|
+
var value = /** @type {string} */ (reader.readString());
|
|
19631
|
+
msg.setProviderCurrency(value);
|
|
19632
|
+
break;
|
|
19633
|
+
case 3:
|
|
19634
|
+
var value = /** @type {string} */ (reader.readString());
|
|
19635
|
+
msg.setProviderAmount(value);
|
|
19636
|
+
break;
|
|
19637
|
+
case 4:
|
|
19638
|
+
var value = /** @type {string} */ (reader.readString());
|
|
19639
|
+
msg.setProviderAmountMinor(value);
|
|
19640
|
+
break;
|
|
19641
|
+
case 5:
|
|
19642
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
19643
|
+
msg.setProviderScale(value);
|
|
19644
|
+
break;
|
|
19645
|
+
case 6:
|
|
19646
|
+
var value = new proto.payment.CasinoRecoveryOriginal;
|
|
19647
|
+
reader.readMessage(value,proto.payment.CasinoRecoveryOriginal.deserializeBinaryFromReader);
|
|
19648
|
+
msg.addOriginals(value);
|
|
19649
|
+
break;
|
|
19650
|
+
default:
|
|
19651
|
+
reader.skipField();
|
|
19652
|
+
break;
|
|
19653
|
+
}
|
|
19654
|
+
}
|
|
19655
|
+
return msg;
|
|
19656
|
+
};
|
|
19657
|
+
|
|
19658
|
+
|
|
19659
|
+
/**
|
|
19660
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
19661
|
+
* @return {!Uint8Array}
|
|
19662
|
+
*/
|
|
19663
|
+
proto.payment.CasinoRecoveryOperationEvidence.prototype.serializeBinary = function() {
|
|
19664
|
+
var writer = new jspb.BinaryWriter();
|
|
19665
|
+
proto.payment.CasinoRecoveryOperationEvidence.serializeBinaryToWriter(this, writer);
|
|
19666
|
+
return writer.getResultBuffer();
|
|
19667
|
+
};
|
|
19668
|
+
|
|
19669
|
+
|
|
19670
|
+
/**
|
|
19671
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
19672
|
+
* format), writing to the given BinaryWriter.
|
|
19673
|
+
* @param {!proto.payment.CasinoRecoveryOperationEvidence} message
|
|
19674
|
+
* @param {!jspb.BinaryWriter} writer
|
|
19675
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
19676
|
+
*/
|
|
19677
|
+
proto.payment.CasinoRecoveryOperationEvidence.serializeBinaryToWriter = function(message, writer) {
|
|
19678
|
+
var f = undefined;
|
|
19679
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
|
19680
|
+
if (f != null) {
|
|
19681
|
+
writer.writeUint32(
|
|
19682
|
+
1,
|
|
19683
|
+
f
|
|
19684
|
+
);
|
|
19685
|
+
}
|
|
19686
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
19687
|
+
if (f != null) {
|
|
19688
|
+
writer.writeString(
|
|
19689
|
+
2,
|
|
19690
|
+
f
|
|
19691
|
+
);
|
|
19692
|
+
}
|
|
19693
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
19694
|
+
if (f != null) {
|
|
19695
|
+
writer.writeString(
|
|
19696
|
+
3,
|
|
19697
|
+
f
|
|
19698
|
+
);
|
|
19699
|
+
}
|
|
19700
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
19701
|
+
if (f != null) {
|
|
19702
|
+
writer.writeString(
|
|
19703
|
+
4,
|
|
19704
|
+
f
|
|
19705
|
+
);
|
|
19706
|
+
}
|
|
19707
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
|
19708
|
+
if (f != null) {
|
|
19709
|
+
writer.writeUint32(
|
|
19710
|
+
5,
|
|
19711
|
+
f
|
|
19712
|
+
);
|
|
19713
|
+
}
|
|
19714
|
+
f = message.getOriginalsList();
|
|
19715
|
+
if (f.length > 0) {
|
|
19716
|
+
writer.writeRepeatedMessage(
|
|
19717
|
+
6,
|
|
19718
|
+
f,
|
|
19719
|
+
proto.payment.CasinoRecoveryOriginal.serializeBinaryToWriter
|
|
19720
|
+
);
|
|
19721
|
+
}
|
|
19722
|
+
};
|
|
19723
|
+
|
|
19724
|
+
|
|
19725
|
+
/**
|
|
19726
|
+
* optional uint32 accounting_scale = 1;
|
|
19727
|
+
* @return {number}
|
|
19728
|
+
*/
|
|
19729
|
+
proto.payment.CasinoRecoveryOperationEvidence.prototype.getAccountingScale = function() {
|
|
19730
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
19731
|
+
};
|
|
19732
|
+
|
|
19733
|
+
|
|
19734
|
+
/**
|
|
19735
|
+
* @param {number} value
|
|
19736
|
+
* @return {!proto.payment.CasinoRecoveryOperationEvidence} returns this
|
|
19737
|
+
*/
|
|
19738
|
+
proto.payment.CasinoRecoveryOperationEvidence.prototype.setAccountingScale = function(value) {
|
|
19739
|
+
return jspb.Message.setField(this, 1, value);
|
|
19740
|
+
};
|
|
19741
|
+
|
|
19742
|
+
|
|
19743
|
+
/**
|
|
19744
|
+
* Clears the field making it undefined.
|
|
19745
|
+
* @return {!proto.payment.CasinoRecoveryOperationEvidence} returns this
|
|
19746
|
+
*/
|
|
19747
|
+
proto.payment.CasinoRecoveryOperationEvidence.prototype.clearAccountingScale = function() {
|
|
19748
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
19749
|
+
};
|
|
19750
|
+
|
|
19751
|
+
|
|
19752
|
+
/**
|
|
19753
|
+
* Returns whether this field is set.
|
|
19754
|
+
* @return {boolean}
|
|
19755
|
+
*/
|
|
19756
|
+
proto.payment.CasinoRecoveryOperationEvidence.prototype.hasAccountingScale = function() {
|
|
19757
|
+
return jspb.Message.getField(this, 1) != null;
|
|
19758
|
+
};
|
|
19759
|
+
|
|
19760
|
+
|
|
19761
|
+
/**
|
|
19762
|
+
* optional string provider_currency = 2;
|
|
19763
|
+
* @return {string}
|
|
19764
|
+
*/
|
|
19765
|
+
proto.payment.CasinoRecoveryOperationEvidence.prototype.getProviderCurrency = function() {
|
|
19766
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
19767
|
+
};
|
|
19768
|
+
|
|
19769
|
+
|
|
19770
|
+
/**
|
|
19771
|
+
* @param {string} value
|
|
19772
|
+
* @return {!proto.payment.CasinoRecoveryOperationEvidence} returns this
|
|
19773
|
+
*/
|
|
19774
|
+
proto.payment.CasinoRecoveryOperationEvidence.prototype.setProviderCurrency = function(value) {
|
|
19775
|
+
return jspb.Message.setField(this, 2, value);
|
|
19776
|
+
};
|
|
19777
|
+
|
|
19778
|
+
|
|
19779
|
+
/**
|
|
19780
|
+
* Clears the field making it undefined.
|
|
19781
|
+
* @return {!proto.payment.CasinoRecoveryOperationEvidence} returns this
|
|
19782
|
+
*/
|
|
19783
|
+
proto.payment.CasinoRecoveryOperationEvidence.prototype.clearProviderCurrency = function() {
|
|
19784
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
19785
|
+
};
|
|
19786
|
+
|
|
19787
|
+
|
|
19788
|
+
/**
|
|
19789
|
+
* Returns whether this field is set.
|
|
19790
|
+
* @return {boolean}
|
|
19791
|
+
*/
|
|
19792
|
+
proto.payment.CasinoRecoveryOperationEvidence.prototype.hasProviderCurrency = function() {
|
|
19793
|
+
return jspb.Message.getField(this, 2) != null;
|
|
19794
|
+
};
|
|
19795
|
+
|
|
19796
|
+
|
|
19797
|
+
/**
|
|
19798
|
+
* optional string provider_amount = 3;
|
|
19799
|
+
* @return {string}
|
|
19800
|
+
*/
|
|
19801
|
+
proto.payment.CasinoRecoveryOperationEvidence.prototype.getProviderAmount = function() {
|
|
19802
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
19803
|
+
};
|
|
19804
|
+
|
|
19805
|
+
|
|
19806
|
+
/**
|
|
19807
|
+
* @param {string} value
|
|
19808
|
+
* @return {!proto.payment.CasinoRecoveryOperationEvidence} returns this
|
|
19809
|
+
*/
|
|
19810
|
+
proto.payment.CasinoRecoveryOperationEvidence.prototype.setProviderAmount = function(value) {
|
|
19811
|
+
return jspb.Message.setField(this, 3, value);
|
|
19812
|
+
};
|
|
19813
|
+
|
|
19814
|
+
|
|
19815
|
+
/**
|
|
19816
|
+
* Clears the field making it undefined.
|
|
19817
|
+
* @return {!proto.payment.CasinoRecoveryOperationEvidence} returns this
|
|
19818
|
+
*/
|
|
19819
|
+
proto.payment.CasinoRecoveryOperationEvidence.prototype.clearProviderAmount = function() {
|
|
19820
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
19821
|
+
};
|
|
19822
|
+
|
|
19823
|
+
|
|
19824
|
+
/**
|
|
19825
|
+
* Returns whether this field is set.
|
|
19826
|
+
* @return {boolean}
|
|
19827
|
+
*/
|
|
19828
|
+
proto.payment.CasinoRecoveryOperationEvidence.prototype.hasProviderAmount = function() {
|
|
19829
|
+
return jspb.Message.getField(this, 3) != null;
|
|
19830
|
+
};
|
|
19831
|
+
|
|
19832
|
+
|
|
19833
|
+
/**
|
|
19834
|
+
* optional string provider_amount_minor = 4;
|
|
19835
|
+
* @return {string}
|
|
19836
|
+
*/
|
|
19837
|
+
proto.payment.CasinoRecoveryOperationEvidence.prototype.getProviderAmountMinor = function() {
|
|
19838
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
19839
|
+
};
|
|
19840
|
+
|
|
19841
|
+
|
|
19842
|
+
/**
|
|
19843
|
+
* @param {string} value
|
|
19844
|
+
* @return {!proto.payment.CasinoRecoveryOperationEvidence} returns this
|
|
19845
|
+
*/
|
|
19846
|
+
proto.payment.CasinoRecoveryOperationEvidence.prototype.setProviderAmountMinor = function(value) {
|
|
19847
|
+
return jspb.Message.setField(this, 4, value);
|
|
19848
|
+
};
|
|
19849
|
+
|
|
19850
|
+
|
|
19851
|
+
/**
|
|
19852
|
+
* Clears the field making it undefined.
|
|
19853
|
+
* @return {!proto.payment.CasinoRecoveryOperationEvidence} returns this
|
|
19854
|
+
*/
|
|
19855
|
+
proto.payment.CasinoRecoveryOperationEvidence.prototype.clearProviderAmountMinor = function() {
|
|
19856
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
19857
|
+
};
|
|
19858
|
+
|
|
19859
|
+
|
|
19860
|
+
/**
|
|
19861
|
+
* Returns whether this field is set.
|
|
19862
|
+
* @return {boolean}
|
|
19863
|
+
*/
|
|
19864
|
+
proto.payment.CasinoRecoveryOperationEvidence.prototype.hasProviderAmountMinor = function() {
|
|
19865
|
+
return jspb.Message.getField(this, 4) != null;
|
|
19866
|
+
};
|
|
19867
|
+
|
|
19868
|
+
|
|
19869
|
+
/**
|
|
19870
|
+
* optional uint32 provider_scale = 5;
|
|
19871
|
+
* @return {number}
|
|
19872
|
+
*/
|
|
19873
|
+
proto.payment.CasinoRecoveryOperationEvidence.prototype.getProviderScale = function() {
|
|
19874
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
19875
|
+
};
|
|
19876
|
+
|
|
19877
|
+
|
|
19878
|
+
/**
|
|
19879
|
+
* @param {number} value
|
|
19880
|
+
* @return {!proto.payment.CasinoRecoveryOperationEvidence} returns this
|
|
19881
|
+
*/
|
|
19882
|
+
proto.payment.CasinoRecoveryOperationEvidence.prototype.setProviderScale = function(value) {
|
|
19883
|
+
return jspb.Message.setField(this, 5, value);
|
|
19884
|
+
};
|
|
19885
|
+
|
|
19886
|
+
|
|
19887
|
+
/**
|
|
19888
|
+
* Clears the field making it undefined.
|
|
19889
|
+
* @return {!proto.payment.CasinoRecoveryOperationEvidence} returns this
|
|
19890
|
+
*/
|
|
19891
|
+
proto.payment.CasinoRecoveryOperationEvidence.prototype.clearProviderScale = function() {
|
|
19892
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
19893
|
+
};
|
|
19894
|
+
|
|
19895
|
+
|
|
19896
|
+
/**
|
|
19897
|
+
* Returns whether this field is set.
|
|
19898
|
+
* @return {boolean}
|
|
19899
|
+
*/
|
|
19900
|
+
proto.payment.CasinoRecoveryOperationEvidence.prototype.hasProviderScale = function() {
|
|
19901
|
+
return jspb.Message.getField(this, 5) != null;
|
|
19902
|
+
};
|
|
19903
|
+
|
|
19904
|
+
|
|
19905
|
+
/**
|
|
19906
|
+
* repeated CasinoRecoveryOriginal originals = 6;
|
|
19907
|
+
* @return {!Array<!proto.payment.CasinoRecoveryOriginal>}
|
|
19908
|
+
*/
|
|
19909
|
+
proto.payment.CasinoRecoveryOperationEvidence.prototype.getOriginalsList = function() {
|
|
19910
|
+
return /** @type{!Array<!proto.payment.CasinoRecoveryOriginal>} */ (
|
|
19911
|
+
jspb.Message.getRepeatedWrapperField(this, proto.payment.CasinoRecoveryOriginal, 6));
|
|
19912
|
+
};
|
|
19913
|
+
|
|
19914
|
+
|
|
19915
|
+
/**
|
|
19916
|
+
* @param {!Array<!proto.payment.CasinoRecoveryOriginal>} value
|
|
19917
|
+
* @return {!proto.payment.CasinoRecoveryOperationEvidence} returns this
|
|
19918
|
+
*/
|
|
19919
|
+
proto.payment.CasinoRecoveryOperationEvidence.prototype.setOriginalsList = function(value) {
|
|
19920
|
+
return jspb.Message.setRepeatedWrapperField(this, 6, value);
|
|
19921
|
+
};
|
|
19922
|
+
|
|
19923
|
+
|
|
19924
|
+
/**
|
|
19925
|
+
* @param {!proto.payment.CasinoRecoveryOriginal=} opt_value
|
|
19926
|
+
* @param {number=} opt_index
|
|
19927
|
+
* @return {!proto.payment.CasinoRecoveryOriginal}
|
|
19928
|
+
*/
|
|
19929
|
+
proto.payment.CasinoRecoveryOperationEvidence.prototype.addOriginals = function(opt_value, opt_index) {
|
|
19930
|
+
return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.payment.CasinoRecoveryOriginal, opt_index);
|
|
19931
|
+
};
|
|
19932
|
+
|
|
19933
|
+
|
|
19934
|
+
/**
|
|
19935
|
+
* Clears the list making it empty but non-null.
|
|
19936
|
+
* @return {!proto.payment.CasinoRecoveryOperationEvidence} returns this
|
|
19937
|
+
*/
|
|
19938
|
+
proto.payment.CasinoRecoveryOperationEvidence.prototype.clearOriginalsList = function() {
|
|
19939
|
+
return this.setOriginalsList([]);
|
|
19940
|
+
};
|
|
19941
|
+
|
|
19942
|
+
|
|
19943
|
+
|
|
19944
|
+
|
|
19945
|
+
|
|
19946
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
19947
|
+
/**
|
|
19948
|
+
* Creates an object representation of this proto.
|
|
19949
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
19950
|
+
* Optional fields that are not set will be set to undefined.
|
|
19951
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
19952
|
+
* For the list of reserved names please see:
|
|
19953
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
19954
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
19955
|
+
* JSPB instance for transitional soy proto support:
|
|
19956
|
+
* http://goto/soy-param-migration
|
|
19957
|
+
* @return {!Object}
|
|
19958
|
+
*/
|
|
19959
|
+
proto.payment.CasinoRecoveryOriginal.prototype.toObject = function(opt_includeInstance) {
|
|
19960
|
+
return proto.payment.CasinoRecoveryOriginal.toObject(opt_includeInstance, this);
|
|
19961
|
+
};
|
|
19962
|
+
|
|
19963
|
+
|
|
19964
|
+
/**
|
|
19965
|
+
* Static version of the {@see toObject} method.
|
|
19966
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
19967
|
+
* the JSPB instance for transitional soy proto support:
|
|
19968
|
+
* http://goto/soy-param-migration
|
|
19969
|
+
* @param {!proto.payment.CasinoRecoveryOriginal} msg The msg instance to transform.
|
|
19970
|
+
* @return {!Object}
|
|
19971
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
19972
|
+
*/
|
|
19973
|
+
proto.payment.CasinoRecoveryOriginal.toObject = function(includeInstance, msg) {
|
|
19974
|
+
var f, obj = {
|
|
19975
|
+
action: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
19976
|
+
transactionId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
19977
|
+
};
|
|
19978
|
+
|
|
19979
|
+
if (includeInstance) {
|
|
19980
|
+
obj.$jspbMessageInstance = msg;
|
|
19981
|
+
}
|
|
19982
|
+
return obj;
|
|
19983
|
+
};
|
|
19984
|
+
}
|
|
19985
|
+
|
|
19986
|
+
|
|
19987
|
+
/**
|
|
19988
|
+
* Deserializes binary data (in protobuf wire format).
|
|
19989
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
19990
|
+
* @return {!proto.payment.CasinoRecoveryOriginal}
|
|
19991
|
+
*/
|
|
19992
|
+
proto.payment.CasinoRecoveryOriginal.deserializeBinary = function(bytes) {
|
|
19993
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
19994
|
+
var msg = new proto.payment.CasinoRecoveryOriginal;
|
|
19995
|
+
return proto.payment.CasinoRecoveryOriginal.deserializeBinaryFromReader(msg, reader);
|
|
19996
|
+
};
|
|
19997
|
+
|
|
19998
|
+
|
|
19999
|
+
/**
|
|
20000
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
20001
|
+
* given reader into the given message object.
|
|
20002
|
+
* @param {!proto.payment.CasinoRecoveryOriginal} msg The message object to deserialize into.
|
|
20003
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
20004
|
+
* @return {!proto.payment.CasinoRecoveryOriginal}
|
|
20005
|
+
*/
|
|
20006
|
+
proto.payment.CasinoRecoveryOriginal.deserializeBinaryFromReader = function(msg, reader) {
|
|
20007
|
+
while (reader.nextField()) {
|
|
20008
|
+
if (reader.isEndGroup()) {
|
|
20009
|
+
break;
|
|
20010
|
+
}
|
|
20011
|
+
var field = reader.getFieldNumber();
|
|
20012
|
+
switch (field) {
|
|
20013
|
+
case 1:
|
|
20014
|
+
var value = /** @type {string} */ (reader.readString());
|
|
20015
|
+
msg.setAction(value);
|
|
20016
|
+
break;
|
|
20017
|
+
case 2:
|
|
20018
|
+
var value = /** @type {string} */ (reader.readString());
|
|
20019
|
+
msg.setTransactionId(value);
|
|
20020
|
+
break;
|
|
20021
|
+
default:
|
|
20022
|
+
reader.skipField();
|
|
20023
|
+
break;
|
|
20024
|
+
}
|
|
20025
|
+
}
|
|
20026
|
+
return msg;
|
|
20027
|
+
};
|
|
20028
|
+
|
|
20029
|
+
|
|
20030
|
+
/**
|
|
20031
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
20032
|
+
* @return {!Uint8Array}
|
|
20033
|
+
*/
|
|
20034
|
+
proto.payment.CasinoRecoveryOriginal.prototype.serializeBinary = function() {
|
|
20035
|
+
var writer = new jspb.BinaryWriter();
|
|
20036
|
+
proto.payment.CasinoRecoveryOriginal.serializeBinaryToWriter(this, writer);
|
|
20037
|
+
return writer.getResultBuffer();
|
|
20038
|
+
};
|
|
20039
|
+
|
|
20040
|
+
|
|
20041
|
+
/**
|
|
20042
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
20043
|
+
* format), writing to the given BinaryWriter.
|
|
20044
|
+
* @param {!proto.payment.CasinoRecoveryOriginal} message
|
|
20045
|
+
* @param {!jspb.BinaryWriter} writer
|
|
20046
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
20047
|
+
*/
|
|
20048
|
+
proto.payment.CasinoRecoveryOriginal.serializeBinaryToWriter = function(message, writer) {
|
|
20049
|
+
var f = undefined;
|
|
20050
|
+
f = message.getAction();
|
|
20051
|
+
if (f.length > 0) {
|
|
20052
|
+
writer.writeString(
|
|
20053
|
+
1,
|
|
20054
|
+
f
|
|
20055
|
+
);
|
|
20056
|
+
}
|
|
20057
|
+
f = message.getTransactionId();
|
|
20058
|
+
if (f.length > 0) {
|
|
20059
|
+
writer.writeString(
|
|
20060
|
+
2,
|
|
20061
|
+
f
|
|
20062
|
+
);
|
|
20063
|
+
}
|
|
20064
|
+
};
|
|
20065
|
+
|
|
20066
|
+
|
|
20067
|
+
/**
|
|
20068
|
+
* optional string action = 1;
|
|
20069
|
+
* @return {string}
|
|
20070
|
+
*/
|
|
20071
|
+
proto.payment.CasinoRecoveryOriginal.prototype.getAction = function() {
|
|
20072
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
20073
|
+
};
|
|
20074
|
+
|
|
20075
|
+
|
|
20076
|
+
/**
|
|
20077
|
+
* @param {string} value
|
|
20078
|
+
* @return {!proto.payment.CasinoRecoveryOriginal} returns this
|
|
20079
|
+
*/
|
|
20080
|
+
proto.payment.CasinoRecoveryOriginal.prototype.setAction = function(value) {
|
|
20081
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
20082
|
+
};
|
|
20083
|
+
|
|
20084
|
+
|
|
20085
|
+
/**
|
|
20086
|
+
* optional string transaction_id = 2;
|
|
20087
|
+
* @return {string}
|
|
20088
|
+
*/
|
|
20089
|
+
proto.payment.CasinoRecoveryOriginal.prototype.getTransactionId = function() {
|
|
20090
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
20091
|
+
};
|
|
20092
|
+
|
|
20093
|
+
|
|
20094
|
+
/**
|
|
20095
|
+
* @param {string} value
|
|
20096
|
+
* @return {!proto.payment.CasinoRecoveryOriginal} returns this
|
|
20097
|
+
*/
|
|
20098
|
+
proto.payment.CasinoRecoveryOriginal.prototype.setTransactionId = function(value) {
|
|
20099
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
20100
|
+
};
|
|
20101
|
+
|
|
20102
|
+
|
|
19448
20103
|
|
|
19449
20104
|
|
|
19450
20105
|
|
|
@@ -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
|
|