@sniipwebmaster/loyalty-program-client-grpcweb 22.17.427 → 22.17.435

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.
@@ -234,6 +234,86 @@ proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServicePromiseClient.prot
234
234
  };
235
235
 
236
236
 
237
+ /**
238
+ * @const
239
+ * @type {!grpc.web.MethodDescriptor<
240
+ * !proto.google.protobuf.Empty,
241
+ * !proto.loyaltyprogramserviceapi.PaymentMethodsResponse>}
242
+ */
243
+ const methodDescriptor_LoyaltyProgramServiceAPIService_GetAllPaymentMethods = new grpc.web.MethodDescriptor(
244
+ '/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/GetAllPaymentMethods',
245
+ grpc.web.MethodType.UNARY,
246
+ google_protobuf_empty_pb.Empty,
247
+ proto.loyaltyprogramserviceapi.PaymentMethodsResponse,
248
+ /**
249
+ * @param {!proto.google.protobuf.Empty} request
250
+ * @return {!Uint8Array}
251
+ */
252
+ function(request) {
253
+ return request.serializeBinary();
254
+ },
255
+ proto.loyaltyprogramserviceapi.PaymentMethodsResponse.deserializeBinary
256
+ );
257
+
258
+
259
+ /**
260
+ * @const
261
+ * @type {!grpc.web.AbstractClientBase.MethodInfo<
262
+ * !proto.google.protobuf.Empty,
263
+ * !proto.loyaltyprogramserviceapi.PaymentMethodsResponse>}
264
+ */
265
+ const methodInfo_LoyaltyProgramServiceAPIService_GetAllPaymentMethods = new grpc.web.AbstractClientBase.MethodInfo(
266
+ proto.loyaltyprogramserviceapi.PaymentMethodsResponse,
267
+ /**
268
+ * @param {!proto.google.protobuf.Empty} request
269
+ * @return {!Uint8Array}
270
+ */
271
+ function(request) {
272
+ return request.serializeBinary();
273
+ },
274
+ proto.loyaltyprogramserviceapi.PaymentMethodsResponse.deserializeBinary
275
+ );
276
+
277
+
278
+ /**
279
+ * @param {!proto.google.protobuf.Empty} request The
280
+ * request proto
281
+ * @param {?Object<string, string>} metadata User defined
282
+ * call metadata
283
+ * @param {function(?grpc.web.Error, ?proto.loyaltyprogramserviceapi.PaymentMethodsResponse)}
284
+ * callback The callback function(error, response)
285
+ * @return {!grpc.web.ClientReadableStream<!proto.loyaltyprogramserviceapi.PaymentMethodsResponse>|undefined}
286
+ * The XHR Node Readable Stream
287
+ */
288
+ proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServiceClient.prototype.getAllPaymentMethods =
289
+ function(request, metadata, callback) {
290
+ return this.client_.rpcCall(this.hostname_ +
291
+ '/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/GetAllPaymentMethods',
292
+ request,
293
+ metadata || {},
294
+ methodDescriptor_LoyaltyProgramServiceAPIService_GetAllPaymentMethods,
295
+ callback);
296
+ };
297
+
298
+
299
+ /**
300
+ * @param {!proto.google.protobuf.Empty} request The
301
+ * request proto
302
+ * @param {?Object<string, string>} metadata User defined
303
+ * call metadata
304
+ * @return {!Promise<!proto.loyaltyprogramserviceapi.PaymentMethodsResponse>}
305
+ * Promise that resolves to the response
306
+ */
307
+ proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServicePromiseClient.prototype.getAllPaymentMethods =
308
+ function(request, metadata) {
309
+ return this.client_.unaryCall(this.hostname_ +
310
+ '/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/GetAllPaymentMethods',
311
+ request,
312
+ metadata || {},
313
+ methodDescriptor_LoyaltyProgramServiceAPIService_GetAllPaymentMethods);
314
+ };
315
+
316
+
237
317
  /**
238
318
  * @const
239
319
  * @type {!grpc.web.MethodDescriptor<
@@ -21,6 +21,7 @@ goog.exportSymbol('proto.loyaltyprogramserviceapi.LinkMembershipRequest', null,
21
21
  goog.exportSymbol('proto.loyaltyprogramserviceapi.MembershipDetail', null, global);
22
22
  goog.exportSymbol('proto.loyaltyprogramserviceapi.MembershipDetailResponse', null, global);
23
23
  goog.exportSymbol('proto.loyaltyprogramserviceapi.MembershipDetailsResponse', null, global);
24
+ goog.exportSymbol('proto.loyaltyprogramserviceapi.PaymentMethodsResponse', null, global);
24
25
  goog.exportSymbol('proto.loyaltyprogramserviceapi.ProgramDetail', null, global);
25
26
  goog.exportSymbol('proto.loyaltyprogramserviceapi.ProgramDetail.ProgramDetailMembershipNumberType', null, global);
26
27
  goog.exportSymbol('proto.loyaltyprogramserviceapi.ProgramDetailResponse', null, global);
@@ -2171,6 +2172,259 @@ proto.loyaltyprogramserviceapi.MembershipDetailsResponse.prototype.clearMembersh
2171
2172
 
2172
2173
 
2173
2174
 
2175
+ /**
2176
+ * Generated by JsPbCodeGenerator.
2177
+ * @param {Array=} opt_data Optional initial data array, typically from a
2178
+ * server response, or constructed directly in Javascript. The array is used
2179
+ * in place and becomes part of the constructed object. It is not cloned.
2180
+ * If no data is provided, the constructed object will be empty, but still
2181
+ * valid.
2182
+ * @extends {jspb.Message}
2183
+ * @constructor
2184
+ */
2185
+ proto.loyaltyprogramserviceapi.PaymentMethodsResponse = function(opt_data) {
2186
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.loyaltyprogramserviceapi.PaymentMethodsResponse.repeatedFields_, null);
2187
+ };
2188
+ goog.inherits(proto.loyaltyprogramserviceapi.PaymentMethodsResponse, jspb.Message);
2189
+ if (goog.DEBUG && !COMPILED) {
2190
+ proto.loyaltyprogramserviceapi.PaymentMethodsResponse.displayName = 'proto.loyaltyprogramserviceapi.PaymentMethodsResponse';
2191
+ }
2192
+ /**
2193
+ * List of repeated fields within this message type.
2194
+ * @private {!Array<number>}
2195
+ * @const
2196
+ */
2197
+ proto.loyaltyprogramserviceapi.PaymentMethodsResponse.repeatedFields_ = [2,3];
2198
+
2199
+
2200
+
2201
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2202
+ /**
2203
+ * Creates an object representation of this proto suitable for use in Soy templates.
2204
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2205
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2206
+ * For the list of reserved names please see:
2207
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
2208
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
2209
+ * for transitional soy proto support: http://goto/soy-param-migration
2210
+ * @return {!Object}
2211
+ */
2212
+ proto.loyaltyprogramserviceapi.PaymentMethodsResponse.prototype.toObject = function(opt_includeInstance) {
2213
+ return proto.loyaltyprogramserviceapi.PaymentMethodsResponse.toObject(opt_includeInstance, this);
2214
+ };
2215
+
2216
+
2217
+ /**
2218
+ * Static version of the {@see toObject} method.
2219
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
2220
+ * instance for transitional soy proto support:
2221
+ * http://goto/soy-param-migration
2222
+ * @param {!proto.loyaltyprogramserviceapi.PaymentMethodsResponse} msg The msg instance to transform.
2223
+ * @return {!Object}
2224
+ */
2225
+ proto.loyaltyprogramserviceapi.PaymentMethodsResponse.toObject = function(includeInstance, msg) {
2226
+ var f, obj = {
2227
+ responsecode: (f = msg.getResponsecode()) && proto.loyaltyprogramserviceapi.ResponseCode.toObject(includeInstance, f),
2228
+ paymentmethodswithpointsList: jspb.Message.getField(msg, 2),
2229
+ paymentmethodswithoutpointsList: jspb.Message.getField(msg, 3)
2230
+ };
2231
+
2232
+ if (includeInstance) {
2233
+ obj.$jspbMessageInstance = msg;
2234
+ }
2235
+ return obj;
2236
+ };
2237
+ }
2238
+
2239
+
2240
+ /**
2241
+ * Deserializes binary data (in protobuf wire format).
2242
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2243
+ * @return {!proto.loyaltyprogramserviceapi.PaymentMethodsResponse}
2244
+ */
2245
+ proto.loyaltyprogramserviceapi.PaymentMethodsResponse.deserializeBinary = function(bytes) {
2246
+ var reader = new jspb.BinaryReader(bytes);
2247
+ var msg = new proto.loyaltyprogramserviceapi.PaymentMethodsResponse;
2248
+ return proto.loyaltyprogramserviceapi.PaymentMethodsResponse.deserializeBinaryFromReader(msg, reader);
2249
+ };
2250
+
2251
+
2252
+ /**
2253
+ * Deserializes binary data (in protobuf wire format) from the
2254
+ * given reader into the given message object.
2255
+ * @param {!proto.loyaltyprogramserviceapi.PaymentMethodsResponse} msg The message object to deserialize into.
2256
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2257
+ * @return {!proto.loyaltyprogramserviceapi.PaymentMethodsResponse}
2258
+ */
2259
+ proto.loyaltyprogramserviceapi.PaymentMethodsResponse.deserializeBinaryFromReader = function(msg, reader) {
2260
+ while (reader.nextField()) {
2261
+ if (reader.isEndGroup()) {
2262
+ break;
2263
+ }
2264
+ var field = reader.getFieldNumber();
2265
+ switch (field) {
2266
+ case 1:
2267
+ var value = new proto.loyaltyprogramserviceapi.ResponseCode;
2268
+ reader.readMessage(value,proto.loyaltyprogramserviceapi.ResponseCode.deserializeBinaryFromReader);
2269
+ msg.setResponsecode(value);
2270
+ break;
2271
+ case 2:
2272
+ var value = /** @type {string} */ (reader.readString());
2273
+ msg.getPaymentmethodswithpointsList().push(value);
2274
+ msg.setPaymentmethodswithpointsList(msg.getPaymentmethodswithpointsList());
2275
+ break;
2276
+ case 3:
2277
+ var value = /** @type {string} */ (reader.readString());
2278
+ msg.getPaymentmethodswithoutpointsList().push(value);
2279
+ msg.setPaymentmethodswithoutpointsList(msg.getPaymentmethodswithoutpointsList());
2280
+ break;
2281
+ default:
2282
+ reader.skipField();
2283
+ break;
2284
+ }
2285
+ }
2286
+ return msg;
2287
+ };
2288
+
2289
+
2290
+ /**
2291
+ * Class method variant: serializes the given message to binary data
2292
+ * (in protobuf wire format), writing to the given BinaryWriter.
2293
+ * @param {!proto.loyaltyprogramserviceapi.PaymentMethodsResponse} message
2294
+ * @param {!jspb.BinaryWriter} writer
2295
+ */
2296
+ proto.loyaltyprogramserviceapi.PaymentMethodsResponse.serializeBinaryToWriter = function(message, writer) {
2297
+ message.serializeBinaryToWriter(writer);
2298
+ };
2299
+
2300
+
2301
+ /**
2302
+ * Serializes the message to binary data (in protobuf wire format).
2303
+ * @return {!Uint8Array}
2304
+ */
2305
+ proto.loyaltyprogramserviceapi.PaymentMethodsResponse.prototype.serializeBinary = function() {
2306
+ var writer = new jspb.BinaryWriter();
2307
+ this.serializeBinaryToWriter(writer);
2308
+ return writer.getResultBuffer();
2309
+ };
2310
+
2311
+
2312
+ /**
2313
+ * Serializes the message to binary data (in protobuf wire format),
2314
+ * writing to the given BinaryWriter.
2315
+ * @param {!jspb.BinaryWriter} writer
2316
+ */
2317
+ proto.loyaltyprogramserviceapi.PaymentMethodsResponse.prototype.serializeBinaryToWriter = function (writer) {
2318
+ var f = undefined;
2319
+ f = this.getResponsecode();
2320
+ if (f != null) {
2321
+ writer.writeMessage(
2322
+ 1,
2323
+ f,
2324
+ proto.loyaltyprogramserviceapi.ResponseCode.serializeBinaryToWriter
2325
+ );
2326
+ }
2327
+ f = this.getPaymentmethodswithpointsList();
2328
+ if (f.length > 0) {
2329
+ writer.writeRepeatedString(
2330
+ 2,
2331
+ f
2332
+ );
2333
+ }
2334
+ f = this.getPaymentmethodswithoutpointsList();
2335
+ if (f.length > 0) {
2336
+ writer.writeRepeatedString(
2337
+ 3,
2338
+ f
2339
+ );
2340
+ }
2341
+ };
2342
+
2343
+
2344
+ /**
2345
+ * Creates a deep clone of this proto. No data is shared with the original.
2346
+ * @return {!proto.loyaltyprogramserviceapi.PaymentMethodsResponse} The clone.
2347
+ */
2348
+ proto.loyaltyprogramserviceapi.PaymentMethodsResponse.prototype.cloneMessage = function() {
2349
+ return /** @type {!proto.loyaltyprogramserviceapi.PaymentMethodsResponse} */ (jspb.Message.cloneMessage(this));
2350
+ };
2351
+
2352
+
2353
+ /**
2354
+ * optional ResponseCode responseCode = 1;
2355
+ * @return {proto.loyaltyprogramserviceapi.ResponseCode}
2356
+ */
2357
+ proto.loyaltyprogramserviceapi.PaymentMethodsResponse.prototype.getResponsecode = function() {
2358
+ return /** @type{proto.loyaltyprogramserviceapi.ResponseCode} */ (
2359
+ jspb.Message.getWrapperField(this, proto.loyaltyprogramserviceapi.ResponseCode, 1));
2360
+ };
2361
+
2362
+
2363
+ /** @param {proto.loyaltyprogramserviceapi.ResponseCode|undefined} value */
2364
+ proto.loyaltyprogramserviceapi.PaymentMethodsResponse.prototype.setResponsecode = function(value) {
2365
+ jspb.Message.setWrapperField(this, 1, value);
2366
+ };
2367
+
2368
+
2369
+ proto.loyaltyprogramserviceapi.PaymentMethodsResponse.prototype.clearResponsecode = function() {
2370
+ this.setResponsecode(undefined);
2371
+ };
2372
+
2373
+
2374
+ /**
2375
+ * Returns whether this field is set.
2376
+ * @return{!boolean}
2377
+ */
2378
+ proto.loyaltyprogramserviceapi.PaymentMethodsResponse.prototype.hasResponsecode = function() {
2379
+ return jspb.Message.getField(this, 1) != null;
2380
+ };
2381
+
2382
+
2383
+ /**
2384
+ * repeated string paymentMethodsWithPoints = 2;
2385
+ * If you change this array by adding, removing or replacing elements, or if you
2386
+ * replace the array itself, then you must call the setter to update it.
2387
+ * @return {!Array.<string>}
2388
+ */
2389
+ proto.loyaltyprogramserviceapi.PaymentMethodsResponse.prototype.getPaymentmethodswithpointsList = function() {
2390
+ return /** @type {!Array.<string>} */ (jspb.Message.getField(this, 2));
2391
+ };
2392
+
2393
+
2394
+ /** @param {Array.<string>} value */
2395
+ proto.loyaltyprogramserviceapi.PaymentMethodsResponse.prototype.setPaymentmethodswithpointsList = function(value) {
2396
+ jspb.Message.setField(this, 2, value || []);
2397
+ };
2398
+
2399
+
2400
+ proto.loyaltyprogramserviceapi.PaymentMethodsResponse.prototype.clearPaymentmethodswithpointsList = function() {
2401
+ jspb.Message.setField(this, 2, []);
2402
+ };
2403
+
2404
+
2405
+ /**
2406
+ * repeated string paymentMethodsWithoutPoints = 3;
2407
+ * If you change this array by adding, removing or replacing elements, or if you
2408
+ * replace the array itself, then you must call the setter to update it.
2409
+ * @return {!Array.<string>}
2410
+ */
2411
+ proto.loyaltyprogramserviceapi.PaymentMethodsResponse.prototype.getPaymentmethodswithoutpointsList = function() {
2412
+ return /** @type {!Array.<string>} */ (jspb.Message.getField(this, 3));
2413
+ };
2414
+
2415
+
2416
+ /** @param {Array.<string>} value */
2417
+ proto.loyaltyprogramserviceapi.PaymentMethodsResponse.prototype.setPaymentmethodswithoutpointsList = function(value) {
2418
+ jspb.Message.setField(this, 3, value || []);
2419
+ };
2420
+
2421
+
2422
+ proto.loyaltyprogramserviceapi.PaymentMethodsResponse.prototype.clearPaymentmethodswithoutpointsList = function() {
2423
+ jspb.Message.setField(this, 3, []);
2424
+ };
2425
+
2426
+
2427
+
2174
2428
  /**
2175
2429
  * Generated by JsPbCodeGenerator.
2176
2430
  * @param {Array=} opt_data Optional initial data array, typically from a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/loyalty-program-client-grpcweb",
3
- "version": "22.17.427",
3
+ "version": "22.17.435",
4
4
  "description": "loyalty-program-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",