@sniipwebmaster/loyalty-program-client-grpcweb 22.17.544 → 22.20.566

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.
@@ -11,6 +11,7 @@ var global = Function('return this')();
11
11
 
12
12
  var google_api_annotations_pb = require('./google/api/annotations_pb.js');
13
13
  var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
14
+ goog.exportSymbol('proto.loyaltyprogramserviceapi.CalculatePointsReq', null, global);
14
15
  goog.exportSymbol('proto.loyaltyprogramserviceapi.CalculatePointsRequest', null, global);
15
16
  goog.exportSymbol('proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse', null, global);
16
17
  goog.exportSymbol('proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest', null, global);
@@ -26,6 +27,7 @@ goog.exportSymbol('proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse',
26
27
  goog.exportSymbol('proto.loyaltyprogramserviceapi.MembershipDetail', null, global);
27
28
  goog.exportSymbol('proto.loyaltyprogramserviceapi.MembershipDetailResponse', null, global);
28
29
  goog.exportSymbol('proto.loyaltyprogramserviceapi.MembershipDetailsResponse', null, global);
30
+ goog.exportSymbol('proto.loyaltyprogramserviceapi.PaymentAmountInfo', null, global);
29
31
  goog.exportSymbol('proto.loyaltyprogramserviceapi.PaymentMethodsResponse', null, global);
30
32
  goog.exportSymbol('proto.loyaltyprogramserviceapi.ProgramDetail', null, global);
31
33
  goog.exportSymbol('proto.loyaltyprogramserviceapi.ProgramDetail.ProgramDetailMembershipNumberType', null, global);
@@ -47,13 +49,20 @@ goog.exportSymbol('proto.loyaltyprogramserviceapi.ValidateMembershipResponse', n
47
49
  * @extends {jspb.Message}
48
50
  * @constructor
49
51
  */
50
- proto.loyaltyprogramserviceapi.CalculatePointsRequest = function(opt_data) {
51
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
52
+ proto.loyaltyprogramserviceapi.CalculatePointsReq = function(opt_data) {
53
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.loyaltyprogramserviceapi.CalculatePointsReq.repeatedFields_, null);
52
54
  };
53
- goog.inherits(proto.loyaltyprogramserviceapi.CalculatePointsRequest, jspb.Message);
55
+ goog.inherits(proto.loyaltyprogramserviceapi.CalculatePointsReq, jspb.Message);
54
56
  if (goog.DEBUG && !COMPILED) {
55
- proto.loyaltyprogramserviceapi.CalculatePointsRequest.displayName = 'proto.loyaltyprogramserviceapi.CalculatePointsRequest';
57
+ proto.loyaltyprogramserviceapi.CalculatePointsReq.displayName = 'proto.loyaltyprogramserviceapi.CalculatePointsReq';
56
58
  }
59
+ /**
60
+ * List of repeated fields within this message type.
61
+ * @private {!Array<number>}
62
+ * @const
63
+ */
64
+ proto.loyaltyprogramserviceapi.CalculatePointsReq.repeatedFields_ = [8];
65
+
57
66
 
58
67
 
59
68
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -67,8 +76,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
67
76
  * for transitional soy proto support: http://goto/soy-param-migration
68
77
  * @return {!Object}
69
78
  */
70
- proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.toObject = function(opt_includeInstance) {
71
- return proto.loyaltyprogramserviceapi.CalculatePointsRequest.toObject(opt_includeInstance, this);
79
+ proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.toObject = function(opt_includeInstance) {
80
+ return proto.loyaltyprogramserviceapi.CalculatePointsReq.toObject(opt_includeInstance, this);
72
81
  };
73
82
 
74
83
 
@@ -77,18 +86,19 @@ proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.toObject = funct
77
86
  * @param {boolean|undefined} includeInstance Whether to include the JSPB
78
87
  * instance for transitional soy proto support:
79
88
  * http://goto/soy-param-migration
80
- * @param {!proto.loyaltyprogramserviceapi.CalculatePointsRequest} msg The msg instance to transform.
89
+ * @param {!proto.loyaltyprogramserviceapi.CalculatePointsReq} msg The msg instance to transform.
81
90
  * @return {!Object}
82
91
  */
83
- proto.loyaltyprogramserviceapi.CalculatePointsRequest.toObject = function(includeInstance, msg) {
92
+ proto.loyaltyprogramserviceapi.CalculatePointsReq.toObject = function(includeInstance, msg) {
84
93
  var f, obj = {
85
94
  membershipid: msg.getMembershipid(),
86
95
  paymentmethodid: msg.getPaymentmethodid(),
87
96
  userid: msg.getUserid(),
88
- paymentamount: msg.getPaymentamount(),
89
97
  paymenttype: msg.getPaymenttype(),
90
98
  cardtype: msg.getCardtype(),
91
- cardvariant: msg.getCardvariant()
99
+ cardvariant: msg.getCardvariant(),
100
+ paymentamountinfoList: jspb.Message.toObjectList(msg.getPaymentamountinfoList(),
101
+ proto.loyaltyprogramserviceapi.PaymentAmountInfo.toObject, includeInstance)
92
102
  };
93
103
 
94
104
  if (includeInstance) {
@@ -102,23 +112,23 @@ proto.loyaltyprogramserviceapi.CalculatePointsRequest.toObject = function(includ
102
112
  /**
103
113
  * Deserializes binary data (in protobuf wire format).
104
114
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
105
- * @return {!proto.loyaltyprogramserviceapi.CalculatePointsRequest}
115
+ * @return {!proto.loyaltyprogramserviceapi.CalculatePointsReq}
106
116
  */
107
- proto.loyaltyprogramserviceapi.CalculatePointsRequest.deserializeBinary = function(bytes) {
117
+ proto.loyaltyprogramserviceapi.CalculatePointsReq.deserializeBinary = function(bytes) {
108
118
  var reader = new jspb.BinaryReader(bytes);
109
- var msg = new proto.loyaltyprogramserviceapi.CalculatePointsRequest;
110
- return proto.loyaltyprogramserviceapi.CalculatePointsRequest.deserializeBinaryFromReader(msg, reader);
119
+ var msg = new proto.loyaltyprogramserviceapi.CalculatePointsReq;
120
+ return proto.loyaltyprogramserviceapi.CalculatePointsReq.deserializeBinaryFromReader(msg, reader);
111
121
  };
112
122
 
113
123
 
114
124
  /**
115
125
  * Deserializes binary data (in protobuf wire format) from the
116
126
  * given reader into the given message object.
117
- * @param {!proto.loyaltyprogramserviceapi.CalculatePointsRequest} msg The message object to deserialize into.
127
+ * @param {!proto.loyaltyprogramserviceapi.CalculatePointsReq} msg The message object to deserialize into.
118
128
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
119
- * @return {!proto.loyaltyprogramserviceapi.CalculatePointsRequest}
129
+ * @return {!proto.loyaltyprogramserviceapi.CalculatePointsReq}
120
130
  */
121
- proto.loyaltyprogramserviceapi.CalculatePointsRequest.deserializeBinaryFromReader = function(msg, reader) {
131
+ proto.loyaltyprogramserviceapi.CalculatePointsReq.deserializeBinaryFromReader = function(msg, reader) {
122
132
  while (reader.nextField()) {
123
133
  if (reader.isEndGroup()) {
124
134
  break;
@@ -137,10 +147,6 @@ proto.loyaltyprogramserviceapi.CalculatePointsRequest.deserializeBinaryFromReade
137
147
  var value = /** @type {number} */ (reader.readInt64());
138
148
  msg.setUserid(value);
139
149
  break;
140
- case 4:
141
- var value = /** @type {number} */ (reader.readFloat());
142
- msg.setPaymentamount(value);
143
- break;
144
150
  case 5:
145
151
  var value = /** @type {string} */ (reader.readString());
146
152
  msg.setPaymenttype(value);
@@ -153,6 +159,12 @@ proto.loyaltyprogramserviceapi.CalculatePointsRequest.deserializeBinaryFromReade
153
159
  var value = /** @type {string} */ (reader.readString());
154
160
  msg.setCardvariant(value);
155
161
  break;
162
+ case 8:
163
+ var value = new proto.loyaltyprogramserviceapi.PaymentAmountInfo;
164
+ reader.readMessage(value,proto.loyaltyprogramserviceapi.PaymentAmountInfo.deserializeBinaryFromReader);
165
+ msg.getPaymentamountinfoList().push(value);
166
+ msg.setPaymentamountinfoList(msg.getPaymentamountinfoList());
167
+ break;
156
168
  default:
157
169
  reader.skipField();
158
170
  break;
@@ -165,10 +177,10 @@ proto.loyaltyprogramserviceapi.CalculatePointsRequest.deserializeBinaryFromReade
165
177
  /**
166
178
  * Class method variant: serializes the given message to binary data
167
179
  * (in protobuf wire format), writing to the given BinaryWriter.
168
- * @param {!proto.loyaltyprogramserviceapi.CalculatePointsRequest} message
180
+ * @param {!proto.loyaltyprogramserviceapi.CalculatePointsReq} message
169
181
  * @param {!jspb.BinaryWriter} writer
170
182
  */
171
- proto.loyaltyprogramserviceapi.CalculatePointsRequest.serializeBinaryToWriter = function(message, writer) {
183
+ proto.loyaltyprogramserviceapi.CalculatePointsReq.serializeBinaryToWriter = function(message, writer) {
172
184
  message.serializeBinaryToWriter(writer);
173
185
  };
174
186
 
@@ -177,7 +189,7 @@ proto.loyaltyprogramserviceapi.CalculatePointsRequest.serializeBinaryToWriter =
177
189
  * Serializes the message to binary data (in protobuf wire format).
178
190
  * @return {!Uint8Array}
179
191
  */
180
- proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.serializeBinary = function() {
192
+ proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.serializeBinary = function() {
181
193
  var writer = new jspb.BinaryWriter();
182
194
  this.serializeBinaryToWriter(writer);
183
195
  return writer.getResultBuffer();
@@ -189,7 +201,7 @@ proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.serializeBinary
189
201
  * writing to the given BinaryWriter.
190
202
  * @param {!jspb.BinaryWriter} writer
191
203
  */
192
- proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.serializeBinaryToWriter = function (writer) {
204
+ proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.serializeBinaryToWriter = function (writer) {
193
205
  var f = undefined;
194
206
  f = this.getMembershipid();
195
207
  if (f !== 0) {
@@ -212,13 +224,6 @@ proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.serializeBinaryT
212
224
  f
213
225
  );
214
226
  }
215
- f = this.getPaymentamount();
216
- if (f !== 0.0) {
217
- writer.writeFloat(
218
- 4,
219
- f
220
- );
221
- }
222
227
  f = this.getPaymenttype();
223
228
  if (f.length > 0) {
224
229
  writer.writeString(
@@ -240,15 +245,23 @@ proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.serializeBinaryT
240
245
  f
241
246
  );
242
247
  }
248
+ f = this.getPaymentamountinfoList();
249
+ if (f.length > 0) {
250
+ writer.writeRepeatedMessage(
251
+ 8,
252
+ f,
253
+ proto.loyaltyprogramserviceapi.PaymentAmountInfo.serializeBinaryToWriter
254
+ );
255
+ }
243
256
  };
244
257
 
245
258
 
246
259
  /**
247
260
  * Creates a deep clone of this proto. No data is shared with the original.
248
- * @return {!proto.loyaltyprogramserviceapi.CalculatePointsRequest} The clone.
261
+ * @return {!proto.loyaltyprogramserviceapi.CalculatePointsReq} The clone.
249
262
  */
250
- proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.cloneMessage = function() {
251
- return /** @type {!proto.loyaltyprogramserviceapi.CalculatePointsRequest} */ (jspb.Message.cloneMessage(this));
263
+ proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.cloneMessage = function() {
264
+ return /** @type {!proto.loyaltyprogramserviceapi.CalculatePointsReq} */ (jspb.Message.cloneMessage(this));
252
265
  };
253
266
 
254
267
 
@@ -256,13 +269,13 @@ proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.cloneMessage = f
256
269
  * optional int64 membershipId = 1;
257
270
  * @return {number}
258
271
  */
259
- proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.getMembershipid = function() {
272
+ proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.getMembershipid = function() {
260
273
  return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
261
274
  };
262
275
 
263
276
 
264
277
  /** @param {number} value */
265
- proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.setMembershipid = function(value) {
278
+ proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.setMembershipid = function(value) {
266
279
  jspb.Message.setField(this, 1, value);
267
280
  };
268
281
 
@@ -271,13 +284,13 @@ proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.setMembershipid
271
284
  * optional int64 paymentMethodId = 2;
272
285
  * @return {number}
273
286
  */
274
- proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.getPaymentmethodid = function() {
287
+ proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.getPaymentmethodid = function() {
275
288
  return /** @type {number} */ (jspb.Message.getFieldProto3(this, 2, 0));
276
289
  };
277
290
 
278
291
 
279
292
  /** @param {number} value */
280
- proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.setPaymentmethodid = function(value) {
293
+ proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.setPaymentmethodid = function(value) {
281
294
  jspb.Message.setField(this, 2, value);
282
295
  };
283
296
 
@@ -286,43 +299,28 @@ proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.setPaymentmethod
286
299
  * optional int64 userId = 3;
287
300
  * @return {number}
288
301
  */
289
- proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.getUserid = function() {
302
+ proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.getUserid = function() {
290
303
  return /** @type {number} */ (jspb.Message.getFieldProto3(this, 3, 0));
291
304
  };
292
305
 
293
306
 
294
307
  /** @param {number} value */
295
- proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.setUserid = function(value) {
308
+ proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.setUserid = function(value) {
296
309
  jspb.Message.setField(this, 3, value);
297
310
  };
298
311
 
299
312
 
300
- /**
301
- * optional float paymentAmount = 4;
302
- * @return {number}
303
- */
304
- proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.getPaymentamount = function() {
305
- return /** @type {number} */ (jspb.Message.getFieldProto3(this, 4, 0));
306
- };
307
-
308
-
309
- /** @param {number} value */
310
- proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.setPaymentamount = function(value) {
311
- jspb.Message.setField(this, 4, value);
312
- };
313
-
314
-
315
313
  /**
316
314
  * optional string paymentType = 5;
317
315
  * @return {string}
318
316
  */
319
- proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.getPaymenttype = function() {
317
+ proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.getPaymenttype = function() {
320
318
  return /** @type {string} */ (jspb.Message.getFieldProto3(this, 5, ""));
321
319
  };
322
320
 
323
321
 
324
322
  /** @param {string} value */
325
- proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.setPaymenttype = function(value) {
323
+ proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.setPaymenttype = function(value) {
326
324
  jspb.Message.setField(this, 5, value);
327
325
  };
328
326
 
@@ -331,13 +329,13 @@ proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.setPaymenttype =
331
329
  * optional string cardType = 6;
332
330
  * @return {string}
333
331
  */
334
- proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.getCardtype = function() {
332
+ proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.getCardtype = function() {
335
333
  return /** @type {string} */ (jspb.Message.getFieldProto3(this, 6, ""));
336
334
  };
337
335
 
338
336
 
339
337
  /** @param {string} value */
340
- proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.setCardtype = function(value) {
338
+ proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.setCardtype = function(value) {
341
339
  jspb.Message.setField(this, 6, value);
342
340
  };
343
341
 
@@ -346,17 +344,216 @@ proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.setCardtype = fu
346
344
  * optional string cardVariant = 7;
347
345
  * @return {string}
348
346
  */
349
- proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.getCardvariant = function() {
347
+ proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.getCardvariant = function() {
350
348
  return /** @type {string} */ (jspb.Message.getFieldProto3(this, 7, ""));
351
349
  };
352
350
 
353
351
 
354
352
  /** @param {string} value */
355
- proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.setCardvariant = function(value) {
353
+ proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.setCardvariant = function(value) {
356
354
  jspb.Message.setField(this, 7, value);
357
355
  };
358
356
 
359
357
 
358
+ /**
359
+ * repeated PaymentAmountInfo paymentAmountInfo = 8;
360
+ * If you change this array by adding, removing or replacing elements, or if you
361
+ * replace the array itself, then you must call the setter to update it.
362
+ * @return {!Array.<!proto.loyaltyprogramserviceapi.PaymentAmountInfo>}
363
+ */
364
+ proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.getPaymentamountinfoList = function() {
365
+ return /** @type{!Array.<!proto.loyaltyprogramserviceapi.PaymentAmountInfo>} */ (
366
+ jspb.Message.getRepeatedWrapperField(this, proto.loyaltyprogramserviceapi.PaymentAmountInfo, 8));
367
+ };
368
+
369
+
370
+ /** @param {Array.<!proto.loyaltyprogramserviceapi.PaymentAmountInfo>} value */
371
+ proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.setPaymentamountinfoList = function(value) {
372
+ jspb.Message.setRepeatedWrapperField(this, 8, value);
373
+ };
374
+
375
+
376
+ proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.clearPaymentamountinfoList = function() {
377
+ this.setPaymentamountinfoList([]);
378
+ };
379
+
380
+
381
+
382
+ /**
383
+ * Generated by JsPbCodeGenerator.
384
+ * @param {Array=} opt_data Optional initial data array, typically from a
385
+ * server response, or constructed directly in Javascript. The array is used
386
+ * in place and becomes part of the constructed object. It is not cloned.
387
+ * If no data is provided, the constructed object will be empty, but still
388
+ * valid.
389
+ * @extends {jspb.Message}
390
+ * @constructor
391
+ */
392
+ proto.loyaltyprogramserviceapi.CalculatePointsRequest = function(opt_data) {
393
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
394
+ };
395
+ goog.inherits(proto.loyaltyprogramserviceapi.CalculatePointsRequest, jspb.Message);
396
+ if (goog.DEBUG && !COMPILED) {
397
+ proto.loyaltyprogramserviceapi.CalculatePointsRequest.displayName = 'proto.loyaltyprogramserviceapi.CalculatePointsRequest';
398
+ }
399
+
400
+
401
+ if (jspb.Message.GENERATE_TO_OBJECT) {
402
+ /**
403
+ * Creates an object representation of this proto suitable for use in Soy templates.
404
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
405
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
406
+ * For the list of reserved names please see:
407
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
408
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
409
+ * for transitional soy proto support: http://goto/soy-param-migration
410
+ * @return {!Object}
411
+ */
412
+ proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.toObject = function(opt_includeInstance) {
413
+ return proto.loyaltyprogramserviceapi.CalculatePointsRequest.toObject(opt_includeInstance, this);
414
+ };
415
+
416
+
417
+ /**
418
+ * Static version of the {@see toObject} method.
419
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
420
+ * instance for transitional soy proto support:
421
+ * http://goto/soy-param-migration
422
+ * @param {!proto.loyaltyprogramserviceapi.CalculatePointsRequest} msg The msg instance to transform.
423
+ * @return {!Object}
424
+ */
425
+ proto.loyaltyprogramserviceapi.CalculatePointsRequest.toObject = function(includeInstance, msg) {
426
+ var f, obj = {
427
+ data: (f = msg.getData()) && proto.loyaltyprogramserviceapi.CalculatePointsReq.toObject(includeInstance, f)
428
+ };
429
+
430
+ if (includeInstance) {
431
+ obj.$jspbMessageInstance = msg;
432
+ }
433
+ return obj;
434
+ };
435
+ }
436
+
437
+
438
+ /**
439
+ * Deserializes binary data (in protobuf wire format).
440
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
441
+ * @return {!proto.loyaltyprogramserviceapi.CalculatePointsRequest}
442
+ */
443
+ proto.loyaltyprogramserviceapi.CalculatePointsRequest.deserializeBinary = function(bytes) {
444
+ var reader = new jspb.BinaryReader(bytes);
445
+ var msg = new proto.loyaltyprogramserviceapi.CalculatePointsRequest;
446
+ return proto.loyaltyprogramserviceapi.CalculatePointsRequest.deserializeBinaryFromReader(msg, reader);
447
+ };
448
+
449
+
450
+ /**
451
+ * Deserializes binary data (in protobuf wire format) from the
452
+ * given reader into the given message object.
453
+ * @param {!proto.loyaltyprogramserviceapi.CalculatePointsRequest} msg The message object to deserialize into.
454
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
455
+ * @return {!proto.loyaltyprogramserviceapi.CalculatePointsRequest}
456
+ */
457
+ proto.loyaltyprogramserviceapi.CalculatePointsRequest.deserializeBinaryFromReader = function(msg, reader) {
458
+ while (reader.nextField()) {
459
+ if (reader.isEndGroup()) {
460
+ break;
461
+ }
462
+ var field = reader.getFieldNumber();
463
+ switch (field) {
464
+ case 1:
465
+ var value = new proto.loyaltyprogramserviceapi.CalculatePointsReq;
466
+ reader.readMessage(value,proto.loyaltyprogramserviceapi.CalculatePointsReq.deserializeBinaryFromReader);
467
+ msg.setData(value);
468
+ break;
469
+ default:
470
+ reader.skipField();
471
+ break;
472
+ }
473
+ }
474
+ return msg;
475
+ };
476
+
477
+
478
+ /**
479
+ * Class method variant: serializes the given message to binary data
480
+ * (in protobuf wire format), writing to the given BinaryWriter.
481
+ * @param {!proto.loyaltyprogramserviceapi.CalculatePointsRequest} message
482
+ * @param {!jspb.BinaryWriter} writer
483
+ */
484
+ proto.loyaltyprogramserviceapi.CalculatePointsRequest.serializeBinaryToWriter = function(message, writer) {
485
+ message.serializeBinaryToWriter(writer);
486
+ };
487
+
488
+
489
+ /**
490
+ * Serializes the message to binary data (in protobuf wire format).
491
+ * @return {!Uint8Array}
492
+ */
493
+ proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.serializeBinary = function() {
494
+ var writer = new jspb.BinaryWriter();
495
+ this.serializeBinaryToWriter(writer);
496
+ return writer.getResultBuffer();
497
+ };
498
+
499
+
500
+ /**
501
+ * Serializes the message to binary data (in protobuf wire format),
502
+ * writing to the given BinaryWriter.
503
+ * @param {!jspb.BinaryWriter} writer
504
+ */
505
+ proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.serializeBinaryToWriter = function (writer) {
506
+ var f = undefined;
507
+ f = this.getData();
508
+ if (f != null) {
509
+ writer.writeMessage(
510
+ 1,
511
+ f,
512
+ proto.loyaltyprogramserviceapi.CalculatePointsReq.serializeBinaryToWriter
513
+ );
514
+ }
515
+ };
516
+
517
+
518
+ /**
519
+ * Creates a deep clone of this proto. No data is shared with the original.
520
+ * @return {!proto.loyaltyprogramserviceapi.CalculatePointsRequest} The clone.
521
+ */
522
+ proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.cloneMessage = function() {
523
+ return /** @type {!proto.loyaltyprogramserviceapi.CalculatePointsRequest} */ (jspb.Message.cloneMessage(this));
524
+ };
525
+
526
+
527
+ /**
528
+ * optional CalculatePointsReq data = 1;
529
+ * @return {proto.loyaltyprogramserviceapi.CalculatePointsReq}
530
+ */
531
+ proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.getData = function() {
532
+ return /** @type{proto.loyaltyprogramserviceapi.CalculatePointsReq} */ (
533
+ jspb.Message.getWrapperField(this, proto.loyaltyprogramserviceapi.CalculatePointsReq, 1));
534
+ };
535
+
536
+
537
+ /** @param {proto.loyaltyprogramserviceapi.CalculatePointsReq|undefined} value */
538
+ proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.setData = function(value) {
539
+ jspb.Message.setWrapperField(this, 1, value);
540
+ };
541
+
542
+
543
+ proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.clearData = function() {
544
+ this.setData(undefined);
545
+ };
546
+
547
+
548
+ /**
549
+ * Returns whether this field is set.
550
+ * @return{!boolean}
551
+ */
552
+ proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.hasData = function() {
553
+ return jspb.Message.getField(this, 1) != null;
554
+ };
555
+
556
+
360
557
 
361
558
  /**
362
559
  * Generated by JsPbCodeGenerator.
@@ -3673,6 +3870,192 @@ proto.loyaltyprogramserviceapi.MembershipDetailsResponse.prototype.clearMembersh
3673
3870
 
3674
3871
 
3675
3872
 
3873
+ /**
3874
+ * Generated by JsPbCodeGenerator.
3875
+ * @param {Array=} opt_data Optional initial data array, typically from a
3876
+ * server response, or constructed directly in Javascript. The array is used
3877
+ * in place and becomes part of the constructed object. It is not cloned.
3878
+ * If no data is provided, the constructed object will be empty, but still
3879
+ * valid.
3880
+ * @extends {jspb.Message}
3881
+ * @constructor
3882
+ */
3883
+ proto.loyaltyprogramserviceapi.PaymentAmountInfo = function(opt_data) {
3884
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3885
+ };
3886
+ goog.inherits(proto.loyaltyprogramserviceapi.PaymentAmountInfo, jspb.Message);
3887
+ if (goog.DEBUG && !COMPILED) {
3888
+ proto.loyaltyprogramserviceapi.PaymentAmountInfo.displayName = 'proto.loyaltyprogramserviceapi.PaymentAmountInfo';
3889
+ }
3890
+
3891
+
3892
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3893
+ /**
3894
+ * Creates an object representation of this proto suitable for use in Soy templates.
3895
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3896
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3897
+ * For the list of reserved names please see:
3898
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
3899
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
3900
+ * for transitional soy proto support: http://goto/soy-param-migration
3901
+ * @return {!Object}
3902
+ */
3903
+ proto.loyaltyprogramserviceapi.PaymentAmountInfo.prototype.toObject = function(opt_includeInstance) {
3904
+ return proto.loyaltyprogramserviceapi.PaymentAmountInfo.toObject(opt_includeInstance, this);
3905
+ };
3906
+
3907
+
3908
+ /**
3909
+ * Static version of the {@see toObject} method.
3910
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
3911
+ * instance for transitional soy proto support:
3912
+ * http://goto/soy-param-migration
3913
+ * @param {!proto.loyaltyprogramserviceapi.PaymentAmountInfo} msg The msg instance to transform.
3914
+ * @return {!Object}
3915
+ */
3916
+ proto.loyaltyprogramserviceapi.PaymentAmountInfo.toObject = function(includeInstance, msg) {
3917
+ var f, obj = {
3918
+ paymentamount: msg.getPaymentamount(),
3919
+ paymentprocessor: msg.getPaymentprocessor()
3920
+ };
3921
+
3922
+ if (includeInstance) {
3923
+ obj.$jspbMessageInstance = msg;
3924
+ }
3925
+ return obj;
3926
+ };
3927
+ }
3928
+
3929
+
3930
+ /**
3931
+ * Deserializes binary data (in protobuf wire format).
3932
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3933
+ * @return {!proto.loyaltyprogramserviceapi.PaymentAmountInfo}
3934
+ */
3935
+ proto.loyaltyprogramserviceapi.PaymentAmountInfo.deserializeBinary = function(bytes) {
3936
+ var reader = new jspb.BinaryReader(bytes);
3937
+ var msg = new proto.loyaltyprogramserviceapi.PaymentAmountInfo;
3938
+ return proto.loyaltyprogramserviceapi.PaymentAmountInfo.deserializeBinaryFromReader(msg, reader);
3939
+ };
3940
+
3941
+
3942
+ /**
3943
+ * Deserializes binary data (in protobuf wire format) from the
3944
+ * given reader into the given message object.
3945
+ * @param {!proto.loyaltyprogramserviceapi.PaymentAmountInfo} msg The message object to deserialize into.
3946
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3947
+ * @return {!proto.loyaltyprogramserviceapi.PaymentAmountInfo}
3948
+ */
3949
+ proto.loyaltyprogramserviceapi.PaymentAmountInfo.deserializeBinaryFromReader = function(msg, reader) {
3950
+ while (reader.nextField()) {
3951
+ if (reader.isEndGroup()) {
3952
+ break;
3953
+ }
3954
+ var field = reader.getFieldNumber();
3955
+ switch (field) {
3956
+ case 1:
3957
+ var value = /** @type {number} */ (reader.readDouble());
3958
+ msg.setPaymentamount(value);
3959
+ break;
3960
+ case 2:
3961
+ var value = /** @type {string} */ (reader.readString());
3962
+ msg.setPaymentprocessor(value);
3963
+ break;
3964
+ default:
3965
+ reader.skipField();
3966
+ break;
3967
+ }
3968
+ }
3969
+ return msg;
3970
+ };
3971
+
3972
+
3973
+ /**
3974
+ * Class method variant: serializes the given message to binary data
3975
+ * (in protobuf wire format), writing to the given BinaryWriter.
3976
+ * @param {!proto.loyaltyprogramserviceapi.PaymentAmountInfo} message
3977
+ * @param {!jspb.BinaryWriter} writer
3978
+ */
3979
+ proto.loyaltyprogramserviceapi.PaymentAmountInfo.serializeBinaryToWriter = function(message, writer) {
3980
+ message.serializeBinaryToWriter(writer);
3981
+ };
3982
+
3983
+
3984
+ /**
3985
+ * Serializes the message to binary data (in protobuf wire format).
3986
+ * @return {!Uint8Array}
3987
+ */
3988
+ proto.loyaltyprogramserviceapi.PaymentAmountInfo.prototype.serializeBinary = function() {
3989
+ var writer = new jspb.BinaryWriter();
3990
+ this.serializeBinaryToWriter(writer);
3991
+ return writer.getResultBuffer();
3992
+ };
3993
+
3994
+
3995
+ /**
3996
+ * Serializes the message to binary data (in protobuf wire format),
3997
+ * writing to the given BinaryWriter.
3998
+ * @param {!jspb.BinaryWriter} writer
3999
+ */
4000
+ proto.loyaltyprogramserviceapi.PaymentAmountInfo.prototype.serializeBinaryToWriter = function (writer) {
4001
+ var f = undefined;
4002
+ f = this.getPaymentamount();
4003
+ if (f !== 0.0) {
4004
+ writer.writeDouble(
4005
+ 1,
4006
+ f
4007
+ );
4008
+ }
4009
+ f = this.getPaymentprocessor();
4010
+ if (f.length > 0) {
4011
+ writer.writeString(
4012
+ 2,
4013
+ f
4014
+ );
4015
+ }
4016
+ };
4017
+
4018
+
4019
+ /**
4020
+ * Creates a deep clone of this proto. No data is shared with the original.
4021
+ * @return {!proto.loyaltyprogramserviceapi.PaymentAmountInfo} The clone.
4022
+ */
4023
+ proto.loyaltyprogramserviceapi.PaymentAmountInfo.prototype.cloneMessage = function() {
4024
+ return /** @type {!proto.loyaltyprogramserviceapi.PaymentAmountInfo} */ (jspb.Message.cloneMessage(this));
4025
+ };
4026
+
4027
+
4028
+ /**
4029
+ * optional double paymentAmount = 1;
4030
+ * @return {number}
4031
+ */
4032
+ proto.loyaltyprogramserviceapi.PaymentAmountInfo.prototype.getPaymentamount = function() {
4033
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
4034
+ };
4035
+
4036
+
4037
+ /** @param {number} value */
4038
+ proto.loyaltyprogramserviceapi.PaymentAmountInfo.prototype.setPaymentamount = function(value) {
4039
+ jspb.Message.setField(this, 1, value);
4040
+ };
4041
+
4042
+
4043
+ /**
4044
+ * optional string paymentProcessor = 2;
4045
+ * @return {string}
4046
+ */
4047
+ proto.loyaltyprogramserviceapi.PaymentAmountInfo.prototype.getPaymentprocessor = function() {
4048
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
4049
+ };
4050
+
4051
+
4052
+ /** @param {string} value */
4053
+ proto.loyaltyprogramserviceapi.PaymentAmountInfo.prototype.setPaymentprocessor = function(value) {
4054
+ jspb.Message.setField(this, 2, value);
4055
+ };
4056
+
4057
+
4058
+
3676
4059
  /**
3677
4060
  * Generated by JsPbCodeGenerator.
3678
4061
  * @param {Array=} opt_data Optional initial data array, typically from a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/loyalty-program-client-grpcweb",
3
- "version": "22.17.544",
3
+ "version": "22.20.566",
4
4
  "description": "loyalty-program-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",