@sniipwebmaster/loyalty-program-client-grpcweb 22.23.891 → 23.2.930
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/dependancies/service_pb.js +106 -19
- package/package.json +1 -1
|
@@ -104,7 +104,8 @@ proto.loyaltyprogramserviceapi.CalculatePointsReq.toObject = function(includeIns
|
|
|
104
104
|
cardtype: msg.getCardtype(),
|
|
105
105
|
cardvariant: msg.getCardvariant(),
|
|
106
106
|
paymentamountinfoList: jspb.Message.toObjectList(msg.getPaymentamountinfoList(),
|
|
107
|
-
proto.loyaltyprogramserviceapi.PaymentAmountInfo.toObject, includeInstance)
|
|
107
|
+
proto.loyaltyprogramserviceapi.PaymentAmountInfo.toObject, includeInstance),
|
|
108
|
+
isbusinesstransaction: msg.getIsbusinesstransaction()
|
|
108
109
|
};
|
|
109
110
|
|
|
110
111
|
if (includeInstance) {
|
|
@@ -171,6 +172,10 @@ proto.loyaltyprogramserviceapi.CalculatePointsReq.deserializeBinaryFromReader =
|
|
|
171
172
|
msg.getPaymentamountinfoList().push(value);
|
|
172
173
|
msg.setPaymentamountinfoList(msg.getPaymentamountinfoList());
|
|
173
174
|
break;
|
|
175
|
+
case 9:
|
|
176
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
177
|
+
msg.setIsbusinesstransaction(value);
|
|
178
|
+
break;
|
|
174
179
|
default:
|
|
175
180
|
reader.skipField();
|
|
176
181
|
break;
|
|
@@ -259,6 +264,13 @@ proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.serializeBinaryToWri
|
|
|
259
264
|
proto.loyaltyprogramserviceapi.PaymentAmountInfo.serializeBinaryToWriter
|
|
260
265
|
);
|
|
261
266
|
}
|
|
267
|
+
f = this.getIsbusinesstransaction();
|
|
268
|
+
if (f) {
|
|
269
|
+
writer.writeBool(
|
|
270
|
+
9,
|
|
271
|
+
f
|
|
272
|
+
);
|
|
273
|
+
}
|
|
262
274
|
};
|
|
263
275
|
|
|
264
276
|
|
|
@@ -384,6 +396,23 @@ proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.clearPaymentamountin
|
|
|
384
396
|
};
|
|
385
397
|
|
|
386
398
|
|
|
399
|
+
/**
|
|
400
|
+
* optional bool isBusinessTransaction = 9;
|
|
401
|
+
* Note that Boolean fields may be set to 0/1 when serialized from a Java server.
|
|
402
|
+
* You should avoid comparisons like {@code val === true/false} in those cases.
|
|
403
|
+
* @return {boolean}
|
|
404
|
+
*/
|
|
405
|
+
proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.getIsbusinesstransaction = function() {
|
|
406
|
+
return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 9, false));
|
|
407
|
+
};
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
/** @param {boolean} value */
|
|
411
|
+
proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.setIsbusinesstransaction = function(value) {
|
|
412
|
+
jspb.Message.setField(this, 9, value);
|
|
413
|
+
};
|
|
414
|
+
|
|
415
|
+
|
|
387
416
|
|
|
388
417
|
/**
|
|
389
418
|
* Generated by JsPbCodeGenerator.
|
|
@@ -1664,7 +1693,8 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.toObject = functi
|
|
|
1664
1693
|
sourceid: msg.getSourceid(),
|
|
1665
1694
|
paymentamount: msg.getPaymentamount(),
|
|
1666
1695
|
description: msg.getDescription(),
|
|
1667
|
-
paymentmethodid: msg.getPaymentmethodid()
|
|
1696
|
+
paymentmethodid: msg.getPaymentmethodid(),
|
|
1697
|
+
isbusinesstransaction: msg.getIsbusinesstransaction()
|
|
1668
1698
|
};
|
|
1669
1699
|
|
|
1670
1700
|
if (includeInstance) {
|
|
@@ -1729,6 +1759,10 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.deserializeBinary
|
|
|
1729
1759
|
var value = /** @type {number} */ (reader.readInt64());
|
|
1730
1760
|
msg.setPaymentmethodid(value);
|
|
1731
1761
|
break;
|
|
1762
|
+
case 8:
|
|
1763
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
1764
|
+
msg.setIsbusinesstransaction(value);
|
|
1765
|
+
break;
|
|
1732
1766
|
default:
|
|
1733
1767
|
reader.skipField();
|
|
1734
1768
|
break;
|
|
@@ -1816,6 +1850,13 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.seriali
|
|
|
1816
1850
|
f
|
|
1817
1851
|
);
|
|
1818
1852
|
}
|
|
1853
|
+
f = this.getIsbusinesstransaction();
|
|
1854
|
+
if (f) {
|
|
1855
|
+
writer.writeBool(
|
|
1856
|
+
8,
|
|
1857
|
+
f
|
|
1858
|
+
);
|
|
1859
|
+
}
|
|
1819
1860
|
};
|
|
1820
1861
|
|
|
1821
1862
|
|
|
@@ -1933,6 +1974,23 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.setPaym
|
|
|
1933
1974
|
};
|
|
1934
1975
|
|
|
1935
1976
|
|
|
1977
|
+
/**
|
|
1978
|
+
* optional bool isBusinessTransaction = 8;
|
|
1979
|
+
* Note that Boolean fields may be set to 0/1 when serialized from a Java server.
|
|
1980
|
+
* You should avoid comparisons like {@code val === true/false} in those cases.
|
|
1981
|
+
* @return {boolean}
|
|
1982
|
+
*/
|
|
1983
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.getIsbusinesstransaction = function() {
|
|
1984
|
+
return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 8, false));
|
|
1985
|
+
};
|
|
1986
|
+
|
|
1987
|
+
|
|
1988
|
+
/** @param {boolean} value */
|
|
1989
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.setIsbusinesstransaction = function(value) {
|
|
1990
|
+
jspb.Message.setField(this, 8, value);
|
|
1991
|
+
};
|
|
1992
|
+
|
|
1993
|
+
|
|
1936
1994
|
|
|
1937
1995
|
/**
|
|
1938
1996
|
* Generated by JsPbCodeGenerator.
|
|
@@ -4974,7 +5032,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
4974
5032
|
* @private {!Array<number>}
|
|
4975
5033
|
* @const
|
|
4976
5034
|
*/
|
|
4977
|
-
proto.loyaltyprogramserviceapi.PaymentMethodsAvailabilityRequest.repeatedFields_ = [
|
|
5035
|
+
proto.loyaltyprogramserviceapi.PaymentMethodsAvailabilityRequest.repeatedFields_ = [3];
|
|
4978
5036
|
|
|
4979
5037
|
|
|
4980
5038
|
|
|
@@ -5004,8 +5062,9 @@ proto.loyaltyprogramserviceapi.PaymentMethodsAvailabilityRequest.prototype.toObj
|
|
|
5004
5062
|
*/
|
|
5005
5063
|
proto.loyaltyprogramserviceapi.PaymentMethodsAvailabilityRequest.toObject = function(includeInstance, msg) {
|
|
5006
5064
|
var f, obj = {
|
|
5065
|
+
isbusinesstransaction: msg.getIsbusinesstransaction(),
|
|
5007
5066
|
loyaltyprogramid: msg.getLoyaltyprogramid(),
|
|
5008
|
-
paymentmethodsidsList: jspb.Message.getField(msg,
|
|
5067
|
+
paymentmethodsidsList: jspb.Message.getField(msg, 3),
|
|
5009
5068
|
userid: msg.getUserid()
|
|
5010
5069
|
};
|
|
5011
5070
|
|
|
@@ -5044,14 +5103,18 @@ proto.loyaltyprogramserviceapi.PaymentMethodsAvailabilityRequest.deserializeBina
|
|
|
5044
5103
|
var field = reader.getFieldNumber();
|
|
5045
5104
|
switch (field) {
|
|
5046
5105
|
case 1:
|
|
5106
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
5107
|
+
msg.setIsbusinesstransaction(value);
|
|
5108
|
+
break;
|
|
5109
|
+
case 2:
|
|
5047
5110
|
var value = /** @type {number} */ (reader.readInt64());
|
|
5048
5111
|
msg.setLoyaltyprogramid(value);
|
|
5049
5112
|
break;
|
|
5050
|
-
case
|
|
5113
|
+
case 3:
|
|
5051
5114
|
var value = /** @type {!Array.<number>} */ (reader.readPackedInt64());
|
|
5052
5115
|
msg.setPaymentmethodsidsList(value);
|
|
5053
5116
|
break;
|
|
5054
|
-
case
|
|
5117
|
+
case 4:
|
|
5055
5118
|
var value = /** @type {number} */ (reader.readInt64());
|
|
5056
5119
|
msg.setUserid(value);
|
|
5057
5120
|
break;
|
|
@@ -5093,24 +5156,31 @@ proto.loyaltyprogramserviceapi.PaymentMethodsAvailabilityRequest.prototype.seria
|
|
|
5093
5156
|
*/
|
|
5094
5157
|
proto.loyaltyprogramserviceapi.PaymentMethodsAvailabilityRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
5095
5158
|
var f = undefined;
|
|
5159
|
+
f = this.getIsbusinesstransaction();
|
|
5160
|
+
if (f) {
|
|
5161
|
+
writer.writeBool(
|
|
5162
|
+
1,
|
|
5163
|
+
f
|
|
5164
|
+
);
|
|
5165
|
+
}
|
|
5096
5166
|
f = this.getLoyaltyprogramid();
|
|
5097
5167
|
if (f !== 0) {
|
|
5098
5168
|
writer.writeInt64(
|
|
5099
|
-
|
|
5169
|
+
2,
|
|
5100
5170
|
f
|
|
5101
5171
|
);
|
|
5102
5172
|
}
|
|
5103
5173
|
f = this.getPaymentmethodsidsList();
|
|
5104
5174
|
if (f.length > 0) {
|
|
5105
5175
|
writer.writePackedInt64(
|
|
5106
|
-
|
|
5176
|
+
3,
|
|
5107
5177
|
f
|
|
5108
5178
|
);
|
|
5109
5179
|
}
|
|
5110
5180
|
f = this.getUserid();
|
|
5111
5181
|
if (f !== 0) {
|
|
5112
5182
|
writer.writeInt64(
|
|
5113
|
-
|
|
5183
|
+
4,
|
|
5114
5184
|
f
|
|
5115
5185
|
);
|
|
5116
5186
|
}
|
|
@@ -5127,54 +5197,71 @@ proto.loyaltyprogramserviceapi.PaymentMethodsAvailabilityRequest.prototype.clone
|
|
|
5127
5197
|
|
|
5128
5198
|
|
|
5129
5199
|
/**
|
|
5130
|
-
* optional
|
|
5200
|
+
* optional bool isBusinessTransaction = 1;
|
|
5201
|
+
* Note that Boolean fields may be set to 0/1 when serialized from a Java server.
|
|
5202
|
+
* You should avoid comparisons like {@code val === true/false} in those cases.
|
|
5203
|
+
* @return {boolean}
|
|
5204
|
+
*/
|
|
5205
|
+
proto.loyaltyprogramserviceapi.PaymentMethodsAvailabilityRequest.prototype.getIsbusinesstransaction = function() {
|
|
5206
|
+
return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 1, false));
|
|
5207
|
+
};
|
|
5208
|
+
|
|
5209
|
+
|
|
5210
|
+
/** @param {boolean} value */
|
|
5211
|
+
proto.loyaltyprogramserviceapi.PaymentMethodsAvailabilityRequest.prototype.setIsbusinesstransaction = function(value) {
|
|
5212
|
+
jspb.Message.setField(this, 1, value);
|
|
5213
|
+
};
|
|
5214
|
+
|
|
5215
|
+
|
|
5216
|
+
/**
|
|
5217
|
+
* optional int64 loyaltyProgramId = 2;
|
|
5131
5218
|
* @return {number}
|
|
5132
5219
|
*/
|
|
5133
5220
|
proto.loyaltyprogramserviceapi.PaymentMethodsAvailabilityRequest.prototype.getLoyaltyprogramid = function() {
|
|
5134
|
-
return /** @type {number} */ (jspb.Message.getFieldProto3(this,
|
|
5221
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 2, 0));
|
|
5135
5222
|
};
|
|
5136
5223
|
|
|
5137
5224
|
|
|
5138
5225
|
/** @param {number} value */
|
|
5139
5226
|
proto.loyaltyprogramserviceapi.PaymentMethodsAvailabilityRequest.prototype.setLoyaltyprogramid = function(value) {
|
|
5140
|
-
jspb.Message.setField(this,
|
|
5227
|
+
jspb.Message.setField(this, 2, value);
|
|
5141
5228
|
};
|
|
5142
5229
|
|
|
5143
5230
|
|
|
5144
5231
|
/**
|
|
5145
|
-
* repeated int64 paymentMethodsIds =
|
|
5232
|
+
* repeated int64 paymentMethodsIds = 3;
|
|
5146
5233
|
* If you change this array by adding, removing or replacing elements, or if you
|
|
5147
5234
|
* replace the array itself, then you must call the setter to update it.
|
|
5148
5235
|
* @return {!Array.<number>}
|
|
5149
5236
|
*/
|
|
5150
5237
|
proto.loyaltyprogramserviceapi.PaymentMethodsAvailabilityRequest.prototype.getPaymentmethodsidsList = function() {
|
|
5151
|
-
return /** @type {!Array.<number>} */ (jspb.Message.getField(this,
|
|
5238
|
+
return /** @type {!Array.<number>} */ (jspb.Message.getField(this, 3));
|
|
5152
5239
|
};
|
|
5153
5240
|
|
|
5154
5241
|
|
|
5155
5242
|
/** @param {Array.<number>} value */
|
|
5156
5243
|
proto.loyaltyprogramserviceapi.PaymentMethodsAvailabilityRequest.prototype.setPaymentmethodsidsList = function(value) {
|
|
5157
|
-
jspb.Message.setField(this,
|
|
5244
|
+
jspb.Message.setField(this, 3, value || []);
|
|
5158
5245
|
};
|
|
5159
5246
|
|
|
5160
5247
|
|
|
5161
5248
|
proto.loyaltyprogramserviceapi.PaymentMethodsAvailabilityRequest.prototype.clearPaymentmethodsidsList = function() {
|
|
5162
|
-
jspb.Message.setField(this,
|
|
5249
|
+
jspb.Message.setField(this, 3, []);
|
|
5163
5250
|
};
|
|
5164
5251
|
|
|
5165
5252
|
|
|
5166
5253
|
/**
|
|
5167
|
-
* optional int64 userId =
|
|
5254
|
+
* optional int64 userId = 4;
|
|
5168
5255
|
* @return {number}
|
|
5169
5256
|
*/
|
|
5170
5257
|
proto.loyaltyprogramserviceapi.PaymentMethodsAvailabilityRequest.prototype.getUserid = function() {
|
|
5171
|
-
return /** @type {number} */ (jspb.Message.getFieldProto3(this,
|
|
5258
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 4, 0));
|
|
5172
5259
|
};
|
|
5173
5260
|
|
|
5174
5261
|
|
|
5175
5262
|
/** @param {number} value */
|
|
5176
5263
|
proto.loyaltyprogramserviceapi.PaymentMethodsAvailabilityRequest.prototype.setUserid = function(value) {
|
|
5177
|
-
jspb.Message.setField(this,
|
|
5264
|
+
jspb.Message.setField(this, 4, value);
|
|
5178
5265
|
};
|
|
5179
5266
|
|
|
5180
5267
|
|