@sniipwebmaster/loyalty-program-client-grpcweb 22.20.558 → 22.20.574
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 +430 -74
- package/package.json +1 -1
|
@@ -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.
|
|
51
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
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.
|
|
55
|
+
goog.inherits(proto.loyaltyprogramserviceapi.CalculatePointsReq, jspb.Message);
|
|
54
56
|
if (goog.DEBUG && !COMPILED) {
|
|
55
|
-
proto.loyaltyprogramserviceapi.
|
|
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.
|
|
71
|
-
return proto.loyaltyprogramserviceapi.
|
|
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,19 +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.
|
|
89
|
+
* @param {!proto.loyaltyprogramserviceapi.CalculatePointsReq} msg The msg instance to transform.
|
|
81
90
|
* @return {!Object}
|
|
82
91
|
*/
|
|
83
|
-
proto.loyaltyprogramserviceapi.
|
|
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
99
|
cardvariant: msg.getCardvariant(),
|
|
92
|
-
|
|
100
|
+
paymentamountinfoList: jspb.Message.toObjectList(msg.getPaymentamountinfoList(),
|
|
101
|
+
proto.loyaltyprogramserviceapi.PaymentAmountInfo.toObject, includeInstance)
|
|
93
102
|
};
|
|
94
103
|
|
|
95
104
|
if (includeInstance) {
|
|
@@ -103,23 +112,23 @@ proto.loyaltyprogramserviceapi.CalculatePointsRequest.toObject = function(includ
|
|
|
103
112
|
/**
|
|
104
113
|
* Deserializes binary data (in protobuf wire format).
|
|
105
114
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
106
|
-
* @return {!proto.loyaltyprogramserviceapi.
|
|
115
|
+
* @return {!proto.loyaltyprogramserviceapi.CalculatePointsReq}
|
|
107
116
|
*/
|
|
108
|
-
proto.loyaltyprogramserviceapi.
|
|
117
|
+
proto.loyaltyprogramserviceapi.CalculatePointsReq.deserializeBinary = function(bytes) {
|
|
109
118
|
var reader = new jspb.BinaryReader(bytes);
|
|
110
|
-
var msg = new proto.loyaltyprogramserviceapi.
|
|
111
|
-
return proto.loyaltyprogramserviceapi.
|
|
119
|
+
var msg = new proto.loyaltyprogramserviceapi.CalculatePointsReq;
|
|
120
|
+
return proto.loyaltyprogramserviceapi.CalculatePointsReq.deserializeBinaryFromReader(msg, reader);
|
|
112
121
|
};
|
|
113
122
|
|
|
114
123
|
|
|
115
124
|
/**
|
|
116
125
|
* Deserializes binary data (in protobuf wire format) from the
|
|
117
126
|
* given reader into the given message object.
|
|
118
|
-
* @param {!proto.loyaltyprogramserviceapi.
|
|
127
|
+
* @param {!proto.loyaltyprogramserviceapi.CalculatePointsReq} msg The message object to deserialize into.
|
|
119
128
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
120
|
-
* @return {!proto.loyaltyprogramserviceapi.
|
|
129
|
+
* @return {!proto.loyaltyprogramserviceapi.CalculatePointsReq}
|
|
121
130
|
*/
|
|
122
|
-
proto.loyaltyprogramserviceapi.
|
|
131
|
+
proto.loyaltyprogramserviceapi.CalculatePointsReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
123
132
|
while (reader.nextField()) {
|
|
124
133
|
if (reader.isEndGroup()) {
|
|
125
134
|
break;
|
|
@@ -138,10 +147,6 @@ proto.loyaltyprogramserviceapi.CalculatePointsRequest.deserializeBinaryFromReade
|
|
|
138
147
|
var value = /** @type {number} */ (reader.readInt64());
|
|
139
148
|
msg.setUserid(value);
|
|
140
149
|
break;
|
|
141
|
-
case 4:
|
|
142
|
-
var value = /** @type {number} */ (reader.readFloat());
|
|
143
|
-
msg.setPaymentamount(value);
|
|
144
|
-
break;
|
|
145
150
|
case 5:
|
|
146
151
|
var value = /** @type {string} */ (reader.readString());
|
|
147
152
|
msg.setPaymenttype(value);
|
|
@@ -155,8 +160,10 @@ proto.loyaltyprogramserviceapi.CalculatePointsRequest.deserializeBinaryFromReade
|
|
|
155
160
|
msg.setCardvariant(value);
|
|
156
161
|
break;
|
|
157
162
|
case 8:
|
|
158
|
-
var value =
|
|
159
|
-
|
|
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());
|
|
160
167
|
break;
|
|
161
168
|
default:
|
|
162
169
|
reader.skipField();
|
|
@@ -170,10 +177,10 @@ proto.loyaltyprogramserviceapi.CalculatePointsRequest.deserializeBinaryFromReade
|
|
|
170
177
|
/**
|
|
171
178
|
* Class method variant: serializes the given message to binary data
|
|
172
179
|
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
173
|
-
* @param {!proto.loyaltyprogramserviceapi.
|
|
180
|
+
* @param {!proto.loyaltyprogramserviceapi.CalculatePointsReq} message
|
|
174
181
|
* @param {!jspb.BinaryWriter} writer
|
|
175
182
|
*/
|
|
176
|
-
proto.loyaltyprogramserviceapi.
|
|
183
|
+
proto.loyaltyprogramserviceapi.CalculatePointsReq.serializeBinaryToWriter = function(message, writer) {
|
|
177
184
|
message.serializeBinaryToWriter(writer);
|
|
178
185
|
};
|
|
179
186
|
|
|
@@ -182,7 +189,7 @@ proto.loyaltyprogramserviceapi.CalculatePointsRequest.serializeBinaryToWriter =
|
|
|
182
189
|
* Serializes the message to binary data (in protobuf wire format).
|
|
183
190
|
* @return {!Uint8Array}
|
|
184
191
|
*/
|
|
185
|
-
proto.loyaltyprogramserviceapi.
|
|
192
|
+
proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.serializeBinary = function() {
|
|
186
193
|
var writer = new jspb.BinaryWriter();
|
|
187
194
|
this.serializeBinaryToWriter(writer);
|
|
188
195
|
return writer.getResultBuffer();
|
|
@@ -194,7 +201,7 @@ proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.serializeBinary
|
|
|
194
201
|
* writing to the given BinaryWriter.
|
|
195
202
|
* @param {!jspb.BinaryWriter} writer
|
|
196
203
|
*/
|
|
197
|
-
proto.loyaltyprogramserviceapi.
|
|
204
|
+
proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.serializeBinaryToWriter = function (writer) {
|
|
198
205
|
var f = undefined;
|
|
199
206
|
f = this.getMembershipid();
|
|
200
207
|
if (f !== 0) {
|
|
@@ -217,13 +224,6 @@ proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.serializeBinaryT
|
|
|
217
224
|
f
|
|
218
225
|
);
|
|
219
226
|
}
|
|
220
|
-
f = this.getPaymentamount();
|
|
221
|
-
if (f !== 0.0) {
|
|
222
|
-
writer.writeFloat(
|
|
223
|
-
4,
|
|
224
|
-
f
|
|
225
|
-
);
|
|
226
|
-
}
|
|
227
227
|
f = this.getPaymenttype();
|
|
228
228
|
if (f.length > 0) {
|
|
229
229
|
writer.writeString(
|
|
@@ -245,11 +245,12 @@ proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.serializeBinaryT
|
|
|
245
245
|
f
|
|
246
246
|
);
|
|
247
247
|
}
|
|
248
|
-
f = this.
|
|
248
|
+
f = this.getPaymentamountinfoList();
|
|
249
249
|
if (f.length > 0) {
|
|
250
|
-
writer.
|
|
250
|
+
writer.writeRepeatedMessage(
|
|
251
251
|
8,
|
|
252
|
-
f
|
|
252
|
+
f,
|
|
253
|
+
proto.loyaltyprogramserviceapi.PaymentAmountInfo.serializeBinaryToWriter
|
|
253
254
|
);
|
|
254
255
|
}
|
|
255
256
|
};
|
|
@@ -257,10 +258,10 @@ proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.serializeBinaryT
|
|
|
257
258
|
|
|
258
259
|
/**
|
|
259
260
|
* Creates a deep clone of this proto. No data is shared with the original.
|
|
260
|
-
* @return {!proto.loyaltyprogramserviceapi.
|
|
261
|
+
* @return {!proto.loyaltyprogramserviceapi.CalculatePointsReq} The clone.
|
|
261
262
|
*/
|
|
262
|
-
proto.loyaltyprogramserviceapi.
|
|
263
|
-
return /** @type {!proto.loyaltyprogramserviceapi.
|
|
263
|
+
proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.cloneMessage = function() {
|
|
264
|
+
return /** @type {!proto.loyaltyprogramserviceapi.CalculatePointsReq} */ (jspb.Message.cloneMessage(this));
|
|
264
265
|
};
|
|
265
266
|
|
|
266
267
|
|
|
@@ -268,13 +269,13 @@ proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.cloneMessage = f
|
|
|
268
269
|
* optional int64 membershipId = 1;
|
|
269
270
|
* @return {number}
|
|
270
271
|
*/
|
|
271
|
-
proto.loyaltyprogramserviceapi.
|
|
272
|
+
proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.getMembershipid = function() {
|
|
272
273
|
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
273
274
|
};
|
|
274
275
|
|
|
275
276
|
|
|
276
277
|
/** @param {number} value */
|
|
277
|
-
proto.loyaltyprogramserviceapi.
|
|
278
|
+
proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.setMembershipid = function(value) {
|
|
278
279
|
jspb.Message.setField(this, 1, value);
|
|
279
280
|
};
|
|
280
281
|
|
|
@@ -283,13 +284,13 @@ proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.setMembershipid
|
|
|
283
284
|
* optional int64 paymentMethodId = 2;
|
|
284
285
|
* @return {number}
|
|
285
286
|
*/
|
|
286
|
-
proto.loyaltyprogramserviceapi.
|
|
287
|
+
proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.getPaymentmethodid = function() {
|
|
287
288
|
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 2, 0));
|
|
288
289
|
};
|
|
289
290
|
|
|
290
291
|
|
|
291
292
|
/** @param {number} value */
|
|
292
|
-
proto.loyaltyprogramserviceapi.
|
|
293
|
+
proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.setPaymentmethodid = function(value) {
|
|
293
294
|
jspb.Message.setField(this, 2, value);
|
|
294
295
|
};
|
|
295
296
|
|
|
@@ -298,43 +299,28 @@ proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.setPaymentmethod
|
|
|
298
299
|
* optional int64 userId = 3;
|
|
299
300
|
* @return {number}
|
|
300
301
|
*/
|
|
301
|
-
proto.loyaltyprogramserviceapi.
|
|
302
|
+
proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.getUserid = function() {
|
|
302
303
|
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 3, 0));
|
|
303
304
|
};
|
|
304
305
|
|
|
305
306
|
|
|
306
307
|
/** @param {number} value */
|
|
307
|
-
proto.loyaltyprogramserviceapi.
|
|
308
|
+
proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.setUserid = function(value) {
|
|
308
309
|
jspb.Message.setField(this, 3, value);
|
|
309
310
|
};
|
|
310
311
|
|
|
311
312
|
|
|
312
|
-
/**
|
|
313
|
-
* optional float paymentAmount = 4;
|
|
314
|
-
* @return {number}
|
|
315
|
-
*/
|
|
316
|
-
proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.getPaymentamount = function() {
|
|
317
|
-
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 4, 0));
|
|
318
|
-
};
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
/** @param {number} value */
|
|
322
|
-
proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.setPaymentamount = function(value) {
|
|
323
|
-
jspb.Message.setField(this, 4, value);
|
|
324
|
-
};
|
|
325
|
-
|
|
326
|
-
|
|
327
313
|
/**
|
|
328
314
|
* optional string paymentType = 5;
|
|
329
315
|
* @return {string}
|
|
330
316
|
*/
|
|
331
|
-
proto.loyaltyprogramserviceapi.
|
|
317
|
+
proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.getPaymenttype = function() {
|
|
332
318
|
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 5, ""));
|
|
333
319
|
};
|
|
334
320
|
|
|
335
321
|
|
|
336
322
|
/** @param {string} value */
|
|
337
|
-
proto.loyaltyprogramserviceapi.
|
|
323
|
+
proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.setPaymenttype = function(value) {
|
|
338
324
|
jspb.Message.setField(this, 5, value);
|
|
339
325
|
};
|
|
340
326
|
|
|
@@ -343,13 +329,13 @@ proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.setPaymenttype =
|
|
|
343
329
|
* optional string cardType = 6;
|
|
344
330
|
* @return {string}
|
|
345
331
|
*/
|
|
346
|
-
proto.loyaltyprogramserviceapi.
|
|
332
|
+
proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.getCardtype = function() {
|
|
347
333
|
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 6, ""));
|
|
348
334
|
};
|
|
349
335
|
|
|
350
336
|
|
|
351
337
|
/** @param {string} value */
|
|
352
|
-
proto.loyaltyprogramserviceapi.
|
|
338
|
+
proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.setCardtype = function(value) {
|
|
353
339
|
jspb.Message.setField(this, 6, value);
|
|
354
340
|
};
|
|
355
341
|
|
|
@@ -358,29 +344,213 @@ proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.setCardtype = fu
|
|
|
358
344
|
* optional string cardVariant = 7;
|
|
359
345
|
* @return {string}
|
|
360
346
|
*/
|
|
361
|
-
proto.loyaltyprogramserviceapi.
|
|
347
|
+
proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.getCardvariant = function() {
|
|
362
348
|
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 7, ""));
|
|
363
349
|
};
|
|
364
350
|
|
|
365
351
|
|
|
366
352
|
/** @param {string} value */
|
|
367
|
-
proto.loyaltyprogramserviceapi.
|
|
353
|
+
proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.setCardvariant = function(value) {
|
|
368
354
|
jspb.Message.setField(this, 7, value);
|
|
369
355
|
};
|
|
370
356
|
|
|
371
357
|
|
|
372
358
|
/**
|
|
373
|
-
*
|
|
374
|
-
*
|
|
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>}
|
|
375
363
|
*/
|
|
376
|
-
proto.loyaltyprogramserviceapi.
|
|
377
|
-
return /** @type
|
|
364
|
+
proto.loyaltyprogramserviceapi.CalculatePointsReq.prototype.getPaymentamountinfoList = function() {
|
|
365
|
+
return /** @type{!Array.<!proto.loyaltyprogramserviceapi.PaymentAmountInfo>} */ (
|
|
366
|
+
jspb.Message.getRepeatedWrapperField(this, proto.loyaltyprogramserviceapi.PaymentAmountInfo, 8));
|
|
378
367
|
};
|
|
379
368
|
|
|
380
369
|
|
|
381
|
-
/** @param {
|
|
382
|
-
proto.loyaltyprogramserviceapi.
|
|
383
|
-
jspb.Message.
|
|
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;
|
|
384
554
|
};
|
|
385
555
|
|
|
386
556
|
|
|
@@ -3700,6 +3870,192 @@ proto.loyaltyprogramserviceapi.MembershipDetailsResponse.prototype.clearMembersh
|
|
|
3700
3870
|
|
|
3701
3871
|
|
|
3702
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
|
+
|
|
3703
4059
|
/**
|
|
3704
4060
|
* Generated by JsPbCodeGenerator.
|
|
3705
4061
|
* @param {Array=} opt_data Optional initial data array, typically from a
|