@sniipwebmaster/loyalty-program-client-grpcweb 22.17.427 → 22.17.443
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.
|
@@ -74,6 +74,86 @@ proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServicePromiseClient =
|
|
|
74
74
|
};
|
|
75
75
|
|
|
76
76
|
|
|
77
|
+
/**
|
|
78
|
+
* @const
|
|
79
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
80
|
+
* !proto.loyaltyprogramserviceapi.CalculatePointsRequest,
|
|
81
|
+
* !proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse>}
|
|
82
|
+
*/
|
|
83
|
+
const methodDescriptor_LoyaltyProgramServiceAPIService_CalculatePoints = new grpc.web.MethodDescriptor(
|
|
84
|
+
'/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/CalculatePoints',
|
|
85
|
+
grpc.web.MethodType.UNARY,
|
|
86
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest,
|
|
87
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse,
|
|
88
|
+
/**
|
|
89
|
+
* @param {!proto.loyaltyprogramserviceapi.CalculatePointsRequest} request
|
|
90
|
+
* @return {!Uint8Array}
|
|
91
|
+
*/
|
|
92
|
+
function(request) {
|
|
93
|
+
return request.serializeBinary();
|
|
94
|
+
},
|
|
95
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.deserializeBinary
|
|
96
|
+
);
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @const
|
|
101
|
+
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
102
|
+
* !proto.loyaltyprogramserviceapi.CalculatePointsRequest,
|
|
103
|
+
* !proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse>}
|
|
104
|
+
*/
|
|
105
|
+
const methodInfo_LoyaltyProgramServiceAPIService_CalculatePoints = new grpc.web.AbstractClientBase.MethodInfo(
|
|
106
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse,
|
|
107
|
+
/**
|
|
108
|
+
* @param {!proto.loyaltyprogramserviceapi.CalculatePointsRequest} request
|
|
109
|
+
* @return {!Uint8Array}
|
|
110
|
+
*/
|
|
111
|
+
function(request) {
|
|
112
|
+
return request.serializeBinary();
|
|
113
|
+
},
|
|
114
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.deserializeBinary
|
|
115
|
+
);
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* @param {!proto.loyaltyprogramserviceapi.CalculatePointsRequest} request The
|
|
120
|
+
* request proto
|
|
121
|
+
* @param {?Object<string, string>} metadata User defined
|
|
122
|
+
* call metadata
|
|
123
|
+
* @param {function(?grpc.web.Error, ?proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse)}
|
|
124
|
+
* callback The callback function(error, response)
|
|
125
|
+
* @return {!grpc.web.ClientReadableStream<!proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse>|undefined}
|
|
126
|
+
* The XHR Node Readable Stream
|
|
127
|
+
*/
|
|
128
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServiceClient.prototype.calculatePoints =
|
|
129
|
+
function(request, metadata, callback) {
|
|
130
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
131
|
+
'/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/CalculatePoints',
|
|
132
|
+
request,
|
|
133
|
+
metadata || {},
|
|
134
|
+
methodDescriptor_LoyaltyProgramServiceAPIService_CalculatePoints,
|
|
135
|
+
callback);
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @param {!proto.loyaltyprogramserviceapi.CalculatePointsRequest} request The
|
|
141
|
+
* request proto
|
|
142
|
+
* @param {?Object<string, string>} metadata User defined
|
|
143
|
+
* call metadata
|
|
144
|
+
* @return {!Promise<!proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse>}
|
|
145
|
+
* Promise that resolves to the response
|
|
146
|
+
*/
|
|
147
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServicePromiseClient.prototype.calculatePoints =
|
|
148
|
+
function(request, metadata) {
|
|
149
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
150
|
+
'/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/CalculatePoints',
|
|
151
|
+
request,
|
|
152
|
+
metadata || {},
|
|
153
|
+
methodDescriptor_LoyaltyProgramServiceAPIService_CalculatePoints);
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
|
|
77
157
|
/**
|
|
78
158
|
* @const
|
|
79
159
|
* @type {!grpc.web.MethodDescriptor<
|
|
@@ -234,6 +314,86 @@ proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServicePromiseClient.prot
|
|
|
234
314
|
};
|
|
235
315
|
|
|
236
316
|
|
|
317
|
+
/**
|
|
318
|
+
* @const
|
|
319
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
320
|
+
* !proto.google.protobuf.Empty,
|
|
321
|
+
* !proto.loyaltyprogramserviceapi.PaymentMethodsResponse>}
|
|
322
|
+
*/
|
|
323
|
+
const methodDescriptor_LoyaltyProgramServiceAPIService_GetAllPaymentMethods = new grpc.web.MethodDescriptor(
|
|
324
|
+
'/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/GetAllPaymentMethods',
|
|
325
|
+
grpc.web.MethodType.UNARY,
|
|
326
|
+
google_protobuf_empty_pb.Empty,
|
|
327
|
+
proto.loyaltyprogramserviceapi.PaymentMethodsResponse,
|
|
328
|
+
/**
|
|
329
|
+
* @param {!proto.google.protobuf.Empty} request
|
|
330
|
+
* @return {!Uint8Array}
|
|
331
|
+
*/
|
|
332
|
+
function(request) {
|
|
333
|
+
return request.serializeBinary();
|
|
334
|
+
},
|
|
335
|
+
proto.loyaltyprogramserviceapi.PaymentMethodsResponse.deserializeBinary
|
|
336
|
+
);
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* @const
|
|
341
|
+
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
342
|
+
* !proto.google.protobuf.Empty,
|
|
343
|
+
* !proto.loyaltyprogramserviceapi.PaymentMethodsResponse>}
|
|
344
|
+
*/
|
|
345
|
+
const methodInfo_LoyaltyProgramServiceAPIService_GetAllPaymentMethods = new grpc.web.AbstractClientBase.MethodInfo(
|
|
346
|
+
proto.loyaltyprogramserviceapi.PaymentMethodsResponse,
|
|
347
|
+
/**
|
|
348
|
+
* @param {!proto.google.protobuf.Empty} request
|
|
349
|
+
* @return {!Uint8Array}
|
|
350
|
+
*/
|
|
351
|
+
function(request) {
|
|
352
|
+
return request.serializeBinary();
|
|
353
|
+
},
|
|
354
|
+
proto.loyaltyprogramserviceapi.PaymentMethodsResponse.deserializeBinary
|
|
355
|
+
);
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* @param {!proto.google.protobuf.Empty} request The
|
|
360
|
+
* request proto
|
|
361
|
+
* @param {?Object<string, string>} metadata User defined
|
|
362
|
+
* call metadata
|
|
363
|
+
* @param {function(?grpc.web.Error, ?proto.loyaltyprogramserviceapi.PaymentMethodsResponse)}
|
|
364
|
+
* callback The callback function(error, response)
|
|
365
|
+
* @return {!grpc.web.ClientReadableStream<!proto.loyaltyprogramserviceapi.PaymentMethodsResponse>|undefined}
|
|
366
|
+
* The XHR Node Readable Stream
|
|
367
|
+
*/
|
|
368
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServiceClient.prototype.getAllPaymentMethods =
|
|
369
|
+
function(request, metadata, callback) {
|
|
370
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
371
|
+
'/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/GetAllPaymentMethods',
|
|
372
|
+
request,
|
|
373
|
+
metadata || {},
|
|
374
|
+
methodDescriptor_LoyaltyProgramServiceAPIService_GetAllPaymentMethods,
|
|
375
|
+
callback);
|
|
376
|
+
};
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* @param {!proto.google.protobuf.Empty} request The
|
|
381
|
+
* request proto
|
|
382
|
+
* @param {?Object<string, string>} metadata User defined
|
|
383
|
+
* call metadata
|
|
384
|
+
* @return {!Promise<!proto.loyaltyprogramserviceapi.PaymentMethodsResponse>}
|
|
385
|
+
* Promise that resolves to the response
|
|
386
|
+
*/
|
|
387
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServicePromiseClient.prototype.getAllPaymentMethods =
|
|
388
|
+
function(request, metadata) {
|
|
389
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
390
|
+
'/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/GetAllPaymentMethods',
|
|
391
|
+
request,
|
|
392
|
+
metadata || {},
|
|
393
|
+
methodDescriptor_LoyaltyProgramServiceAPIService_GetAllPaymentMethods);
|
|
394
|
+
};
|
|
395
|
+
|
|
396
|
+
|
|
237
397
|
/**
|
|
238
398
|
* @const
|
|
239
399
|
* @type {!grpc.web.MethodDescriptor<
|
|
@@ -11,6 +11,8 @@ 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);
|
|
@@ -21,6 +23,7 @@ goog.exportSymbol('proto.loyaltyprogramserviceapi.LinkMembershipRequest', null,
|
|
|
21
23
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.MembershipDetail', null, global);
|
|
22
24
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.MembershipDetailResponse', null, global);
|
|
23
25
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.MembershipDetailsResponse', null, global);
|
|
26
|
+
goog.exportSymbol('proto.loyaltyprogramserviceapi.PaymentMethodsResponse', null, global);
|
|
24
27
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.ProgramDetail', null, global);
|
|
25
28
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.ProgramDetail.ProgramDetailMembershipNumberType', null, global);
|
|
26
29
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.ProgramDetailResponse', null, global);
|
|
@@ -31,6 +34,476 @@ goog.exportSymbol('proto.loyaltyprogramserviceapi.UnLinkMembershipRequest', null
|
|
|
31
34
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.ValidateMembershipRequest', null, global);
|
|
32
35
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.ValidateMembershipResponse', null, global);
|
|
33
36
|
|
|
37
|
+
/**
|
|
38
|
+
* Generated by JsPbCodeGenerator.
|
|
39
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
40
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
41
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
42
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
43
|
+
* valid.
|
|
44
|
+
* @extends {jspb.Message}
|
|
45
|
+
* @constructor
|
|
46
|
+
*/
|
|
47
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest = function(opt_data) {
|
|
48
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
49
|
+
};
|
|
50
|
+
goog.inherits(proto.loyaltyprogramserviceapi.CalculatePointsRequest, jspb.Message);
|
|
51
|
+
if (goog.DEBUG && !COMPILED) {
|
|
52
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest.displayName = 'proto.loyaltyprogramserviceapi.CalculatePointsRequest';
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
57
|
+
/**
|
|
58
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
59
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
60
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
61
|
+
* For the list of reserved names please see:
|
|
62
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
63
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
64
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
65
|
+
* @return {!Object}
|
|
66
|
+
*/
|
|
67
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
68
|
+
return proto.loyaltyprogramserviceapi.CalculatePointsRequest.toObject(opt_includeInstance, this);
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Static version of the {@see toObject} method.
|
|
74
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
75
|
+
* instance for transitional soy proto support:
|
|
76
|
+
* http://goto/soy-param-migration
|
|
77
|
+
* @param {!proto.loyaltyprogramserviceapi.CalculatePointsRequest} msg The msg instance to transform.
|
|
78
|
+
* @return {!Object}
|
|
79
|
+
*/
|
|
80
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest.toObject = function(includeInstance, msg) {
|
|
81
|
+
var f, obj = {
|
|
82
|
+
membershipid: msg.getMembershipid(),
|
|
83
|
+
paymentmethodid: msg.getPaymentmethodid(),
|
|
84
|
+
userid: msg.getUserid(),
|
|
85
|
+
paymentamount: msg.getPaymentamount()
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
if (includeInstance) {
|
|
89
|
+
obj.$jspbMessageInstance = msg;
|
|
90
|
+
}
|
|
91
|
+
return obj;
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Deserializes binary data (in protobuf wire format).
|
|
98
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
99
|
+
* @return {!proto.loyaltyprogramserviceapi.CalculatePointsRequest}
|
|
100
|
+
*/
|
|
101
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest.deserializeBinary = function(bytes) {
|
|
102
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
103
|
+
var msg = new proto.loyaltyprogramserviceapi.CalculatePointsRequest;
|
|
104
|
+
return proto.loyaltyprogramserviceapi.CalculatePointsRequest.deserializeBinaryFromReader(msg, reader);
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
110
|
+
* given reader into the given message object.
|
|
111
|
+
* @param {!proto.loyaltyprogramserviceapi.CalculatePointsRequest} msg The message object to deserialize into.
|
|
112
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
113
|
+
* @return {!proto.loyaltyprogramserviceapi.CalculatePointsRequest}
|
|
114
|
+
*/
|
|
115
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
116
|
+
while (reader.nextField()) {
|
|
117
|
+
if (reader.isEndGroup()) {
|
|
118
|
+
break;
|
|
119
|
+
}
|
|
120
|
+
var field = reader.getFieldNumber();
|
|
121
|
+
switch (field) {
|
|
122
|
+
case 1:
|
|
123
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
124
|
+
msg.setMembershipid(value);
|
|
125
|
+
break;
|
|
126
|
+
case 2:
|
|
127
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
128
|
+
msg.setPaymentmethodid(value);
|
|
129
|
+
break;
|
|
130
|
+
case 3:
|
|
131
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
132
|
+
msg.setUserid(value);
|
|
133
|
+
break;
|
|
134
|
+
case 4:
|
|
135
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
136
|
+
msg.setPaymentamount(value);
|
|
137
|
+
break;
|
|
138
|
+
default:
|
|
139
|
+
reader.skipField();
|
|
140
|
+
break;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
return msg;
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Class method variant: serializes the given message to binary data
|
|
149
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
150
|
+
* @param {!proto.loyaltyprogramserviceapi.CalculatePointsRequest} message
|
|
151
|
+
* @param {!jspb.BinaryWriter} writer
|
|
152
|
+
*/
|
|
153
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
154
|
+
message.serializeBinaryToWriter(writer);
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
160
|
+
* @return {!Uint8Array}
|
|
161
|
+
*/
|
|
162
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.serializeBinary = function() {
|
|
163
|
+
var writer = new jspb.BinaryWriter();
|
|
164
|
+
this.serializeBinaryToWriter(writer);
|
|
165
|
+
return writer.getResultBuffer();
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
171
|
+
* writing to the given BinaryWriter.
|
|
172
|
+
* @param {!jspb.BinaryWriter} writer
|
|
173
|
+
*/
|
|
174
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
175
|
+
var f = undefined;
|
|
176
|
+
f = this.getMembershipid();
|
|
177
|
+
if (f !== 0) {
|
|
178
|
+
writer.writeInt64(
|
|
179
|
+
1,
|
|
180
|
+
f
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
f = this.getPaymentmethodid();
|
|
184
|
+
if (f !== 0) {
|
|
185
|
+
writer.writeInt64(
|
|
186
|
+
2,
|
|
187
|
+
f
|
|
188
|
+
);
|
|
189
|
+
}
|
|
190
|
+
f = this.getUserid();
|
|
191
|
+
if (f !== 0) {
|
|
192
|
+
writer.writeInt64(
|
|
193
|
+
3,
|
|
194
|
+
f
|
|
195
|
+
);
|
|
196
|
+
}
|
|
197
|
+
f = this.getPaymentamount();
|
|
198
|
+
if (f !== 0.0) {
|
|
199
|
+
writer.writeFloat(
|
|
200
|
+
4,
|
|
201
|
+
f
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
209
|
+
* @return {!proto.loyaltyprogramserviceapi.CalculatePointsRequest} The clone.
|
|
210
|
+
*/
|
|
211
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.cloneMessage = function() {
|
|
212
|
+
return /** @type {!proto.loyaltyprogramserviceapi.CalculatePointsRequest} */ (jspb.Message.cloneMessage(this));
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* optional int64 membershipId = 1;
|
|
218
|
+
* @return {number}
|
|
219
|
+
*/
|
|
220
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.getMembershipid = function() {
|
|
221
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
/** @param {number} value */
|
|
226
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.setMembershipid = function(value) {
|
|
227
|
+
jspb.Message.setField(this, 1, value);
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* optional int64 paymentMethodId = 2;
|
|
233
|
+
* @return {number}
|
|
234
|
+
*/
|
|
235
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.getPaymentmethodid = function() {
|
|
236
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 2, 0));
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
/** @param {number} value */
|
|
241
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.setPaymentmethodid = function(value) {
|
|
242
|
+
jspb.Message.setField(this, 2, value);
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* optional int64 userId = 3;
|
|
248
|
+
* @return {number}
|
|
249
|
+
*/
|
|
250
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.getUserid = function() {
|
|
251
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 3, 0));
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
/** @param {number} value */
|
|
256
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.setUserid = function(value) {
|
|
257
|
+
jspb.Message.setField(this, 3, value);
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* optional float paymentAmount = 4;
|
|
263
|
+
* @return {number}
|
|
264
|
+
*/
|
|
265
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.getPaymentamount = function() {
|
|
266
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 4, 0));
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
/** @param {number} value */
|
|
271
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest.prototype.setPaymentamount = function(value) {
|
|
272
|
+
jspb.Message.setField(this, 4, value);
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Generated by JsPbCodeGenerator.
|
|
279
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
280
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
281
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
282
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
283
|
+
* valid.
|
|
284
|
+
* @extends {jspb.Message}
|
|
285
|
+
* @constructor
|
|
286
|
+
*/
|
|
287
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse = function(opt_data) {
|
|
288
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
289
|
+
};
|
|
290
|
+
goog.inherits(proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse, jspb.Message);
|
|
291
|
+
if (goog.DEBUG && !COMPILED) {
|
|
292
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.displayName = 'proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse';
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
297
|
+
/**
|
|
298
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
299
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
300
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
301
|
+
* For the list of reserved names please see:
|
|
302
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
303
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
304
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
305
|
+
* @return {!Object}
|
|
306
|
+
*/
|
|
307
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
308
|
+
return proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.toObject(opt_includeInstance, this);
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Static version of the {@see toObject} method.
|
|
314
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
315
|
+
* instance for transitional soy proto support:
|
|
316
|
+
* http://goto/soy-param-migration
|
|
317
|
+
* @param {!proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse} msg The msg instance to transform.
|
|
318
|
+
* @return {!Object}
|
|
319
|
+
*/
|
|
320
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.toObject = function(includeInstance, msg) {
|
|
321
|
+
var f, obj = {
|
|
322
|
+
responsecode: (f = msg.getResponsecode()) && proto.loyaltyprogramserviceapi.ResponseCode.toObject(includeInstance, f),
|
|
323
|
+
membershipid: msg.getMembershipid(),
|
|
324
|
+
amountofpoints: msg.getAmountofpoints()
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
if (includeInstance) {
|
|
328
|
+
obj.$jspbMessageInstance = msg;
|
|
329
|
+
}
|
|
330
|
+
return obj;
|
|
331
|
+
};
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Deserializes binary data (in protobuf wire format).
|
|
337
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
338
|
+
* @return {!proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse}
|
|
339
|
+
*/
|
|
340
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.deserializeBinary = function(bytes) {
|
|
341
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
342
|
+
var msg = new proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse;
|
|
343
|
+
return proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.deserializeBinaryFromReader(msg, reader);
|
|
344
|
+
};
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
349
|
+
* given reader into the given message object.
|
|
350
|
+
* @param {!proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse} msg The message object to deserialize into.
|
|
351
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
352
|
+
* @return {!proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse}
|
|
353
|
+
*/
|
|
354
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
355
|
+
while (reader.nextField()) {
|
|
356
|
+
if (reader.isEndGroup()) {
|
|
357
|
+
break;
|
|
358
|
+
}
|
|
359
|
+
var field = reader.getFieldNumber();
|
|
360
|
+
switch (field) {
|
|
361
|
+
case 1:
|
|
362
|
+
var value = new proto.loyaltyprogramserviceapi.ResponseCode;
|
|
363
|
+
reader.readMessage(value,proto.loyaltyprogramserviceapi.ResponseCode.deserializeBinaryFromReader);
|
|
364
|
+
msg.setResponsecode(value);
|
|
365
|
+
break;
|
|
366
|
+
case 2:
|
|
367
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
368
|
+
msg.setMembershipid(value);
|
|
369
|
+
break;
|
|
370
|
+
case 3:
|
|
371
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
372
|
+
msg.setAmountofpoints(value);
|
|
373
|
+
break;
|
|
374
|
+
default:
|
|
375
|
+
reader.skipField();
|
|
376
|
+
break;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
return msg;
|
|
380
|
+
};
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Class method variant: serializes the given message to binary data
|
|
385
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
386
|
+
* @param {!proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse} message
|
|
387
|
+
* @param {!jspb.BinaryWriter} writer
|
|
388
|
+
*/
|
|
389
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
390
|
+
message.serializeBinaryToWriter(writer);
|
|
391
|
+
};
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
396
|
+
* @return {!Uint8Array}
|
|
397
|
+
*/
|
|
398
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.prototype.serializeBinary = function() {
|
|
399
|
+
var writer = new jspb.BinaryWriter();
|
|
400
|
+
this.serializeBinaryToWriter(writer);
|
|
401
|
+
return writer.getResultBuffer();
|
|
402
|
+
};
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
407
|
+
* writing to the given BinaryWriter.
|
|
408
|
+
* @param {!jspb.BinaryWriter} writer
|
|
409
|
+
*/
|
|
410
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.prototype.serializeBinaryToWriter = function (writer) {
|
|
411
|
+
var f = undefined;
|
|
412
|
+
f = this.getResponsecode();
|
|
413
|
+
if (f != null) {
|
|
414
|
+
writer.writeMessage(
|
|
415
|
+
1,
|
|
416
|
+
f,
|
|
417
|
+
proto.loyaltyprogramserviceapi.ResponseCode.serializeBinaryToWriter
|
|
418
|
+
);
|
|
419
|
+
}
|
|
420
|
+
f = this.getMembershipid();
|
|
421
|
+
if (f !== 0) {
|
|
422
|
+
writer.writeInt64(
|
|
423
|
+
2,
|
|
424
|
+
f
|
|
425
|
+
);
|
|
426
|
+
}
|
|
427
|
+
f = this.getAmountofpoints();
|
|
428
|
+
if (f !== 0) {
|
|
429
|
+
writer.writeInt32(
|
|
430
|
+
3,
|
|
431
|
+
f
|
|
432
|
+
);
|
|
433
|
+
}
|
|
434
|
+
};
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
439
|
+
* @return {!proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse} The clone.
|
|
440
|
+
*/
|
|
441
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.prototype.cloneMessage = function() {
|
|
442
|
+
return /** @type {!proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse} */ (jspb.Message.cloneMessage(this));
|
|
443
|
+
};
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* optional ResponseCode responseCode = 1;
|
|
448
|
+
* @return {proto.loyaltyprogramserviceapi.ResponseCode}
|
|
449
|
+
*/
|
|
450
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.prototype.getResponsecode = function() {
|
|
451
|
+
return /** @type{proto.loyaltyprogramserviceapi.ResponseCode} */ (
|
|
452
|
+
jspb.Message.getWrapperField(this, proto.loyaltyprogramserviceapi.ResponseCode, 1));
|
|
453
|
+
};
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
/** @param {proto.loyaltyprogramserviceapi.ResponseCode|undefined} value */
|
|
457
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.prototype.setResponsecode = function(value) {
|
|
458
|
+
jspb.Message.setWrapperField(this, 1, value);
|
|
459
|
+
};
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.prototype.clearResponsecode = function() {
|
|
463
|
+
this.setResponsecode(undefined);
|
|
464
|
+
};
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* Returns whether this field is set.
|
|
469
|
+
* @return{!boolean}
|
|
470
|
+
*/
|
|
471
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.prototype.hasResponsecode = function() {
|
|
472
|
+
return jspb.Message.getField(this, 1) != null;
|
|
473
|
+
};
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* optional int64 membershipId = 2;
|
|
478
|
+
* @return {number}
|
|
479
|
+
*/
|
|
480
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.prototype.getMembershipid = function() {
|
|
481
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 2, 0));
|
|
482
|
+
};
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
/** @param {number} value */
|
|
486
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.prototype.setMembershipid = function(value) {
|
|
487
|
+
jspb.Message.setField(this, 2, value);
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* optional int32 amountOfPoints = 3;
|
|
493
|
+
* @return {number}
|
|
494
|
+
*/
|
|
495
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.prototype.getAmountofpoints = function() {
|
|
496
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 3, 0));
|
|
497
|
+
};
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
/** @param {number} value */
|
|
501
|
+
proto.loyaltyprogramserviceapi.CalculatedLoyaltyPointsResponse.prototype.setAmountofpoints = function(value) {
|
|
502
|
+
jspb.Message.setField(this, 3, value);
|
|
503
|
+
};
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
|
|
34
507
|
/**
|
|
35
508
|
* Generated by JsPbCodeGenerator.
|
|
36
509
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -2171,6 +2644,259 @@ proto.loyaltyprogramserviceapi.MembershipDetailsResponse.prototype.clearMembersh
|
|
|
2171
2644
|
|
|
2172
2645
|
|
|
2173
2646
|
|
|
2647
|
+
/**
|
|
2648
|
+
* Generated by JsPbCodeGenerator.
|
|
2649
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
2650
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
2651
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
2652
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2653
|
+
* valid.
|
|
2654
|
+
* @extends {jspb.Message}
|
|
2655
|
+
* @constructor
|
|
2656
|
+
*/
|
|
2657
|
+
proto.loyaltyprogramserviceapi.PaymentMethodsResponse = function(opt_data) {
|
|
2658
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.loyaltyprogramserviceapi.PaymentMethodsResponse.repeatedFields_, null);
|
|
2659
|
+
};
|
|
2660
|
+
goog.inherits(proto.loyaltyprogramserviceapi.PaymentMethodsResponse, jspb.Message);
|
|
2661
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2662
|
+
proto.loyaltyprogramserviceapi.PaymentMethodsResponse.displayName = 'proto.loyaltyprogramserviceapi.PaymentMethodsResponse';
|
|
2663
|
+
}
|
|
2664
|
+
/**
|
|
2665
|
+
* List of repeated fields within this message type.
|
|
2666
|
+
* @private {!Array<number>}
|
|
2667
|
+
* @const
|
|
2668
|
+
*/
|
|
2669
|
+
proto.loyaltyprogramserviceapi.PaymentMethodsResponse.repeatedFields_ = [2,3];
|
|
2670
|
+
|
|
2671
|
+
|
|
2672
|
+
|
|
2673
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2674
|
+
/**
|
|
2675
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
2676
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2677
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2678
|
+
* For the list of reserved names please see:
|
|
2679
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
2680
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
2681
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
2682
|
+
* @return {!Object}
|
|
2683
|
+
*/
|
|
2684
|
+
proto.loyaltyprogramserviceapi.PaymentMethodsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2685
|
+
return proto.loyaltyprogramserviceapi.PaymentMethodsResponse.toObject(opt_includeInstance, this);
|
|
2686
|
+
};
|
|
2687
|
+
|
|
2688
|
+
|
|
2689
|
+
/**
|
|
2690
|
+
* Static version of the {@see toObject} method.
|
|
2691
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
2692
|
+
* instance for transitional soy proto support:
|
|
2693
|
+
* http://goto/soy-param-migration
|
|
2694
|
+
* @param {!proto.loyaltyprogramserviceapi.PaymentMethodsResponse} msg The msg instance to transform.
|
|
2695
|
+
* @return {!Object}
|
|
2696
|
+
*/
|
|
2697
|
+
proto.loyaltyprogramserviceapi.PaymentMethodsResponse.toObject = function(includeInstance, msg) {
|
|
2698
|
+
var f, obj = {
|
|
2699
|
+
responsecode: (f = msg.getResponsecode()) && proto.loyaltyprogramserviceapi.ResponseCode.toObject(includeInstance, f),
|
|
2700
|
+
paymentmethodswithpointsList: jspb.Message.getField(msg, 2),
|
|
2701
|
+
paymentmethodswithoutpointsList: jspb.Message.getField(msg, 3)
|
|
2702
|
+
};
|
|
2703
|
+
|
|
2704
|
+
if (includeInstance) {
|
|
2705
|
+
obj.$jspbMessageInstance = msg;
|
|
2706
|
+
}
|
|
2707
|
+
return obj;
|
|
2708
|
+
};
|
|
2709
|
+
}
|
|
2710
|
+
|
|
2711
|
+
|
|
2712
|
+
/**
|
|
2713
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2714
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2715
|
+
* @return {!proto.loyaltyprogramserviceapi.PaymentMethodsResponse}
|
|
2716
|
+
*/
|
|
2717
|
+
proto.loyaltyprogramserviceapi.PaymentMethodsResponse.deserializeBinary = function(bytes) {
|
|
2718
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2719
|
+
var msg = new proto.loyaltyprogramserviceapi.PaymentMethodsResponse;
|
|
2720
|
+
return proto.loyaltyprogramserviceapi.PaymentMethodsResponse.deserializeBinaryFromReader(msg, reader);
|
|
2721
|
+
};
|
|
2722
|
+
|
|
2723
|
+
|
|
2724
|
+
/**
|
|
2725
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2726
|
+
* given reader into the given message object.
|
|
2727
|
+
* @param {!proto.loyaltyprogramserviceapi.PaymentMethodsResponse} msg The message object to deserialize into.
|
|
2728
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2729
|
+
* @return {!proto.loyaltyprogramserviceapi.PaymentMethodsResponse}
|
|
2730
|
+
*/
|
|
2731
|
+
proto.loyaltyprogramserviceapi.PaymentMethodsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2732
|
+
while (reader.nextField()) {
|
|
2733
|
+
if (reader.isEndGroup()) {
|
|
2734
|
+
break;
|
|
2735
|
+
}
|
|
2736
|
+
var field = reader.getFieldNumber();
|
|
2737
|
+
switch (field) {
|
|
2738
|
+
case 1:
|
|
2739
|
+
var value = new proto.loyaltyprogramserviceapi.ResponseCode;
|
|
2740
|
+
reader.readMessage(value,proto.loyaltyprogramserviceapi.ResponseCode.deserializeBinaryFromReader);
|
|
2741
|
+
msg.setResponsecode(value);
|
|
2742
|
+
break;
|
|
2743
|
+
case 2:
|
|
2744
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2745
|
+
msg.getPaymentmethodswithpointsList().push(value);
|
|
2746
|
+
msg.setPaymentmethodswithpointsList(msg.getPaymentmethodswithpointsList());
|
|
2747
|
+
break;
|
|
2748
|
+
case 3:
|
|
2749
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2750
|
+
msg.getPaymentmethodswithoutpointsList().push(value);
|
|
2751
|
+
msg.setPaymentmethodswithoutpointsList(msg.getPaymentmethodswithoutpointsList());
|
|
2752
|
+
break;
|
|
2753
|
+
default:
|
|
2754
|
+
reader.skipField();
|
|
2755
|
+
break;
|
|
2756
|
+
}
|
|
2757
|
+
}
|
|
2758
|
+
return msg;
|
|
2759
|
+
};
|
|
2760
|
+
|
|
2761
|
+
|
|
2762
|
+
/**
|
|
2763
|
+
* Class method variant: serializes the given message to binary data
|
|
2764
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
2765
|
+
* @param {!proto.loyaltyprogramserviceapi.PaymentMethodsResponse} message
|
|
2766
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2767
|
+
*/
|
|
2768
|
+
proto.loyaltyprogramserviceapi.PaymentMethodsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2769
|
+
message.serializeBinaryToWriter(writer);
|
|
2770
|
+
};
|
|
2771
|
+
|
|
2772
|
+
|
|
2773
|
+
/**
|
|
2774
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2775
|
+
* @return {!Uint8Array}
|
|
2776
|
+
*/
|
|
2777
|
+
proto.loyaltyprogramserviceapi.PaymentMethodsResponse.prototype.serializeBinary = function() {
|
|
2778
|
+
var writer = new jspb.BinaryWriter();
|
|
2779
|
+
this.serializeBinaryToWriter(writer);
|
|
2780
|
+
return writer.getResultBuffer();
|
|
2781
|
+
};
|
|
2782
|
+
|
|
2783
|
+
|
|
2784
|
+
/**
|
|
2785
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
2786
|
+
* writing to the given BinaryWriter.
|
|
2787
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2788
|
+
*/
|
|
2789
|
+
proto.loyaltyprogramserviceapi.PaymentMethodsResponse.prototype.serializeBinaryToWriter = function (writer) {
|
|
2790
|
+
var f = undefined;
|
|
2791
|
+
f = this.getResponsecode();
|
|
2792
|
+
if (f != null) {
|
|
2793
|
+
writer.writeMessage(
|
|
2794
|
+
1,
|
|
2795
|
+
f,
|
|
2796
|
+
proto.loyaltyprogramserviceapi.ResponseCode.serializeBinaryToWriter
|
|
2797
|
+
);
|
|
2798
|
+
}
|
|
2799
|
+
f = this.getPaymentmethodswithpointsList();
|
|
2800
|
+
if (f.length > 0) {
|
|
2801
|
+
writer.writeRepeatedString(
|
|
2802
|
+
2,
|
|
2803
|
+
f
|
|
2804
|
+
);
|
|
2805
|
+
}
|
|
2806
|
+
f = this.getPaymentmethodswithoutpointsList();
|
|
2807
|
+
if (f.length > 0) {
|
|
2808
|
+
writer.writeRepeatedString(
|
|
2809
|
+
3,
|
|
2810
|
+
f
|
|
2811
|
+
);
|
|
2812
|
+
}
|
|
2813
|
+
};
|
|
2814
|
+
|
|
2815
|
+
|
|
2816
|
+
/**
|
|
2817
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
2818
|
+
* @return {!proto.loyaltyprogramserviceapi.PaymentMethodsResponse} The clone.
|
|
2819
|
+
*/
|
|
2820
|
+
proto.loyaltyprogramserviceapi.PaymentMethodsResponse.prototype.cloneMessage = function() {
|
|
2821
|
+
return /** @type {!proto.loyaltyprogramserviceapi.PaymentMethodsResponse} */ (jspb.Message.cloneMessage(this));
|
|
2822
|
+
};
|
|
2823
|
+
|
|
2824
|
+
|
|
2825
|
+
/**
|
|
2826
|
+
* optional ResponseCode responseCode = 1;
|
|
2827
|
+
* @return {proto.loyaltyprogramserviceapi.ResponseCode}
|
|
2828
|
+
*/
|
|
2829
|
+
proto.loyaltyprogramserviceapi.PaymentMethodsResponse.prototype.getResponsecode = function() {
|
|
2830
|
+
return /** @type{proto.loyaltyprogramserviceapi.ResponseCode} */ (
|
|
2831
|
+
jspb.Message.getWrapperField(this, proto.loyaltyprogramserviceapi.ResponseCode, 1));
|
|
2832
|
+
};
|
|
2833
|
+
|
|
2834
|
+
|
|
2835
|
+
/** @param {proto.loyaltyprogramserviceapi.ResponseCode|undefined} value */
|
|
2836
|
+
proto.loyaltyprogramserviceapi.PaymentMethodsResponse.prototype.setResponsecode = function(value) {
|
|
2837
|
+
jspb.Message.setWrapperField(this, 1, value);
|
|
2838
|
+
};
|
|
2839
|
+
|
|
2840
|
+
|
|
2841
|
+
proto.loyaltyprogramserviceapi.PaymentMethodsResponse.prototype.clearResponsecode = function() {
|
|
2842
|
+
this.setResponsecode(undefined);
|
|
2843
|
+
};
|
|
2844
|
+
|
|
2845
|
+
|
|
2846
|
+
/**
|
|
2847
|
+
* Returns whether this field is set.
|
|
2848
|
+
* @return{!boolean}
|
|
2849
|
+
*/
|
|
2850
|
+
proto.loyaltyprogramserviceapi.PaymentMethodsResponse.prototype.hasResponsecode = function() {
|
|
2851
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2852
|
+
};
|
|
2853
|
+
|
|
2854
|
+
|
|
2855
|
+
/**
|
|
2856
|
+
* repeated string paymentMethodsWithPoints = 2;
|
|
2857
|
+
* If you change this array by adding, removing or replacing elements, or if you
|
|
2858
|
+
* replace the array itself, then you must call the setter to update it.
|
|
2859
|
+
* @return {!Array.<string>}
|
|
2860
|
+
*/
|
|
2861
|
+
proto.loyaltyprogramserviceapi.PaymentMethodsResponse.prototype.getPaymentmethodswithpointsList = function() {
|
|
2862
|
+
return /** @type {!Array.<string>} */ (jspb.Message.getField(this, 2));
|
|
2863
|
+
};
|
|
2864
|
+
|
|
2865
|
+
|
|
2866
|
+
/** @param {Array.<string>} value */
|
|
2867
|
+
proto.loyaltyprogramserviceapi.PaymentMethodsResponse.prototype.setPaymentmethodswithpointsList = function(value) {
|
|
2868
|
+
jspb.Message.setField(this, 2, value || []);
|
|
2869
|
+
};
|
|
2870
|
+
|
|
2871
|
+
|
|
2872
|
+
proto.loyaltyprogramserviceapi.PaymentMethodsResponse.prototype.clearPaymentmethodswithpointsList = function() {
|
|
2873
|
+
jspb.Message.setField(this, 2, []);
|
|
2874
|
+
};
|
|
2875
|
+
|
|
2876
|
+
|
|
2877
|
+
/**
|
|
2878
|
+
* repeated string paymentMethodsWithoutPoints = 3;
|
|
2879
|
+
* If you change this array by adding, removing or replacing elements, or if you
|
|
2880
|
+
* replace the array itself, then you must call the setter to update it.
|
|
2881
|
+
* @return {!Array.<string>}
|
|
2882
|
+
*/
|
|
2883
|
+
proto.loyaltyprogramserviceapi.PaymentMethodsResponse.prototype.getPaymentmethodswithoutpointsList = function() {
|
|
2884
|
+
return /** @type {!Array.<string>} */ (jspb.Message.getField(this, 3));
|
|
2885
|
+
};
|
|
2886
|
+
|
|
2887
|
+
|
|
2888
|
+
/** @param {Array.<string>} value */
|
|
2889
|
+
proto.loyaltyprogramserviceapi.PaymentMethodsResponse.prototype.setPaymentmethodswithoutpointsList = function(value) {
|
|
2890
|
+
jspb.Message.setField(this, 3, value || []);
|
|
2891
|
+
};
|
|
2892
|
+
|
|
2893
|
+
|
|
2894
|
+
proto.loyaltyprogramserviceapi.PaymentMethodsResponse.prototype.clearPaymentmethodswithoutpointsList = function() {
|
|
2895
|
+
jspb.Message.setField(this, 3, []);
|
|
2896
|
+
};
|
|
2897
|
+
|
|
2898
|
+
|
|
2899
|
+
|
|
2174
2900
|
/**
|
|
2175
2901
|
* Generated by JsPbCodeGenerator.
|
|
2176
2902
|
* @param {Array=} opt_data Optional initial data array, typically from a
|