protobuf-platform 1.2.744 → 1.2.745
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/payment/payment.proto +33 -0
- package/payment/payment_grpc_pb.js +34 -0
- package/payment/payment_pb.js +1012 -0
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
|
@@ -105,6 +105,8 @@ service Payment {
|
|
|
105
105
|
rpc createManualDeposit(ManualDepositRequest) returns (FinancialOperationResponse);
|
|
106
106
|
rpc reconcileDeposit(DepositReconciliationRequest) returns (FinancialOperationResponse);
|
|
107
107
|
rpc createCompensation(CompensationRequest) returns (FinancialOperationResponse);
|
|
108
|
+
// Explicit operator-approved historical correction; never ordinary bonus settlement.
|
|
109
|
+
rpc reconcileHistoricalBonusCompletion(HistoricalBonusCompletionRequest) returns (HistoricalBonusCompletionResponse);
|
|
108
110
|
rpc readListCompensations(PaginationRequest) returns (CompensationItemsResponse);
|
|
109
111
|
rpc createConfiscation(ConfiscationRequest) returns (FinancialOperationResponse);
|
|
110
112
|
rpc readListConfiscations(PaginationRequest) returns (ConfiscationItemsResponse);
|
|
@@ -1880,3 +1882,34 @@ message BonusTerminalReceiptResponse {
|
|
|
1880
1882
|
string pending_reason = 2;
|
|
1881
1883
|
}
|
|
1882
1884
|
}
|
|
1885
|
+
|
|
1886
|
+
// Original-currency amounts are strings to preserve exact minor units beyond JS safe integers.
|
|
1887
|
+
message HistoricalBonusCompletionRequest {
|
|
1888
|
+
string correction_id = 1;
|
|
1889
|
+
string manifest_hash = 2;
|
|
1890
|
+
string evidence_hash = 3;
|
|
1891
|
+
int32 user_id = 4;
|
|
1892
|
+
int32 user_bonus_id = 5;
|
|
1893
|
+
string currency = 6;
|
|
1894
|
+
int32 currency_scale = 7;
|
|
1895
|
+
string unpaid_amount_minor = 8;
|
|
1896
|
+
string historical_entitlement_minor = 9;
|
|
1897
|
+
string already_paid_eligible_minor = 10;
|
|
1898
|
+
string completion_decision_id = 11;
|
|
1899
|
+
string historical_completed_at = 12;
|
|
1900
|
+
string original_terminal_receipt_id = 13;
|
|
1901
|
+
string approval_reference = 14;
|
|
1902
|
+
}
|
|
1903
|
+
message HistoricalBonusCompletionResponse {
|
|
1904
|
+
string correction_id = 1;
|
|
1905
|
+
string manifest_hash = 2;
|
|
1906
|
+
string evidence_hash = 3;
|
|
1907
|
+
string outcome = 4;
|
|
1908
|
+
optional string payment_operation_id = 5;
|
|
1909
|
+
int32 user_id = 6;
|
|
1910
|
+
int32 user_bonus_id = 7;
|
|
1911
|
+
string currency = 8;
|
|
1912
|
+
int32 currency_scale = 9;
|
|
1913
|
+
string amount_minor = 10;
|
|
1914
|
+
string receipt_id = 11;
|
|
1915
|
+
}
|
|
@@ -741,6 +741,28 @@ function deserialize_payment_GetWithdrawalWagerSnapshotResponse(buffer_arg) {
|
|
|
741
741
|
return payment_pb.GetWithdrawalWagerSnapshotResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
742
742
|
}
|
|
743
743
|
|
|
744
|
+
function serialize_payment_HistoricalBonusCompletionRequest(arg) {
|
|
745
|
+
if (!(arg instanceof payment_pb.HistoricalBonusCompletionRequest)) {
|
|
746
|
+
throw new Error('Expected argument of type payment.HistoricalBonusCompletionRequest');
|
|
747
|
+
}
|
|
748
|
+
return Buffer.from(arg.serializeBinary());
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
function deserialize_payment_HistoricalBonusCompletionRequest(buffer_arg) {
|
|
752
|
+
return payment_pb.HistoricalBonusCompletionRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
function serialize_payment_HistoricalBonusCompletionResponse(arg) {
|
|
756
|
+
if (!(arg instanceof payment_pb.HistoricalBonusCompletionResponse)) {
|
|
757
|
+
throw new Error('Expected argument of type payment.HistoricalBonusCompletionResponse');
|
|
758
|
+
}
|
|
759
|
+
return Buffer.from(arg.serializeBinary());
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
function deserialize_payment_HistoricalBonusCompletionResponse(buffer_arg) {
|
|
763
|
+
return payment_pb.HistoricalBonusCompletionResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
764
|
+
}
|
|
765
|
+
|
|
744
766
|
function serialize_payment_ItemsBunchRequest(arg) {
|
|
745
767
|
if (!(arg instanceof payment_pb.ItemsBunchRequest)) {
|
|
746
768
|
throw new Error('Expected argument of type payment.ItemsBunchRequest');
|
|
@@ -2258,6 +2280,18 @@ createManualDeposit: {
|
|
|
2258
2280
|
responseSerialize: serialize_payment_FinancialOperationResponse,
|
|
2259
2281
|
responseDeserialize: deserialize_payment_FinancialOperationResponse,
|
|
2260
2282
|
},
|
|
2283
|
+
// Explicit operator-approved historical correction; never ordinary bonus settlement.
|
|
2284
|
+
reconcileHistoricalBonusCompletion: {
|
|
2285
|
+
path: '/payment.Payment/reconcileHistoricalBonusCompletion',
|
|
2286
|
+
requestStream: false,
|
|
2287
|
+
responseStream: false,
|
|
2288
|
+
requestType: payment_pb.HistoricalBonusCompletionRequest,
|
|
2289
|
+
responseType: payment_pb.HistoricalBonusCompletionResponse,
|
|
2290
|
+
requestSerialize: serialize_payment_HistoricalBonusCompletionRequest,
|
|
2291
|
+
requestDeserialize: deserialize_payment_HistoricalBonusCompletionRequest,
|
|
2292
|
+
responseSerialize: serialize_payment_HistoricalBonusCompletionResponse,
|
|
2293
|
+
responseDeserialize: deserialize_payment_HistoricalBonusCompletionResponse,
|
|
2294
|
+
},
|
|
2261
2295
|
readListCompensations: {
|
|
2262
2296
|
path: '/payment.Payment/readListCompensations',
|
|
2263
2297
|
requestStream: false,
|
package/payment/payment_pb.js
CHANGED
|
@@ -116,6 +116,8 @@ goog.exportSymbol('proto.payment.GetWithdrawalWagerBucketHistoryResponse', null,
|
|
|
116
116
|
goog.exportSymbol('proto.payment.GetWithdrawalWagerSnapshotRequest', null, global);
|
|
117
117
|
goog.exportSymbol('proto.payment.GetWithdrawalWagerSnapshotResponse', null, global);
|
|
118
118
|
goog.exportSymbol('proto.payment.GlobalWithdrawalAvailability', null, global);
|
|
119
|
+
goog.exportSymbol('proto.payment.HistoricalBonusCompletionRequest', null, global);
|
|
120
|
+
goog.exportSymbol('proto.payment.HistoricalBonusCompletionResponse', null, global);
|
|
119
121
|
goog.exportSymbol('proto.payment.ItemsBunchRequest', null, global);
|
|
120
122
|
goog.exportSymbol('proto.payment.LoyaltyLevelUpRewardRequest', null, global);
|
|
121
123
|
goog.exportSymbol('proto.payment.LoyaltyLevelUpRewardResponse', null, global);
|
|
@@ -3833,6 +3835,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
3833
3835
|
*/
|
|
3834
3836
|
proto.payment.BonusTerminalReceiptResponse.displayName = 'proto.payment.BonusTerminalReceiptResponse';
|
|
3835
3837
|
}
|
|
3838
|
+
/**
|
|
3839
|
+
* Generated by JsPbCodeGenerator.
|
|
3840
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3841
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3842
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3843
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3844
|
+
* valid.
|
|
3845
|
+
* @extends {jspb.Message}
|
|
3846
|
+
* @constructor
|
|
3847
|
+
*/
|
|
3848
|
+
proto.payment.HistoricalBonusCompletionRequest = function(opt_data) {
|
|
3849
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3850
|
+
};
|
|
3851
|
+
goog.inherits(proto.payment.HistoricalBonusCompletionRequest, jspb.Message);
|
|
3852
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3853
|
+
/**
|
|
3854
|
+
* @public
|
|
3855
|
+
* @override
|
|
3856
|
+
*/
|
|
3857
|
+
proto.payment.HistoricalBonusCompletionRequest.displayName = 'proto.payment.HistoricalBonusCompletionRequest';
|
|
3858
|
+
}
|
|
3859
|
+
/**
|
|
3860
|
+
* Generated by JsPbCodeGenerator.
|
|
3861
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3862
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3863
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3864
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3865
|
+
* valid.
|
|
3866
|
+
* @extends {jspb.Message}
|
|
3867
|
+
* @constructor
|
|
3868
|
+
*/
|
|
3869
|
+
proto.payment.HistoricalBonusCompletionResponse = function(opt_data) {
|
|
3870
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3871
|
+
};
|
|
3872
|
+
goog.inherits(proto.payment.HistoricalBonusCompletionResponse, jspb.Message);
|
|
3873
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3874
|
+
/**
|
|
3875
|
+
* @public
|
|
3876
|
+
* @override
|
|
3877
|
+
*/
|
|
3878
|
+
proto.payment.HistoricalBonusCompletionResponse.displayName = 'proto.payment.HistoricalBonusCompletionResponse';
|
|
3879
|
+
}
|
|
3836
3880
|
|
|
3837
3881
|
|
|
3838
3882
|
|
|
@@ -73883,6 +73927,974 @@ proto.payment.BonusTerminalReceiptResponse.prototype.hasPendingReason = function
|
|
|
73883
73927
|
};
|
|
73884
73928
|
|
|
73885
73929
|
|
|
73930
|
+
|
|
73931
|
+
|
|
73932
|
+
|
|
73933
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
73934
|
+
/**
|
|
73935
|
+
* Creates an object representation of this proto.
|
|
73936
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
73937
|
+
* Optional fields that are not set will be set to undefined.
|
|
73938
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
73939
|
+
* For the list of reserved names please see:
|
|
73940
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
73941
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
73942
|
+
* JSPB instance for transitional soy proto support:
|
|
73943
|
+
* http://goto/soy-param-migration
|
|
73944
|
+
* @return {!Object}
|
|
73945
|
+
*/
|
|
73946
|
+
proto.payment.HistoricalBonusCompletionRequest.prototype.toObject = function(opt_includeInstance) {
|
|
73947
|
+
return proto.payment.HistoricalBonusCompletionRequest.toObject(opt_includeInstance, this);
|
|
73948
|
+
};
|
|
73949
|
+
|
|
73950
|
+
|
|
73951
|
+
/**
|
|
73952
|
+
* Static version of the {@see toObject} method.
|
|
73953
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
73954
|
+
* the JSPB instance for transitional soy proto support:
|
|
73955
|
+
* http://goto/soy-param-migration
|
|
73956
|
+
* @param {!proto.payment.HistoricalBonusCompletionRequest} msg The msg instance to transform.
|
|
73957
|
+
* @return {!Object}
|
|
73958
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
73959
|
+
*/
|
|
73960
|
+
proto.payment.HistoricalBonusCompletionRequest.toObject = function(includeInstance, msg) {
|
|
73961
|
+
var f, obj = {
|
|
73962
|
+
correctionId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
73963
|
+
manifestHash: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
73964
|
+
evidenceHash: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
73965
|
+
userId: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
73966
|
+
userBonusId: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
73967
|
+
currency: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
73968
|
+
currencyScale: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
73969
|
+
unpaidAmountMinor: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
73970
|
+
historicalEntitlementMinor: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
73971
|
+
alreadyPaidEligibleMinor: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
73972
|
+
completionDecisionId: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
73973
|
+
historicalCompletedAt: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
73974
|
+
originalTerminalReceiptId: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
73975
|
+
approvalReference: jspb.Message.getFieldWithDefault(msg, 14, "")
|
|
73976
|
+
};
|
|
73977
|
+
|
|
73978
|
+
if (includeInstance) {
|
|
73979
|
+
obj.$jspbMessageInstance = msg;
|
|
73980
|
+
}
|
|
73981
|
+
return obj;
|
|
73982
|
+
};
|
|
73983
|
+
}
|
|
73984
|
+
|
|
73985
|
+
|
|
73986
|
+
/**
|
|
73987
|
+
* Deserializes binary data (in protobuf wire format).
|
|
73988
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
73989
|
+
* @return {!proto.payment.HistoricalBonusCompletionRequest}
|
|
73990
|
+
*/
|
|
73991
|
+
proto.payment.HistoricalBonusCompletionRequest.deserializeBinary = function(bytes) {
|
|
73992
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
73993
|
+
var msg = new proto.payment.HistoricalBonusCompletionRequest;
|
|
73994
|
+
return proto.payment.HistoricalBonusCompletionRequest.deserializeBinaryFromReader(msg, reader);
|
|
73995
|
+
};
|
|
73996
|
+
|
|
73997
|
+
|
|
73998
|
+
/**
|
|
73999
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
74000
|
+
* given reader into the given message object.
|
|
74001
|
+
* @param {!proto.payment.HistoricalBonusCompletionRequest} msg The message object to deserialize into.
|
|
74002
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
74003
|
+
* @return {!proto.payment.HistoricalBonusCompletionRequest}
|
|
74004
|
+
*/
|
|
74005
|
+
proto.payment.HistoricalBonusCompletionRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
74006
|
+
while (reader.nextField()) {
|
|
74007
|
+
if (reader.isEndGroup()) {
|
|
74008
|
+
break;
|
|
74009
|
+
}
|
|
74010
|
+
var field = reader.getFieldNumber();
|
|
74011
|
+
switch (field) {
|
|
74012
|
+
case 1:
|
|
74013
|
+
var value = /** @type {string} */ (reader.readString());
|
|
74014
|
+
msg.setCorrectionId(value);
|
|
74015
|
+
break;
|
|
74016
|
+
case 2:
|
|
74017
|
+
var value = /** @type {string} */ (reader.readString());
|
|
74018
|
+
msg.setManifestHash(value);
|
|
74019
|
+
break;
|
|
74020
|
+
case 3:
|
|
74021
|
+
var value = /** @type {string} */ (reader.readString());
|
|
74022
|
+
msg.setEvidenceHash(value);
|
|
74023
|
+
break;
|
|
74024
|
+
case 4:
|
|
74025
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
74026
|
+
msg.setUserId(value);
|
|
74027
|
+
break;
|
|
74028
|
+
case 5:
|
|
74029
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
74030
|
+
msg.setUserBonusId(value);
|
|
74031
|
+
break;
|
|
74032
|
+
case 6:
|
|
74033
|
+
var value = /** @type {string} */ (reader.readString());
|
|
74034
|
+
msg.setCurrency(value);
|
|
74035
|
+
break;
|
|
74036
|
+
case 7:
|
|
74037
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
74038
|
+
msg.setCurrencyScale(value);
|
|
74039
|
+
break;
|
|
74040
|
+
case 8:
|
|
74041
|
+
var value = /** @type {string} */ (reader.readString());
|
|
74042
|
+
msg.setUnpaidAmountMinor(value);
|
|
74043
|
+
break;
|
|
74044
|
+
case 9:
|
|
74045
|
+
var value = /** @type {string} */ (reader.readString());
|
|
74046
|
+
msg.setHistoricalEntitlementMinor(value);
|
|
74047
|
+
break;
|
|
74048
|
+
case 10:
|
|
74049
|
+
var value = /** @type {string} */ (reader.readString());
|
|
74050
|
+
msg.setAlreadyPaidEligibleMinor(value);
|
|
74051
|
+
break;
|
|
74052
|
+
case 11:
|
|
74053
|
+
var value = /** @type {string} */ (reader.readString());
|
|
74054
|
+
msg.setCompletionDecisionId(value);
|
|
74055
|
+
break;
|
|
74056
|
+
case 12:
|
|
74057
|
+
var value = /** @type {string} */ (reader.readString());
|
|
74058
|
+
msg.setHistoricalCompletedAt(value);
|
|
74059
|
+
break;
|
|
74060
|
+
case 13:
|
|
74061
|
+
var value = /** @type {string} */ (reader.readString());
|
|
74062
|
+
msg.setOriginalTerminalReceiptId(value);
|
|
74063
|
+
break;
|
|
74064
|
+
case 14:
|
|
74065
|
+
var value = /** @type {string} */ (reader.readString());
|
|
74066
|
+
msg.setApprovalReference(value);
|
|
74067
|
+
break;
|
|
74068
|
+
default:
|
|
74069
|
+
reader.skipField();
|
|
74070
|
+
break;
|
|
74071
|
+
}
|
|
74072
|
+
}
|
|
74073
|
+
return msg;
|
|
74074
|
+
};
|
|
74075
|
+
|
|
74076
|
+
|
|
74077
|
+
/**
|
|
74078
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
74079
|
+
* @return {!Uint8Array}
|
|
74080
|
+
*/
|
|
74081
|
+
proto.payment.HistoricalBonusCompletionRequest.prototype.serializeBinary = function() {
|
|
74082
|
+
var writer = new jspb.BinaryWriter();
|
|
74083
|
+
proto.payment.HistoricalBonusCompletionRequest.serializeBinaryToWriter(this, writer);
|
|
74084
|
+
return writer.getResultBuffer();
|
|
74085
|
+
};
|
|
74086
|
+
|
|
74087
|
+
|
|
74088
|
+
/**
|
|
74089
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
74090
|
+
* format), writing to the given BinaryWriter.
|
|
74091
|
+
* @param {!proto.payment.HistoricalBonusCompletionRequest} message
|
|
74092
|
+
* @param {!jspb.BinaryWriter} writer
|
|
74093
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
74094
|
+
*/
|
|
74095
|
+
proto.payment.HistoricalBonusCompletionRequest.serializeBinaryToWriter = function(message, writer) {
|
|
74096
|
+
var f = undefined;
|
|
74097
|
+
f = message.getCorrectionId();
|
|
74098
|
+
if (f.length > 0) {
|
|
74099
|
+
writer.writeString(
|
|
74100
|
+
1,
|
|
74101
|
+
f
|
|
74102
|
+
);
|
|
74103
|
+
}
|
|
74104
|
+
f = message.getManifestHash();
|
|
74105
|
+
if (f.length > 0) {
|
|
74106
|
+
writer.writeString(
|
|
74107
|
+
2,
|
|
74108
|
+
f
|
|
74109
|
+
);
|
|
74110
|
+
}
|
|
74111
|
+
f = message.getEvidenceHash();
|
|
74112
|
+
if (f.length > 0) {
|
|
74113
|
+
writer.writeString(
|
|
74114
|
+
3,
|
|
74115
|
+
f
|
|
74116
|
+
);
|
|
74117
|
+
}
|
|
74118
|
+
f = message.getUserId();
|
|
74119
|
+
if (f !== 0) {
|
|
74120
|
+
writer.writeInt32(
|
|
74121
|
+
4,
|
|
74122
|
+
f
|
|
74123
|
+
);
|
|
74124
|
+
}
|
|
74125
|
+
f = message.getUserBonusId();
|
|
74126
|
+
if (f !== 0) {
|
|
74127
|
+
writer.writeInt32(
|
|
74128
|
+
5,
|
|
74129
|
+
f
|
|
74130
|
+
);
|
|
74131
|
+
}
|
|
74132
|
+
f = message.getCurrency();
|
|
74133
|
+
if (f.length > 0) {
|
|
74134
|
+
writer.writeString(
|
|
74135
|
+
6,
|
|
74136
|
+
f
|
|
74137
|
+
);
|
|
74138
|
+
}
|
|
74139
|
+
f = message.getCurrencyScale();
|
|
74140
|
+
if (f !== 0) {
|
|
74141
|
+
writer.writeInt32(
|
|
74142
|
+
7,
|
|
74143
|
+
f
|
|
74144
|
+
);
|
|
74145
|
+
}
|
|
74146
|
+
f = message.getUnpaidAmountMinor();
|
|
74147
|
+
if (f.length > 0) {
|
|
74148
|
+
writer.writeString(
|
|
74149
|
+
8,
|
|
74150
|
+
f
|
|
74151
|
+
);
|
|
74152
|
+
}
|
|
74153
|
+
f = message.getHistoricalEntitlementMinor();
|
|
74154
|
+
if (f.length > 0) {
|
|
74155
|
+
writer.writeString(
|
|
74156
|
+
9,
|
|
74157
|
+
f
|
|
74158
|
+
);
|
|
74159
|
+
}
|
|
74160
|
+
f = message.getAlreadyPaidEligibleMinor();
|
|
74161
|
+
if (f.length > 0) {
|
|
74162
|
+
writer.writeString(
|
|
74163
|
+
10,
|
|
74164
|
+
f
|
|
74165
|
+
);
|
|
74166
|
+
}
|
|
74167
|
+
f = message.getCompletionDecisionId();
|
|
74168
|
+
if (f.length > 0) {
|
|
74169
|
+
writer.writeString(
|
|
74170
|
+
11,
|
|
74171
|
+
f
|
|
74172
|
+
);
|
|
74173
|
+
}
|
|
74174
|
+
f = message.getHistoricalCompletedAt();
|
|
74175
|
+
if (f.length > 0) {
|
|
74176
|
+
writer.writeString(
|
|
74177
|
+
12,
|
|
74178
|
+
f
|
|
74179
|
+
);
|
|
74180
|
+
}
|
|
74181
|
+
f = message.getOriginalTerminalReceiptId();
|
|
74182
|
+
if (f.length > 0) {
|
|
74183
|
+
writer.writeString(
|
|
74184
|
+
13,
|
|
74185
|
+
f
|
|
74186
|
+
);
|
|
74187
|
+
}
|
|
74188
|
+
f = message.getApprovalReference();
|
|
74189
|
+
if (f.length > 0) {
|
|
74190
|
+
writer.writeString(
|
|
74191
|
+
14,
|
|
74192
|
+
f
|
|
74193
|
+
);
|
|
74194
|
+
}
|
|
74195
|
+
};
|
|
74196
|
+
|
|
74197
|
+
|
|
74198
|
+
/**
|
|
74199
|
+
* optional string correction_id = 1;
|
|
74200
|
+
* @return {string}
|
|
74201
|
+
*/
|
|
74202
|
+
proto.payment.HistoricalBonusCompletionRequest.prototype.getCorrectionId = function() {
|
|
74203
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
74204
|
+
};
|
|
74205
|
+
|
|
74206
|
+
|
|
74207
|
+
/**
|
|
74208
|
+
* @param {string} value
|
|
74209
|
+
* @return {!proto.payment.HistoricalBonusCompletionRequest} returns this
|
|
74210
|
+
*/
|
|
74211
|
+
proto.payment.HistoricalBonusCompletionRequest.prototype.setCorrectionId = function(value) {
|
|
74212
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
74213
|
+
};
|
|
74214
|
+
|
|
74215
|
+
|
|
74216
|
+
/**
|
|
74217
|
+
* optional string manifest_hash = 2;
|
|
74218
|
+
* @return {string}
|
|
74219
|
+
*/
|
|
74220
|
+
proto.payment.HistoricalBonusCompletionRequest.prototype.getManifestHash = function() {
|
|
74221
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
74222
|
+
};
|
|
74223
|
+
|
|
74224
|
+
|
|
74225
|
+
/**
|
|
74226
|
+
* @param {string} value
|
|
74227
|
+
* @return {!proto.payment.HistoricalBonusCompletionRequest} returns this
|
|
74228
|
+
*/
|
|
74229
|
+
proto.payment.HistoricalBonusCompletionRequest.prototype.setManifestHash = function(value) {
|
|
74230
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
74231
|
+
};
|
|
74232
|
+
|
|
74233
|
+
|
|
74234
|
+
/**
|
|
74235
|
+
* optional string evidence_hash = 3;
|
|
74236
|
+
* @return {string}
|
|
74237
|
+
*/
|
|
74238
|
+
proto.payment.HistoricalBonusCompletionRequest.prototype.getEvidenceHash = function() {
|
|
74239
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
74240
|
+
};
|
|
74241
|
+
|
|
74242
|
+
|
|
74243
|
+
/**
|
|
74244
|
+
* @param {string} value
|
|
74245
|
+
* @return {!proto.payment.HistoricalBonusCompletionRequest} returns this
|
|
74246
|
+
*/
|
|
74247
|
+
proto.payment.HistoricalBonusCompletionRequest.prototype.setEvidenceHash = function(value) {
|
|
74248
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
74249
|
+
};
|
|
74250
|
+
|
|
74251
|
+
|
|
74252
|
+
/**
|
|
74253
|
+
* optional int32 user_id = 4;
|
|
74254
|
+
* @return {number}
|
|
74255
|
+
*/
|
|
74256
|
+
proto.payment.HistoricalBonusCompletionRequest.prototype.getUserId = function() {
|
|
74257
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
74258
|
+
};
|
|
74259
|
+
|
|
74260
|
+
|
|
74261
|
+
/**
|
|
74262
|
+
* @param {number} value
|
|
74263
|
+
* @return {!proto.payment.HistoricalBonusCompletionRequest} returns this
|
|
74264
|
+
*/
|
|
74265
|
+
proto.payment.HistoricalBonusCompletionRequest.prototype.setUserId = function(value) {
|
|
74266
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
74267
|
+
};
|
|
74268
|
+
|
|
74269
|
+
|
|
74270
|
+
/**
|
|
74271
|
+
* optional int32 user_bonus_id = 5;
|
|
74272
|
+
* @return {number}
|
|
74273
|
+
*/
|
|
74274
|
+
proto.payment.HistoricalBonusCompletionRequest.prototype.getUserBonusId = function() {
|
|
74275
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
74276
|
+
};
|
|
74277
|
+
|
|
74278
|
+
|
|
74279
|
+
/**
|
|
74280
|
+
* @param {number} value
|
|
74281
|
+
* @return {!proto.payment.HistoricalBonusCompletionRequest} returns this
|
|
74282
|
+
*/
|
|
74283
|
+
proto.payment.HistoricalBonusCompletionRequest.prototype.setUserBonusId = function(value) {
|
|
74284
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
74285
|
+
};
|
|
74286
|
+
|
|
74287
|
+
|
|
74288
|
+
/**
|
|
74289
|
+
* optional string currency = 6;
|
|
74290
|
+
* @return {string}
|
|
74291
|
+
*/
|
|
74292
|
+
proto.payment.HistoricalBonusCompletionRequest.prototype.getCurrency = function() {
|
|
74293
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
74294
|
+
};
|
|
74295
|
+
|
|
74296
|
+
|
|
74297
|
+
/**
|
|
74298
|
+
* @param {string} value
|
|
74299
|
+
* @return {!proto.payment.HistoricalBonusCompletionRequest} returns this
|
|
74300
|
+
*/
|
|
74301
|
+
proto.payment.HistoricalBonusCompletionRequest.prototype.setCurrency = function(value) {
|
|
74302
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
74303
|
+
};
|
|
74304
|
+
|
|
74305
|
+
|
|
74306
|
+
/**
|
|
74307
|
+
* optional int32 currency_scale = 7;
|
|
74308
|
+
* @return {number}
|
|
74309
|
+
*/
|
|
74310
|
+
proto.payment.HistoricalBonusCompletionRequest.prototype.getCurrencyScale = function() {
|
|
74311
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
74312
|
+
};
|
|
74313
|
+
|
|
74314
|
+
|
|
74315
|
+
/**
|
|
74316
|
+
* @param {number} value
|
|
74317
|
+
* @return {!proto.payment.HistoricalBonusCompletionRequest} returns this
|
|
74318
|
+
*/
|
|
74319
|
+
proto.payment.HistoricalBonusCompletionRequest.prototype.setCurrencyScale = function(value) {
|
|
74320
|
+
return jspb.Message.setProto3IntField(this, 7, value);
|
|
74321
|
+
};
|
|
74322
|
+
|
|
74323
|
+
|
|
74324
|
+
/**
|
|
74325
|
+
* optional string unpaid_amount_minor = 8;
|
|
74326
|
+
* @return {string}
|
|
74327
|
+
*/
|
|
74328
|
+
proto.payment.HistoricalBonusCompletionRequest.prototype.getUnpaidAmountMinor = function() {
|
|
74329
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
74330
|
+
};
|
|
74331
|
+
|
|
74332
|
+
|
|
74333
|
+
/**
|
|
74334
|
+
* @param {string} value
|
|
74335
|
+
* @return {!proto.payment.HistoricalBonusCompletionRequest} returns this
|
|
74336
|
+
*/
|
|
74337
|
+
proto.payment.HistoricalBonusCompletionRequest.prototype.setUnpaidAmountMinor = function(value) {
|
|
74338
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
74339
|
+
};
|
|
74340
|
+
|
|
74341
|
+
|
|
74342
|
+
/**
|
|
74343
|
+
* optional string historical_entitlement_minor = 9;
|
|
74344
|
+
* @return {string}
|
|
74345
|
+
*/
|
|
74346
|
+
proto.payment.HistoricalBonusCompletionRequest.prototype.getHistoricalEntitlementMinor = function() {
|
|
74347
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
74348
|
+
};
|
|
74349
|
+
|
|
74350
|
+
|
|
74351
|
+
/**
|
|
74352
|
+
* @param {string} value
|
|
74353
|
+
* @return {!proto.payment.HistoricalBonusCompletionRequest} returns this
|
|
74354
|
+
*/
|
|
74355
|
+
proto.payment.HistoricalBonusCompletionRequest.prototype.setHistoricalEntitlementMinor = function(value) {
|
|
74356
|
+
return jspb.Message.setProto3StringField(this, 9, value);
|
|
74357
|
+
};
|
|
74358
|
+
|
|
74359
|
+
|
|
74360
|
+
/**
|
|
74361
|
+
* optional string already_paid_eligible_minor = 10;
|
|
74362
|
+
* @return {string}
|
|
74363
|
+
*/
|
|
74364
|
+
proto.payment.HistoricalBonusCompletionRequest.prototype.getAlreadyPaidEligibleMinor = function() {
|
|
74365
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
74366
|
+
};
|
|
74367
|
+
|
|
74368
|
+
|
|
74369
|
+
/**
|
|
74370
|
+
* @param {string} value
|
|
74371
|
+
* @return {!proto.payment.HistoricalBonusCompletionRequest} returns this
|
|
74372
|
+
*/
|
|
74373
|
+
proto.payment.HistoricalBonusCompletionRequest.prototype.setAlreadyPaidEligibleMinor = function(value) {
|
|
74374
|
+
return jspb.Message.setProto3StringField(this, 10, value);
|
|
74375
|
+
};
|
|
74376
|
+
|
|
74377
|
+
|
|
74378
|
+
/**
|
|
74379
|
+
* optional string completion_decision_id = 11;
|
|
74380
|
+
* @return {string}
|
|
74381
|
+
*/
|
|
74382
|
+
proto.payment.HistoricalBonusCompletionRequest.prototype.getCompletionDecisionId = function() {
|
|
74383
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
|
74384
|
+
};
|
|
74385
|
+
|
|
74386
|
+
|
|
74387
|
+
/**
|
|
74388
|
+
* @param {string} value
|
|
74389
|
+
* @return {!proto.payment.HistoricalBonusCompletionRequest} returns this
|
|
74390
|
+
*/
|
|
74391
|
+
proto.payment.HistoricalBonusCompletionRequest.prototype.setCompletionDecisionId = function(value) {
|
|
74392
|
+
return jspb.Message.setProto3StringField(this, 11, value);
|
|
74393
|
+
};
|
|
74394
|
+
|
|
74395
|
+
|
|
74396
|
+
/**
|
|
74397
|
+
* optional string historical_completed_at = 12;
|
|
74398
|
+
* @return {string}
|
|
74399
|
+
*/
|
|
74400
|
+
proto.payment.HistoricalBonusCompletionRequest.prototype.getHistoricalCompletedAt = function() {
|
|
74401
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
|
|
74402
|
+
};
|
|
74403
|
+
|
|
74404
|
+
|
|
74405
|
+
/**
|
|
74406
|
+
* @param {string} value
|
|
74407
|
+
* @return {!proto.payment.HistoricalBonusCompletionRequest} returns this
|
|
74408
|
+
*/
|
|
74409
|
+
proto.payment.HistoricalBonusCompletionRequest.prototype.setHistoricalCompletedAt = function(value) {
|
|
74410
|
+
return jspb.Message.setProto3StringField(this, 12, value);
|
|
74411
|
+
};
|
|
74412
|
+
|
|
74413
|
+
|
|
74414
|
+
/**
|
|
74415
|
+
* optional string original_terminal_receipt_id = 13;
|
|
74416
|
+
* @return {string}
|
|
74417
|
+
*/
|
|
74418
|
+
proto.payment.HistoricalBonusCompletionRequest.prototype.getOriginalTerminalReceiptId = function() {
|
|
74419
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
|
|
74420
|
+
};
|
|
74421
|
+
|
|
74422
|
+
|
|
74423
|
+
/**
|
|
74424
|
+
* @param {string} value
|
|
74425
|
+
* @return {!proto.payment.HistoricalBonusCompletionRequest} returns this
|
|
74426
|
+
*/
|
|
74427
|
+
proto.payment.HistoricalBonusCompletionRequest.prototype.setOriginalTerminalReceiptId = function(value) {
|
|
74428
|
+
return jspb.Message.setProto3StringField(this, 13, value);
|
|
74429
|
+
};
|
|
74430
|
+
|
|
74431
|
+
|
|
74432
|
+
/**
|
|
74433
|
+
* optional string approval_reference = 14;
|
|
74434
|
+
* @return {string}
|
|
74435
|
+
*/
|
|
74436
|
+
proto.payment.HistoricalBonusCompletionRequest.prototype.getApprovalReference = function() {
|
|
74437
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
|
|
74438
|
+
};
|
|
74439
|
+
|
|
74440
|
+
|
|
74441
|
+
/**
|
|
74442
|
+
* @param {string} value
|
|
74443
|
+
* @return {!proto.payment.HistoricalBonusCompletionRequest} returns this
|
|
74444
|
+
*/
|
|
74445
|
+
proto.payment.HistoricalBonusCompletionRequest.prototype.setApprovalReference = function(value) {
|
|
74446
|
+
return jspb.Message.setProto3StringField(this, 14, value);
|
|
74447
|
+
};
|
|
74448
|
+
|
|
74449
|
+
|
|
74450
|
+
|
|
74451
|
+
|
|
74452
|
+
|
|
74453
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
74454
|
+
/**
|
|
74455
|
+
* Creates an object representation of this proto.
|
|
74456
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
74457
|
+
* Optional fields that are not set will be set to undefined.
|
|
74458
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
74459
|
+
* For the list of reserved names please see:
|
|
74460
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
74461
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
74462
|
+
* JSPB instance for transitional soy proto support:
|
|
74463
|
+
* http://goto/soy-param-migration
|
|
74464
|
+
* @return {!Object}
|
|
74465
|
+
*/
|
|
74466
|
+
proto.payment.HistoricalBonusCompletionResponse.prototype.toObject = function(opt_includeInstance) {
|
|
74467
|
+
return proto.payment.HistoricalBonusCompletionResponse.toObject(opt_includeInstance, this);
|
|
74468
|
+
};
|
|
74469
|
+
|
|
74470
|
+
|
|
74471
|
+
/**
|
|
74472
|
+
* Static version of the {@see toObject} method.
|
|
74473
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
74474
|
+
* the JSPB instance for transitional soy proto support:
|
|
74475
|
+
* http://goto/soy-param-migration
|
|
74476
|
+
* @param {!proto.payment.HistoricalBonusCompletionResponse} msg The msg instance to transform.
|
|
74477
|
+
* @return {!Object}
|
|
74478
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
74479
|
+
*/
|
|
74480
|
+
proto.payment.HistoricalBonusCompletionResponse.toObject = function(includeInstance, msg) {
|
|
74481
|
+
var f, obj = {
|
|
74482
|
+
correctionId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
74483
|
+
manifestHash: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
74484
|
+
evidenceHash: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
74485
|
+
outcome: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
74486
|
+
paymentOperationId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
74487
|
+
userId: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
74488
|
+
userBonusId: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
74489
|
+
currency: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
74490
|
+
currencyScale: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
|
74491
|
+
amountMinor: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
74492
|
+
receiptId: jspb.Message.getFieldWithDefault(msg, 11, "")
|
|
74493
|
+
};
|
|
74494
|
+
|
|
74495
|
+
if (includeInstance) {
|
|
74496
|
+
obj.$jspbMessageInstance = msg;
|
|
74497
|
+
}
|
|
74498
|
+
return obj;
|
|
74499
|
+
};
|
|
74500
|
+
}
|
|
74501
|
+
|
|
74502
|
+
|
|
74503
|
+
/**
|
|
74504
|
+
* Deserializes binary data (in protobuf wire format).
|
|
74505
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
74506
|
+
* @return {!proto.payment.HistoricalBonusCompletionResponse}
|
|
74507
|
+
*/
|
|
74508
|
+
proto.payment.HistoricalBonusCompletionResponse.deserializeBinary = function(bytes) {
|
|
74509
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
74510
|
+
var msg = new proto.payment.HistoricalBonusCompletionResponse;
|
|
74511
|
+
return proto.payment.HistoricalBonusCompletionResponse.deserializeBinaryFromReader(msg, reader);
|
|
74512
|
+
};
|
|
74513
|
+
|
|
74514
|
+
|
|
74515
|
+
/**
|
|
74516
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
74517
|
+
* given reader into the given message object.
|
|
74518
|
+
* @param {!proto.payment.HistoricalBonusCompletionResponse} msg The message object to deserialize into.
|
|
74519
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
74520
|
+
* @return {!proto.payment.HistoricalBonusCompletionResponse}
|
|
74521
|
+
*/
|
|
74522
|
+
proto.payment.HistoricalBonusCompletionResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
74523
|
+
while (reader.nextField()) {
|
|
74524
|
+
if (reader.isEndGroup()) {
|
|
74525
|
+
break;
|
|
74526
|
+
}
|
|
74527
|
+
var field = reader.getFieldNumber();
|
|
74528
|
+
switch (field) {
|
|
74529
|
+
case 1:
|
|
74530
|
+
var value = /** @type {string} */ (reader.readString());
|
|
74531
|
+
msg.setCorrectionId(value);
|
|
74532
|
+
break;
|
|
74533
|
+
case 2:
|
|
74534
|
+
var value = /** @type {string} */ (reader.readString());
|
|
74535
|
+
msg.setManifestHash(value);
|
|
74536
|
+
break;
|
|
74537
|
+
case 3:
|
|
74538
|
+
var value = /** @type {string} */ (reader.readString());
|
|
74539
|
+
msg.setEvidenceHash(value);
|
|
74540
|
+
break;
|
|
74541
|
+
case 4:
|
|
74542
|
+
var value = /** @type {string} */ (reader.readString());
|
|
74543
|
+
msg.setOutcome(value);
|
|
74544
|
+
break;
|
|
74545
|
+
case 5:
|
|
74546
|
+
var value = /** @type {string} */ (reader.readString());
|
|
74547
|
+
msg.setPaymentOperationId(value);
|
|
74548
|
+
break;
|
|
74549
|
+
case 6:
|
|
74550
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
74551
|
+
msg.setUserId(value);
|
|
74552
|
+
break;
|
|
74553
|
+
case 7:
|
|
74554
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
74555
|
+
msg.setUserBonusId(value);
|
|
74556
|
+
break;
|
|
74557
|
+
case 8:
|
|
74558
|
+
var value = /** @type {string} */ (reader.readString());
|
|
74559
|
+
msg.setCurrency(value);
|
|
74560
|
+
break;
|
|
74561
|
+
case 9:
|
|
74562
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
74563
|
+
msg.setCurrencyScale(value);
|
|
74564
|
+
break;
|
|
74565
|
+
case 10:
|
|
74566
|
+
var value = /** @type {string} */ (reader.readString());
|
|
74567
|
+
msg.setAmountMinor(value);
|
|
74568
|
+
break;
|
|
74569
|
+
case 11:
|
|
74570
|
+
var value = /** @type {string} */ (reader.readString());
|
|
74571
|
+
msg.setReceiptId(value);
|
|
74572
|
+
break;
|
|
74573
|
+
default:
|
|
74574
|
+
reader.skipField();
|
|
74575
|
+
break;
|
|
74576
|
+
}
|
|
74577
|
+
}
|
|
74578
|
+
return msg;
|
|
74579
|
+
};
|
|
74580
|
+
|
|
74581
|
+
|
|
74582
|
+
/**
|
|
74583
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
74584
|
+
* @return {!Uint8Array}
|
|
74585
|
+
*/
|
|
74586
|
+
proto.payment.HistoricalBonusCompletionResponse.prototype.serializeBinary = function() {
|
|
74587
|
+
var writer = new jspb.BinaryWriter();
|
|
74588
|
+
proto.payment.HistoricalBonusCompletionResponse.serializeBinaryToWriter(this, writer);
|
|
74589
|
+
return writer.getResultBuffer();
|
|
74590
|
+
};
|
|
74591
|
+
|
|
74592
|
+
|
|
74593
|
+
/**
|
|
74594
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
74595
|
+
* format), writing to the given BinaryWriter.
|
|
74596
|
+
* @param {!proto.payment.HistoricalBonusCompletionResponse} message
|
|
74597
|
+
* @param {!jspb.BinaryWriter} writer
|
|
74598
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
74599
|
+
*/
|
|
74600
|
+
proto.payment.HistoricalBonusCompletionResponse.serializeBinaryToWriter = function(message, writer) {
|
|
74601
|
+
var f = undefined;
|
|
74602
|
+
f = message.getCorrectionId();
|
|
74603
|
+
if (f.length > 0) {
|
|
74604
|
+
writer.writeString(
|
|
74605
|
+
1,
|
|
74606
|
+
f
|
|
74607
|
+
);
|
|
74608
|
+
}
|
|
74609
|
+
f = message.getManifestHash();
|
|
74610
|
+
if (f.length > 0) {
|
|
74611
|
+
writer.writeString(
|
|
74612
|
+
2,
|
|
74613
|
+
f
|
|
74614
|
+
);
|
|
74615
|
+
}
|
|
74616
|
+
f = message.getEvidenceHash();
|
|
74617
|
+
if (f.length > 0) {
|
|
74618
|
+
writer.writeString(
|
|
74619
|
+
3,
|
|
74620
|
+
f
|
|
74621
|
+
);
|
|
74622
|
+
}
|
|
74623
|
+
f = message.getOutcome();
|
|
74624
|
+
if (f.length > 0) {
|
|
74625
|
+
writer.writeString(
|
|
74626
|
+
4,
|
|
74627
|
+
f
|
|
74628
|
+
);
|
|
74629
|
+
}
|
|
74630
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
74631
|
+
if (f != null) {
|
|
74632
|
+
writer.writeString(
|
|
74633
|
+
5,
|
|
74634
|
+
f
|
|
74635
|
+
);
|
|
74636
|
+
}
|
|
74637
|
+
f = message.getUserId();
|
|
74638
|
+
if (f !== 0) {
|
|
74639
|
+
writer.writeInt32(
|
|
74640
|
+
6,
|
|
74641
|
+
f
|
|
74642
|
+
);
|
|
74643
|
+
}
|
|
74644
|
+
f = message.getUserBonusId();
|
|
74645
|
+
if (f !== 0) {
|
|
74646
|
+
writer.writeInt32(
|
|
74647
|
+
7,
|
|
74648
|
+
f
|
|
74649
|
+
);
|
|
74650
|
+
}
|
|
74651
|
+
f = message.getCurrency();
|
|
74652
|
+
if (f.length > 0) {
|
|
74653
|
+
writer.writeString(
|
|
74654
|
+
8,
|
|
74655
|
+
f
|
|
74656
|
+
);
|
|
74657
|
+
}
|
|
74658
|
+
f = message.getCurrencyScale();
|
|
74659
|
+
if (f !== 0) {
|
|
74660
|
+
writer.writeInt32(
|
|
74661
|
+
9,
|
|
74662
|
+
f
|
|
74663
|
+
);
|
|
74664
|
+
}
|
|
74665
|
+
f = message.getAmountMinor();
|
|
74666
|
+
if (f.length > 0) {
|
|
74667
|
+
writer.writeString(
|
|
74668
|
+
10,
|
|
74669
|
+
f
|
|
74670
|
+
);
|
|
74671
|
+
}
|
|
74672
|
+
f = message.getReceiptId();
|
|
74673
|
+
if (f.length > 0) {
|
|
74674
|
+
writer.writeString(
|
|
74675
|
+
11,
|
|
74676
|
+
f
|
|
74677
|
+
);
|
|
74678
|
+
}
|
|
74679
|
+
};
|
|
74680
|
+
|
|
74681
|
+
|
|
74682
|
+
/**
|
|
74683
|
+
* optional string correction_id = 1;
|
|
74684
|
+
* @return {string}
|
|
74685
|
+
*/
|
|
74686
|
+
proto.payment.HistoricalBonusCompletionResponse.prototype.getCorrectionId = function() {
|
|
74687
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
74688
|
+
};
|
|
74689
|
+
|
|
74690
|
+
|
|
74691
|
+
/**
|
|
74692
|
+
* @param {string} value
|
|
74693
|
+
* @return {!proto.payment.HistoricalBonusCompletionResponse} returns this
|
|
74694
|
+
*/
|
|
74695
|
+
proto.payment.HistoricalBonusCompletionResponse.prototype.setCorrectionId = function(value) {
|
|
74696
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
74697
|
+
};
|
|
74698
|
+
|
|
74699
|
+
|
|
74700
|
+
/**
|
|
74701
|
+
* optional string manifest_hash = 2;
|
|
74702
|
+
* @return {string}
|
|
74703
|
+
*/
|
|
74704
|
+
proto.payment.HistoricalBonusCompletionResponse.prototype.getManifestHash = function() {
|
|
74705
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
74706
|
+
};
|
|
74707
|
+
|
|
74708
|
+
|
|
74709
|
+
/**
|
|
74710
|
+
* @param {string} value
|
|
74711
|
+
* @return {!proto.payment.HistoricalBonusCompletionResponse} returns this
|
|
74712
|
+
*/
|
|
74713
|
+
proto.payment.HistoricalBonusCompletionResponse.prototype.setManifestHash = function(value) {
|
|
74714
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
74715
|
+
};
|
|
74716
|
+
|
|
74717
|
+
|
|
74718
|
+
/**
|
|
74719
|
+
* optional string evidence_hash = 3;
|
|
74720
|
+
* @return {string}
|
|
74721
|
+
*/
|
|
74722
|
+
proto.payment.HistoricalBonusCompletionResponse.prototype.getEvidenceHash = function() {
|
|
74723
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
74724
|
+
};
|
|
74725
|
+
|
|
74726
|
+
|
|
74727
|
+
/**
|
|
74728
|
+
* @param {string} value
|
|
74729
|
+
* @return {!proto.payment.HistoricalBonusCompletionResponse} returns this
|
|
74730
|
+
*/
|
|
74731
|
+
proto.payment.HistoricalBonusCompletionResponse.prototype.setEvidenceHash = function(value) {
|
|
74732
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
74733
|
+
};
|
|
74734
|
+
|
|
74735
|
+
|
|
74736
|
+
/**
|
|
74737
|
+
* optional string outcome = 4;
|
|
74738
|
+
* @return {string}
|
|
74739
|
+
*/
|
|
74740
|
+
proto.payment.HistoricalBonusCompletionResponse.prototype.getOutcome = function() {
|
|
74741
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
74742
|
+
};
|
|
74743
|
+
|
|
74744
|
+
|
|
74745
|
+
/**
|
|
74746
|
+
* @param {string} value
|
|
74747
|
+
* @return {!proto.payment.HistoricalBonusCompletionResponse} returns this
|
|
74748
|
+
*/
|
|
74749
|
+
proto.payment.HistoricalBonusCompletionResponse.prototype.setOutcome = function(value) {
|
|
74750
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
74751
|
+
};
|
|
74752
|
+
|
|
74753
|
+
|
|
74754
|
+
/**
|
|
74755
|
+
* optional string payment_operation_id = 5;
|
|
74756
|
+
* @return {string}
|
|
74757
|
+
*/
|
|
74758
|
+
proto.payment.HistoricalBonusCompletionResponse.prototype.getPaymentOperationId = function() {
|
|
74759
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
74760
|
+
};
|
|
74761
|
+
|
|
74762
|
+
|
|
74763
|
+
/**
|
|
74764
|
+
* @param {string} value
|
|
74765
|
+
* @return {!proto.payment.HistoricalBonusCompletionResponse} returns this
|
|
74766
|
+
*/
|
|
74767
|
+
proto.payment.HistoricalBonusCompletionResponse.prototype.setPaymentOperationId = function(value) {
|
|
74768
|
+
return jspb.Message.setField(this, 5, value);
|
|
74769
|
+
};
|
|
74770
|
+
|
|
74771
|
+
|
|
74772
|
+
/**
|
|
74773
|
+
* Clears the field making it undefined.
|
|
74774
|
+
* @return {!proto.payment.HistoricalBonusCompletionResponse} returns this
|
|
74775
|
+
*/
|
|
74776
|
+
proto.payment.HistoricalBonusCompletionResponse.prototype.clearPaymentOperationId = function() {
|
|
74777
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
74778
|
+
};
|
|
74779
|
+
|
|
74780
|
+
|
|
74781
|
+
/**
|
|
74782
|
+
* Returns whether this field is set.
|
|
74783
|
+
* @return {boolean}
|
|
74784
|
+
*/
|
|
74785
|
+
proto.payment.HistoricalBonusCompletionResponse.prototype.hasPaymentOperationId = function() {
|
|
74786
|
+
return jspb.Message.getField(this, 5) != null;
|
|
74787
|
+
};
|
|
74788
|
+
|
|
74789
|
+
|
|
74790
|
+
/**
|
|
74791
|
+
* optional int32 user_id = 6;
|
|
74792
|
+
* @return {number}
|
|
74793
|
+
*/
|
|
74794
|
+
proto.payment.HistoricalBonusCompletionResponse.prototype.getUserId = function() {
|
|
74795
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
74796
|
+
};
|
|
74797
|
+
|
|
74798
|
+
|
|
74799
|
+
/**
|
|
74800
|
+
* @param {number} value
|
|
74801
|
+
* @return {!proto.payment.HistoricalBonusCompletionResponse} returns this
|
|
74802
|
+
*/
|
|
74803
|
+
proto.payment.HistoricalBonusCompletionResponse.prototype.setUserId = function(value) {
|
|
74804
|
+
return jspb.Message.setProto3IntField(this, 6, value);
|
|
74805
|
+
};
|
|
74806
|
+
|
|
74807
|
+
|
|
74808
|
+
/**
|
|
74809
|
+
* optional int32 user_bonus_id = 7;
|
|
74810
|
+
* @return {number}
|
|
74811
|
+
*/
|
|
74812
|
+
proto.payment.HistoricalBonusCompletionResponse.prototype.getUserBonusId = function() {
|
|
74813
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
74814
|
+
};
|
|
74815
|
+
|
|
74816
|
+
|
|
74817
|
+
/**
|
|
74818
|
+
* @param {number} value
|
|
74819
|
+
* @return {!proto.payment.HistoricalBonusCompletionResponse} returns this
|
|
74820
|
+
*/
|
|
74821
|
+
proto.payment.HistoricalBonusCompletionResponse.prototype.setUserBonusId = function(value) {
|
|
74822
|
+
return jspb.Message.setProto3IntField(this, 7, value);
|
|
74823
|
+
};
|
|
74824
|
+
|
|
74825
|
+
|
|
74826
|
+
/**
|
|
74827
|
+
* optional string currency = 8;
|
|
74828
|
+
* @return {string}
|
|
74829
|
+
*/
|
|
74830
|
+
proto.payment.HistoricalBonusCompletionResponse.prototype.getCurrency = function() {
|
|
74831
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
74832
|
+
};
|
|
74833
|
+
|
|
74834
|
+
|
|
74835
|
+
/**
|
|
74836
|
+
* @param {string} value
|
|
74837
|
+
* @return {!proto.payment.HistoricalBonusCompletionResponse} returns this
|
|
74838
|
+
*/
|
|
74839
|
+
proto.payment.HistoricalBonusCompletionResponse.prototype.setCurrency = function(value) {
|
|
74840
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
74841
|
+
};
|
|
74842
|
+
|
|
74843
|
+
|
|
74844
|
+
/**
|
|
74845
|
+
* optional int32 currency_scale = 9;
|
|
74846
|
+
* @return {number}
|
|
74847
|
+
*/
|
|
74848
|
+
proto.payment.HistoricalBonusCompletionResponse.prototype.getCurrencyScale = function() {
|
|
74849
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
|
|
74850
|
+
};
|
|
74851
|
+
|
|
74852
|
+
|
|
74853
|
+
/**
|
|
74854
|
+
* @param {number} value
|
|
74855
|
+
* @return {!proto.payment.HistoricalBonusCompletionResponse} returns this
|
|
74856
|
+
*/
|
|
74857
|
+
proto.payment.HistoricalBonusCompletionResponse.prototype.setCurrencyScale = function(value) {
|
|
74858
|
+
return jspb.Message.setProto3IntField(this, 9, value);
|
|
74859
|
+
};
|
|
74860
|
+
|
|
74861
|
+
|
|
74862
|
+
/**
|
|
74863
|
+
* optional string amount_minor = 10;
|
|
74864
|
+
* @return {string}
|
|
74865
|
+
*/
|
|
74866
|
+
proto.payment.HistoricalBonusCompletionResponse.prototype.getAmountMinor = function() {
|
|
74867
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
74868
|
+
};
|
|
74869
|
+
|
|
74870
|
+
|
|
74871
|
+
/**
|
|
74872
|
+
* @param {string} value
|
|
74873
|
+
* @return {!proto.payment.HistoricalBonusCompletionResponse} returns this
|
|
74874
|
+
*/
|
|
74875
|
+
proto.payment.HistoricalBonusCompletionResponse.prototype.setAmountMinor = function(value) {
|
|
74876
|
+
return jspb.Message.setProto3StringField(this, 10, value);
|
|
74877
|
+
};
|
|
74878
|
+
|
|
74879
|
+
|
|
74880
|
+
/**
|
|
74881
|
+
* optional string receipt_id = 11;
|
|
74882
|
+
* @return {string}
|
|
74883
|
+
*/
|
|
74884
|
+
proto.payment.HistoricalBonusCompletionResponse.prototype.getReceiptId = function() {
|
|
74885
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
|
74886
|
+
};
|
|
74887
|
+
|
|
74888
|
+
|
|
74889
|
+
/**
|
|
74890
|
+
* @param {string} value
|
|
74891
|
+
* @return {!proto.payment.HistoricalBonusCompletionResponse} returns this
|
|
74892
|
+
*/
|
|
74893
|
+
proto.payment.HistoricalBonusCompletionResponse.prototype.setReceiptId = function(value) {
|
|
74894
|
+
return jspb.Message.setProto3StringField(this, 11, value);
|
|
74895
|
+
};
|
|
74896
|
+
|
|
74897
|
+
|
|
73886
74898
|
/**
|
|
73887
74899
|
* @enum {number}
|
|
73888
74900
|
*/
|