@sniipwebmaster/loyalty-program-client-grpcweb 23.6.1362 → 23.6.1376
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.
|
@@ -1354,6 +1354,86 @@ proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServicePromiseClient.prot
|
|
|
1354
1354
|
};
|
|
1355
1355
|
|
|
1356
1356
|
|
|
1357
|
+
/**
|
|
1358
|
+
* @const
|
|
1359
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
1360
|
+
* !proto.loyaltyprogramserviceapi.SetUserFeeDiscountRequest,
|
|
1361
|
+
* !proto.loyaltyprogramserviceapi.ResponseCode>}
|
|
1362
|
+
*/
|
|
1363
|
+
const methodDescriptor_LoyaltyProgramServiceAPIService_SetUserFeeDiscount = new grpc.web.MethodDescriptor(
|
|
1364
|
+
'/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/SetUserFeeDiscount',
|
|
1365
|
+
grpc.web.MethodType.UNARY,
|
|
1366
|
+
proto.loyaltyprogramserviceapi.SetUserFeeDiscountRequest,
|
|
1367
|
+
proto.loyaltyprogramserviceapi.ResponseCode,
|
|
1368
|
+
/**
|
|
1369
|
+
* @param {!proto.loyaltyprogramserviceapi.SetUserFeeDiscountRequest} request
|
|
1370
|
+
* @return {!Uint8Array}
|
|
1371
|
+
*/
|
|
1372
|
+
function(request) {
|
|
1373
|
+
return request.serializeBinary();
|
|
1374
|
+
},
|
|
1375
|
+
proto.loyaltyprogramserviceapi.ResponseCode.deserializeBinary
|
|
1376
|
+
);
|
|
1377
|
+
|
|
1378
|
+
|
|
1379
|
+
/**
|
|
1380
|
+
* @const
|
|
1381
|
+
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
1382
|
+
* !proto.loyaltyprogramserviceapi.SetUserFeeDiscountRequest,
|
|
1383
|
+
* !proto.loyaltyprogramserviceapi.ResponseCode>}
|
|
1384
|
+
*/
|
|
1385
|
+
const methodInfo_LoyaltyProgramServiceAPIService_SetUserFeeDiscount = new grpc.web.AbstractClientBase.MethodInfo(
|
|
1386
|
+
proto.loyaltyprogramserviceapi.ResponseCode,
|
|
1387
|
+
/**
|
|
1388
|
+
* @param {!proto.loyaltyprogramserviceapi.SetUserFeeDiscountRequest} request
|
|
1389
|
+
* @return {!Uint8Array}
|
|
1390
|
+
*/
|
|
1391
|
+
function(request) {
|
|
1392
|
+
return request.serializeBinary();
|
|
1393
|
+
},
|
|
1394
|
+
proto.loyaltyprogramserviceapi.ResponseCode.deserializeBinary
|
|
1395
|
+
);
|
|
1396
|
+
|
|
1397
|
+
|
|
1398
|
+
/**
|
|
1399
|
+
* @param {!proto.loyaltyprogramserviceapi.SetUserFeeDiscountRequest} request The
|
|
1400
|
+
* request proto
|
|
1401
|
+
* @param {?Object<string, string>} metadata User defined
|
|
1402
|
+
* call metadata
|
|
1403
|
+
* @param {function(?grpc.web.Error, ?proto.loyaltyprogramserviceapi.ResponseCode)}
|
|
1404
|
+
* callback The callback function(error, response)
|
|
1405
|
+
* @return {!grpc.web.ClientReadableStream<!proto.loyaltyprogramserviceapi.ResponseCode>|undefined}
|
|
1406
|
+
* The XHR Node Readable Stream
|
|
1407
|
+
*/
|
|
1408
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServiceClient.prototype.setUserFeeDiscount =
|
|
1409
|
+
function(request, metadata, callback) {
|
|
1410
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
1411
|
+
'/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/SetUserFeeDiscount',
|
|
1412
|
+
request,
|
|
1413
|
+
metadata || {},
|
|
1414
|
+
methodDescriptor_LoyaltyProgramServiceAPIService_SetUserFeeDiscount,
|
|
1415
|
+
callback);
|
|
1416
|
+
};
|
|
1417
|
+
|
|
1418
|
+
|
|
1419
|
+
/**
|
|
1420
|
+
* @param {!proto.loyaltyprogramserviceapi.SetUserFeeDiscountRequest} request The
|
|
1421
|
+
* request proto
|
|
1422
|
+
* @param {?Object<string, string>} metadata User defined
|
|
1423
|
+
* call metadata
|
|
1424
|
+
* @return {!Promise<!proto.loyaltyprogramserviceapi.ResponseCode>}
|
|
1425
|
+
* Promise that resolves to the response
|
|
1426
|
+
*/
|
|
1427
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServicePromiseClient.prototype.setUserFeeDiscount =
|
|
1428
|
+
function(request, metadata) {
|
|
1429
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
1430
|
+
'/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/SetUserFeeDiscount',
|
|
1431
|
+
request,
|
|
1432
|
+
metadata || {},
|
|
1433
|
+
methodDescriptor_LoyaltyProgramServiceAPIService_SetUserFeeDiscount);
|
|
1434
|
+
};
|
|
1435
|
+
|
|
1436
|
+
|
|
1357
1437
|
/**
|
|
1358
1438
|
* @const
|
|
1359
1439
|
* @type {!grpc.web.MethodDescriptor<
|
|
@@ -45,6 +45,7 @@ goog.exportSymbol('proto.loyaltyprogramserviceapi.ProgramDetailResponse', null,
|
|
|
45
45
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.ProgramDetailsResponse', null, global);
|
|
46
46
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.ResponseCode', null, global);
|
|
47
47
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.SetDefaultMembershipRequest', null, global);
|
|
48
|
+
goog.exportSymbol('proto.loyaltyprogramserviceapi.SetUserFeeDiscountRequest', null, global);
|
|
48
49
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.UnLinkMembershipRequest', null, global);
|
|
49
50
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.ValidateMembershipRequest', null, global);
|
|
50
51
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.ValidateMembershipResponse', null, global);
|
|
@@ -3321,7 +3322,8 @@ proto.loyaltyprogramserviceapi.LoyaltyTransaction.toObject = function(includeIns
|
|
|
3321
3322
|
source: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
3322
3323
|
paymentamount: +jspb.Message.getFieldWithDefault(msg, 9, 0.0),
|
|
3323
3324
|
datemodified: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
3324
|
-
datedeleted: jspb.Message.getFieldWithDefault(msg, 11, "")
|
|
3325
|
+
datedeleted: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
3326
|
+
feepercentagereducedbyamount: jspb.Message.getFieldWithDefault(msg, 12, 0)
|
|
3325
3327
|
};
|
|
3326
3328
|
|
|
3327
3329
|
if (includeInstance) {
|
|
@@ -3402,6 +3404,10 @@ proto.loyaltyprogramserviceapi.LoyaltyTransaction.deserializeBinaryFromReader =
|
|
|
3402
3404
|
var value = /** @type {string} */ (reader.readString());
|
|
3403
3405
|
msg.setDatedeleted(value);
|
|
3404
3406
|
break;
|
|
3407
|
+
case 12:
|
|
3408
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
3409
|
+
msg.setFeepercentagereducedbyamount(value);
|
|
3410
|
+
break;
|
|
3405
3411
|
default:
|
|
3406
3412
|
reader.skipField();
|
|
3407
3413
|
break;
|
|
@@ -3508,6 +3514,13 @@ proto.loyaltyprogramserviceapi.LoyaltyTransaction.serializeBinaryToWriter = func
|
|
|
3508
3514
|
f
|
|
3509
3515
|
);
|
|
3510
3516
|
}
|
|
3517
|
+
f = message.getFeepercentagereducedbyamount();
|
|
3518
|
+
if (f !== 0) {
|
|
3519
|
+
writer.writeInt32(
|
|
3520
|
+
12,
|
|
3521
|
+
f
|
|
3522
|
+
);
|
|
3523
|
+
}
|
|
3511
3524
|
};
|
|
3512
3525
|
|
|
3513
3526
|
|
|
@@ -3676,6 +3689,21 @@ proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.setDatedeleted = fun
|
|
|
3676
3689
|
};
|
|
3677
3690
|
|
|
3678
3691
|
|
|
3692
|
+
/**
|
|
3693
|
+
* optional int32 feePercentageReducedByAmount = 12;
|
|
3694
|
+
* @return {number}
|
|
3695
|
+
*/
|
|
3696
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.getFeepercentagereducedbyamount = function() {
|
|
3697
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
|
|
3698
|
+
};
|
|
3699
|
+
|
|
3700
|
+
|
|
3701
|
+
/** @param {number} value */
|
|
3702
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.setFeepercentagereducedbyamount = function(value) {
|
|
3703
|
+
jspb.Message.setProto3IntField(this, 12, value);
|
|
3704
|
+
};
|
|
3705
|
+
|
|
3706
|
+
|
|
3679
3707
|
|
|
3680
3708
|
/**
|
|
3681
3709
|
* Generated by JsPbCodeGenerator.
|
|
@@ -7213,6 +7241,175 @@ proto.loyaltyprogramserviceapi.SetDefaultMembershipRequest.prototype.setMembersh
|
|
|
7213
7241
|
|
|
7214
7242
|
|
|
7215
7243
|
|
|
7244
|
+
/**
|
|
7245
|
+
* Generated by JsPbCodeGenerator.
|
|
7246
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
7247
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
7248
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
7249
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
7250
|
+
* valid.
|
|
7251
|
+
* @extends {jspb.Message}
|
|
7252
|
+
* @constructor
|
|
7253
|
+
*/
|
|
7254
|
+
proto.loyaltyprogramserviceapi.SetUserFeeDiscountRequest = function(opt_data) {
|
|
7255
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
7256
|
+
};
|
|
7257
|
+
goog.inherits(proto.loyaltyprogramserviceapi.SetUserFeeDiscountRequest, jspb.Message);
|
|
7258
|
+
if (goog.DEBUG && !COMPILED) {
|
|
7259
|
+
proto.loyaltyprogramserviceapi.SetUserFeeDiscountRequest.displayName = 'proto.loyaltyprogramserviceapi.SetUserFeeDiscountRequest';
|
|
7260
|
+
}
|
|
7261
|
+
|
|
7262
|
+
|
|
7263
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7264
|
+
/**
|
|
7265
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
7266
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7267
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7268
|
+
* For the list of reserved names please see:
|
|
7269
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
7270
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
7271
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
7272
|
+
* @return {!Object}
|
|
7273
|
+
*/
|
|
7274
|
+
proto.loyaltyprogramserviceapi.SetUserFeeDiscountRequest.prototype.toObject = function(opt_includeInstance) {
|
|
7275
|
+
return proto.loyaltyprogramserviceapi.SetUserFeeDiscountRequest.toObject(opt_includeInstance, this);
|
|
7276
|
+
};
|
|
7277
|
+
|
|
7278
|
+
|
|
7279
|
+
/**
|
|
7280
|
+
* Static version of the {@see toObject} method.
|
|
7281
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
7282
|
+
* instance for transitional soy proto support:
|
|
7283
|
+
* http://goto/soy-param-migration
|
|
7284
|
+
* @param {!proto.loyaltyprogramserviceapi.SetUserFeeDiscountRequest} msg The msg instance to transform.
|
|
7285
|
+
* @return {!Object}
|
|
7286
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7287
|
+
*/
|
|
7288
|
+
proto.loyaltyprogramserviceapi.SetUserFeeDiscountRequest.toObject = function(includeInstance, msg) {
|
|
7289
|
+
var f, obj = {
|
|
7290
|
+
userid: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
7291
|
+
feediscountamount: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
7292
|
+
};
|
|
7293
|
+
|
|
7294
|
+
if (includeInstance) {
|
|
7295
|
+
obj.$jspbMessageInstance = msg;
|
|
7296
|
+
}
|
|
7297
|
+
return obj;
|
|
7298
|
+
};
|
|
7299
|
+
}
|
|
7300
|
+
|
|
7301
|
+
|
|
7302
|
+
/**
|
|
7303
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7304
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7305
|
+
* @return {!proto.loyaltyprogramserviceapi.SetUserFeeDiscountRequest}
|
|
7306
|
+
*/
|
|
7307
|
+
proto.loyaltyprogramserviceapi.SetUserFeeDiscountRequest.deserializeBinary = function(bytes) {
|
|
7308
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7309
|
+
var msg = new proto.loyaltyprogramserviceapi.SetUserFeeDiscountRequest;
|
|
7310
|
+
return proto.loyaltyprogramserviceapi.SetUserFeeDiscountRequest.deserializeBinaryFromReader(msg, reader);
|
|
7311
|
+
};
|
|
7312
|
+
|
|
7313
|
+
|
|
7314
|
+
/**
|
|
7315
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7316
|
+
* given reader into the given message object.
|
|
7317
|
+
* @param {!proto.loyaltyprogramserviceapi.SetUserFeeDiscountRequest} msg The message object to deserialize into.
|
|
7318
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7319
|
+
* @return {!proto.loyaltyprogramserviceapi.SetUserFeeDiscountRequest}
|
|
7320
|
+
*/
|
|
7321
|
+
proto.loyaltyprogramserviceapi.SetUserFeeDiscountRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
7322
|
+
while (reader.nextField()) {
|
|
7323
|
+
if (reader.isEndGroup()) {
|
|
7324
|
+
break;
|
|
7325
|
+
}
|
|
7326
|
+
var field = reader.getFieldNumber();
|
|
7327
|
+
switch (field) {
|
|
7328
|
+
case 1:
|
|
7329
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
7330
|
+
msg.setUserid(value);
|
|
7331
|
+
break;
|
|
7332
|
+
case 2:
|
|
7333
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
7334
|
+
msg.setFeediscountamount(value);
|
|
7335
|
+
break;
|
|
7336
|
+
default:
|
|
7337
|
+
reader.skipField();
|
|
7338
|
+
break;
|
|
7339
|
+
}
|
|
7340
|
+
}
|
|
7341
|
+
return msg;
|
|
7342
|
+
};
|
|
7343
|
+
|
|
7344
|
+
|
|
7345
|
+
/**
|
|
7346
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7347
|
+
* @return {!Uint8Array}
|
|
7348
|
+
*/
|
|
7349
|
+
proto.loyaltyprogramserviceapi.SetUserFeeDiscountRequest.prototype.serializeBinary = function() {
|
|
7350
|
+
var writer = new jspb.BinaryWriter();
|
|
7351
|
+
proto.loyaltyprogramserviceapi.SetUserFeeDiscountRequest.serializeBinaryToWriter(this, writer);
|
|
7352
|
+
return writer.getResultBuffer();
|
|
7353
|
+
};
|
|
7354
|
+
|
|
7355
|
+
|
|
7356
|
+
/**
|
|
7357
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7358
|
+
* format), writing to the given BinaryWriter.
|
|
7359
|
+
* @param {!proto.loyaltyprogramserviceapi.SetUserFeeDiscountRequest} message
|
|
7360
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7361
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7362
|
+
*/
|
|
7363
|
+
proto.loyaltyprogramserviceapi.SetUserFeeDiscountRequest.serializeBinaryToWriter = function(message, writer) {
|
|
7364
|
+
var f = undefined;
|
|
7365
|
+
f = message.getUserid();
|
|
7366
|
+
if (f !== 0) {
|
|
7367
|
+
writer.writeInt64(
|
|
7368
|
+
1,
|
|
7369
|
+
f
|
|
7370
|
+
);
|
|
7371
|
+
}
|
|
7372
|
+
f = message.getFeediscountamount();
|
|
7373
|
+
if (f !== 0) {
|
|
7374
|
+
writer.writeInt32(
|
|
7375
|
+
2,
|
|
7376
|
+
f
|
|
7377
|
+
);
|
|
7378
|
+
}
|
|
7379
|
+
};
|
|
7380
|
+
|
|
7381
|
+
|
|
7382
|
+
/**
|
|
7383
|
+
* optional int64 userId = 1;
|
|
7384
|
+
* @return {number}
|
|
7385
|
+
*/
|
|
7386
|
+
proto.loyaltyprogramserviceapi.SetUserFeeDiscountRequest.prototype.getUserid = function() {
|
|
7387
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
7388
|
+
};
|
|
7389
|
+
|
|
7390
|
+
|
|
7391
|
+
/** @param {number} value */
|
|
7392
|
+
proto.loyaltyprogramserviceapi.SetUserFeeDiscountRequest.prototype.setUserid = function(value) {
|
|
7393
|
+
jspb.Message.setProto3IntField(this, 1, value);
|
|
7394
|
+
};
|
|
7395
|
+
|
|
7396
|
+
|
|
7397
|
+
/**
|
|
7398
|
+
* optional int32 feeDiscountAmount = 2;
|
|
7399
|
+
* @return {number}
|
|
7400
|
+
*/
|
|
7401
|
+
proto.loyaltyprogramserviceapi.SetUserFeeDiscountRequest.prototype.getFeediscountamount = function() {
|
|
7402
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
7403
|
+
};
|
|
7404
|
+
|
|
7405
|
+
|
|
7406
|
+
/** @param {number} value */
|
|
7407
|
+
proto.loyaltyprogramserviceapi.SetUserFeeDiscountRequest.prototype.setFeediscountamount = function(value) {
|
|
7408
|
+
jspb.Message.setProto3IntField(this, 2, value);
|
|
7409
|
+
};
|
|
7410
|
+
|
|
7411
|
+
|
|
7412
|
+
|
|
7216
7413
|
/**
|
|
7217
7414
|
* Generated by JsPbCodeGenerator.
|
|
7218
7415
|
* @param {Array=} opt_data Optional initial data array, typically from a
|