@sniipwebmaster/loyalty-program-client-grpcweb 22.17.435 → 22.17.451
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_grpc_web_pb.js +160 -0
- package/dependancies/service_pb.js +1879 -513
- package/package.json +1 -1
|
@@ -11,13 +11,18 @@ 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.CalculatePointsRequest', null, global);
|
|
15
|
+
goog.exportSymbol('proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse', null, global);
|
|
14
16
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest', null, global);
|
|
15
17
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest', null, global);
|
|
16
18
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest', null, global);
|
|
17
19
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.CreateProgramRequest', null, global);
|
|
18
20
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.CreateProgramRequest.CreateProgramRequestMembershipNumberType', null, global);
|
|
21
|
+
goog.exportSymbol('proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest', null, global);
|
|
19
22
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.GetMembershipByIdRequest', null, global);
|
|
20
23
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.LinkMembershipRequest', null, global);
|
|
24
|
+
goog.exportSymbol('proto.loyaltyprogramserviceapi.LoyaltyTransaction', null, global);
|
|
25
|
+
goog.exportSymbol('proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse', null, global);
|
|
21
26
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.MembershipDetail', null, global);
|
|
22
27
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.MembershipDetailResponse', null, global);
|
|
23
28
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.MembershipDetailsResponse', null, global);
|
|
@@ -42,12 +47,12 @@ goog.exportSymbol('proto.loyaltyprogramserviceapi.ValidateMembershipResponse', n
|
|
|
42
47
|
* @extends {jspb.Message}
|
|
43
48
|
* @constructor
|
|
44
49
|
*/
|
|
45
|
-
proto.loyaltyprogramserviceapi.
|
|
50
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest = function(opt_data) {
|
|
46
51
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
47
52
|
};
|
|
48
|
-
goog.inherits(proto.loyaltyprogramserviceapi.
|
|
53
|
+
goog.inherits(proto.loyaltyprogramserviceapi.CalculatePointsRequest, jspb.Message);
|
|
49
54
|
if (goog.DEBUG && !COMPILED) {
|
|
50
|
-
proto.loyaltyprogramserviceapi.
|
|
55
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest.displayName = 'proto.loyaltyprogramserviceapi.CalculatePointsRequest';
|
|
51
56
|
}
|
|
52
57
|
|
|
53
58
|
|
|
@@ -62,8 +67,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
62
67
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
63
68
|
* @return {!Object}
|
|
64
69
|
*/
|
|
65
|
-
proto.loyaltyprogramserviceapi.
|
|
66
|
-
return proto.loyaltyprogramserviceapi.
|
|
70
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
71
|
+
return proto.loyaltyprogramserviceapi.CalculatePointsRequest.toObject(opt_includeInstance, this);
|
|
67
72
|
};
|
|
68
73
|
|
|
69
74
|
|
|
@@ -72,12 +77,15 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.prototype.toObject =
|
|
|
72
77
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
73
78
|
* instance for transitional soy proto support:
|
|
74
79
|
* http://goto/soy-param-migration
|
|
75
|
-
* @param {!proto.loyaltyprogramserviceapi.
|
|
80
|
+
* @param {!proto.loyaltyprogramserviceapi.CalculatePointsRequest} msg The msg instance to transform.
|
|
76
81
|
* @return {!Object}
|
|
77
82
|
*/
|
|
78
|
-
proto.loyaltyprogramserviceapi.
|
|
83
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest.toObject = function(includeInstance, msg) {
|
|
79
84
|
var f, obj = {
|
|
80
|
-
|
|
85
|
+
membershipid: msg.getMembershipid(),
|
|
86
|
+
paymentmethodid: msg.getPaymentmethodid(),
|
|
87
|
+
userid: msg.getUserid(),
|
|
88
|
+
paymentamount: msg.getPaymentamount()
|
|
81
89
|
};
|
|
82
90
|
|
|
83
91
|
if (includeInstance) {
|
|
@@ -91,23 +99,23 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.toObject = function(i
|
|
|
91
99
|
/**
|
|
92
100
|
* Deserializes binary data (in protobuf wire format).
|
|
93
101
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
94
|
-
* @return {!proto.loyaltyprogramserviceapi.
|
|
102
|
+
* @return {!proto.loyaltyprogramserviceapi.CalculatePointsRequest}
|
|
95
103
|
*/
|
|
96
|
-
proto.loyaltyprogramserviceapi.
|
|
104
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest.deserializeBinary = function(bytes) {
|
|
97
105
|
var reader = new jspb.BinaryReader(bytes);
|
|
98
|
-
var msg = new proto.loyaltyprogramserviceapi.
|
|
99
|
-
return proto.loyaltyprogramserviceapi.
|
|
106
|
+
var msg = new proto.loyaltyprogramserviceapi.CalculatePointsRequest;
|
|
107
|
+
return proto.loyaltyprogramserviceapi.CalculatePointsRequest.deserializeBinaryFromReader(msg, reader);
|
|
100
108
|
};
|
|
101
109
|
|
|
102
110
|
|
|
103
111
|
/**
|
|
104
112
|
* Deserializes binary data (in protobuf wire format) from the
|
|
105
113
|
* given reader into the given message object.
|
|
106
|
-
* @param {!proto.loyaltyprogramserviceapi.
|
|
114
|
+
* @param {!proto.loyaltyprogramserviceapi.CalculatePointsRequest} msg The message object to deserialize into.
|
|
107
115
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
108
|
-
* @return {!proto.loyaltyprogramserviceapi.
|
|
116
|
+
* @return {!proto.loyaltyprogramserviceapi.CalculatePointsRequest}
|
|
109
117
|
*/
|
|
110
|
-
proto.loyaltyprogramserviceapi.
|
|
118
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
111
119
|
while (reader.nextField()) {
|
|
112
120
|
if (reader.isEndGroup()) {
|
|
113
121
|
break;
|
|
@@ -115,9 +123,20 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.deserializeBinaryFrom
|
|
|
115
123
|
var field = reader.getFieldNumber();
|
|
116
124
|
switch (field) {
|
|
117
125
|
case 1:
|
|
118
|
-
var value =
|
|
119
|
-
|
|
120
|
-
|
|
126
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
127
|
+
msg.setMembershipid(value);
|
|
128
|
+
break;
|
|
129
|
+
case 2:
|
|
130
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
131
|
+
msg.setPaymentmethodid(value);
|
|
132
|
+
break;
|
|
133
|
+
case 3:
|
|
134
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
135
|
+
msg.setUserid(value);
|
|
136
|
+
break;
|
|
137
|
+
case 4:
|
|
138
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
139
|
+
msg.setPaymentamount(value);
|
|
121
140
|
break;
|
|
122
141
|
default:
|
|
123
142
|
reader.skipField();
|
|
@@ -131,10 +150,10 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.deserializeBinaryFrom
|
|
|
131
150
|
/**
|
|
132
151
|
* Class method variant: serializes the given message to binary data
|
|
133
152
|
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
134
|
-
* @param {!proto.loyaltyprogramserviceapi.
|
|
153
|
+
* @param {!proto.loyaltyprogramserviceapi.CalculatePointsRequest} message
|
|
135
154
|
* @param {!jspb.BinaryWriter} writer
|
|
136
155
|
*/
|
|
137
|
-
proto.loyaltyprogramserviceapi.
|
|
156
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
138
157
|
message.serializeBinaryToWriter(writer);
|
|
139
158
|
};
|
|
140
159
|
|
|
@@ -143,7 +162,7 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.serializeBinaryToWrit
|
|
|
143
162
|
* Serializes the message to binary data (in protobuf wire format).
|
|
144
163
|
* @return {!Uint8Array}
|
|
145
164
|
*/
|
|
146
|
-
proto.loyaltyprogramserviceapi.
|
|
165
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.serializeBinary = function() {
|
|
147
166
|
var writer = new jspb.BinaryWriter();
|
|
148
167
|
this.serializeBinaryToWriter(writer);
|
|
149
168
|
return writer.getResultBuffer();
|
|
@@ -155,14 +174,34 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.prototype.serializeBi
|
|
|
155
174
|
* writing to the given BinaryWriter.
|
|
156
175
|
* @param {!jspb.BinaryWriter} writer
|
|
157
176
|
*/
|
|
158
|
-
proto.loyaltyprogramserviceapi.
|
|
177
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
159
178
|
var f = undefined;
|
|
160
|
-
f = this.
|
|
161
|
-
if (f
|
|
162
|
-
writer.
|
|
179
|
+
f = this.getMembershipid();
|
|
180
|
+
if (f !== 0) {
|
|
181
|
+
writer.writeInt64(
|
|
163
182
|
1,
|
|
164
|
-
f
|
|
165
|
-
|
|
183
|
+
f
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
f = this.getPaymentmethodid();
|
|
187
|
+
if (f !== 0) {
|
|
188
|
+
writer.writeInt64(
|
|
189
|
+
2,
|
|
190
|
+
f
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
f = this.getUserid();
|
|
194
|
+
if (f !== 0) {
|
|
195
|
+
writer.writeInt64(
|
|
196
|
+
3,
|
|
197
|
+
f
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
f = this.getPaymentamount();
|
|
201
|
+
if (f !== 0.0) {
|
|
202
|
+
writer.writeFloat(
|
|
203
|
+
4,
|
|
204
|
+
f
|
|
166
205
|
);
|
|
167
206
|
}
|
|
168
207
|
};
|
|
@@ -170,40 +209,70 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.prototype.serializeBi
|
|
|
170
209
|
|
|
171
210
|
/**
|
|
172
211
|
* Creates a deep clone of this proto. No data is shared with the original.
|
|
173
|
-
* @return {!proto.loyaltyprogramserviceapi.
|
|
212
|
+
* @return {!proto.loyaltyprogramserviceapi.CalculatePointsRequest} The clone.
|
|
174
213
|
*/
|
|
175
|
-
proto.loyaltyprogramserviceapi.
|
|
176
|
-
return /** @type {!proto.loyaltyprogramserviceapi.
|
|
214
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.cloneMessage = function() {
|
|
215
|
+
return /** @type {!proto.loyaltyprogramserviceapi.CalculatePointsRequest} */ (jspb.Message.cloneMessage(this));
|
|
177
216
|
};
|
|
178
217
|
|
|
179
218
|
|
|
180
219
|
/**
|
|
181
|
-
* optional
|
|
182
|
-
* @return {
|
|
220
|
+
* optional int64 membershipId = 1;
|
|
221
|
+
* @return {number}
|
|
183
222
|
*/
|
|
184
|
-
proto.loyaltyprogramserviceapi.
|
|
185
|
-
return /** @type{
|
|
186
|
-
jspb.Message.getWrapperField(this, proto.loyaltyprogramserviceapi.CreateProgramRequest, 1));
|
|
223
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.getMembershipid = function() {
|
|
224
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
187
225
|
};
|
|
188
226
|
|
|
189
227
|
|
|
190
|
-
/** @param {
|
|
191
|
-
proto.loyaltyprogramserviceapi.
|
|
192
|
-
jspb.Message.
|
|
228
|
+
/** @param {number} value */
|
|
229
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.setMembershipid = function(value) {
|
|
230
|
+
jspb.Message.setField(this, 1, value);
|
|
193
231
|
};
|
|
194
232
|
|
|
195
233
|
|
|
196
|
-
|
|
197
|
-
|
|
234
|
+
/**
|
|
235
|
+
* optional int64 paymentMethodId = 2;
|
|
236
|
+
* @return {number}
|
|
237
|
+
*/
|
|
238
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.getPaymentmethodid = function() {
|
|
239
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 2, 0));
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
/** @param {number} value */
|
|
244
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.setPaymentmethodid = function(value) {
|
|
245
|
+
jspb.Message.setField(this, 2, value);
|
|
198
246
|
};
|
|
199
247
|
|
|
200
248
|
|
|
201
249
|
/**
|
|
202
|
-
*
|
|
203
|
-
* @return{
|
|
250
|
+
* optional int64 userId = 3;
|
|
251
|
+
* @return {number}
|
|
204
252
|
*/
|
|
205
|
-
proto.loyaltyprogramserviceapi.
|
|
206
|
-
return jspb.Message.
|
|
253
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.getUserid = function() {
|
|
254
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 3, 0));
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
/** @param {number} value */
|
|
259
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.setUserid = function(value) {
|
|
260
|
+
jspb.Message.setField(this, 3, value);
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* optional float paymentAmount = 4;
|
|
266
|
+
* @return {number}
|
|
267
|
+
*/
|
|
268
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.getPaymentamount = function() {
|
|
269
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 4, 0));
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
/** @param {number} value */
|
|
274
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.setPaymentamount = function(value) {
|
|
275
|
+
jspb.Message.setField(this, 4, value);
|
|
207
276
|
};
|
|
208
277
|
|
|
209
278
|
|
|
@@ -218,12 +287,12 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.prototype.hasData = f
|
|
|
218
287
|
* @extends {jspb.Message}
|
|
219
288
|
* @constructor
|
|
220
289
|
*/
|
|
221
|
-
proto.loyaltyprogramserviceapi.
|
|
290
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse = function(opt_data) {
|
|
222
291
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
223
292
|
};
|
|
224
|
-
goog.inherits(proto.loyaltyprogramserviceapi.
|
|
293
|
+
goog.inherits(proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse, jspb.Message);
|
|
225
294
|
if (goog.DEBUG && !COMPILED) {
|
|
226
|
-
proto.loyaltyprogramserviceapi.
|
|
295
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.displayName = 'proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse';
|
|
227
296
|
}
|
|
228
297
|
|
|
229
298
|
|
|
@@ -238,8 +307,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
238
307
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
239
308
|
* @return {!Object}
|
|
240
309
|
*/
|
|
241
|
-
proto.loyaltyprogramserviceapi.
|
|
242
|
-
return proto.loyaltyprogramserviceapi.
|
|
310
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
311
|
+
return proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.toObject(opt_includeInstance, this);
|
|
243
312
|
};
|
|
244
313
|
|
|
245
314
|
|
|
@@ -248,12 +317,14 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest.pro
|
|
|
248
317
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
249
318
|
* instance for transitional soy proto support:
|
|
250
319
|
* http://goto/soy-param-migration
|
|
251
|
-
* @param {!proto.loyaltyprogramserviceapi.
|
|
320
|
+
* @param {!proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse} msg The msg instance to transform.
|
|
252
321
|
* @return {!Object}
|
|
253
322
|
*/
|
|
254
|
-
proto.loyaltyprogramserviceapi.
|
|
323
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.toObject = function(includeInstance, msg) {
|
|
255
324
|
var f, obj = {
|
|
256
|
-
|
|
325
|
+
responsecode: (f = msg.getResponsecode()) && proto.loyaltyprogramserviceapi.ResponseCode.toObject(includeInstance, f),
|
|
326
|
+
membershipid: msg.getMembershipid(),
|
|
327
|
+
amountofpoints: msg.getAmountofpoints()
|
|
257
328
|
};
|
|
258
329
|
|
|
259
330
|
if (includeInstance) {
|
|
@@ -267,23 +338,23 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest.toO
|
|
|
267
338
|
/**
|
|
268
339
|
* Deserializes binary data (in protobuf wire format).
|
|
269
340
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
270
|
-
* @return {!proto.loyaltyprogramserviceapi.
|
|
341
|
+
* @return {!proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse}
|
|
271
342
|
*/
|
|
272
|
-
proto.loyaltyprogramserviceapi.
|
|
343
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.deserializeBinary = function(bytes) {
|
|
273
344
|
var reader = new jspb.BinaryReader(bytes);
|
|
274
|
-
var msg = new proto.loyaltyprogramserviceapi.
|
|
275
|
-
return proto.loyaltyprogramserviceapi.
|
|
345
|
+
var msg = new proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse;
|
|
346
|
+
return proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.deserializeBinaryFromReader(msg, reader);
|
|
276
347
|
};
|
|
277
348
|
|
|
278
349
|
|
|
279
350
|
/**
|
|
280
351
|
* Deserializes binary data (in protobuf wire format) from the
|
|
281
352
|
* given reader into the given message object.
|
|
282
|
-
* @param {!proto.loyaltyprogramserviceapi.
|
|
353
|
+
* @param {!proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse} msg The message object to deserialize into.
|
|
283
354
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
284
|
-
* @return {!proto.loyaltyprogramserviceapi.
|
|
355
|
+
* @return {!proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse}
|
|
285
356
|
*/
|
|
286
|
-
proto.loyaltyprogramserviceapi.
|
|
357
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
287
358
|
while (reader.nextField()) {
|
|
288
359
|
if (reader.isEndGroup()) {
|
|
289
360
|
break;
|
|
@@ -291,9 +362,17 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest.des
|
|
|
291
362
|
var field = reader.getFieldNumber();
|
|
292
363
|
switch (field) {
|
|
293
364
|
case 1:
|
|
294
|
-
var value = new proto.loyaltyprogramserviceapi.
|
|
295
|
-
reader.readMessage(value,proto.loyaltyprogramserviceapi.
|
|
296
|
-
msg.
|
|
365
|
+
var value = new proto.loyaltyprogramserviceapi.ResponseCode;
|
|
366
|
+
reader.readMessage(value,proto.loyaltyprogramserviceapi.ResponseCode.deserializeBinaryFromReader);
|
|
367
|
+
msg.setResponsecode(value);
|
|
368
|
+
break;
|
|
369
|
+
case 2:
|
|
370
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
371
|
+
msg.setMembershipid(value);
|
|
372
|
+
break;
|
|
373
|
+
case 3:
|
|
374
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
375
|
+
msg.setAmountofpoints(value);
|
|
297
376
|
break;
|
|
298
377
|
default:
|
|
299
378
|
reader.skipField();
|
|
@@ -307,10 +386,10 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest.des
|
|
|
307
386
|
/**
|
|
308
387
|
* Class method variant: serializes the given message to binary data
|
|
309
388
|
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
310
|
-
* @param {!proto.loyaltyprogramserviceapi.
|
|
389
|
+
* @param {!proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse} message
|
|
311
390
|
* @param {!jspb.BinaryWriter} writer
|
|
312
391
|
*/
|
|
313
|
-
proto.loyaltyprogramserviceapi.
|
|
392
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
314
393
|
message.serializeBinaryToWriter(writer);
|
|
315
394
|
};
|
|
316
395
|
|
|
@@ -319,7 +398,7 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest.ser
|
|
|
319
398
|
* Serializes the message to binary data (in protobuf wire format).
|
|
320
399
|
* @return {!Uint8Array}
|
|
321
400
|
*/
|
|
322
|
-
proto.loyaltyprogramserviceapi.
|
|
401
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.prototype.serializeBinary = function() {
|
|
323
402
|
var writer = new jspb.BinaryWriter();
|
|
324
403
|
this.serializeBinaryToWriter(writer);
|
|
325
404
|
return writer.getResultBuffer();
|
|
@@ -331,14 +410,28 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest.pro
|
|
|
331
410
|
* writing to the given BinaryWriter.
|
|
332
411
|
* @param {!jspb.BinaryWriter} writer
|
|
333
412
|
*/
|
|
334
|
-
proto.loyaltyprogramserviceapi.
|
|
413
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.prototype.serializeBinaryToWriter = function (writer) {
|
|
335
414
|
var f = undefined;
|
|
336
|
-
f = this.
|
|
415
|
+
f = this.getResponsecode();
|
|
337
416
|
if (f != null) {
|
|
338
417
|
writer.writeMessage(
|
|
339
418
|
1,
|
|
340
419
|
f,
|
|
341
|
-
proto.loyaltyprogramserviceapi.
|
|
420
|
+
proto.loyaltyprogramserviceapi.ResponseCode.serializeBinaryToWriter
|
|
421
|
+
);
|
|
422
|
+
}
|
|
423
|
+
f = this.getMembershipid();
|
|
424
|
+
if (f !== 0) {
|
|
425
|
+
writer.writeInt64(
|
|
426
|
+
2,
|
|
427
|
+
f
|
|
428
|
+
);
|
|
429
|
+
}
|
|
430
|
+
f = this.getAmountofpoints();
|
|
431
|
+
if (f !== 0) {
|
|
432
|
+
writer.writeInt32(
|
|
433
|
+
3,
|
|
434
|
+
f
|
|
342
435
|
);
|
|
343
436
|
}
|
|
344
437
|
};
|
|
@@ -346,31 +439,31 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest.pro
|
|
|
346
439
|
|
|
347
440
|
/**
|
|
348
441
|
* Creates a deep clone of this proto. No data is shared with the original.
|
|
349
|
-
* @return {!proto.loyaltyprogramserviceapi.
|
|
442
|
+
* @return {!proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse} The clone.
|
|
350
443
|
*/
|
|
351
|
-
proto.loyaltyprogramserviceapi.
|
|
352
|
-
return /** @type {!proto.loyaltyprogramserviceapi.
|
|
444
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.prototype.cloneMessage = function() {
|
|
445
|
+
return /** @type {!proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse} */ (jspb.Message.cloneMessage(this));
|
|
353
446
|
};
|
|
354
447
|
|
|
355
448
|
|
|
356
449
|
/**
|
|
357
|
-
* optional
|
|
358
|
-
* @return {proto.loyaltyprogramserviceapi.
|
|
450
|
+
* optional ResponseCode responseCode = 1;
|
|
451
|
+
* @return {proto.loyaltyprogramserviceapi.ResponseCode}
|
|
359
452
|
*/
|
|
360
|
-
proto.loyaltyprogramserviceapi.
|
|
361
|
-
return /** @type{proto.loyaltyprogramserviceapi.
|
|
362
|
-
jspb.Message.getWrapperField(this, proto.loyaltyprogramserviceapi.
|
|
453
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.prototype.getResponsecode = function() {
|
|
454
|
+
return /** @type{proto.loyaltyprogramserviceapi.ResponseCode} */ (
|
|
455
|
+
jspb.Message.getWrapperField(this, proto.loyaltyprogramserviceapi.ResponseCode, 1));
|
|
363
456
|
};
|
|
364
457
|
|
|
365
458
|
|
|
366
|
-
/** @param {proto.loyaltyprogramserviceapi.
|
|
367
|
-
proto.loyaltyprogramserviceapi.
|
|
459
|
+
/** @param {proto.loyaltyprogramserviceapi.ResponseCode|undefined} value */
|
|
460
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.prototype.setResponsecode = function(value) {
|
|
368
461
|
jspb.Message.setWrapperField(this, 1, value);
|
|
369
462
|
};
|
|
370
463
|
|
|
371
464
|
|
|
372
|
-
proto.loyaltyprogramserviceapi.
|
|
373
|
-
this.
|
|
465
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.prototype.clearResponsecode = function() {
|
|
466
|
+
this.setResponsecode(undefined);
|
|
374
467
|
};
|
|
375
468
|
|
|
376
469
|
|
|
@@ -378,11 +471,41 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest.pro
|
|
|
378
471
|
* Returns whether this field is set.
|
|
379
472
|
* @return{!boolean}
|
|
380
473
|
*/
|
|
381
|
-
proto.loyaltyprogramserviceapi.
|
|
474
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.prototype.hasResponsecode = function() {
|
|
382
475
|
return jspb.Message.getField(this, 1) != null;
|
|
383
476
|
};
|
|
384
477
|
|
|
385
478
|
|
|
479
|
+
/**
|
|
480
|
+
* optional int64 membershipId = 2;
|
|
481
|
+
* @return {number}
|
|
482
|
+
*/
|
|
483
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.prototype.getMembershipid = function() {
|
|
484
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 2, 0));
|
|
485
|
+
};
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
/** @param {number} value */
|
|
489
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.prototype.setMembershipid = function(value) {
|
|
490
|
+
jspb.Message.setField(this, 2, value);
|
|
491
|
+
};
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* optional int32 amountOfPoints = 3;
|
|
496
|
+
* @return {number}
|
|
497
|
+
*/
|
|
498
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.prototype.getAmountofpoints = function() {
|
|
499
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 3, 0));
|
|
500
|
+
};
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
/** @param {number} value */
|
|
504
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.prototype.setAmountofpoints = function(value) {
|
|
505
|
+
jspb.Message.setField(this, 3, value);
|
|
506
|
+
};
|
|
507
|
+
|
|
508
|
+
|
|
386
509
|
|
|
387
510
|
/**
|
|
388
511
|
* Generated by JsPbCodeGenerator.
|
|
@@ -394,12 +517,12 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest.pro
|
|
|
394
517
|
* @extends {jspb.Message}
|
|
395
518
|
* @constructor
|
|
396
519
|
*/
|
|
397
|
-
proto.loyaltyprogramserviceapi.
|
|
520
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest = function(opt_data) {
|
|
398
521
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
399
522
|
};
|
|
400
|
-
goog.inherits(proto.loyaltyprogramserviceapi.
|
|
523
|
+
goog.inherits(proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest, jspb.Message);
|
|
401
524
|
if (goog.DEBUG && !COMPILED) {
|
|
402
|
-
proto.loyaltyprogramserviceapi.
|
|
525
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.displayName = 'proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest';
|
|
403
526
|
}
|
|
404
527
|
|
|
405
528
|
|
|
@@ -414,8 +537,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
414
537
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
415
538
|
* @return {!Object}
|
|
416
539
|
*/
|
|
417
|
-
proto.loyaltyprogramserviceapi.
|
|
418
|
-
return proto.loyaltyprogramserviceapi.
|
|
540
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.prototype.toObject = function(opt_includeInstance) {
|
|
541
|
+
return proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.toObject(opt_includeInstance, this);
|
|
419
542
|
};
|
|
420
543
|
|
|
421
544
|
|
|
@@ -424,16 +547,12 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.toObjec
|
|
|
424
547
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
425
548
|
* instance for transitional soy proto support:
|
|
426
549
|
* http://goto/soy-param-migration
|
|
427
|
-
* @param {!proto.loyaltyprogramserviceapi.
|
|
550
|
+
* @param {!proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest} msg The msg instance to transform.
|
|
428
551
|
* @return {!Object}
|
|
429
552
|
*/
|
|
430
|
-
proto.loyaltyprogramserviceapi.
|
|
553
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.toObject = function(includeInstance, msg) {
|
|
431
554
|
var f, obj = {
|
|
432
|
-
|
|
433
|
-
userid: msg.getUserid(),
|
|
434
|
-
source: msg.getSource(),
|
|
435
|
-
sourceid: msg.getSourceid(),
|
|
436
|
-
paymentamount: msg.getPaymentamount()
|
|
555
|
+
data: (f = msg.getData()) && proto.loyaltyprogramserviceapi.CreateProgramRequest.toObject(includeInstance, f)
|
|
437
556
|
};
|
|
438
557
|
|
|
439
558
|
if (includeInstance) {
|
|
@@ -447,23 +566,23 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.toObject = functi
|
|
|
447
566
|
/**
|
|
448
567
|
* Deserializes binary data (in protobuf wire format).
|
|
449
568
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
450
|
-
* @return {!proto.loyaltyprogramserviceapi.
|
|
569
|
+
* @return {!proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest}
|
|
451
570
|
*/
|
|
452
|
-
proto.loyaltyprogramserviceapi.
|
|
571
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.deserializeBinary = function(bytes) {
|
|
453
572
|
var reader = new jspb.BinaryReader(bytes);
|
|
454
|
-
var msg = new proto.loyaltyprogramserviceapi.
|
|
455
|
-
return proto.loyaltyprogramserviceapi.
|
|
573
|
+
var msg = new proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest;
|
|
574
|
+
return proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.deserializeBinaryFromReader(msg, reader);
|
|
456
575
|
};
|
|
457
576
|
|
|
458
577
|
|
|
459
578
|
/**
|
|
460
579
|
* Deserializes binary data (in protobuf wire format) from the
|
|
461
580
|
* given reader into the given message object.
|
|
462
|
-
* @param {!proto.loyaltyprogramserviceapi.
|
|
581
|
+
* @param {!proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest} msg The message object to deserialize into.
|
|
463
582
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
464
|
-
* @return {!proto.loyaltyprogramserviceapi.
|
|
583
|
+
* @return {!proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest}
|
|
465
584
|
*/
|
|
466
|
-
proto.loyaltyprogramserviceapi.
|
|
585
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
467
586
|
while (reader.nextField()) {
|
|
468
587
|
if (reader.isEndGroup()) {
|
|
469
588
|
break;
|
|
@@ -471,24 +590,1278 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.deserializeBinary
|
|
|
471
590
|
var field = reader.getFieldNumber();
|
|
472
591
|
switch (field) {
|
|
473
592
|
case 1:
|
|
474
|
-
var value =
|
|
475
|
-
|
|
593
|
+
var value = new proto.loyaltyprogramserviceapi.CreateProgramRequest;
|
|
594
|
+
reader.readMessage(value,proto.loyaltyprogramserviceapi.CreateProgramRequest.deserializeBinaryFromReader);
|
|
595
|
+
msg.setData(value);
|
|
476
596
|
break;
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
597
|
+
default:
|
|
598
|
+
reader.skipField();
|
|
599
|
+
break;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
return msg;
|
|
603
|
+
};
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* Class method variant: serializes the given message to binary data
|
|
608
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
609
|
+
* @param {!proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest} message
|
|
610
|
+
* @param {!jspb.BinaryWriter} writer
|
|
611
|
+
*/
|
|
612
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.serializeBinaryToWriter = function(message, writer) {
|
|
613
|
+
message.serializeBinaryToWriter(writer);
|
|
614
|
+
};
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
619
|
+
* @return {!Uint8Array}
|
|
620
|
+
*/
|
|
621
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.prototype.serializeBinary = function() {
|
|
622
|
+
var writer = new jspb.BinaryWriter();
|
|
623
|
+
this.serializeBinaryToWriter(writer);
|
|
624
|
+
return writer.getResultBuffer();
|
|
625
|
+
};
|
|
626
|
+
|
|
627
|
+
|
|
628
|
+
/**
|
|
629
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
630
|
+
* writing to the given BinaryWriter.
|
|
631
|
+
* @param {!jspb.BinaryWriter} writer
|
|
632
|
+
*/
|
|
633
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
634
|
+
var f = undefined;
|
|
635
|
+
f = this.getData();
|
|
636
|
+
if (f != null) {
|
|
637
|
+
writer.writeMessage(
|
|
638
|
+
1,
|
|
639
|
+
f,
|
|
640
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.serializeBinaryToWriter
|
|
641
|
+
);
|
|
642
|
+
}
|
|
643
|
+
};
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
648
|
+
* @return {!proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest} The clone.
|
|
649
|
+
*/
|
|
650
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.prototype.cloneMessage = function() {
|
|
651
|
+
return /** @type {!proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest} */ (jspb.Message.cloneMessage(this));
|
|
652
|
+
};
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
/**
|
|
656
|
+
* optional CreateProgramRequest data = 1;
|
|
657
|
+
* @return {proto.loyaltyprogramserviceapi.CreateProgramRequest}
|
|
658
|
+
*/
|
|
659
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.prototype.getData = function() {
|
|
660
|
+
return /** @type{proto.loyaltyprogramserviceapi.CreateProgramRequest} */ (
|
|
661
|
+
jspb.Message.getWrapperField(this, proto.loyaltyprogramserviceapi.CreateProgramRequest, 1));
|
|
662
|
+
};
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
/** @param {proto.loyaltyprogramserviceapi.CreateProgramRequest|undefined} value */
|
|
666
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.prototype.setData = function(value) {
|
|
667
|
+
jspb.Message.setWrapperField(this, 1, value);
|
|
668
|
+
};
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.prototype.clearData = function() {
|
|
672
|
+
this.setData(undefined);
|
|
673
|
+
};
|
|
674
|
+
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* Returns whether this field is set.
|
|
678
|
+
* @return{!boolean}
|
|
679
|
+
*/
|
|
680
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest.prototype.hasData = function() {
|
|
681
|
+
return jspb.Message.getField(this, 1) != null;
|
|
682
|
+
};
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* Generated by JsPbCodeGenerator.
|
|
688
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
689
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
690
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
691
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
692
|
+
* valid.
|
|
693
|
+
* @extends {jspb.Message}
|
|
694
|
+
* @constructor
|
|
695
|
+
*/
|
|
696
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest = function(opt_data) {
|
|
697
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
698
|
+
};
|
|
699
|
+
goog.inherits(proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest, jspb.Message);
|
|
700
|
+
if (goog.DEBUG && !COMPILED) {
|
|
701
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest.displayName = 'proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest';
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
706
|
+
/**
|
|
707
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
708
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
709
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
710
|
+
* For the list of reserved names please see:
|
|
711
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
712
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
713
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
714
|
+
* @return {!Object}
|
|
715
|
+
*/
|
|
716
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest.prototype.toObject = function(opt_includeInstance) {
|
|
717
|
+
return proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest.toObject(opt_includeInstance, this);
|
|
718
|
+
};
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
/**
|
|
722
|
+
* Static version of the {@see toObject} method.
|
|
723
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
724
|
+
* instance for transitional soy proto support:
|
|
725
|
+
* http://goto/soy-param-migration
|
|
726
|
+
* @param {!proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest} msg The msg instance to transform.
|
|
727
|
+
* @return {!Object}
|
|
728
|
+
*/
|
|
729
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest.toObject = function(includeInstance, msg) {
|
|
730
|
+
var f, obj = {
|
|
731
|
+
data: (f = msg.getData()) && proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.toObject(includeInstance, f)
|
|
732
|
+
};
|
|
733
|
+
|
|
734
|
+
if (includeInstance) {
|
|
735
|
+
obj.$jspbMessageInstance = msg;
|
|
736
|
+
}
|
|
737
|
+
return obj;
|
|
738
|
+
};
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* Deserializes binary data (in protobuf wire format).
|
|
744
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
745
|
+
* @return {!proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest}
|
|
746
|
+
*/
|
|
747
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest.deserializeBinary = function(bytes) {
|
|
748
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
749
|
+
var msg = new proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest;
|
|
750
|
+
return proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest.deserializeBinaryFromReader(msg, reader);
|
|
751
|
+
};
|
|
752
|
+
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
756
|
+
* given reader into the given message object.
|
|
757
|
+
* @param {!proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest} msg The message object to deserialize into.
|
|
758
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
759
|
+
* @return {!proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest}
|
|
760
|
+
*/
|
|
761
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
762
|
+
while (reader.nextField()) {
|
|
763
|
+
if (reader.isEndGroup()) {
|
|
764
|
+
break;
|
|
765
|
+
}
|
|
766
|
+
var field = reader.getFieldNumber();
|
|
767
|
+
switch (field) {
|
|
768
|
+
case 1:
|
|
769
|
+
var value = new proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest;
|
|
770
|
+
reader.readMessage(value,proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.deserializeBinaryFromReader);
|
|
771
|
+
msg.setData(value);
|
|
772
|
+
break;
|
|
773
|
+
default:
|
|
774
|
+
reader.skipField();
|
|
775
|
+
break;
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
return msg;
|
|
779
|
+
};
|
|
780
|
+
|
|
781
|
+
|
|
782
|
+
/**
|
|
783
|
+
* Class method variant: serializes the given message to binary data
|
|
784
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
785
|
+
* @param {!proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest} message
|
|
786
|
+
* @param {!jspb.BinaryWriter} writer
|
|
787
|
+
*/
|
|
788
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest.serializeBinaryToWriter = function(message, writer) {
|
|
789
|
+
message.serializeBinaryToWriter(writer);
|
|
790
|
+
};
|
|
791
|
+
|
|
792
|
+
|
|
793
|
+
/**
|
|
794
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
795
|
+
* @return {!Uint8Array}
|
|
796
|
+
*/
|
|
797
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest.prototype.serializeBinary = function() {
|
|
798
|
+
var writer = new jspb.BinaryWriter();
|
|
799
|
+
this.serializeBinaryToWriter(writer);
|
|
800
|
+
return writer.getResultBuffer();
|
|
801
|
+
};
|
|
802
|
+
|
|
803
|
+
|
|
804
|
+
/**
|
|
805
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
806
|
+
* writing to the given BinaryWriter.
|
|
807
|
+
* @param {!jspb.BinaryWriter} writer
|
|
808
|
+
*/
|
|
809
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
810
|
+
var f = undefined;
|
|
811
|
+
f = this.getData();
|
|
812
|
+
if (f != null) {
|
|
813
|
+
writer.writeMessage(
|
|
814
|
+
1,
|
|
815
|
+
f,
|
|
816
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.serializeBinaryToWriter
|
|
817
|
+
);
|
|
818
|
+
}
|
|
819
|
+
};
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
/**
|
|
823
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
824
|
+
* @return {!proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest} The clone.
|
|
825
|
+
*/
|
|
826
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest.prototype.cloneMessage = function() {
|
|
827
|
+
return /** @type {!proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest} */ (jspb.Message.cloneMessage(this));
|
|
828
|
+
};
|
|
829
|
+
|
|
830
|
+
|
|
831
|
+
/**
|
|
832
|
+
* optional CreateLoyaltyTransactionRequest data = 1;
|
|
833
|
+
* @return {proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest}
|
|
834
|
+
*/
|
|
835
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest.prototype.getData = function() {
|
|
836
|
+
return /** @type{proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest} */ (
|
|
837
|
+
jspb.Message.getWrapperField(this, proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest, 1));
|
|
838
|
+
};
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
/** @param {proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest|undefined} value */
|
|
842
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest.prototype.setData = function(value) {
|
|
843
|
+
jspb.Message.setWrapperField(this, 1, value);
|
|
844
|
+
};
|
|
845
|
+
|
|
846
|
+
|
|
847
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest.prototype.clearData = function() {
|
|
848
|
+
this.setData(undefined);
|
|
849
|
+
};
|
|
850
|
+
|
|
851
|
+
|
|
852
|
+
/**
|
|
853
|
+
* Returns whether this field is set.
|
|
854
|
+
* @return{!boolean}
|
|
855
|
+
*/
|
|
856
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionForTransactionRequest.prototype.hasData = function() {
|
|
857
|
+
return jspb.Message.getField(this, 1) != null;
|
|
858
|
+
};
|
|
859
|
+
|
|
860
|
+
|
|
861
|
+
|
|
862
|
+
/**
|
|
863
|
+
* Generated by JsPbCodeGenerator.
|
|
864
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
865
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
866
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
867
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
868
|
+
* valid.
|
|
869
|
+
* @extends {jspb.Message}
|
|
870
|
+
* @constructor
|
|
871
|
+
*/
|
|
872
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest = function(opt_data) {
|
|
873
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
874
|
+
};
|
|
875
|
+
goog.inherits(proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest, jspb.Message);
|
|
876
|
+
if (goog.DEBUG && !COMPILED) {
|
|
877
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.displayName = 'proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest';
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
|
|
881
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
882
|
+
/**
|
|
883
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
884
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
885
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
886
|
+
* For the list of reserved names please see:
|
|
887
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
888
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
889
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
890
|
+
* @return {!Object}
|
|
891
|
+
*/
|
|
892
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.toObject = function(opt_includeInstance) {
|
|
893
|
+
return proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.toObject(opt_includeInstance, this);
|
|
894
|
+
};
|
|
895
|
+
|
|
896
|
+
|
|
897
|
+
/**
|
|
898
|
+
* Static version of the {@see toObject} method.
|
|
899
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
900
|
+
* instance for transitional soy proto support:
|
|
901
|
+
* http://goto/soy-param-migration
|
|
902
|
+
* @param {!proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest} msg The msg instance to transform.
|
|
903
|
+
* @return {!Object}
|
|
904
|
+
*/
|
|
905
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.toObject = function(includeInstance, msg) {
|
|
906
|
+
var f, obj = {
|
|
907
|
+
membershipid: msg.getMembershipid(),
|
|
908
|
+
userid: msg.getUserid(),
|
|
909
|
+
source: msg.getSource(),
|
|
910
|
+
sourceid: msg.getSourceid(),
|
|
911
|
+
paymentamount: msg.getPaymentamount(),
|
|
912
|
+
description: msg.getDescription(),
|
|
913
|
+
paymentmethodid: msg.getPaymentmethodid()
|
|
914
|
+
};
|
|
915
|
+
|
|
916
|
+
if (includeInstance) {
|
|
917
|
+
obj.$jspbMessageInstance = msg;
|
|
918
|
+
}
|
|
919
|
+
return obj;
|
|
920
|
+
};
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
|
|
924
|
+
/**
|
|
925
|
+
* Deserializes binary data (in protobuf wire format).
|
|
926
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
927
|
+
* @return {!proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest}
|
|
928
|
+
*/
|
|
929
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.deserializeBinary = function(bytes) {
|
|
930
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
931
|
+
var msg = new proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest;
|
|
932
|
+
return proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.deserializeBinaryFromReader(msg, reader);
|
|
933
|
+
};
|
|
934
|
+
|
|
935
|
+
|
|
936
|
+
/**
|
|
937
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
938
|
+
* given reader into the given message object.
|
|
939
|
+
* @param {!proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest} msg The message object to deserialize into.
|
|
940
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
941
|
+
* @return {!proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest}
|
|
942
|
+
*/
|
|
943
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
944
|
+
while (reader.nextField()) {
|
|
945
|
+
if (reader.isEndGroup()) {
|
|
946
|
+
break;
|
|
947
|
+
}
|
|
948
|
+
var field = reader.getFieldNumber();
|
|
949
|
+
switch (field) {
|
|
950
|
+
case 1:
|
|
951
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
952
|
+
msg.setMembershipid(value);
|
|
953
|
+
break;
|
|
954
|
+
case 2:
|
|
955
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
956
|
+
msg.setUserid(value);
|
|
957
|
+
break;
|
|
958
|
+
case 3:
|
|
959
|
+
var value = /** @type {string} */ (reader.readString());
|
|
960
|
+
msg.setSource(value);
|
|
961
|
+
break;
|
|
962
|
+
case 4:
|
|
963
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
964
|
+
msg.setSourceid(value);
|
|
965
|
+
break;
|
|
966
|
+
case 5:
|
|
967
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
968
|
+
msg.setPaymentamount(value);
|
|
969
|
+
break;
|
|
970
|
+
case 6:
|
|
971
|
+
var value = /** @type {string} */ (reader.readString());
|
|
972
|
+
msg.setDescription(value);
|
|
973
|
+
break;
|
|
974
|
+
case 7:
|
|
975
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
976
|
+
msg.setPaymentmethodid(value);
|
|
977
|
+
break;
|
|
978
|
+
default:
|
|
979
|
+
reader.skipField();
|
|
980
|
+
break;
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
return msg;
|
|
984
|
+
};
|
|
985
|
+
|
|
986
|
+
|
|
987
|
+
/**
|
|
988
|
+
* Class method variant: serializes the given message to binary data
|
|
989
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
990
|
+
* @param {!proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest} message
|
|
991
|
+
* @param {!jspb.BinaryWriter} writer
|
|
992
|
+
*/
|
|
993
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.serializeBinaryToWriter = function(message, writer) {
|
|
994
|
+
message.serializeBinaryToWriter(writer);
|
|
995
|
+
};
|
|
996
|
+
|
|
997
|
+
|
|
998
|
+
/**
|
|
999
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1000
|
+
* @return {!Uint8Array}
|
|
1001
|
+
*/
|
|
1002
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.serializeBinary = function() {
|
|
1003
|
+
var writer = new jspb.BinaryWriter();
|
|
1004
|
+
this.serializeBinaryToWriter(writer);
|
|
1005
|
+
return writer.getResultBuffer();
|
|
1006
|
+
};
|
|
1007
|
+
|
|
1008
|
+
|
|
1009
|
+
/**
|
|
1010
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
1011
|
+
* writing to the given BinaryWriter.
|
|
1012
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1013
|
+
*/
|
|
1014
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
1015
|
+
var f = undefined;
|
|
1016
|
+
f = this.getMembershipid();
|
|
1017
|
+
if (f !== 0) {
|
|
1018
|
+
writer.writeInt64(
|
|
1019
|
+
1,
|
|
1020
|
+
f
|
|
1021
|
+
);
|
|
1022
|
+
}
|
|
1023
|
+
f = this.getUserid();
|
|
1024
|
+
if (f !== 0) {
|
|
1025
|
+
writer.writeInt64(
|
|
1026
|
+
2,
|
|
1027
|
+
f
|
|
1028
|
+
);
|
|
1029
|
+
}
|
|
1030
|
+
f = this.getSource();
|
|
1031
|
+
if (f.length > 0) {
|
|
1032
|
+
writer.writeString(
|
|
1033
|
+
3,
|
|
1034
|
+
f
|
|
1035
|
+
);
|
|
1036
|
+
}
|
|
1037
|
+
f = this.getSourceid();
|
|
1038
|
+
if (f !== 0) {
|
|
1039
|
+
writer.writeInt64(
|
|
1040
|
+
4,
|
|
1041
|
+
f
|
|
1042
|
+
);
|
|
1043
|
+
}
|
|
1044
|
+
f = this.getPaymentamount();
|
|
1045
|
+
if (f !== 0.0) {
|
|
1046
|
+
writer.writeFloat(
|
|
1047
|
+
5,
|
|
1048
|
+
f
|
|
1049
|
+
);
|
|
1050
|
+
}
|
|
1051
|
+
f = this.getDescription();
|
|
1052
|
+
if (f.length > 0) {
|
|
1053
|
+
writer.writeString(
|
|
1054
|
+
6,
|
|
1055
|
+
f
|
|
1056
|
+
);
|
|
1057
|
+
}
|
|
1058
|
+
f = this.getPaymentmethodid();
|
|
1059
|
+
if (f !== 0) {
|
|
1060
|
+
writer.writeInt64(
|
|
1061
|
+
7,
|
|
1062
|
+
f
|
|
1063
|
+
);
|
|
1064
|
+
}
|
|
1065
|
+
};
|
|
1066
|
+
|
|
1067
|
+
|
|
1068
|
+
/**
|
|
1069
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
1070
|
+
* @return {!proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest} The clone.
|
|
1071
|
+
*/
|
|
1072
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.cloneMessage = function() {
|
|
1073
|
+
return /** @type {!proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest} */ (jspb.Message.cloneMessage(this));
|
|
1074
|
+
};
|
|
1075
|
+
|
|
1076
|
+
|
|
1077
|
+
/**
|
|
1078
|
+
* optional int64 membershipId = 1;
|
|
1079
|
+
* @return {number}
|
|
1080
|
+
*/
|
|
1081
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.getMembershipid = function() {
|
|
1082
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
1083
|
+
};
|
|
1084
|
+
|
|
1085
|
+
|
|
1086
|
+
/** @param {number} value */
|
|
1087
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.setMembershipid = function(value) {
|
|
1088
|
+
jspb.Message.setField(this, 1, value);
|
|
1089
|
+
};
|
|
1090
|
+
|
|
1091
|
+
|
|
1092
|
+
/**
|
|
1093
|
+
* optional int64 userId = 2;
|
|
1094
|
+
* @return {number}
|
|
1095
|
+
*/
|
|
1096
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.getUserid = function() {
|
|
1097
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 2, 0));
|
|
1098
|
+
};
|
|
1099
|
+
|
|
1100
|
+
|
|
1101
|
+
/** @param {number} value */
|
|
1102
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.setUserid = function(value) {
|
|
1103
|
+
jspb.Message.setField(this, 2, value);
|
|
1104
|
+
};
|
|
1105
|
+
|
|
1106
|
+
|
|
1107
|
+
/**
|
|
1108
|
+
* optional string source = 3;
|
|
1109
|
+
* @return {string}
|
|
1110
|
+
*/
|
|
1111
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.getSource = function() {
|
|
1112
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 3, ""));
|
|
1113
|
+
};
|
|
1114
|
+
|
|
1115
|
+
|
|
1116
|
+
/** @param {string} value */
|
|
1117
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.setSource = function(value) {
|
|
1118
|
+
jspb.Message.setField(this, 3, value);
|
|
1119
|
+
};
|
|
1120
|
+
|
|
1121
|
+
|
|
1122
|
+
/**
|
|
1123
|
+
* optional int64 sourceId = 4;
|
|
1124
|
+
* @return {number}
|
|
1125
|
+
*/
|
|
1126
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.getSourceid = function() {
|
|
1127
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 4, 0));
|
|
1128
|
+
};
|
|
1129
|
+
|
|
1130
|
+
|
|
1131
|
+
/** @param {number} value */
|
|
1132
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.setSourceid = function(value) {
|
|
1133
|
+
jspb.Message.setField(this, 4, value);
|
|
1134
|
+
};
|
|
1135
|
+
|
|
1136
|
+
|
|
1137
|
+
/**
|
|
1138
|
+
* optional float paymentAmount = 5;
|
|
1139
|
+
* @return {number}
|
|
1140
|
+
*/
|
|
1141
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.getPaymentamount = function() {
|
|
1142
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 5, 0));
|
|
1143
|
+
};
|
|
1144
|
+
|
|
1145
|
+
|
|
1146
|
+
/** @param {number} value */
|
|
1147
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.setPaymentamount = function(value) {
|
|
1148
|
+
jspb.Message.setField(this, 5, value);
|
|
1149
|
+
};
|
|
1150
|
+
|
|
1151
|
+
|
|
1152
|
+
/**
|
|
1153
|
+
* optional string description = 6;
|
|
1154
|
+
* @return {string}
|
|
1155
|
+
*/
|
|
1156
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.getDescription = function() {
|
|
1157
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 6, ""));
|
|
1158
|
+
};
|
|
1159
|
+
|
|
1160
|
+
|
|
1161
|
+
/** @param {string} value */
|
|
1162
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.setDescription = function(value) {
|
|
1163
|
+
jspb.Message.setField(this, 6, value);
|
|
1164
|
+
};
|
|
1165
|
+
|
|
1166
|
+
|
|
1167
|
+
/**
|
|
1168
|
+
* optional int64 paymentMethodId = 7;
|
|
1169
|
+
* @return {number}
|
|
1170
|
+
*/
|
|
1171
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.getPaymentmethodid = function() {
|
|
1172
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 7, 0));
|
|
1173
|
+
};
|
|
1174
|
+
|
|
1175
|
+
|
|
1176
|
+
/** @param {number} value */
|
|
1177
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.setPaymentmethodid = function(value) {
|
|
1178
|
+
jspb.Message.setField(this, 7, value);
|
|
1179
|
+
};
|
|
1180
|
+
|
|
1181
|
+
|
|
1182
|
+
|
|
1183
|
+
/**
|
|
1184
|
+
* Generated by JsPbCodeGenerator.
|
|
1185
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1186
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1187
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1188
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1189
|
+
* valid.
|
|
1190
|
+
* @extends {jspb.Message}
|
|
1191
|
+
* @constructor
|
|
1192
|
+
*/
|
|
1193
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest = function(opt_data) {
|
|
1194
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1195
|
+
};
|
|
1196
|
+
goog.inherits(proto.loyaltyprogramserviceapi.CreateProgramRequest, jspb.Message);
|
|
1197
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1198
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.displayName = 'proto.loyaltyprogramserviceapi.CreateProgramRequest';
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
|
|
1202
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1203
|
+
/**
|
|
1204
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
1205
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1206
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1207
|
+
* For the list of reserved names please see:
|
|
1208
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
1209
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
1210
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
1211
|
+
* @return {!Object}
|
|
1212
|
+
*/
|
|
1213
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1214
|
+
return proto.loyaltyprogramserviceapi.CreateProgramRequest.toObject(opt_includeInstance, this);
|
|
1215
|
+
};
|
|
1216
|
+
|
|
1217
|
+
|
|
1218
|
+
/**
|
|
1219
|
+
* Static version of the {@see toObject} method.
|
|
1220
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
1221
|
+
* instance for transitional soy proto support:
|
|
1222
|
+
* http://goto/soy-param-migration
|
|
1223
|
+
* @param {!proto.loyaltyprogramserviceapi.CreateProgramRequest} msg The msg instance to transform.
|
|
1224
|
+
* @return {!Object}
|
|
1225
|
+
*/
|
|
1226
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.toObject = function(includeInstance, msg) {
|
|
1227
|
+
var f, obj = {
|
|
1228
|
+
name: msg.getName(),
|
|
1229
|
+
code: msg.getCode(),
|
|
1230
|
+
logourl: msg.getLogourl(),
|
|
1231
|
+
earnedamount: msg.getEarnedamount(),
|
|
1232
|
+
spentamount: msg.getSpentamount(),
|
|
1233
|
+
membershipnumberlength: msg.getMembershipnumberlength(),
|
|
1234
|
+
membershipnumbertype: msg.getMembershipnumbertype(),
|
|
1235
|
+
termsandconditionsurl: msg.getTermsandconditionsurl(),
|
|
1236
|
+
externalurl: msg.getExternalurl()
|
|
1237
|
+
};
|
|
1238
|
+
|
|
1239
|
+
if (includeInstance) {
|
|
1240
|
+
obj.$jspbMessageInstance = msg;
|
|
1241
|
+
}
|
|
1242
|
+
return obj;
|
|
1243
|
+
};
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
|
|
1247
|
+
/**
|
|
1248
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1249
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1250
|
+
* @return {!proto.loyaltyprogramserviceapi.CreateProgramRequest}
|
|
1251
|
+
*/
|
|
1252
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.deserializeBinary = function(bytes) {
|
|
1253
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1254
|
+
var msg = new proto.loyaltyprogramserviceapi.CreateProgramRequest;
|
|
1255
|
+
return proto.loyaltyprogramserviceapi.CreateProgramRequest.deserializeBinaryFromReader(msg, reader);
|
|
1256
|
+
};
|
|
1257
|
+
|
|
1258
|
+
|
|
1259
|
+
/**
|
|
1260
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1261
|
+
* given reader into the given message object.
|
|
1262
|
+
* @param {!proto.loyaltyprogramserviceapi.CreateProgramRequest} msg The message object to deserialize into.
|
|
1263
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1264
|
+
* @return {!proto.loyaltyprogramserviceapi.CreateProgramRequest}
|
|
1265
|
+
*/
|
|
1266
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1267
|
+
while (reader.nextField()) {
|
|
1268
|
+
if (reader.isEndGroup()) {
|
|
1269
|
+
break;
|
|
1270
|
+
}
|
|
1271
|
+
var field = reader.getFieldNumber();
|
|
1272
|
+
switch (field) {
|
|
1273
|
+
case 1:
|
|
1274
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1275
|
+
msg.setName(value);
|
|
1276
|
+
break;
|
|
1277
|
+
case 2:
|
|
1278
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1279
|
+
msg.setCode(value);
|
|
1280
|
+
break;
|
|
1281
|
+
case 3:
|
|
1282
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1283
|
+
msg.setLogourl(value);
|
|
1284
|
+
break;
|
|
1285
|
+
case 4:
|
|
1286
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1287
|
+
msg.setEarnedamount(value);
|
|
1288
|
+
break;
|
|
1289
|
+
case 5:
|
|
1290
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1291
|
+
msg.setSpentamount(value);
|
|
1292
|
+
break;
|
|
1293
|
+
case 6:
|
|
1294
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1295
|
+
msg.setMembershipnumberlength(value);
|
|
1296
|
+
break;
|
|
1297
|
+
case 7:
|
|
1298
|
+
var value = /** @type {!proto.loyaltyprogramserviceapi.CreateProgramRequest.CreateProgramRequestMembershipNumberType} */ (reader.readEnum());
|
|
1299
|
+
msg.setMembershipnumbertype(value);
|
|
1300
|
+
break;
|
|
1301
|
+
case 8:
|
|
1302
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1303
|
+
msg.setTermsandconditionsurl(value);
|
|
1304
|
+
break;
|
|
1305
|
+
case 9:
|
|
1306
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1307
|
+
msg.setExternalurl(value);
|
|
1308
|
+
break;
|
|
1309
|
+
default:
|
|
1310
|
+
reader.skipField();
|
|
1311
|
+
break;
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
1314
|
+
return msg;
|
|
1315
|
+
};
|
|
1316
|
+
|
|
1317
|
+
|
|
1318
|
+
/**
|
|
1319
|
+
* Class method variant: serializes the given message to binary data
|
|
1320
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
1321
|
+
* @param {!proto.loyaltyprogramserviceapi.CreateProgramRequest} message
|
|
1322
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1323
|
+
*/
|
|
1324
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1325
|
+
message.serializeBinaryToWriter(writer);
|
|
1326
|
+
};
|
|
1327
|
+
|
|
1328
|
+
|
|
1329
|
+
/**
|
|
1330
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1331
|
+
* @return {!Uint8Array}
|
|
1332
|
+
*/
|
|
1333
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.serializeBinary = function() {
|
|
1334
|
+
var writer = new jspb.BinaryWriter();
|
|
1335
|
+
this.serializeBinaryToWriter(writer);
|
|
1336
|
+
return writer.getResultBuffer();
|
|
1337
|
+
};
|
|
1338
|
+
|
|
1339
|
+
|
|
1340
|
+
/**
|
|
1341
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
1342
|
+
* writing to the given BinaryWriter.
|
|
1343
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1344
|
+
*/
|
|
1345
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
1346
|
+
var f = undefined;
|
|
1347
|
+
f = this.getName();
|
|
1348
|
+
if (f.length > 0) {
|
|
1349
|
+
writer.writeString(
|
|
1350
|
+
1,
|
|
1351
|
+
f
|
|
1352
|
+
);
|
|
1353
|
+
}
|
|
1354
|
+
f = this.getCode();
|
|
1355
|
+
if (f.length > 0) {
|
|
1356
|
+
writer.writeString(
|
|
1357
|
+
2,
|
|
1358
|
+
f
|
|
1359
|
+
);
|
|
1360
|
+
}
|
|
1361
|
+
f = this.getLogourl();
|
|
1362
|
+
if (f.length > 0) {
|
|
1363
|
+
writer.writeString(
|
|
1364
|
+
3,
|
|
1365
|
+
f
|
|
1366
|
+
);
|
|
1367
|
+
}
|
|
1368
|
+
f = this.getEarnedamount();
|
|
1369
|
+
if (f !== 0) {
|
|
1370
|
+
writer.writeInt32(
|
|
1371
|
+
4,
|
|
1372
|
+
f
|
|
1373
|
+
);
|
|
1374
|
+
}
|
|
1375
|
+
f = this.getSpentamount();
|
|
1376
|
+
if (f !== 0) {
|
|
1377
|
+
writer.writeInt32(
|
|
1378
|
+
5,
|
|
1379
|
+
f
|
|
1380
|
+
);
|
|
1381
|
+
}
|
|
1382
|
+
f = this.getMembershipnumberlength();
|
|
1383
|
+
if (f !== 0) {
|
|
1384
|
+
writer.writeInt32(
|
|
1385
|
+
6,
|
|
1386
|
+
f
|
|
1387
|
+
);
|
|
1388
|
+
}
|
|
1389
|
+
f = this.getMembershipnumbertype();
|
|
1390
|
+
if (f !== 0.0) {
|
|
1391
|
+
writer.writeEnum(
|
|
1392
|
+
7,
|
|
1393
|
+
f
|
|
1394
|
+
);
|
|
1395
|
+
}
|
|
1396
|
+
f = this.getTermsandconditionsurl();
|
|
1397
|
+
if (f.length > 0) {
|
|
1398
|
+
writer.writeString(
|
|
1399
|
+
8,
|
|
1400
|
+
f
|
|
1401
|
+
);
|
|
1402
|
+
}
|
|
1403
|
+
f = this.getExternalurl();
|
|
1404
|
+
if (f.length > 0) {
|
|
1405
|
+
writer.writeString(
|
|
1406
|
+
9,
|
|
1407
|
+
f
|
|
1408
|
+
);
|
|
1409
|
+
}
|
|
1410
|
+
};
|
|
1411
|
+
|
|
1412
|
+
|
|
1413
|
+
/**
|
|
1414
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
1415
|
+
* @return {!proto.loyaltyprogramserviceapi.CreateProgramRequest} The clone.
|
|
1416
|
+
*/
|
|
1417
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.cloneMessage = function() {
|
|
1418
|
+
return /** @type {!proto.loyaltyprogramserviceapi.CreateProgramRequest} */ (jspb.Message.cloneMessage(this));
|
|
1419
|
+
};
|
|
1420
|
+
|
|
1421
|
+
|
|
1422
|
+
/**
|
|
1423
|
+
* optional string name = 1;
|
|
1424
|
+
* @return {string}
|
|
1425
|
+
*/
|
|
1426
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.getName = function() {
|
|
1427
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
|
|
1428
|
+
};
|
|
1429
|
+
|
|
1430
|
+
|
|
1431
|
+
/** @param {string} value */
|
|
1432
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.setName = function(value) {
|
|
1433
|
+
jspb.Message.setField(this, 1, value);
|
|
1434
|
+
};
|
|
1435
|
+
|
|
1436
|
+
|
|
1437
|
+
/**
|
|
1438
|
+
* optional string code = 2;
|
|
1439
|
+
* @return {string}
|
|
1440
|
+
*/
|
|
1441
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.getCode = function() {
|
|
1442
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
|
|
1443
|
+
};
|
|
1444
|
+
|
|
1445
|
+
|
|
1446
|
+
/** @param {string} value */
|
|
1447
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.setCode = function(value) {
|
|
1448
|
+
jspb.Message.setField(this, 2, value);
|
|
1449
|
+
};
|
|
1450
|
+
|
|
1451
|
+
|
|
1452
|
+
/**
|
|
1453
|
+
* optional string logoUrl = 3;
|
|
1454
|
+
* @return {string}
|
|
1455
|
+
*/
|
|
1456
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.getLogourl = function() {
|
|
1457
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 3, ""));
|
|
1458
|
+
};
|
|
1459
|
+
|
|
1460
|
+
|
|
1461
|
+
/** @param {string} value */
|
|
1462
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.setLogourl = function(value) {
|
|
1463
|
+
jspb.Message.setField(this, 3, value);
|
|
1464
|
+
};
|
|
1465
|
+
|
|
1466
|
+
|
|
1467
|
+
/**
|
|
1468
|
+
* optional int32 earnedAmount = 4;
|
|
1469
|
+
* @return {number}
|
|
1470
|
+
*/
|
|
1471
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.getEarnedamount = function() {
|
|
1472
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 4, 0));
|
|
1473
|
+
};
|
|
1474
|
+
|
|
1475
|
+
|
|
1476
|
+
/** @param {number} value */
|
|
1477
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.setEarnedamount = function(value) {
|
|
1478
|
+
jspb.Message.setField(this, 4, value);
|
|
1479
|
+
};
|
|
1480
|
+
|
|
1481
|
+
|
|
1482
|
+
/**
|
|
1483
|
+
* optional int32 spentAmount = 5;
|
|
1484
|
+
* @return {number}
|
|
1485
|
+
*/
|
|
1486
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.getSpentamount = function() {
|
|
1487
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 5, 0));
|
|
1488
|
+
};
|
|
1489
|
+
|
|
1490
|
+
|
|
1491
|
+
/** @param {number} value */
|
|
1492
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.setSpentamount = function(value) {
|
|
1493
|
+
jspb.Message.setField(this, 5, value);
|
|
1494
|
+
};
|
|
1495
|
+
|
|
1496
|
+
|
|
1497
|
+
/**
|
|
1498
|
+
* optional int32 membershipNumberLength = 6;
|
|
1499
|
+
* @return {number}
|
|
1500
|
+
*/
|
|
1501
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.getMembershipnumberlength = function() {
|
|
1502
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 6, 0));
|
|
1503
|
+
};
|
|
1504
|
+
|
|
1505
|
+
|
|
1506
|
+
/** @param {number} value */
|
|
1507
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.setMembershipnumberlength = function(value) {
|
|
1508
|
+
jspb.Message.setField(this, 6, value);
|
|
1509
|
+
};
|
|
1510
|
+
|
|
1511
|
+
|
|
1512
|
+
/**
|
|
1513
|
+
* optional CreateProgramRequestMembershipNumberType membershipNumberType = 7;
|
|
1514
|
+
* @return {!proto.loyaltyprogramserviceapi.CreateProgramRequest.CreateProgramRequestMembershipNumberType}
|
|
1515
|
+
*/
|
|
1516
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.getMembershipnumbertype = function() {
|
|
1517
|
+
return /** @type {!proto.loyaltyprogramserviceapi.CreateProgramRequest.CreateProgramRequestMembershipNumberType} */ (jspb.Message.getFieldProto3(this, 7, 0));
|
|
1518
|
+
};
|
|
1519
|
+
|
|
1520
|
+
|
|
1521
|
+
/** @param {!proto.loyaltyprogramserviceapi.CreateProgramRequest.CreateProgramRequestMembershipNumberType} value */
|
|
1522
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.setMembershipnumbertype = function(value) {
|
|
1523
|
+
jspb.Message.setField(this, 7, value);
|
|
1524
|
+
};
|
|
1525
|
+
|
|
1526
|
+
|
|
1527
|
+
/**
|
|
1528
|
+
* optional string termsAndConditionsUrl = 8;
|
|
1529
|
+
* @return {string}
|
|
1530
|
+
*/
|
|
1531
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.getTermsandconditionsurl = function() {
|
|
1532
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 8, ""));
|
|
1533
|
+
};
|
|
1534
|
+
|
|
1535
|
+
|
|
1536
|
+
/** @param {string} value */
|
|
1537
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.setTermsandconditionsurl = function(value) {
|
|
1538
|
+
jspb.Message.setField(this, 8, value);
|
|
1539
|
+
};
|
|
1540
|
+
|
|
1541
|
+
|
|
1542
|
+
/**
|
|
1543
|
+
* optional string externalUrl = 9;
|
|
1544
|
+
* @return {string}
|
|
1545
|
+
*/
|
|
1546
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.getExternalurl = function() {
|
|
1547
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 9, ""));
|
|
1548
|
+
};
|
|
1549
|
+
|
|
1550
|
+
|
|
1551
|
+
/** @param {string} value */
|
|
1552
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.setExternalurl = function(value) {
|
|
1553
|
+
jspb.Message.setField(this, 9, value);
|
|
1554
|
+
};
|
|
1555
|
+
|
|
1556
|
+
|
|
1557
|
+
/**
|
|
1558
|
+
* @enum {number}
|
|
1559
|
+
*/
|
|
1560
|
+
proto.loyaltyprogramserviceapi.CreateProgramRequest.CreateProgramRequestMembershipNumberType = {
|
|
1561
|
+
CREATE_PROGRAM_REQUEST_MEMBERSHIP_NUMBER_TYPE_ONLY_NUMBERS: 0,
|
|
1562
|
+
CREATE_PROGRAM_REQUEST_MEMBERSHIP_NUMBER_TYPE_ONLY_LETTERS: 1,
|
|
1563
|
+
CREATE_PROGRAM_REQUEST_MEMBERSHIP_NUMBER_TYPE_NUMBERS_AND_LETTERS: 2
|
|
1564
|
+
};
|
|
1565
|
+
|
|
1566
|
+
|
|
1567
|
+
/**
|
|
1568
|
+
* Generated by JsPbCodeGenerator.
|
|
1569
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1570
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1571
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1572
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1573
|
+
* valid.
|
|
1574
|
+
* @extends {jspb.Message}
|
|
1575
|
+
* @constructor
|
|
1576
|
+
*/
|
|
1577
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest = function(opt_data) {
|
|
1578
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1579
|
+
};
|
|
1580
|
+
goog.inherits(proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest, jspb.Message);
|
|
1581
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1582
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest.displayName = 'proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest';
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1585
|
+
|
|
1586
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1587
|
+
/**
|
|
1588
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
1589
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1590
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1591
|
+
* For the list of reserved names please see:
|
|
1592
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
1593
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
1594
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
1595
|
+
* @return {!Object}
|
|
1596
|
+
*/
|
|
1597
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1598
|
+
return proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest.toObject(opt_includeInstance, this);
|
|
1599
|
+
};
|
|
1600
|
+
|
|
1601
|
+
|
|
1602
|
+
/**
|
|
1603
|
+
* Static version of the {@see toObject} method.
|
|
1604
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
1605
|
+
* instance for transitional soy proto support:
|
|
1606
|
+
* http://goto/soy-param-migration
|
|
1607
|
+
* @param {!proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest} msg The msg instance to transform.
|
|
1608
|
+
* @return {!Object}
|
|
1609
|
+
*/
|
|
1610
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest.toObject = function(includeInstance, msg) {
|
|
1611
|
+
var f, obj = {
|
|
1612
|
+
membershipid: msg.getMembershipid(),
|
|
1613
|
+
page: msg.getPage(),
|
|
1614
|
+
limit: msg.getLimit()
|
|
1615
|
+
};
|
|
1616
|
+
|
|
1617
|
+
if (includeInstance) {
|
|
1618
|
+
obj.$jspbMessageInstance = msg;
|
|
1619
|
+
}
|
|
1620
|
+
return obj;
|
|
1621
|
+
};
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1624
|
+
|
|
1625
|
+
/**
|
|
1626
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1627
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1628
|
+
* @return {!proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest}
|
|
1629
|
+
*/
|
|
1630
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest.deserializeBinary = function(bytes) {
|
|
1631
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1632
|
+
var msg = new proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest;
|
|
1633
|
+
return proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest.deserializeBinaryFromReader(msg, reader);
|
|
1634
|
+
};
|
|
1635
|
+
|
|
1636
|
+
|
|
1637
|
+
/**
|
|
1638
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1639
|
+
* given reader into the given message object.
|
|
1640
|
+
* @param {!proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest} msg The message object to deserialize into.
|
|
1641
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1642
|
+
* @return {!proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest}
|
|
1643
|
+
*/
|
|
1644
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1645
|
+
while (reader.nextField()) {
|
|
1646
|
+
if (reader.isEndGroup()) {
|
|
1647
|
+
break;
|
|
1648
|
+
}
|
|
1649
|
+
var field = reader.getFieldNumber();
|
|
1650
|
+
switch (field) {
|
|
1651
|
+
case 1:
|
|
1652
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
1653
|
+
msg.setMembershipid(value);
|
|
1654
|
+
break;
|
|
1655
|
+
case 2:
|
|
1656
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1657
|
+
msg.setPage(value);
|
|
480
1658
|
break;
|
|
481
1659
|
case 3:
|
|
482
|
-
var value = /** @type {
|
|
483
|
-
msg.
|
|
1660
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1661
|
+
msg.setLimit(value);
|
|
1662
|
+
break;
|
|
1663
|
+
default:
|
|
1664
|
+
reader.skipField();
|
|
1665
|
+
break;
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
return msg;
|
|
1669
|
+
};
|
|
1670
|
+
|
|
1671
|
+
|
|
1672
|
+
/**
|
|
1673
|
+
* Class method variant: serializes the given message to binary data
|
|
1674
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
1675
|
+
* @param {!proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest} message
|
|
1676
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1677
|
+
*/
|
|
1678
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1679
|
+
message.serializeBinaryToWriter(writer);
|
|
1680
|
+
};
|
|
1681
|
+
|
|
1682
|
+
|
|
1683
|
+
/**
|
|
1684
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1685
|
+
* @return {!Uint8Array}
|
|
1686
|
+
*/
|
|
1687
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest.prototype.serializeBinary = function() {
|
|
1688
|
+
var writer = new jspb.BinaryWriter();
|
|
1689
|
+
this.serializeBinaryToWriter(writer);
|
|
1690
|
+
return writer.getResultBuffer();
|
|
1691
|
+
};
|
|
1692
|
+
|
|
1693
|
+
|
|
1694
|
+
/**
|
|
1695
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
1696
|
+
* writing to the given BinaryWriter.
|
|
1697
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1698
|
+
*/
|
|
1699
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
1700
|
+
var f = undefined;
|
|
1701
|
+
f = this.getMembershipid();
|
|
1702
|
+
if (f !== 0) {
|
|
1703
|
+
writer.writeInt64(
|
|
1704
|
+
1,
|
|
1705
|
+
f
|
|
1706
|
+
);
|
|
1707
|
+
}
|
|
1708
|
+
f = this.getPage();
|
|
1709
|
+
if (f !== 0) {
|
|
1710
|
+
writer.writeInt32(
|
|
1711
|
+
2,
|
|
1712
|
+
f
|
|
1713
|
+
);
|
|
1714
|
+
}
|
|
1715
|
+
f = this.getLimit();
|
|
1716
|
+
if (f !== 0) {
|
|
1717
|
+
writer.writeInt32(
|
|
1718
|
+
3,
|
|
1719
|
+
f
|
|
1720
|
+
);
|
|
1721
|
+
}
|
|
1722
|
+
};
|
|
1723
|
+
|
|
1724
|
+
|
|
1725
|
+
/**
|
|
1726
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
1727
|
+
* @return {!proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest} The clone.
|
|
1728
|
+
*/
|
|
1729
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest.prototype.cloneMessage = function() {
|
|
1730
|
+
return /** @type {!proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest} */ (jspb.Message.cloneMessage(this));
|
|
1731
|
+
};
|
|
1732
|
+
|
|
1733
|
+
|
|
1734
|
+
/**
|
|
1735
|
+
* optional int64 membershipId = 1;
|
|
1736
|
+
* @return {number}
|
|
1737
|
+
*/
|
|
1738
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest.prototype.getMembershipid = function() {
|
|
1739
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
1740
|
+
};
|
|
1741
|
+
|
|
1742
|
+
|
|
1743
|
+
/** @param {number} value */
|
|
1744
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest.prototype.setMembershipid = function(value) {
|
|
1745
|
+
jspb.Message.setField(this, 1, value);
|
|
1746
|
+
};
|
|
1747
|
+
|
|
1748
|
+
|
|
1749
|
+
/**
|
|
1750
|
+
* optional int32 page = 2;
|
|
1751
|
+
* @return {number}
|
|
1752
|
+
*/
|
|
1753
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest.prototype.getPage = function() {
|
|
1754
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 2, 0));
|
|
1755
|
+
};
|
|
1756
|
+
|
|
1757
|
+
|
|
1758
|
+
/** @param {number} value */
|
|
1759
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest.prototype.setPage = function(value) {
|
|
1760
|
+
jspb.Message.setField(this, 2, value);
|
|
1761
|
+
};
|
|
1762
|
+
|
|
1763
|
+
|
|
1764
|
+
/**
|
|
1765
|
+
* optional int32 limit = 3;
|
|
1766
|
+
* @return {number}
|
|
1767
|
+
*/
|
|
1768
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest.prototype.getLimit = function() {
|
|
1769
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 3, 0));
|
|
1770
|
+
};
|
|
1771
|
+
|
|
1772
|
+
|
|
1773
|
+
/** @param {number} value */
|
|
1774
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest.prototype.setLimit = function(value) {
|
|
1775
|
+
jspb.Message.setField(this, 3, value);
|
|
1776
|
+
};
|
|
1777
|
+
|
|
1778
|
+
|
|
1779
|
+
|
|
1780
|
+
/**
|
|
1781
|
+
* Generated by JsPbCodeGenerator.
|
|
1782
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1783
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1784
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1785
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1786
|
+
* valid.
|
|
1787
|
+
* @extends {jspb.Message}
|
|
1788
|
+
* @constructor
|
|
1789
|
+
*/
|
|
1790
|
+
proto.loyaltyprogramserviceapi.GetMembershipByIdRequest = function(opt_data) {
|
|
1791
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1792
|
+
};
|
|
1793
|
+
goog.inherits(proto.loyaltyprogramserviceapi.GetMembershipByIdRequest, jspb.Message);
|
|
1794
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1795
|
+
proto.loyaltyprogramserviceapi.GetMembershipByIdRequest.displayName = 'proto.loyaltyprogramserviceapi.GetMembershipByIdRequest';
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1798
|
+
|
|
1799
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1800
|
+
/**
|
|
1801
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
1802
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1803
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1804
|
+
* For the list of reserved names please see:
|
|
1805
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
1806
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
1807
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
1808
|
+
* @return {!Object}
|
|
1809
|
+
*/
|
|
1810
|
+
proto.loyaltyprogramserviceapi.GetMembershipByIdRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1811
|
+
return proto.loyaltyprogramserviceapi.GetMembershipByIdRequest.toObject(opt_includeInstance, this);
|
|
1812
|
+
};
|
|
1813
|
+
|
|
1814
|
+
|
|
1815
|
+
/**
|
|
1816
|
+
* Static version of the {@see toObject} method.
|
|
1817
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
1818
|
+
* instance for transitional soy proto support:
|
|
1819
|
+
* http://goto/soy-param-migration
|
|
1820
|
+
* @param {!proto.loyaltyprogramserviceapi.GetMembershipByIdRequest} msg The msg instance to transform.
|
|
1821
|
+
* @return {!Object}
|
|
1822
|
+
*/
|
|
1823
|
+
proto.loyaltyprogramserviceapi.GetMembershipByIdRequest.toObject = function(includeInstance, msg) {
|
|
1824
|
+
var f, obj = {
|
|
1825
|
+
membershipid: msg.getMembershipid()
|
|
1826
|
+
};
|
|
1827
|
+
|
|
1828
|
+
if (includeInstance) {
|
|
1829
|
+
obj.$jspbMessageInstance = msg;
|
|
1830
|
+
}
|
|
1831
|
+
return obj;
|
|
1832
|
+
};
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1835
|
+
|
|
1836
|
+
/**
|
|
1837
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1838
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1839
|
+
* @return {!proto.loyaltyprogramserviceapi.GetMembershipByIdRequest}
|
|
1840
|
+
*/
|
|
1841
|
+
proto.loyaltyprogramserviceapi.GetMembershipByIdRequest.deserializeBinary = function(bytes) {
|
|
1842
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1843
|
+
var msg = new proto.loyaltyprogramserviceapi.GetMembershipByIdRequest;
|
|
1844
|
+
return proto.loyaltyprogramserviceapi.GetMembershipByIdRequest.deserializeBinaryFromReader(msg, reader);
|
|
1845
|
+
};
|
|
1846
|
+
|
|
1847
|
+
|
|
1848
|
+
/**
|
|
1849
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1850
|
+
* given reader into the given message object.
|
|
1851
|
+
* @param {!proto.loyaltyprogramserviceapi.GetMembershipByIdRequest} msg The message object to deserialize into.
|
|
1852
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1853
|
+
* @return {!proto.loyaltyprogramserviceapi.GetMembershipByIdRequest}
|
|
1854
|
+
*/
|
|
1855
|
+
proto.loyaltyprogramserviceapi.GetMembershipByIdRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1856
|
+
while (reader.nextField()) {
|
|
1857
|
+
if (reader.isEndGroup()) {
|
|
484
1858
|
break;
|
|
485
|
-
|
|
1859
|
+
}
|
|
1860
|
+
var field = reader.getFieldNumber();
|
|
1861
|
+
switch (field) {
|
|
1862
|
+
case 1:
|
|
486
1863
|
var value = /** @type {number} */ (reader.readInt64());
|
|
487
|
-
msg.
|
|
488
|
-
break;
|
|
489
|
-
case 5:
|
|
490
|
-
var value = /** @type {number} */ (reader.readFloat());
|
|
491
|
-
msg.setPaymentamount(value);
|
|
1864
|
+
msg.setMembershipid(value);
|
|
492
1865
|
break;
|
|
493
1866
|
default:
|
|
494
1867
|
reader.skipField();
|
|
@@ -502,10 +1875,10 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.deserializeBinary
|
|
|
502
1875
|
/**
|
|
503
1876
|
* Class method variant: serializes the given message to binary data
|
|
504
1877
|
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
505
|
-
* @param {!proto.loyaltyprogramserviceapi.
|
|
1878
|
+
* @param {!proto.loyaltyprogramserviceapi.GetMembershipByIdRequest} message
|
|
506
1879
|
* @param {!jspb.BinaryWriter} writer
|
|
507
1880
|
*/
|
|
508
|
-
proto.loyaltyprogramserviceapi.
|
|
1881
|
+
proto.loyaltyprogramserviceapi.GetMembershipByIdRequest.serializeBinaryToWriter = function(message, writer) {
|
|
509
1882
|
message.serializeBinaryToWriter(writer);
|
|
510
1883
|
};
|
|
511
1884
|
|
|
@@ -514,7 +1887,7 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.serializeBinaryTo
|
|
|
514
1887
|
* Serializes the message to binary data (in protobuf wire format).
|
|
515
1888
|
* @return {!Uint8Array}
|
|
516
1889
|
*/
|
|
517
|
-
proto.loyaltyprogramserviceapi.
|
|
1890
|
+
proto.loyaltyprogramserviceapi.GetMembershipByIdRequest.prototype.serializeBinary = function() {
|
|
518
1891
|
var writer = new jspb.BinaryWriter();
|
|
519
1892
|
this.serializeBinaryToWriter(writer);
|
|
520
1893
|
return writer.getResultBuffer();
|
|
@@ -526,7 +1899,7 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.seriali
|
|
|
526
1899
|
* writing to the given BinaryWriter.
|
|
527
1900
|
* @param {!jspb.BinaryWriter} writer
|
|
528
1901
|
*/
|
|
529
|
-
proto.loyaltyprogramserviceapi.
|
|
1902
|
+
proto.loyaltyprogramserviceapi.GetMembershipByIdRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
530
1903
|
var f = undefined;
|
|
531
1904
|
f = this.getMembershipid();
|
|
532
1905
|
if (f !== 0) {
|
|
@@ -535,43 +1908,15 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.seriali
|
|
|
535
1908
|
f
|
|
536
1909
|
);
|
|
537
1910
|
}
|
|
538
|
-
f = this.getUserid();
|
|
539
|
-
if (f !== 0) {
|
|
540
|
-
writer.writeInt64(
|
|
541
|
-
2,
|
|
542
|
-
f
|
|
543
|
-
);
|
|
544
|
-
}
|
|
545
|
-
f = this.getSource();
|
|
546
|
-
if (f.length > 0) {
|
|
547
|
-
writer.writeString(
|
|
548
|
-
3,
|
|
549
|
-
f
|
|
550
|
-
);
|
|
551
|
-
}
|
|
552
|
-
f = this.getSourceid();
|
|
553
|
-
if (f !== 0) {
|
|
554
|
-
writer.writeInt64(
|
|
555
|
-
4,
|
|
556
|
-
f
|
|
557
|
-
);
|
|
558
|
-
}
|
|
559
|
-
f = this.getPaymentamount();
|
|
560
|
-
if (f !== 0.0) {
|
|
561
|
-
writer.writeFloat(
|
|
562
|
-
5,
|
|
563
|
-
f
|
|
564
|
-
);
|
|
565
|
-
}
|
|
566
1911
|
};
|
|
567
1912
|
|
|
568
1913
|
|
|
569
1914
|
/**
|
|
570
1915
|
* Creates a deep clone of this proto. No data is shared with the original.
|
|
571
|
-
* @return {!proto.loyaltyprogramserviceapi.
|
|
1916
|
+
* @return {!proto.loyaltyprogramserviceapi.GetMembershipByIdRequest} The clone.
|
|
572
1917
|
*/
|
|
573
|
-
proto.loyaltyprogramserviceapi.
|
|
574
|
-
return /** @type {!proto.loyaltyprogramserviceapi.
|
|
1918
|
+
proto.loyaltyprogramserviceapi.GetMembershipByIdRequest.prototype.cloneMessage = function() {
|
|
1919
|
+
return /** @type {!proto.loyaltyprogramserviceapi.GetMembershipByIdRequest} */ (jspb.Message.cloneMessage(this));
|
|
575
1920
|
};
|
|
576
1921
|
|
|
577
1922
|
|
|
@@ -579,74 +1924,200 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.cloneMe
|
|
|
579
1924
|
* optional int64 membershipId = 1;
|
|
580
1925
|
* @return {number}
|
|
581
1926
|
*/
|
|
582
|
-
proto.loyaltyprogramserviceapi.
|
|
1927
|
+
proto.loyaltyprogramserviceapi.GetMembershipByIdRequest.prototype.getMembershipid = function() {
|
|
583
1928
|
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
584
1929
|
};
|
|
585
1930
|
|
|
586
1931
|
|
|
587
1932
|
/** @param {number} value */
|
|
588
|
-
proto.loyaltyprogramserviceapi.
|
|
1933
|
+
proto.loyaltyprogramserviceapi.GetMembershipByIdRequest.prototype.setMembershipid = function(value) {
|
|
589
1934
|
jspb.Message.setField(this, 1, value);
|
|
590
1935
|
};
|
|
591
1936
|
|
|
592
1937
|
|
|
1938
|
+
|
|
1939
|
+
/**
|
|
1940
|
+
* Generated by JsPbCodeGenerator.
|
|
1941
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1942
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1943
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1944
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1945
|
+
* valid.
|
|
1946
|
+
* @extends {jspb.Message}
|
|
1947
|
+
* @constructor
|
|
1948
|
+
*/
|
|
1949
|
+
proto.loyaltyprogramserviceapi.LinkMembershipRequest = function(opt_data) {
|
|
1950
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1951
|
+
};
|
|
1952
|
+
goog.inherits(proto.loyaltyprogramserviceapi.LinkMembershipRequest, jspb.Message);
|
|
1953
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1954
|
+
proto.loyaltyprogramserviceapi.LinkMembershipRequest.displayName = 'proto.loyaltyprogramserviceapi.LinkMembershipRequest';
|
|
1955
|
+
}
|
|
1956
|
+
|
|
1957
|
+
|
|
1958
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1959
|
+
/**
|
|
1960
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
1961
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1962
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1963
|
+
* For the list of reserved names please see:
|
|
1964
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
1965
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
1966
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
1967
|
+
* @return {!Object}
|
|
1968
|
+
*/
|
|
1969
|
+
proto.loyaltyprogramserviceapi.LinkMembershipRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1970
|
+
return proto.loyaltyprogramserviceapi.LinkMembershipRequest.toObject(opt_includeInstance, this);
|
|
1971
|
+
};
|
|
1972
|
+
|
|
1973
|
+
|
|
1974
|
+
/**
|
|
1975
|
+
* Static version of the {@see toObject} method.
|
|
1976
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
1977
|
+
* instance for transitional soy proto support:
|
|
1978
|
+
* http://goto/soy-param-migration
|
|
1979
|
+
* @param {!proto.loyaltyprogramserviceapi.LinkMembershipRequest} msg The msg instance to transform.
|
|
1980
|
+
* @return {!Object}
|
|
1981
|
+
*/
|
|
1982
|
+
proto.loyaltyprogramserviceapi.LinkMembershipRequest.toObject = function(includeInstance, msg) {
|
|
1983
|
+
var f, obj = {
|
|
1984
|
+
programid: msg.getProgramid(),
|
|
1985
|
+
membershipnumber: msg.getMembershipnumber()
|
|
1986
|
+
};
|
|
1987
|
+
|
|
1988
|
+
if (includeInstance) {
|
|
1989
|
+
obj.$jspbMessageInstance = msg;
|
|
1990
|
+
}
|
|
1991
|
+
return obj;
|
|
1992
|
+
};
|
|
1993
|
+
}
|
|
1994
|
+
|
|
1995
|
+
|
|
1996
|
+
/**
|
|
1997
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1998
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1999
|
+
* @return {!proto.loyaltyprogramserviceapi.LinkMembershipRequest}
|
|
2000
|
+
*/
|
|
2001
|
+
proto.loyaltyprogramserviceapi.LinkMembershipRequest.deserializeBinary = function(bytes) {
|
|
2002
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2003
|
+
var msg = new proto.loyaltyprogramserviceapi.LinkMembershipRequest;
|
|
2004
|
+
return proto.loyaltyprogramserviceapi.LinkMembershipRequest.deserializeBinaryFromReader(msg, reader);
|
|
2005
|
+
};
|
|
2006
|
+
|
|
2007
|
+
|
|
2008
|
+
/**
|
|
2009
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2010
|
+
* given reader into the given message object.
|
|
2011
|
+
* @param {!proto.loyaltyprogramserviceapi.LinkMembershipRequest} msg The message object to deserialize into.
|
|
2012
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2013
|
+
* @return {!proto.loyaltyprogramserviceapi.LinkMembershipRequest}
|
|
2014
|
+
*/
|
|
2015
|
+
proto.loyaltyprogramserviceapi.LinkMembershipRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2016
|
+
while (reader.nextField()) {
|
|
2017
|
+
if (reader.isEndGroup()) {
|
|
2018
|
+
break;
|
|
2019
|
+
}
|
|
2020
|
+
var field = reader.getFieldNumber();
|
|
2021
|
+
switch (field) {
|
|
2022
|
+
case 1:
|
|
2023
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
2024
|
+
msg.setProgramid(value);
|
|
2025
|
+
break;
|
|
2026
|
+
case 2:
|
|
2027
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2028
|
+
msg.setMembershipnumber(value);
|
|
2029
|
+
break;
|
|
2030
|
+
default:
|
|
2031
|
+
reader.skipField();
|
|
2032
|
+
break;
|
|
2033
|
+
}
|
|
2034
|
+
}
|
|
2035
|
+
return msg;
|
|
2036
|
+
};
|
|
2037
|
+
|
|
2038
|
+
|
|
2039
|
+
/**
|
|
2040
|
+
* Class method variant: serializes the given message to binary data
|
|
2041
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
2042
|
+
* @param {!proto.loyaltyprogramserviceapi.LinkMembershipRequest} message
|
|
2043
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2044
|
+
*/
|
|
2045
|
+
proto.loyaltyprogramserviceapi.LinkMembershipRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2046
|
+
message.serializeBinaryToWriter(writer);
|
|
2047
|
+
};
|
|
2048
|
+
|
|
2049
|
+
|
|
593
2050
|
/**
|
|
594
|
-
*
|
|
595
|
-
* @return {
|
|
2051
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2052
|
+
* @return {!Uint8Array}
|
|
596
2053
|
*/
|
|
597
|
-
proto.loyaltyprogramserviceapi.
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
/** @param {number} value */
|
|
603
|
-
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.setUserid = function(value) {
|
|
604
|
-
jspb.Message.setField(this, 2, value);
|
|
2054
|
+
proto.loyaltyprogramserviceapi.LinkMembershipRequest.prototype.serializeBinary = function() {
|
|
2055
|
+
var writer = new jspb.BinaryWriter();
|
|
2056
|
+
this.serializeBinaryToWriter(writer);
|
|
2057
|
+
return writer.getResultBuffer();
|
|
605
2058
|
};
|
|
606
2059
|
|
|
607
2060
|
|
|
608
2061
|
/**
|
|
609
|
-
*
|
|
610
|
-
*
|
|
2062
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
2063
|
+
* writing to the given BinaryWriter.
|
|
2064
|
+
* @param {!jspb.BinaryWriter} writer
|
|
611
2065
|
*/
|
|
612
|
-
proto.loyaltyprogramserviceapi.
|
|
613
|
-
|
|
2066
|
+
proto.loyaltyprogramserviceapi.LinkMembershipRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
2067
|
+
var f = undefined;
|
|
2068
|
+
f = this.getProgramid();
|
|
2069
|
+
if (f !== 0) {
|
|
2070
|
+
writer.writeInt64(
|
|
2071
|
+
1,
|
|
2072
|
+
f
|
|
2073
|
+
);
|
|
2074
|
+
}
|
|
2075
|
+
f = this.getMembershipnumber();
|
|
2076
|
+
if (f.length > 0) {
|
|
2077
|
+
writer.writeString(
|
|
2078
|
+
2,
|
|
2079
|
+
f
|
|
2080
|
+
);
|
|
2081
|
+
}
|
|
614
2082
|
};
|
|
615
2083
|
|
|
616
2084
|
|
|
617
|
-
/**
|
|
618
|
-
proto.
|
|
619
|
-
|
|
2085
|
+
/**
|
|
2086
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
2087
|
+
* @return {!proto.loyaltyprogramserviceapi.LinkMembershipRequest} The clone.
|
|
2088
|
+
*/
|
|
2089
|
+
proto.loyaltyprogramserviceapi.LinkMembershipRequest.prototype.cloneMessage = function() {
|
|
2090
|
+
return /** @type {!proto.loyaltyprogramserviceapi.LinkMembershipRequest} */ (jspb.Message.cloneMessage(this));
|
|
620
2091
|
};
|
|
621
2092
|
|
|
622
2093
|
|
|
623
2094
|
/**
|
|
624
|
-
* optional int64
|
|
2095
|
+
* optional int64 programId = 1;
|
|
625
2096
|
* @return {number}
|
|
626
2097
|
*/
|
|
627
|
-
proto.loyaltyprogramserviceapi.
|
|
628
|
-
return /** @type {number} */ (jspb.Message.getFieldProto3(this,
|
|
2098
|
+
proto.loyaltyprogramserviceapi.LinkMembershipRequest.prototype.getProgramid = function() {
|
|
2099
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
629
2100
|
};
|
|
630
2101
|
|
|
631
2102
|
|
|
632
2103
|
/** @param {number} value */
|
|
633
|
-
proto.loyaltyprogramserviceapi.
|
|
634
|
-
jspb.Message.setField(this,
|
|
2104
|
+
proto.loyaltyprogramserviceapi.LinkMembershipRequest.prototype.setProgramid = function(value) {
|
|
2105
|
+
jspb.Message.setField(this, 1, value);
|
|
635
2106
|
};
|
|
636
2107
|
|
|
637
2108
|
|
|
638
2109
|
/**
|
|
639
|
-
* optional
|
|
640
|
-
* @return {
|
|
2110
|
+
* optional string membershipNumber = 2;
|
|
2111
|
+
* @return {string}
|
|
641
2112
|
*/
|
|
642
|
-
proto.loyaltyprogramserviceapi.
|
|
643
|
-
return /** @type {
|
|
2113
|
+
proto.loyaltyprogramserviceapi.LinkMembershipRequest.prototype.getMembershipnumber = function() {
|
|
2114
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
|
|
644
2115
|
};
|
|
645
2116
|
|
|
646
2117
|
|
|
647
|
-
/** @param {
|
|
648
|
-
proto.loyaltyprogramserviceapi.
|
|
649
|
-
jspb.Message.setField(this,
|
|
2118
|
+
/** @param {string} value */
|
|
2119
|
+
proto.loyaltyprogramserviceapi.LinkMembershipRequest.prototype.setMembershipnumber = function(value) {
|
|
2120
|
+
jspb.Message.setField(this, 2, value);
|
|
650
2121
|
};
|
|
651
2122
|
|
|
652
2123
|
|
|
@@ -661,12 +2132,12 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.setPaym
|
|
|
661
2132
|
* @extends {jspb.Message}
|
|
662
2133
|
* @constructor
|
|
663
2134
|
*/
|
|
664
|
-
proto.loyaltyprogramserviceapi.
|
|
2135
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction = function(opt_data) {
|
|
665
2136
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
666
2137
|
};
|
|
667
|
-
goog.inherits(proto.loyaltyprogramserviceapi.
|
|
2138
|
+
goog.inherits(proto.loyaltyprogramserviceapi.LoyaltyTransaction, jspb.Message);
|
|
668
2139
|
if (goog.DEBUG && !COMPILED) {
|
|
669
|
-
proto.loyaltyprogramserviceapi.
|
|
2140
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.displayName = 'proto.loyaltyprogramserviceapi.LoyaltyTransaction';
|
|
670
2141
|
}
|
|
671
2142
|
|
|
672
2143
|
|
|
@@ -681,8 +2152,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
681
2152
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
682
2153
|
* @return {!Object}
|
|
683
2154
|
*/
|
|
684
|
-
proto.loyaltyprogramserviceapi.
|
|
685
|
-
return proto.loyaltyprogramserviceapi.
|
|
2155
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.toObject = function(opt_includeInstance) {
|
|
2156
|
+
return proto.loyaltyprogramserviceapi.LoyaltyTransaction.toObject(opt_includeInstance, this);
|
|
686
2157
|
};
|
|
687
2158
|
|
|
688
2159
|
|
|
@@ -691,20 +2162,17 @@ proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.toObject = functio
|
|
|
691
2162
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
692
2163
|
* instance for transitional soy proto support:
|
|
693
2164
|
* http://goto/soy-param-migration
|
|
694
|
-
* @param {!proto.loyaltyprogramserviceapi.
|
|
2165
|
+
* @param {!proto.loyaltyprogramserviceapi.LoyaltyTransaction} msg The msg instance to transform.
|
|
695
2166
|
* @return {!Object}
|
|
696
2167
|
*/
|
|
697
|
-
proto.loyaltyprogramserviceapi.
|
|
2168
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.toObject = function(includeInstance, msg) {
|
|
698
2169
|
var f, obj = {
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
membershipnumbertype: msg.getMembershipnumbertype(),
|
|
706
|
-
termsandconditionsurl: msg.getTermsandconditionsurl(),
|
|
707
|
-
externalurl: msg.getExternalurl()
|
|
2170
|
+
loyaltytransactionid: msg.getLoyaltytransactionid(),
|
|
2171
|
+
description: msg.getDescription(),
|
|
2172
|
+
timestamp: msg.getTimestamp(),
|
|
2173
|
+
points: msg.getPoints(),
|
|
2174
|
+
status: msg.getStatus(),
|
|
2175
|
+
membershipid: msg.getMembershipid()
|
|
708
2176
|
};
|
|
709
2177
|
|
|
710
2178
|
if (includeInstance) {
|
|
@@ -718,23 +2186,23 @@ proto.loyaltyprogramserviceapi.CreateProgramRequest.toObject = function(includeI
|
|
|
718
2186
|
/**
|
|
719
2187
|
* Deserializes binary data (in protobuf wire format).
|
|
720
2188
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
721
|
-
* @return {!proto.loyaltyprogramserviceapi.
|
|
2189
|
+
* @return {!proto.loyaltyprogramserviceapi.LoyaltyTransaction}
|
|
722
2190
|
*/
|
|
723
|
-
proto.loyaltyprogramserviceapi.
|
|
2191
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.deserializeBinary = function(bytes) {
|
|
724
2192
|
var reader = new jspb.BinaryReader(bytes);
|
|
725
|
-
var msg = new proto.loyaltyprogramserviceapi.
|
|
726
|
-
return proto.loyaltyprogramserviceapi.
|
|
2193
|
+
var msg = new proto.loyaltyprogramserviceapi.LoyaltyTransaction;
|
|
2194
|
+
return proto.loyaltyprogramserviceapi.LoyaltyTransaction.deserializeBinaryFromReader(msg, reader);
|
|
727
2195
|
};
|
|
728
2196
|
|
|
729
2197
|
|
|
730
2198
|
/**
|
|
731
2199
|
* Deserializes binary data (in protobuf wire format) from the
|
|
732
2200
|
* given reader into the given message object.
|
|
733
|
-
* @param {!proto.loyaltyprogramserviceapi.
|
|
2201
|
+
* @param {!proto.loyaltyprogramserviceapi.LoyaltyTransaction} msg The message object to deserialize into.
|
|
734
2202
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
735
|
-
* @return {!proto.loyaltyprogramserviceapi.
|
|
2203
|
+
* @return {!proto.loyaltyprogramserviceapi.LoyaltyTransaction}
|
|
736
2204
|
*/
|
|
737
|
-
proto.loyaltyprogramserviceapi.
|
|
2205
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.deserializeBinaryFromReader = function(msg, reader) {
|
|
738
2206
|
while (reader.nextField()) {
|
|
739
2207
|
if (reader.isEndGroup()) {
|
|
740
2208
|
break;
|
|
@@ -742,40 +2210,28 @@ proto.loyaltyprogramserviceapi.CreateProgramRequest.deserializeBinaryFromReader
|
|
|
742
2210
|
var field = reader.getFieldNumber();
|
|
743
2211
|
switch (field) {
|
|
744
2212
|
case 1:
|
|
745
|
-
var value = /** @type {
|
|
746
|
-
msg.
|
|
2213
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
2214
|
+
msg.setLoyaltytransactionid(value);
|
|
747
2215
|
break;
|
|
748
2216
|
case 2:
|
|
749
2217
|
var value = /** @type {string} */ (reader.readString());
|
|
750
|
-
msg.
|
|
2218
|
+
msg.setDescription(value);
|
|
751
2219
|
break;
|
|
752
2220
|
case 3:
|
|
753
2221
|
var value = /** @type {string} */ (reader.readString());
|
|
754
|
-
msg.
|
|
2222
|
+
msg.setTimestamp(value);
|
|
755
2223
|
break;
|
|
756
2224
|
case 4:
|
|
757
2225
|
var value = /** @type {number} */ (reader.readInt32());
|
|
758
|
-
msg.
|
|
2226
|
+
msg.setPoints(value);
|
|
759
2227
|
break;
|
|
760
2228
|
case 5:
|
|
761
|
-
var value = /** @type {number} */ (reader.readInt32());
|
|
762
|
-
msg.setSpentamount(value);
|
|
763
|
-
break;
|
|
764
|
-
case 6:
|
|
765
|
-
var value = /** @type {number} */ (reader.readInt32());
|
|
766
|
-
msg.setMembershipnumberlength(value);
|
|
767
|
-
break;
|
|
768
|
-
case 7:
|
|
769
|
-
var value = /** @type {!proto.loyaltyprogramserviceapi.CreateProgramRequest.CreateProgramRequestMembershipNumberType} */ (reader.readEnum());
|
|
770
|
-
msg.setMembershipnumbertype(value);
|
|
771
|
-
break;
|
|
772
|
-
case 8:
|
|
773
2229
|
var value = /** @type {string} */ (reader.readString());
|
|
774
|
-
msg.
|
|
2230
|
+
msg.setStatus(value);
|
|
775
2231
|
break;
|
|
776
|
-
case
|
|
777
|
-
var value = /** @type {
|
|
778
|
-
msg.
|
|
2232
|
+
case 6:
|
|
2233
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
2234
|
+
msg.setMembershipid(value);
|
|
779
2235
|
break;
|
|
780
2236
|
default:
|
|
781
2237
|
reader.skipField();
|
|
@@ -789,10 +2245,10 @@ proto.loyaltyprogramserviceapi.CreateProgramRequest.deserializeBinaryFromReader
|
|
|
789
2245
|
/**
|
|
790
2246
|
* Class method variant: serializes the given message to binary data
|
|
791
2247
|
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
792
|
-
* @param {!proto.loyaltyprogramserviceapi.
|
|
2248
|
+
* @param {!proto.loyaltyprogramserviceapi.LoyaltyTransaction} message
|
|
793
2249
|
* @param {!jspb.BinaryWriter} writer
|
|
794
2250
|
*/
|
|
795
|
-
proto.loyaltyprogramserviceapi.
|
|
2251
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.serializeBinaryToWriter = function(message, writer) {
|
|
796
2252
|
message.serializeBinaryToWriter(writer);
|
|
797
2253
|
};
|
|
798
2254
|
|
|
@@ -801,7 +2257,7 @@ proto.loyaltyprogramserviceapi.CreateProgramRequest.serializeBinaryToWriter = fu
|
|
|
801
2257
|
* Serializes the message to binary data (in protobuf wire format).
|
|
802
2258
|
* @return {!Uint8Array}
|
|
803
2259
|
*/
|
|
804
|
-
proto.loyaltyprogramserviceapi.
|
|
2260
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.serializeBinary = function() {
|
|
805
2261
|
var writer = new jspb.BinaryWriter();
|
|
806
2262
|
this.serializeBinaryToWriter(writer);
|
|
807
2263
|
return writer.getResultBuffer();
|
|
@@ -813,228 +2269,153 @@ proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.serializeBinary =
|
|
|
813
2269
|
* writing to the given BinaryWriter.
|
|
814
2270
|
* @param {!jspb.BinaryWriter} writer
|
|
815
2271
|
*/
|
|
816
|
-
proto.loyaltyprogramserviceapi.
|
|
2272
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.serializeBinaryToWriter = function (writer) {
|
|
817
2273
|
var f = undefined;
|
|
818
|
-
f = this.
|
|
819
|
-
if (f
|
|
820
|
-
writer.
|
|
2274
|
+
f = this.getLoyaltytransactionid();
|
|
2275
|
+
if (f !== 0) {
|
|
2276
|
+
writer.writeInt64(
|
|
821
2277
|
1,
|
|
822
2278
|
f
|
|
823
2279
|
);
|
|
824
2280
|
}
|
|
825
|
-
f = this.
|
|
2281
|
+
f = this.getDescription();
|
|
826
2282
|
if (f.length > 0) {
|
|
827
2283
|
writer.writeString(
|
|
828
2284
|
2,
|
|
829
2285
|
f
|
|
830
2286
|
);
|
|
831
2287
|
}
|
|
832
|
-
f = this.
|
|
2288
|
+
f = this.getTimestamp();
|
|
833
2289
|
if (f.length > 0) {
|
|
834
2290
|
writer.writeString(
|
|
835
2291
|
3,
|
|
836
2292
|
f
|
|
837
2293
|
);
|
|
838
2294
|
}
|
|
839
|
-
f = this.
|
|
2295
|
+
f = this.getPoints();
|
|
840
2296
|
if (f !== 0) {
|
|
841
2297
|
writer.writeInt32(
|
|
842
2298
|
4,
|
|
843
2299
|
f
|
|
844
2300
|
);
|
|
845
2301
|
}
|
|
846
|
-
f = this.
|
|
847
|
-
if (f
|
|
848
|
-
writer.
|
|
2302
|
+
f = this.getStatus();
|
|
2303
|
+
if (f.length > 0) {
|
|
2304
|
+
writer.writeString(
|
|
849
2305
|
5,
|
|
850
2306
|
f
|
|
851
2307
|
);
|
|
852
2308
|
}
|
|
853
|
-
f = this.
|
|
2309
|
+
f = this.getMembershipid();
|
|
854
2310
|
if (f !== 0) {
|
|
855
|
-
writer.
|
|
2311
|
+
writer.writeInt64(
|
|
856
2312
|
6,
|
|
857
2313
|
f
|
|
858
2314
|
);
|
|
859
2315
|
}
|
|
860
|
-
f = this.getMembershipnumbertype();
|
|
861
|
-
if (f !== 0.0) {
|
|
862
|
-
writer.writeEnum(
|
|
863
|
-
7,
|
|
864
|
-
f
|
|
865
|
-
);
|
|
866
|
-
}
|
|
867
|
-
f = this.getTermsandconditionsurl();
|
|
868
|
-
if (f.length > 0) {
|
|
869
|
-
writer.writeString(
|
|
870
|
-
8,
|
|
871
|
-
f
|
|
872
|
-
);
|
|
873
|
-
}
|
|
874
|
-
f = this.getExternalurl();
|
|
875
|
-
if (f.length > 0) {
|
|
876
|
-
writer.writeString(
|
|
877
|
-
9,
|
|
878
|
-
f
|
|
879
|
-
);
|
|
880
|
-
}
|
|
881
2316
|
};
|
|
882
2317
|
|
|
883
2318
|
|
|
884
2319
|
/**
|
|
885
2320
|
* Creates a deep clone of this proto. No data is shared with the original.
|
|
886
|
-
* @return {!proto.loyaltyprogramserviceapi.
|
|
2321
|
+
* @return {!proto.loyaltyprogramserviceapi.LoyaltyTransaction} The clone.
|
|
887
2322
|
*/
|
|
888
|
-
proto.loyaltyprogramserviceapi.
|
|
889
|
-
return /** @type {!proto.loyaltyprogramserviceapi.
|
|
2323
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.cloneMessage = function() {
|
|
2324
|
+
return /** @type {!proto.loyaltyprogramserviceapi.LoyaltyTransaction} */ (jspb.Message.cloneMessage(this));
|
|
890
2325
|
};
|
|
891
2326
|
|
|
892
2327
|
|
|
893
2328
|
/**
|
|
894
|
-
* optional
|
|
895
|
-
* @return {
|
|
2329
|
+
* optional int64 loyaltyTransactionId = 1;
|
|
2330
|
+
* @return {number}
|
|
896
2331
|
*/
|
|
897
|
-
proto.loyaltyprogramserviceapi.
|
|
898
|
-
return /** @type {
|
|
2332
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.getLoyaltytransactionid = function() {
|
|
2333
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
899
2334
|
};
|
|
900
2335
|
|
|
901
2336
|
|
|
902
|
-
/** @param {
|
|
903
|
-
proto.loyaltyprogramserviceapi.
|
|
2337
|
+
/** @param {number} value */
|
|
2338
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.setLoyaltytransactionid = function(value) {
|
|
904
2339
|
jspb.Message.setField(this, 1, value);
|
|
905
2340
|
};
|
|
906
2341
|
|
|
907
2342
|
|
|
908
2343
|
/**
|
|
909
|
-
* optional string
|
|
2344
|
+
* optional string description = 2;
|
|
910
2345
|
* @return {string}
|
|
911
2346
|
*/
|
|
912
|
-
proto.loyaltyprogramserviceapi.
|
|
2347
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.getDescription = function() {
|
|
913
2348
|
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
|
|
914
2349
|
};
|
|
915
2350
|
|
|
916
2351
|
|
|
917
2352
|
/** @param {string} value */
|
|
918
|
-
proto.loyaltyprogramserviceapi.
|
|
2353
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.setDescription = function(value) {
|
|
919
2354
|
jspb.Message.setField(this, 2, value);
|
|
920
2355
|
};
|
|
921
2356
|
|
|
922
2357
|
|
|
923
2358
|
/**
|
|
924
|
-
* optional string
|
|
2359
|
+
* optional string timestamp = 3;
|
|
925
2360
|
* @return {string}
|
|
926
2361
|
*/
|
|
927
|
-
proto.loyaltyprogramserviceapi.
|
|
2362
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.getTimestamp = function() {
|
|
928
2363
|
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 3, ""));
|
|
929
2364
|
};
|
|
930
2365
|
|
|
931
2366
|
|
|
932
2367
|
/** @param {string} value */
|
|
933
|
-
proto.loyaltyprogramserviceapi.
|
|
2368
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.setTimestamp = function(value) {
|
|
934
2369
|
jspb.Message.setField(this, 3, value);
|
|
935
2370
|
};
|
|
936
2371
|
|
|
937
2372
|
|
|
938
2373
|
/**
|
|
939
|
-
* optional int32
|
|
2374
|
+
* optional int32 points = 4;
|
|
940
2375
|
* @return {number}
|
|
941
2376
|
*/
|
|
942
|
-
proto.loyaltyprogramserviceapi.
|
|
2377
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.getPoints = function() {
|
|
943
2378
|
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 4, 0));
|
|
944
2379
|
};
|
|
945
2380
|
|
|
946
2381
|
|
|
947
2382
|
/** @param {number} value */
|
|
948
|
-
proto.loyaltyprogramserviceapi.
|
|
2383
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.setPoints = function(value) {
|
|
949
2384
|
jspb.Message.setField(this, 4, value);
|
|
950
2385
|
};
|
|
951
2386
|
|
|
952
2387
|
|
|
953
2388
|
/**
|
|
954
|
-
* optional
|
|
955
|
-
* @return {number}
|
|
956
|
-
*/
|
|
957
|
-
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.getSpentamount = function() {
|
|
958
|
-
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 5, 0));
|
|
959
|
-
};
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
/** @param {number} value */
|
|
963
|
-
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.setSpentamount = function(value) {
|
|
964
|
-
jspb.Message.setField(this, 5, value);
|
|
965
|
-
};
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
/**
|
|
969
|
-
* optional int32 membershipNumberLength = 6;
|
|
970
|
-
* @return {number}
|
|
971
|
-
*/
|
|
972
|
-
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.getMembershipnumberlength = function() {
|
|
973
|
-
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 6, 0));
|
|
974
|
-
};
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
/** @param {number} value */
|
|
978
|
-
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.setMembershipnumberlength = function(value) {
|
|
979
|
-
jspb.Message.setField(this, 6, value);
|
|
980
|
-
};
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
/**
|
|
984
|
-
* optional CreateProgramRequestMembershipNumberType membershipNumberType = 7;
|
|
985
|
-
* @return {!proto.loyaltyprogramserviceapi.CreateProgramRequest.CreateProgramRequestMembershipNumberType}
|
|
986
|
-
*/
|
|
987
|
-
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.getMembershipnumbertype = function() {
|
|
988
|
-
return /** @type {!proto.loyaltyprogramserviceapi.CreateProgramRequest.CreateProgramRequestMembershipNumberType} */ (jspb.Message.getFieldProto3(this, 7, 0));
|
|
989
|
-
};
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
/** @param {!proto.loyaltyprogramserviceapi.CreateProgramRequest.CreateProgramRequestMembershipNumberType} value */
|
|
993
|
-
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.setMembershipnumbertype = function(value) {
|
|
994
|
-
jspb.Message.setField(this, 7, value);
|
|
995
|
-
};
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
/**
|
|
999
|
-
* optional string termsAndConditionsUrl = 8;
|
|
1000
|
-
* @return {string}
|
|
1001
|
-
*/
|
|
1002
|
-
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.getTermsandconditionsurl = function() {
|
|
1003
|
-
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 8, ""));
|
|
1004
|
-
};
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
/** @param {string} value */
|
|
1008
|
-
proto.loyaltyprogramserviceapi.CreateProgramRequest.prototype.setTermsandconditionsurl = function(value) {
|
|
1009
|
-
jspb.Message.setField(this, 8, value);
|
|
1010
|
-
};
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
/**
|
|
1014
|
-
* optional string externalUrl = 9;
|
|
2389
|
+
* optional string status = 5;
|
|
1015
2390
|
* @return {string}
|
|
1016
2391
|
*/
|
|
1017
|
-
proto.loyaltyprogramserviceapi.
|
|
1018
|
-
return /** @type {string} */ (jspb.Message.getFieldProto3(this,
|
|
2392
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.getStatus = function() {
|
|
2393
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 5, ""));
|
|
1019
2394
|
};
|
|
1020
2395
|
|
|
1021
2396
|
|
|
1022
2397
|
/** @param {string} value */
|
|
1023
|
-
proto.loyaltyprogramserviceapi.
|
|
1024
|
-
jspb.Message.setField(this,
|
|
2398
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.setStatus = function(value) {
|
|
2399
|
+
jspb.Message.setField(this, 5, value);
|
|
1025
2400
|
};
|
|
1026
2401
|
|
|
1027
2402
|
|
|
1028
2403
|
/**
|
|
1029
|
-
*
|
|
2404
|
+
* optional int64 membershipId = 6;
|
|
2405
|
+
* @return {number}
|
|
1030
2406
|
*/
|
|
1031
|
-
proto.loyaltyprogramserviceapi.
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
2407
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.getMembershipid = function() {
|
|
2408
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 6, 0));
|
|
2409
|
+
};
|
|
2410
|
+
|
|
2411
|
+
|
|
2412
|
+
/** @param {number} value */
|
|
2413
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.setMembershipid = function(value) {
|
|
2414
|
+
jspb.Message.setField(this, 6, value);
|
|
1035
2415
|
};
|
|
1036
2416
|
|
|
1037
2417
|
|
|
2418
|
+
|
|
1038
2419
|
/**
|
|
1039
2420
|
* Generated by JsPbCodeGenerator.
|
|
1040
2421
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -1045,13 +2426,20 @@ proto.loyaltyprogramserviceapi.CreateProgramRequest.CreateProgramRequestMembersh
|
|
|
1045
2426
|
* @extends {jspb.Message}
|
|
1046
2427
|
* @constructor
|
|
1047
2428
|
*/
|
|
1048
|
-
proto.loyaltyprogramserviceapi.
|
|
1049
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
2429
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse = function(opt_data) {
|
|
2430
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.repeatedFields_, null);
|
|
1050
2431
|
};
|
|
1051
|
-
goog.inherits(proto.loyaltyprogramserviceapi.
|
|
2432
|
+
goog.inherits(proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse, jspb.Message);
|
|
1052
2433
|
if (goog.DEBUG && !COMPILED) {
|
|
1053
|
-
proto.loyaltyprogramserviceapi.
|
|
2434
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.displayName = 'proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse';
|
|
1054
2435
|
}
|
|
2436
|
+
/**
|
|
2437
|
+
* List of repeated fields within this message type.
|
|
2438
|
+
* @private {!Array<number>}
|
|
2439
|
+
* @const
|
|
2440
|
+
*/
|
|
2441
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.repeatedFields_ = [2];
|
|
2442
|
+
|
|
1055
2443
|
|
|
1056
2444
|
|
|
1057
2445
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -1065,8 +2453,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
1065
2453
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
1066
2454
|
* @return {!Object}
|
|
1067
2455
|
*/
|
|
1068
|
-
proto.loyaltyprogramserviceapi.
|
|
1069
|
-
return proto.loyaltyprogramserviceapi.
|
|
2456
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2457
|
+
return proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.toObject(opt_includeInstance, this);
|
|
1070
2458
|
};
|
|
1071
2459
|
|
|
1072
2460
|
|
|
@@ -1075,12 +2463,18 @@ proto.loyaltyprogramserviceapi.GetMembershipByIdRequest.prototype.toObject = fun
|
|
|
1075
2463
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
1076
2464
|
* instance for transitional soy proto support:
|
|
1077
2465
|
* http://goto/soy-param-migration
|
|
1078
|
-
* @param {!proto.loyaltyprogramserviceapi.
|
|
2466
|
+
* @param {!proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse} msg The msg instance to transform.
|
|
1079
2467
|
* @return {!Object}
|
|
1080
2468
|
*/
|
|
1081
|
-
proto.loyaltyprogramserviceapi.
|
|
2469
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.toObject = function(includeInstance, msg) {
|
|
1082
2470
|
var f, obj = {
|
|
1083
|
-
|
|
2471
|
+
responsecode: (f = msg.getResponsecode()) && proto.loyaltyprogramserviceapi.ResponseCode.toObject(includeInstance, f),
|
|
2472
|
+
loyaltytransactionsList: jspb.Message.toObjectList(msg.getLoyaltytransactionsList(),
|
|
2473
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.toObject, includeInstance),
|
|
2474
|
+
page: msg.getPage(),
|
|
2475
|
+
limit: msg.getLimit(),
|
|
2476
|
+
total: msg.getTotal(),
|
|
2477
|
+
totalpages: msg.getTotalpages()
|
|
1084
2478
|
};
|
|
1085
2479
|
|
|
1086
2480
|
if (includeInstance) {
|
|
@@ -1094,23 +2488,23 @@ proto.loyaltyprogramserviceapi.GetMembershipByIdRequest.toObject = function(incl
|
|
|
1094
2488
|
/**
|
|
1095
2489
|
* Deserializes binary data (in protobuf wire format).
|
|
1096
2490
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1097
|
-
* @return {!proto.loyaltyprogramserviceapi.
|
|
2491
|
+
* @return {!proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse}
|
|
1098
2492
|
*/
|
|
1099
|
-
proto.loyaltyprogramserviceapi.
|
|
2493
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.deserializeBinary = function(bytes) {
|
|
1100
2494
|
var reader = new jspb.BinaryReader(bytes);
|
|
1101
|
-
var msg = new proto.loyaltyprogramserviceapi.
|
|
1102
|
-
return proto.loyaltyprogramserviceapi.
|
|
2495
|
+
var msg = new proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse;
|
|
2496
|
+
return proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.deserializeBinaryFromReader(msg, reader);
|
|
1103
2497
|
};
|
|
1104
2498
|
|
|
1105
2499
|
|
|
1106
2500
|
/**
|
|
1107
2501
|
* Deserializes binary data (in protobuf wire format) from the
|
|
1108
2502
|
* given reader into the given message object.
|
|
1109
|
-
* @param {!proto.loyaltyprogramserviceapi.
|
|
2503
|
+
* @param {!proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse} msg The message object to deserialize into.
|
|
1110
2504
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1111
|
-
* @return {!proto.loyaltyprogramserviceapi.
|
|
2505
|
+
* @return {!proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse}
|
|
1112
2506
|
*/
|
|
1113
|
-
proto.loyaltyprogramserviceapi.
|
|
2507
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1114
2508
|
while (reader.nextField()) {
|
|
1115
2509
|
if (reader.isEndGroup()) {
|
|
1116
2510
|
break;
|
|
@@ -1118,8 +2512,31 @@ proto.loyaltyprogramserviceapi.GetMembershipByIdRequest.deserializeBinaryFromRea
|
|
|
1118
2512
|
var field = reader.getFieldNumber();
|
|
1119
2513
|
switch (field) {
|
|
1120
2514
|
case 1:
|
|
2515
|
+
var value = new proto.loyaltyprogramserviceapi.ResponseCode;
|
|
2516
|
+
reader.readMessage(value,proto.loyaltyprogramserviceapi.ResponseCode.deserializeBinaryFromReader);
|
|
2517
|
+
msg.setResponsecode(value);
|
|
2518
|
+
break;
|
|
2519
|
+
case 2:
|
|
2520
|
+
var value = new proto.loyaltyprogramserviceapi.LoyaltyTransaction;
|
|
2521
|
+
reader.readMessage(value,proto.loyaltyprogramserviceapi.LoyaltyTransaction.deserializeBinaryFromReader);
|
|
2522
|
+
msg.getLoyaltytransactionsList().push(value);
|
|
2523
|
+
msg.setLoyaltytransactionsList(msg.getLoyaltytransactionsList());
|
|
2524
|
+
break;
|
|
2525
|
+
case 3:
|
|
2526
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
2527
|
+
msg.setPage(value);
|
|
2528
|
+
break;
|
|
2529
|
+
case 4:
|
|
2530
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
2531
|
+
msg.setLimit(value);
|
|
2532
|
+
break;
|
|
2533
|
+
case 5:
|
|
1121
2534
|
var value = /** @type {number} */ (reader.readInt64());
|
|
1122
|
-
msg.
|
|
2535
|
+
msg.setTotal(value);
|
|
2536
|
+
break;
|
|
2537
|
+
case 6:
|
|
2538
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
2539
|
+
msg.setTotalpages(value);
|
|
1123
2540
|
break;
|
|
1124
2541
|
default:
|
|
1125
2542
|
reader.skipField();
|
|
@@ -1133,10 +2550,10 @@ proto.loyaltyprogramserviceapi.GetMembershipByIdRequest.deserializeBinaryFromRea
|
|
|
1133
2550
|
/**
|
|
1134
2551
|
* Class method variant: serializes the given message to binary data
|
|
1135
2552
|
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
1136
|
-
* @param {!proto.loyaltyprogramserviceapi.
|
|
2553
|
+
* @param {!proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse} message
|
|
1137
2554
|
* @param {!jspb.BinaryWriter} writer
|
|
1138
2555
|
*/
|
|
1139
|
-
proto.loyaltyprogramserviceapi.
|
|
2556
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1140
2557
|
message.serializeBinaryToWriter(writer);
|
|
1141
2558
|
};
|
|
1142
2559
|
|
|
@@ -1145,7 +2562,7 @@ proto.loyaltyprogramserviceapi.GetMembershipByIdRequest.serializeBinaryToWriter
|
|
|
1145
2562
|
* Serializes the message to binary data (in protobuf wire format).
|
|
1146
2563
|
* @return {!Uint8Array}
|
|
1147
2564
|
*/
|
|
1148
|
-
proto.loyaltyprogramserviceapi.
|
|
2565
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.serializeBinary = function() {
|
|
1149
2566
|
var writer = new jspb.BinaryWriter();
|
|
1150
2567
|
this.serializeBinaryToWriter(writer);
|
|
1151
2568
|
return writer.getResultBuffer();
|
|
@@ -1157,12 +2574,49 @@ proto.loyaltyprogramserviceapi.GetMembershipByIdRequest.prototype.serializeBinar
|
|
|
1157
2574
|
* writing to the given BinaryWriter.
|
|
1158
2575
|
* @param {!jspb.BinaryWriter} writer
|
|
1159
2576
|
*/
|
|
1160
|
-
proto.loyaltyprogramserviceapi.
|
|
2577
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.serializeBinaryToWriter = function (writer) {
|
|
1161
2578
|
var f = undefined;
|
|
1162
|
-
f = this.
|
|
2579
|
+
f = this.getResponsecode();
|
|
2580
|
+
if (f != null) {
|
|
2581
|
+
writer.writeMessage(
|
|
2582
|
+
1,
|
|
2583
|
+
f,
|
|
2584
|
+
proto.loyaltyprogramserviceapi.ResponseCode.serializeBinaryToWriter
|
|
2585
|
+
);
|
|
2586
|
+
}
|
|
2587
|
+
f = this.getLoyaltytransactionsList();
|
|
2588
|
+
if (f.length > 0) {
|
|
2589
|
+
writer.writeRepeatedMessage(
|
|
2590
|
+
2,
|
|
2591
|
+
f,
|
|
2592
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.serializeBinaryToWriter
|
|
2593
|
+
);
|
|
2594
|
+
}
|
|
2595
|
+
f = this.getPage();
|
|
2596
|
+
if (f !== 0) {
|
|
2597
|
+
writer.writeInt32(
|
|
2598
|
+
3,
|
|
2599
|
+
f
|
|
2600
|
+
);
|
|
2601
|
+
}
|
|
2602
|
+
f = this.getLimit();
|
|
2603
|
+
if (f !== 0) {
|
|
2604
|
+
writer.writeInt32(
|
|
2605
|
+
4,
|
|
2606
|
+
f
|
|
2607
|
+
);
|
|
2608
|
+
}
|
|
2609
|
+
f = this.getTotal();
|
|
1163
2610
|
if (f !== 0) {
|
|
1164
2611
|
writer.writeInt64(
|
|
1165
|
-
|
|
2612
|
+
5,
|
|
2613
|
+
f
|
|
2614
|
+
);
|
|
2615
|
+
}
|
|
2616
|
+
f = this.getTotalpages();
|
|
2617
|
+
if (f !== 0) {
|
|
2618
|
+
writer.writeInt32(
|
|
2619
|
+
6,
|
|
1166
2620
|
f
|
|
1167
2621
|
);
|
|
1168
2622
|
}
|
|
@@ -1171,211 +2625,123 @@ proto.loyaltyprogramserviceapi.GetMembershipByIdRequest.prototype.serializeBinar
|
|
|
1171
2625
|
|
|
1172
2626
|
/**
|
|
1173
2627
|
* Creates a deep clone of this proto. No data is shared with the original.
|
|
1174
|
-
* @return {!proto.loyaltyprogramserviceapi.
|
|
2628
|
+
* @return {!proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse} The clone.
|
|
1175
2629
|
*/
|
|
1176
|
-
proto.loyaltyprogramserviceapi.
|
|
1177
|
-
return /** @type {!proto.loyaltyprogramserviceapi.
|
|
2630
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.cloneMessage = function() {
|
|
2631
|
+
return /** @type {!proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse} */ (jspb.Message.cloneMessage(this));
|
|
1178
2632
|
};
|
|
1179
2633
|
|
|
1180
2634
|
|
|
1181
2635
|
/**
|
|
1182
|
-
* optional
|
|
1183
|
-
* @return {
|
|
2636
|
+
* optional ResponseCode responseCode = 1;
|
|
2637
|
+
* @return {proto.loyaltyprogramserviceapi.ResponseCode}
|
|
1184
2638
|
*/
|
|
1185
|
-
proto.loyaltyprogramserviceapi.
|
|
1186
|
-
return /** @type
|
|
2639
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.getResponsecode = function() {
|
|
2640
|
+
return /** @type{proto.loyaltyprogramserviceapi.ResponseCode} */ (
|
|
2641
|
+
jspb.Message.getWrapperField(this, proto.loyaltyprogramserviceapi.ResponseCode, 1));
|
|
1187
2642
|
};
|
|
1188
2643
|
|
|
1189
2644
|
|
|
1190
|
-
/** @param {
|
|
1191
|
-
proto.loyaltyprogramserviceapi.
|
|
1192
|
-
jspb.Message.
|
|
2645
|
+
/** @param {proto.loyaltyprogramserviceapi.ResponseCode|undefined} value */
|
|
2646
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.setResponsecode = function(value) {
|
|
2647
|
+
jspb.Message.setWrapperField(this, 1, value);
|
|
1193
2648
|
};
|
|
1194
2649
|
|
|
1195
2650
|
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
* Generated by JsPbCodeGenerator.
|
|
1199
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1200
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
1201
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
1202
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
1203
|
-
* valid.
|
|
1204
|
-
* @extends {jspb.Message}
|
|
1205
|
-
* @constructor
|
|
1206
|
-
*/
|
|
1207
|
-
proto.loyaltyprogramserviceapi.LinkMembershipRequest = function(opt_data) {
|
|
1208
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
2651
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.clearResponsecode = function() {
|
|
2652
|
+
this.setResponsecode(undefined);
|
|
1209
2653
|
};
|
|
1210
|
-
goog.inherits(proto.loyaltyprogramserviceapi.LinkMembershipRequest, jspb.Message);
|
|
1211
|
-
if (goog.DEBUG && !COMPILED) {
|
|
1212
|
-
proto.loyaltyprogramserviceapi.LinkMembershipRequest.displayName = 'proto.loyaltyprogramserviceapi.LinkMembershipRequest';
|
|
1213
|
-
}
|
|
1214
2654
|
|
|
1215
2655
|
|
|
1216
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1217
2656
|
/**
|
|
1218
|
-
*
|
|
1219
|
-
*
|
|
1220
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1221
|
-
* For the list of reserved names please see:
|
|
1222
|
-
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
1223
|
-
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
1224
|
-
* for transitional soy proto support: http://goto/soy-param-migration
|
|
1225
|
-
* @return {!Object}
|
|
2657
|
+
* Returns whether this field is set.
|
|
2658
|
+
* @return{!boolean}
|
|
1226
2659
|
*/
|
|
1227
|
-
proto.loyaltyprogramserviceapi.
|
|
1228
|
-
return
|
|
2660
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.hasResponsecode = function() {
|
|
2661
|
+
return jspb.Message.getField(this, 1) != null;
|
|
1229
2662
|
};
|
|
1230
2663
|
|
|
1231
2664
|
|
|
1232
2665
|
/**
|
|
1233
|
-
*
|
|
1234
|
-
*
|
|
1235
|
-
*
|
|
1236
|
-
*
|
|
1237
|
-
* @param {!proto.loyaltyprogramserviceapi.LinkMembershipRequest} msg The msg instance to transform.
|
|
1238
|
-
* @return {!Object}
|
|
2666
|
+
* repeated LoyaltyTransaction loyaltyTransactions = 2;
|
|
2667
|
+
* If you change this array by adding, removing or replacing elements, or if you
|
|
2668
|
+
* replace the array itself, then you must call the setter to update it.
|
|
2669
|
+
* @return {!Array.<!proto.loyaltyprogramserviceapi.LoyaltyTransaction>}
|
|
1239
2670
|
*/
|
|
1240
|
-
proto.loyaltyprogramserviceapi.
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
membershipnumber: msg.getMembershipnumber()
|
|
1244
|
-
};
|
|
1245
|
-
|
|
1246
|
-
if (includeInstance) {
|
|
1247
|
-
obj.$jspbMessageInstance = msg;
|
|
1248
|
-
}
|
|
1249
|
-
return obj;
|
|
2671
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.getLoyaltytransactionsList = function() {
|
|
2672
|
+
return /** @type{!Array.<!proto.loyaltyprogramserviceapi.LoyaltyTransaction>} */ (
|
|
2673
|
+
jspb.Message.getRepeatedWrapperField(this, proto.loyaltyprogramserviceapi.LoyaltyTransaction, 2));
|
|
1250
2674
|
};
|
|
1251
|
-
}
|
|
1252
2675
|
|
|
1253
2676
|
|
|
1254
|
-
/**
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
* @return {!proto.loyaltyprogramserviceapi.LinkMembershipRequest}
|
|
1258
|
-
*/
|
|
1259
|
-
proto.loyaltyprogramserviceapi.LinkMembershipRequest.deserializeBinary = function(bytes) {
|
|
1260
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
1261
|
-
var msg = new proto.loyaltyprogramserviceapi.LinkMembershipRequest;
|
|
1262
|
-
return proto.loyaltyprogramserviceapi.LinkMembershipRequest.deserializeBinaryFromReader(msg, reader);
|
|
2677
|
+
/** @param {Array.<!proto.loyaltyprogramserviceapi.LoyaltyTransaction>} value */
|
|
2678
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.setLoyaltytransactionsList = function(value) {
|
|
2679
|
+
jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
1263
2680
|
};
|
|
1264
2681
|
|
|
1265
2682
|
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
* given reader into the given message object.
|
|
1269
|
-
* @param {!proto.loyaltyprogramserviceapi.LinkMembershipRequest} msg The message object to deserialize into.
|
|
1270
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1271
|
-
* @return {!proto.loyaltyprogramserviceapi.LinkMembershipRequest}
|
|
1272
|
-
*/
|
|
1273
|
-
proto.loyaltyprogramserviceapi.LinkMembershipRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1274
|
-
while (reader.nextField()) {
|
|
1275
|
-
if (reader.isEndGroup()) {
|
|
1276
|
-
break;
|
|
1277
|
-
}
|
|
1278
|
-
var field = reader.getFieldNumber();
|
|
1279
|
-
switch (field) {
|
|
1280
|
-
case 1:
|
|
1281
|
-
var value = /** @type {number} */ (reader.readInt64());
|
|
1282
|
-
msg.setProgramid(value);
|
|
1283
|
-
break;
|
|
1284
|
-
case 2:
|
|
1285
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1286
|
-
msg.setMembershipnumber(value);
|
|
1287
|
-
break;
|
|
1288
|
-
default:
|
|
1289
|
-
reader.skipField();
|
|
1290
|
-
break;
|
|
1291
|
-
}
|
|
1292
|
-
}
|
|
1293
|
-
return msg;
|
|
2683
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.clearLoyaltytransactionsList = function() {
|
|
2684
|
+
this.setLoyaltytransactionsList([]);
|
|
1294
2685
|
};
|
|
1295
2686
|
|
|
1296
2687
|
|
|
1297
2688
|
/**
|
|
1298
|
-
*
|
|
1299
|
-
*
|
|
1300
|
-
* @param {!proto.loyaltyprogramserviceapi.LinkMembershipRequest} message
|
|
1301
|
-
* @param {!jspb.BinaryWriter} writer
|
|
2689
|
+
* optional int32 page = 3;
|
|
2690
|
+
* @return {number}
|
|
1302
2691
|
*/
|
|
1303
|
-
proto.loyaltyprogramserviceapi.
|
|
1304
|
-
|
|
2692
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.getPage = function() {
|
|
2693
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 3, 0));
|
|
1305
2694
|
};
|
|
1306
2695
|
|
|
1307
2696
|
|
|
1308
|
-
/**
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
*/
|
|
1312
|
-
proto.loyaltyprogramserviceapi.LinkMembershipRequest.prototype.serializeBinary = function() {
|
|
1313
|
-
var writer = new jspb.BinaryWriter();
|
|
1314
|
-
this.serializeBinaryToWriter(writer);
|
|
1315
|
-
return writer.getResultBuffer();
|
|
2697
|
+
/** @param {number} value */
|
|
2698
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.setPage = function(value) {
|
|
2699
|
+
jspb.Message.setField(this, 3, value);
|
|
1316
2700
|
};
|
|
1317
2701
|
|
|
1318
2702
|
|
|
1319
2703
|
/**
|
|
1320
|
-
*
|
|
1321
|
-
*
|
|
1322
|
-
* @param {!jspb.BinaryWriter} writer
|
|
2704
|
+
* optional int32 limit = 4;
|
|
2705
|
+
* @return {number}
|
|
1323
2706
|
*/
|
|
1324
|
-
proto.loyaltyprogramserviceapi.
|
|
1325
|
-
|
|
1326
|
-
f = this.getProgramid();
|
|
1327
|
-
if (f !== 0) {
|
|
1328
|
-
writer.writeInt64(
|
|
1329
|
-
1,
|
|
1330
|
-
f
|
|
1331
|
-
);
|
|
1332
|
-
}
|
|
1333
|
-
f = this.getMembershipnumber();
|
|
1334
|
-
if (f.length > 0) {
|
|
1335
|
-
writer.writeString(
|
|
1336
|
-
2,
|
|
1337
|
-
f
|
|
1338
|
-
);
|
|
1339
|
-
}
|
|
2707
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.getLimit = function() {
|
|
2708
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 4, 0));
|
|
1340
2709
|
};
|
|
1341
2710
|
|
|
1342
2711
|
|
|
1343
|
-
/**
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
*/
|
|
1347
|
-
proto.loyaltyprogramserviceapi.LinkMembershipRequest.prototype.cloneMessage = function() {
|
|
1348
|
-
return /** @type {!proto.loyaltyprogramserviceapi.LinkMembershipRequest} */ (jspb.Message.cloneMessage(this));
|
|
2712
|
+
/** @param {number} value */
|
|
2713
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.setLimit = function(value) {
|
|
2714
|
+
jspb.Message.setField(this, 4, value);
|
|
1349
2715
|
};
|
|
1350
2716
|
|
|
1351
2717
|
|
|
1352
2718
|
/**
|
|
1353
|
-
* optional int64
|
|
2719
|
+
* optional int64 total = 5;
|
|
1354
2720
|
* @return {number}
|
|
1355
2721
|
*/
|
|
1356
|
-
proto.loyaltyprogramserviceapi.
|
|
1357
|
-
return /** @type {number} */ (jspb.Message.getFieldProto3(this,
|
|
2722
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.getTotal = function() {
|
|
2723
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 5, 0));
|
|
1358
2724
|
};
|
|
1359
2725
|
|
|
1360
2726
|
|
|
1361
2727
|
/** @param {number} value */
|
|
1362
|
-
proto.loyaltyprogramserviceapi.
|
|
1363
|
-
jspb.Message.setField(this,
|
|
2728
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.setTotal = function(value) {
|
|
2729
|
+
jspb.Message.setField(this, 5, value);
|
|
1364
2730
|
};
|
|
1365
2731
|
|
|
1366
2732
|
|
|
1367
2733
|
/**
|
|
1368
|
-
* optional
|
|
1369
|
-
* @return {
|
|
2734
|
+
* optional int32 totalPages = 6;
|
|
2735
|
+
* @return {number}
|
|
1370
2736
|
*/
|
|
1371
|
-
proto.loyaltyprogramserviceapi.
|
|
1372
|
-
return /** @type {
|
|
2737
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.getTotalpages = function() {
|
|
2738
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 6, 0));
|
|
1373
2739
|
};
|
|
1374
2740
|
|
|
1375
2741
|
|
|
1376
|
-
/** @param {
|
|
1377
|
-
proto.loyaltyprogramserviceapi.
|
|
1378
|
-
jspb.Message.setField(this,
|
|
2742
|
+
/** @param {number} value */
|
|
2743
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse.prototype.setTotalpages = function(value) {
|
|
2744
|
+
jspb.Message.setField(this, 6, value);
|
|
1379
2745
|
};
|
|
1380
2746
|
|
|
1381
2747
|
|