@sniipwebmaster/loyalty-program-client-grpcweb 26.11.4601 → 26.11.4623
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.
|
@@ -2335,5 +2335,66 @@ proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServicePromiseClient.prot
|
|
|
2335
2335
|
};
|
|
2336
2336
|
|
|
2337
2337
|
|
|
2338
|
+
/**
|
|
2339
|
+
* @const
|
|
2340
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
2341
|
+
* !proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest,
|
|
2342
|
+
* !proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse>}
|
|
2343
|
+
*/
|
|
2344
|
+
const methodDescriptor_LoyaltyProgramServiceAPIService_GetGuestLoyaltyOffers = new grpc.web.MethodDescriptor(
|
|
2345
|
+
'/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/GetGuestLoyaltyOffers',
|
|
2346
|
+
grpc.web.MethodType.UNARY,
|
|
2347
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest,
|
|
2348
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse,
|
|
2349
|
+
/**
|
|
2350
|
+
* @param {!proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest} request
|
|
2351
|
+
* @return {!Uint8Array}
|
|
2352
|
+
*/
|
|
2353
|
+
function(request) {
|
|
2354
|
+
return request.serializeBinary();
|
|
2355
|
+
},
|
|
2356
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse.deserializeBinary
|
|
2357
|
+
);
|
|
2358
|
+
|
|
2359
|
+
|
|
2360
|
+
/**
|
|
2361
|
+
* @param {!proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest} request The
|
|
2362
|
+
* request proto
|
|
2363
|
+
* @param {?Object<string, string>} metadata User defined
|
|
2364
|
+
* call metadata
|
|
2365
|
+
* @param {function(?grpc.web.RpcError, ?proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse)}
|
|
2366
|
+
* callback The callback function(error, response)
|
|
2367
|
+
* @return {!grpc.web.ClientReadableStream<!proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse>|undefined}
|
|
2368
|
+
* The XHR Node Readable Stream
|
|
2369
|
+
*/
|
|
2370
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServiceClient.prototype.getGuestLoyaltyOffers =
|
|
2371
|
+
function(request, metadata, callback) {
|
|
2372
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
2373
|
+
'/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/GetGuestLoyaltyOffers',
|
|
2374
|
+
request,
|
|
2375
|
+
metadata || {},
|
|
2376
|
+
methodDescriptor_LoyaltyProgramServiceAPIService_GetGuestLoyaltyOffers,
|
|
2377
|
+
callback);
|
|
2378
|
+
};
|
|
2379
|
+
|
|
2380
|
+
|
|
2381
|
+
/**
|
|
2382
|
+
* @param {!proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest} request The
|
|
2383
|
+
* request proto
|
|
2384
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
2385
|
+
* call metadata
|
|
2386
|
+
* @return {!Promise<!proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse>}
|
|
2387
|
+
* Promise that resolves to the response
|
|
2388
|
+
*/
|
|
2389
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServicePromiseClient.prototype.getGuestLoyaltyOffers =
|
|
2390
|
+
function(request, metadata) {
|
|
2391
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
2392
|
+
'/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/GetGuestLoyaltyOffers',
|
|
2393
|
+
request,
|
|
2394
|
+
metadata || {},
|
|
2395
|
+
methodDescriptor_LoyaltyProgramServiceAPIService_GetGuestLoyaltyOffers);
|
|
2396
|
+
};
|
|
2397
|
+
|
|
2398
|
+
|
|
2338
2399
|
module.exports = proto.loyaltyprogramserviceapi;
|
|
2339
2400
|
|
|
@@ -35,6 +35,8 @@ goog.exportSymbol('proto.loyaltyprogramserviceapi.CreateProgramRequest.CreatePro
|
|
|
35
35
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.CreateRetroactiveLoyaltyTransactionRequest', null, global);
|
|
36
36
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.CreateRetroactiveLoyaltyTransactionResponse', null, global);
|
|
37
37
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.GetActiveUserMembershipRequest', null, global);
|
|
38
|
+
goog.exportSymbol('proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest', null, global);
|
|
39
|
+
goog.exportSymbol('proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse', null, global);
|
|
38
40
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.GetLoyaltyEligibilitySettingsForBillerRequest', null, global);
|
|
39
41
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.GetLoyaltyEligibilitySettingsForBillerResponse', null, global);
|
|
40
42
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse', null, global);
|
|
@@ -49,6 +51,7 @@ goog.exportSymbol('proto.loyaltyprogramserviceapi.GetProgramListRequest', null,
|
|
|
49
51
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.GetTransactionsHistoryByMembershipIdRequest', null, global);
|
|
50
52
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.GetUserLoyaltyMonthlyLimitStatusRequest', null, global);
|
|
51
53
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.GetUserMembershipsRequest', null, global);
|
|
54
|
+
goog.exportSymbol('proto.loyaltyprogramserviceapi.GuestLoyaltyOffer', null, global);
|
|
52
55
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.HasRewardBeenRedeemedResponse', null, global);
|
|
53
56
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.HypotheticalProgramEarn', null, global);
|
|
54
57
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.LightMembershipDetail', null, global);
|
|
@@ -1303,6 +1306,69 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1303
1306
|
*/
|
|
1304
1307
|
proto.loyaltyprogramserviceapi.CheckBillerLoyaltyRequirementResponse.displayName = 'proto.loyaltyprogramserviceapi.CheckBillerLoyaltyRequirementResponse';
|
|
1305
1308
|
}
|
|
1309
|
+
/**
|
|
1310
|
+
* Generated by JsPbCodeGenerator.
|
|
1311
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1312
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1313
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1314
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1315
|
+
* valid.
|
|
1316
|
+
* @extends {jspb.Message}
|
|
1317
|
+
* @constructor
|
|
1318
|
+
*/
|
|
1319
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest = function(opt_data) {
|
|
1320
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1321
|
+
};
|
|
1322
|
+
goog.inherits(proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest, jspb.Message);
|
|
1323
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1324
|
+
/**
|
|
1325
|
+
* @public
|
|
1326
|
+
* @override
|
|
1327
|
+
*/
|
|
1328
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest.displayName = 'proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest';
|
|
1329
|
+
}
|
|
1330
|
+
/**
|
|
1331
|
+
* Generated by JsPbCodeGenerator.
|
|
1332
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1333
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1334
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1335
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1336
|
+
* valid.
|
|
1337
|
+
* @extends {jspb.Message}
|
|
1338
|
+
* @constructor
|
|
1339
|
+
*/
|
|
1340
|
+
proto.loyaltyprogramserviceapi.GuestLoyaltyOffer = function(opt_data) {
|
|
1341
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1342
|
+
};
|
|
1343
|
+
goog.inherits(proto.loyaltyprogramserviceapi.GuestLoyaltyOffer, jspb.Message);
|
|
1344
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1345
|
+
/**
|
|
1346
|
+
* @public
|
|
1347
|
+
* @override
|
|
1348
|
+
*/
|
|
1349
|
+
proto.loyaltyprogramserviceapi.GuestLoyaltyOffer.displayName = 'proto.loyaltyprogramserviceapi.GuestLoyaltyOffer';
|
|
1350
|
+
}
|
|
1351
|
+
/**
|
|
1352
|
+
* Generated by JsPbCodeGenerator.
|
|
1353
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1354
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1355
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1356
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1357
|
+
* valid.
|
|
1358
|
+
* @extends {jspb.Message}
|
|
1359
|
+
* @constructor
|
|
1360
|
+
*/
|
|
1361
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse = function(opt_data) {
|
|
1362
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse.repeatedFields_, null);
|
|
1363
|
+
};
|
|
1364
|
+
goog.inherits(proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse, jspb.Message);
|
|
1365
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1366
|
+
/**
|
|
1367
|
+
* @public
|
|
1368
|
+
* @override
|
|
1369
|
+
*/
|
|
1370
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse.displayName = 'proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse';
|
|
1371
|
+
}
|
|
1306
1372
|
/**
|
|
1307
1373
|
* Generated by JsPbCodeGenerator.
|
|
1308
1374
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -17317,6 +17383,807 @@ proto.loyaltyprogramserviceapi.CheckBillerLoyaltyRequirementResponse.prototype.c
|
|
|
17317
17383
|
|
|
17318
17384
|
|
|
17319
17385
|
|
|
17386
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
17387
|
+
/**
|
|
17388
|
+
* Creates an object representation of this proto.
|
|
17389
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
17390
|
+
* Optional fields that are not set will be set to undefined.
|
|
17391
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
17392
|
+
* For the list of reserved names please see:
|
|
17393
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
17394
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
17395
|
+
* JSPB instance for transitional soy proto support:
|
|
17396
|
+
* http://goto/soy-param-migration
|
|
17397
|
+
* @return {!Object}
|
|
17398
|
+
*/
|
|
17399
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest.prototype.toObject = function(opt_includeInstance) {
|
|
17400
|
+
return proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest.toObject(opt_includeInstance, this);
|
|
17401
|
+
};
|
|
17402
|
+
|
|
17403
|
+
|
|
17404
|
+
/**
|
|
17405
|
+
* Static version of the {@see toObject} method.
|
|
17406
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
17407
|
+
* the JSPB instance for transitional soy proto support:
|
|
17408
|
+
* http://goto/soy-param-migration
|
|
17409
|
+
* @param {!proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest} msg The msg instance to transform.
|
|
17410
|
+
* @return {!Object}
|
|
17411
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
17412
|
+
*/
|
|
17413
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest.toObject = function(includeInstance, msg) {
|
|
17414
|
+
var f, obj = {
|
|
17415
|
+
billerid: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
17416
|
+
amount: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
|
|
17417
|
+
paymentprocessor: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
17418
|
+
isbusinesstransaction: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
17419
|
+
appaccounttype: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
17420
|
+
};
|
|
17421
|
+
|
|
17422
|
+
if (includeInstance) {
|
|
17423
|
+
obj.$jspbMessageInstance = msg;
|
|
17424
|
+
}
|
|
17425
|
+
return obj;
|
|
17426
|
+
};
|
|
17427
|
+
}
|
|
17428
|
+
|
|
17429
|
+
|
|
17430
|
+
/**
|
|
17431
|
+
* Deserializes binary data (in protobuf wire format).
|
|
17432
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
17433
|
+
* @return {!proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest}
|
|
17434
|
+
*/
|
|
17435
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest.deserializeBinary = function(bytes) {
|
|
17436
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
17437
|
+
var msg = new proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest;
|
|
17438
|
+
return proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest.deserializeBinaryFromReader(msg, reader);
|
|
17439
|
+
};
|
|
17440
|
+
|
|
17441
|
+
|
|
17442
|
+
/**
|
|
17443
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
17444
|
+
* given reader into the given message object.
|
|
17445
|
+
* @param {!proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest} msg The message object to deserialize into.
|
|
17446
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
17447
|
+
* @return {!proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest}
|
|
17448
|
+
*/
|
|
17449
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
17450
|
+
while (reader.nextField()) {
|
|
17451
|
+
if (reader.isEndGroup()) {
|
|
17452
|
+
break;
|
|
17453
|
+
}
|
|
17454
|
+
var field = reader.getFieldNumber();
|
|
17455
|
+
switch (field) {
|
|
17456
|
+
case 1:
|
|
17457
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
17458
|
+
msg.setBillerid(value);
|
|
17459
|
+
break;
|
|
17460
|
+
case 2:
|
|
17461
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
17462
|
+
msg.setAmount(value);
|
|
17463
|
+
break;
|
|
17464
|
+
case 3:
|
|
17465
|
+
var value = /** @type {string} */ (reader.readString());
|
|
17466
|
+
msg.setPaymentprocessor(value);
|
|
17467
|
+
break;
|
|
17468
|
+
case 4:
|
|
17469
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
17470
|
+
msg.setIsbusinesstransaction(value);
|
|
17471
|
+
break;
|
|
17472
|
+
case 5:
|
|
17473
|
+
var value = /** @type {string} */ (reader.readString());
|
|
17474
|
+
msg.setAppaccounttype(value);
|
|
17475
|
+
break;
|
|
17476
|
+
default:
|
|
17477
|
+
reader.skipField();
|
|
17478
|
+
break;
|
|
17479
|
+
}
|
|
17480
|
+
}
|
|
17481
|
+
return msg;
|
|
17482
|
+
};
|
|
17483
|
+
|
|
17484
|
+
|
|
17485
|
+
/**
|
|
17486
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
17487
|
+
* @return {!Uint8Array}
|
|
17488
|
+
*/
|
|
17489
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest.prototype.serializeBinary = function() {
|
|
17490
|
+
var writer = new jspb.BinaryWriter();
|
|
17491
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest.serializeBinaryToWriter(this, writer);
|
|
17492
|
+
return writer.getResultBuffer();
|
|
17493
|
+
};
|
|
17494
|
+
|
|
17495
|
+
|
|
17496
|
+
/**
|
|
17497
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
17498
|
+
* format), writing to the given BinaryWriter.
|
|
17499
|
+
* @param {!proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest} message
|
|
17500
|
+
* @param {!jspb.BinaryWriter} writer
|
|
17501
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
17502
|
+
*/
|
|
17503
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest.serializeBinaryToWriter = function(message, writer) {
|
|
17504
|
+
var f = undefined;
|
|
17505
|
+
f = message.getBillerid();
|
|
17506
|
+
if (f !== 0) {
|
|
17507
|
+
writer.writeInt64(
|
|
17508
|
+
1,
|
|
17509
|
+
f
|
|
17510
|
+
);
|
|
17511
|
+
}
|
|
17512
|
+
f = message.getAmount();
|
|
17513
|
+
if (f !== 0.0) {
|
|
17514
|
+
writer.writeDouble(
|
|
17515
|
+
2,
|
|
17516
|
+
f
|
|
17517
|
+
);
|
|
17518
|
+
}
|
|
17519
|
+
f = message.getPaymentprocessor();
|
|
17520
|
+
if (f.length > 0) {
|
|
17521
|
+
writer.writeString(
|
|
17522
|
+
3,
|
|
17523
|
+
f
|
|
17524
|
+
);
|
|
17525
|
+
}
|
|
17526
|
+
f = message.getIsbusinesstransaction();
|
|
17527
|
+
if (f) {
|
|
17528
|
+
writer.writeBool(
|
|
17529
|
+
4,
|
|
17530
|
+
f
|
|
17531
|
+
);
|
|
17532
|
+
}
|
|
17533
|
+
f = message.getAppaccounttype();
|
|
17534
|
+
if (f.length > 0) {
|
|
17535
|
+
writer.writeString(
|
|
17536
|
+
5,
|
|
17537
|
+
f
|
|
17538
|
+
);
|
|
17539
|
+
}
|
|
17540
|
+
};
|
|
17541
|
+
|
|
17542
|
+
|
|
17543
|
+
/**
|
|
17544
|
+
* optional int64 billerId = 1;
|
|
17545
|
+
* @return {number}
|
|
17546
|
+
*/
|
|
17547
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest.prototype.getBillerid = function() {
|
|
17548
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
17549
|
+
};
|
|
17550
|
+
|
|
17551
|
+
|
|
17552
|
+
/**
|
|
17553
|
+
* @param {number} value
|
|
17554
|
+
* @return {!proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest} returns this
|
|
17555
|
+
*/
|
|
17556
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest.prototype.setBillerid = function(value) {
|
|
17557
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
17558
|
+
};
|
|
17559
|
+
|
|
17560
|
+
|
|
17561
|
+
/**
|
|
17562
|
+
* optional double amount = 2;
|
|
17563
|
+
* @return {number}
|
|
17564
|
+
*/
|
|
17565
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest.prototype.getAmount = function() {
|
|
17566
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
17567
|
+
};
|
|
17568
|
+
|
|
17569
|
+
|
|
17570
|
+
/**
|
|
17571
|
+
* @param {number} value
|
|
17572
|
+
* @return {!proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest} returns this
|
|
17573
|
+
*/
|
|
17574
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest.prototype.setAmount = function(value) {
|
|
17575
|
+
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
17576
|
+
};
|
|
17577
|
+
|
|
17578
|
+
|
|
17579
|
+
/**
|
|
17580
|
+
* optional string paymentProcessor = 3;
|
|
17581
|
+
* @return {string}
|
|
17582
|
+
*/
|
|
17583
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest.prototype.getPaymentprocessor = function() {
|
|
17584
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
17585
|
+
};
|
|
17586
|
+
|
|
17587
|
+
|
|
17588
|
+
/**
|
|
17589
|
+
* @param {string} value
|
|
17590
|
+
* @return {!proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest} returns this
|
|
17591
|
+
*/
|
|
17592
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest.prototype.setPaymentprocessor = function(value) {
|
|
17593
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
17594
|
+
};
|
|
17595
|
+
|
|
17596
|
+
|
|
17597
|
+
/**
|
|
17598
|
+
* optional bool isBusinessTransaction = 4;
|
|
17599
|
+
* @return {boolean}
|
|
17600
|
+
*/
|
|
17601
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest.prototype.getIsbusinesstransaction = function() {
|
|
17602
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
|
|
17603
|
+
};
|
|
17604
|
+
|
|
17605
|
+
|
|
17606
|
+
/**
|
|
17607
|
+
* @param {boolean} value
|
|
17608
|
+
* @return {!proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest} returns this
|
|
17609
|
+
*/
|
|
17610
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest.prototype.setIsbusinesstransaction = function(value) {
|
|
17611
|
+
return jspb.Message.setProto3BooleanField(this, 4, value);
|
|
17612
|
+
};
|
|
17613
|
+
|
|
17614
|
+
|
|
17615
|
+
/**
|
|
17616
|
+
* optional string appAccountType = 5;
|
|
17617
|
+
* @return {string}
|
|
17618
|
+
*/
|
|
17619
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest.prototype.getAppaccounttype = function() {
|
|
17620
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
17621
|
+
};
|
|
17622
|
+
|
|
17623
|
+
|
|
17624
|
+
/**
|
|
17625
|
+
* @param {string} value
|
|
17626
|
+
* @return {!proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest} returns this
|
|
17627
|
+
*/
|
|
17628
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersRequest.prototype.setAppaccounttype = function(value) {
|
|
17629
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
17630
|
+
};
|
|
17631
|
+
|
|
17632
|
+
|
|
17633
|
+
|
|
17634
|
+
|
|
17635
|
+
|
|
17636
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
17637
|
+
/**
|
|
17638
|
+
* Creates an object representation of this proto.
|
|
17639
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
17640
|
+
* Optional fields that are not set will be set to undefined.
|
|
17641
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
17642
|
+
* For the list of reserved names please see:
|
|
17643
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
17644
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
17645
|
+
* JSPB instance for transitional soy proto support:
|
|
17646
|
+
* http://goto/soy-param-migration
|
|
17647
|
+
* @return {!Object}
|
|
17648
|
+
*/
|
|
17649
|
+
proto.loyaltyprogramserviceapi.GuestLoyaltyOffer.prototype.toObject = function(opt_includeInstance) {
|
|
17650
|
+
return proto.loyaltyprogramserviceapi.GuestLoyaltyOffer.toObject(opt_includeInstance, this);
|
|
17651
|
+
};
|
|
17652
|
+
|
|
17653
|
+
|
|
17654
|
+
/**
|
|
17655
|
+
* Static version of the {@see toObject} method.
|
|
17656
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
17657
|
+
* the JSPB instance for transitional soy proto support:
|
|
17658
|
+
* http://goto/soy-param-migration
|
|
17659
|
+
* @param {!proto.loyaltyprogramserviceapi.GuestLoyaltyOffer} msg The msg instance to transform.
|
|
17660
|
+
* @return {!Object}
|
|
17661
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
17662
|
+
*/
|
|
17663
|
+
proto.loyaltyprogramserviceapi.GuestLoyaltyOffer.toObject = function(includeInstance, msg) {
|
|
17664
|
+
var f, obj = {
|
|
17665
|
+
code: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
17666
|
+
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
17667
|
+
shortname: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
17668
|
+
logourl: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
17669
|
+
smalllogourl: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
17670
|
+
pointlabelsingular: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
17671
|
+
pointlabelplural: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
17672
|
+
points: jspb.Message.getFieldWithDefault(msg, 8, 0)
|
|
17673
|
+
};
|
|
17674
|
+
|
|
17675
|
+
if (includeInstance) {
|
|
17676
|
+
obj.$jspbMessageInstance = msg;
|
|
17677
|
+
}
|
|
17678
|
+
return obj;
|
|
17679
|
+
};
|
|
17680
|
+
}
|
|
17681
|
+
|
|
17682
|
+
|
|
17683
|
+
/**
|
|
17684
|
+
* Deserializes binary data (in protobuf wire format).
|
|
17685
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
17686
|
+
* @return {!proto.loyaltyprogramserviceapi.GuestLoyaltyOffer}
|
|
17687
|
+
*/
|
|
17688
|
+
proto.loyaltyprogramserviceapi.GuestLoyaltyOffer.deserializeBinary = function(bytes) {
|
|
17689
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
17690
|
+
var msg = new proto.loyaltyprogramserviceapi.GuestLoyaltyOffer;
|
|
17691
|
+
return proto.loyaltyprogramserviceapi.GuestLoyaltyOffer.deserializeBinaryFromReader(msg, reader);
|
|
17692
|
+
};
|
|
17693
|
+
|
|
17694
|
+
|
|
17695
|
+
/**
|
|
17696
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
17697
|
+
* given reader into the given message object.
|
|
17698
|
+
* @param {!proto.loyaltyprogramserviceapi.GuestLoyaltyOffer} msg The message object to deserialize into.
|
|
17699
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
17700
|
+
* @return {!proto.loyaltyprogramserviceapi.GuestLoyaltyOffer}
|
|
17701
|
+
*/
|
|
17702
|
+
proto.loyaltyprogramserviceapi.GuestLoyaltyOffer.deserializeBinaryFromReader = function(msg, reader) {
|
|
17703
|
+
while (reader.nextField()) {
|
|
17704
|
+
if (reader.isEndGroup()) {
|
|
17705
|
+
break;
|
|
17706
|
+
}
|
|
17707
|
+
var field = reader.getFieldNumber();
|
|
17708
|
+
switch (field) {
|
|
17709
|
+
case 1:
|
|
17710
|
+
var value = /** @type {string} */ (reader.readString());
|
|
17711
|
+
msg.setCode(value);
|
|
17712
|
+
break;
|
|
17713
|
+
case 2:
|
|
17714
|
+
var value = /** @type {string} */ (reader.readString());
|
|
17715
|
+
msg.setName(value);
|
|
17716
|
+
break;
|
|
17717
|
+
case 3:
|
|
17718
|
+
var value = /** @type {string} */ (reader.readString());
|
|
17719
|
+
msg.setShortname(value);
|
|
17720
|
+
break;
|
|
17721
|
+
case 4:
|
|
17722
|
+
var value = /** @type {string} */ (reader.readString());
|
|
17723
|
+
msg.setLogourl(value);
|
|
17724
|
+
break;
|
|
17725
|
+
case 5:
|
|
17726
|
+
var value = /** @type {string} */ (reader.readString());
|
|
17727
|
+
msg.setSmalllogourl(value);
|
|
17728
|
+
break;
|
|
17729
|
+
case 6:
|
|
17730
|
+
var value = /** @type {string} */ (reader.readString());
|
|
17731
|
+
msg.setPointlabelsingular(value);
|
|
17732
|
+
break;
|
|
17733
|
+
case 7:
|
|
17734
|
+
var value = /** @type {string} */ (reader.readString());
|
|
17735
|
+
msg.setPointlabelplural(value);
|
|
17736
|
+
break;
|
|
17737
|
+
case 8:
|
|
17738
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
17739
|
+
msg.setPoints(value);
|
|
17740
|
+
break;
|
|
17741
|
+
default:
|
|
17742
|
+
reader.skipField();
|
|
17743
|
+
break;
|
|
17744
|
+
}
|
|
17745
|
+
}
|
|
17746
|
+
return msg;
|
|
17747
|
+
};
|
|
17748
|
+
|
|
17749
|
+
|
|
17750
|
+
/**
|
|
17751
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
17752
|
+
* @return {!Uint8Array}
|
|
17753
|
+
*/
|
|
17754
|
+
proto.loyaltyprogramserviceapi.GuestLoyaltyOffer.prototype.serializeBinary = function() {
|
|
17755
|
+
var writer = new jspb.BinaryWriter();
|
|
17756
|
+
proto.loyaltyprogramserviceapi.GuestLoyaltyOffer.serializeBinaryToWriter(this, writer);
|
|
17757
|
+
return writer.getResultBuffer();
|
|
17758
|
+
};
|
|
17759
|
+
|
|
17760
|
+
|
|
17761
|
+
/**
|
|
17762
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
17763
|
+
* format), writing to the given BinaryWriter.
|
|
17764
|
+
* @param {!proto.loyaltyprogramserviceapi.GuestLoyaltyOffer} message
|
|
17765
|
+
* @param {!jspb.BinaryWriter} writer
|
|
17766
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
17767
|
+
*/
|
|
17768
|
+
proto.loyaltyprogramserviceapi.GuestLoyaltyOffer.serializeBinaryToWriter = function(message, writer) {
|
|
17769
|
+
var f = undefined;
|
|
17770
|
+
f = message.getCode();
|
|
17771
|
+
if (f.length > 0) {
|
|
17772
|
+
writer.writeString(
|
|
17773
|
+
1,
|
|
17774
|
+
f
|
|
17775
|
+
);
|
|
17776
|
+
}
|
|
17777
|
+
f = message.getName();
|
|
17778
|
+
if (f.length > 0) {
|
|
17779
|
+
writer.writeString(
|
|
17780
|
+
2,
|
|
17781
|
+
f
|
|
17782
|
+
);
|
|
17783
|
+
}
|
|
17784
|
+
f = message.getShortname();
|
|
17785
|
+
if (f.length > 0) {
|
|
17786
|
+
writer.writeString(
|
|
17787
|
+
3,
|
|
17788
|
+
f
|
|
17789
|
+
);
|
|
17790
|
+
}
|
|
17791
|
+
f = message.getLogourl();
|
|
17792
|
+
if (f.length > 0) {
|
|
17793
|
+
writer.writeString(
|
|
17794
|
+
4,
|
|
17795
|
+
f
|
|
17796
|
+
);
|
|
17797
|
+
}
|
|
17798
|
+
f = message.getSmalllogourl();
|
|
17799
|
+
if (f.length > 0) {
|
|
17800
|
+
writer.writeString(
|
|
17801
|
+
5,
|
|
17802
|
+
f
|
|
17803
|
+
);
|
|
17804
|
+
}
|
|
17805
|
+
f = message.getPointlabelsingular();
|
|
17806
|
+
if (f.length > 0) {
|
|
17807
|
+
writer.writeString(
|
|
17808
|
+
6,
|
|
17809
|
+
f
|
|
17810
|
+
);
|
|
17811
|
+
}
|
|
17812
|
+
f = message.getPointlabelplural();
|
|
17813
|
+
if (f.length > 0) {
|
|
17814
|
+
writer.writeString(
|
|
17815
|
+
7,
|
|
17816
|
+
f
|
|
17817
|
+
);
|
|
17818
|
+
}
|
|
17819
|
+
f = message.getPoints();
|
|
17820
|
+
if (f !== 0) {
|
|
17821
|
+
writer.writeInt64(
|
|
17822
|
+
8,
|
|
17823
|
+
f
|
|
17824
|
+
);
|
|
17825
|
+
}
|
|
17826
|
+
};
|
|
17827
|
+
|
|
17828
|
+
|
|
17829
|
+
/**
|
|
17830
|
+
* optional string code = 1;
|
|
17831
|
+
* @return {string}
|
|
17832
|
+
*/
|
|
17833
|
+
proto.loyaltyprogramserviceapi.GuestLoyaltyOffer.prototype.getCode = function() {
|
|
17834
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
17835
|
+
};
|
|
17836
|
+
|
|
17837
|
+
|
|
17838
|
+
/**
|
|
17839
|
+
* @param {string} value
|
|
17840
|
+
* @return {!proto.loyaltyprogramserviceapi.GuestLoyaltyOffer} returns this
|
|
17841
|
+
*/
|
|
17842
|
+
proto.loyaltyprogramserviceapi.GuestLoyaltyOffer.prototype.setCode = function(value) {
|
|
17843
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
17844
|
+
};
|
|
17845
|
+
|
|
17846
|
+
|
|
17847
|
+
/**
|
|
17848
|
+
* optional string name = 2;
|
|
17849
|
+
* @return {string}
|
|
17850
|
+
*/
|
|
17851
|
+
proto.loyaltyprogramserviceapi.GuestLoyaltyOffer.prototype.getName = function() {
|
|
17852
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
17853
|
+
};
|
|
17854
|
+
|
|
17855
|
+
|
|
17856
|
+
/**
|
|
17857
|
+
* @param {string} value
|
|
17858
|
+
* @return {!proto.loyaltyprogramserviceapi.GuestLoyaltyOffer} returns this
|
|
17859
|
+
*/
|
|
17860
|
+
proto.loyaltyprogramserviceapi.GuestLoyaltyOffer.prototype.setName = function(value) {
|
|
17861
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
17862
|
+
};
|
|
17863
|
+
|
|
17864
|
+
|
|
17865
|
+
/**
|
|
17866
|
+
* optional string shortName = 3;
|
|
17867
|
+
* @return {string}
|
|
17868
|
+
*/
|
|
17869
|
+
proto.loyaltyprogramserviceapi.GuestLoyaltyOffer.prototype.getShortname = function() {
|
|
17870
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
17871
|
+
};
|
|
17872
|
+
|
|
17873
|
+
|
|
17874
|
+
/**
|
|
17875
|
+
* @param {string} value
|
|
17876
|
+
* @return {!proto.loyaltyprogramserviceapi.GuestLoyaltyOffer} returns this
|
|
17877
|
+
*/
|
|
17878
|
+
proto.loyaltyprogramserviceapi.GuestLoyaltyOffer.prototype.setShortname = function(value) {
|
|
17879
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
17880
|
+
};
|
|
17881
|
+
|
|
17882
|
+
|
|
17883
|
+
/**
|
|
17884
|
+
* optional string logoUrl = 4;
|
|
17885
|
+
* @return {string}
|
|
17886
|
+
*/
|
|
17887
|
+
proto.loyaltyprogramserviceapi.GuestLoyaltyOffer.prototype.getLogourl = function() {
|
|
17888
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
17889
|
+
};
|
|
17890
|
+
|
|
17891
|
+
|
|
17892
|
+
/**
|
|
17893
|
+
* @param {string} value
|
|
17894
|
+
* @return {!proto.loyaltyprogramserviceapi.GuestLoyaltyOffer} returns this
|
|
17895
|
+
*/
|
|
17896
|
+
proto.loyaltyprogramserviceapi.GuestLoyaltyOffer.prototype.setLogourl = function(value) {
|
|
17897
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
17898
|
+
};
|
|
17899
|
+
|
|
17900
|
+
|
|
17901
|
+
/**
|
|
17902
|
+
* optional string smallLogoUrl = 5;
|
|
17903
|
+
* @return {string}
|
|
17904
|
+
*/
|
|
17905
|
+
proto.loyaltyprogramserviceapi.GuestLoyaltyOffer.prototype.getSmalllogourl = function() {
|
|
17906
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
17907
|
+
};
|
|
17908
|
+
|
|
17909
|
+
|
|
17910
|
+
/**
|
|
17911
|
+
* @param {string} value
|
|
17912
|
+
* @return {!proto.loyaltyprogramserviceapi.GuestLoyaltyOffer} returns this
|
|
17913
|
+
*/
|
|
17914
|
+
proto.loyaltyprogramserviceapi.GuestLoyaltyOffer.prototype.setSmalllogourl = function(value) {
|
|
17915
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
17916
|
+
};
|
|
17917
|
+
|
|
17918
|
+
|
|
17919
|
+
/**
|
|
17920
|
+
* optional string pointLabelSingular = 6;
|
|
17921
|
+
* @return {string}
|
|
17922
|
+
*/
|
|
17923
|
+
proto.loyaltyprogramserviceapi.GuestLoyaltyOffer.prototype.getPointlabelsingular = function() {
|
|
17924
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
17925
|
+
};
|
|
17926
|
+
|
|
17927
|
+
|
|
17928
|
+
/**
|
|
17929
|
+
* @param {string} value
|
|
17930
|
+
* @return {!proto.loyaltyprogramserviceapi.GuestLoyaltyOffer} returns this
|
|
17931
|
+
*/
|
|
17932
|
+
proto.loyaltyprogramserviceapi.GuestLoyaltyOffer.prototype.setPointlabelsingular = function(value) {
|
|
17933
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
17934
|
+
};
|
|
17935
|
+
|
|
17936
|
+
|
|
17937
|
+
/**
|
|
17938
|
+
* optional string pointLabelPlural = 7;
|
|
17939
|
+
* @return {string}
|
|
17940
|
+
*/
|
|
17941
|
+
proto.loyaltyprogramserviceapi.GuestLoyaltyOffer.prototype.getPointlabelplural = function() {
|
|
17942
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
17943
|
+
};
|
|
17944
|
+
|
|
17945
|
+
|
|
17946
|
+
/**
|
|
17947
|
+
* @param {string} value
|
|
17948
|
+
* @return {!proto.loyaltyprogramserviceapi.GuestLoyaltyOffer} returns this
|
|
17949
|
+
*/
|
|
17950
|
+
proto.loyaltyprogramserviceapi.GuestLoyaltyOffer.prototype.setPointlabelplural = function(value) {
|
|
17951
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
17952
|
+
};
|
|
17953
|
+
|
|
17954
|
+
|
|
17955
|
+
/**
|
|
17956
|
+
* optional int64 points = 8;
|
|
17957
|
+
* @return {number}
|
|
17958
|
+
*/
|
|
17959
|
+
proto.loyaltyprogramserviceapi.GuestLoyaltyOffer.prototype.getPoints = function() {
|
|
17960
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
17961
|
+
};
|
|
17962
|
+
|
|
17963
|
+
|
|
17964
|
+
/**
|
|
17965
|
+
* @param {number} value
|
|
17966
|
+
* @return {!proto.loyaltyprogramserviceapi.GuestLoyaltyOffer} returns this
|
|
17967
|
+
*/
|
|
17968
|
+
proto.loyaltyprogramserviceapi.GuestLoyaltyOffer.prototype.setPoints = function(value) {
|
|
17969
|
+
return jspb.Message.setProto3IntField(this, 8, value);
|
|
17970
|
+
};
|
|
17971
|
+
|
|
17972
|
+
|
|
17973
|
+
|
|
17974
|
+
/**
|
|
17975
|
+
* List of repeated fields within this message type.
|
|
17976
|
+
* @private {!Array<number>}
|
|
17977
|
+
* @const
|
|
17978
|
+
*/
|
|
17979
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse.repeatedFields_ = [2];
|
|
17980
|
+
|
|
17981
|
+
|
|
17982
|
+
|
|
17983
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
17984
|
+
/**
|
|
17985
|
+
* Creates an object representation of this proto.
|
|
17986
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
17987
|
+
* Optional fields that are not set will be set to undefined.
|
|
17988
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
17989
|
+
* For the list of reserved names please see:
|
|
17990
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
17991
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
17992
|
+
* JSPB instance for transitional soy proto support:
|
|
17993
|
+
* http://goto/soy-param-migration
|
|
17994
|
+
* @return {!Object}
|
|
17995
|
+
*/
|
|
17996
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse.prototype.toObject = function(opt_includeInstance) {
|
|
17997
|
+
return proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse.toObject(opt_includeInstance, this);
|
|
17998
|
+
};
|
|
17999
|
+
|
|
18000
|
+
|
|
18001
|
+
/**
|
|
18002
|
+
* Static version of the {@see toObject} method.
|
|
18003
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
18004
|
+
* the JSPB instance for transitional soy proto support:
|
|
18005
|
+
* http://goto/soy-param-migration
|
|
18006
|
+
* @param {!proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse} msg The msg instance to transform.
|
|
18007
|
+
* @return {!Object}
|
|
18008
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
18009
|
+
*/
|
|
18010
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse.toObject = function(includeInstance, msg) {
|
|
18011
|
+
var f, obj = {
|
|
18012
|
+
responsecode: (f = msg.getResponsecode()) && proto.loyaltyprogramserviceapi.ResponseCode.toObject(includeInstance, f),
|
|
18013
|
+
offersList: jspb.Message.toObjectList(msg.getOffersList(),
|
|
18014
|
+
proto.loyaltyprogramserviceapi.GuestLoyaltyOffer.toObject, includeInstance)
|
|
18015
|
+
};
|
|
18016
|
+
|
|
18017
|
+
if (includeInstance) {
|
|
18018
|
+
obj.$jspbMessageInstance = msg;
|
|
18019
|
+
}
|
|
18020
|
+
return obj;
|
|
18021
|
+
};
|
|
18022
|
+
}
|
|
18023
|
+
|
|
18024
|
+
|
|
18025
|
+
/**
|
|
18026
|
+
* Deserializes binary data (in protobuf wire format).
|
|
18027
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
18028
|
+
* @return {!proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse}
|
|
18029
|
+
*/
|
|
18030
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse.deserializeBinary = function(bytes) {
|
|
18031
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
18032
|
+
var msg = new proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse;
|
|
18033
|
+
return proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse.deserializeBinaryFromReader(msg, reader);
|
|
18034
|
+
};
|
|
18035
|
+
|
|
18036
|
+
|
|
18037
|
+
/**
|
|
18038
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
18039
|
+
* given reader into the given message object.
|
|
18040
|
+
* @param {!proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse} msg The message object to deserialize into.
|
|
18041
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
18042
|
+
* @return {!proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse}
|
|
18043
|
+
*/
|
|
18044
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
18045
|
+
while (reader.nextField()) {
|
|
18046
|
+
if (reader.isEndGroup()) {
|
|
18047
|
+
break;
|
|
18048
|
+
}
|
|
18049
|
+
var field = reader.getFieldNumber();
|
|
18050
|
+
switch (field) {
|
|
18051
|
+
case 1:
|
|
18052
|
+
var value = new proto.loyaltyprogramserviceapi.ResponseCode;
|
|
18053
|
+
reader.readMessage(value,proto.loyaltyprogramserviceapi.ResponseCode.deserializeBinaryFromReader);
|
|
18054
|
+
msg.setResponsecode(value);
|
|
18055
|
+
break;
|
|
18056
|
+
case 2:
|
|
18057
|
+
var value = new proto.loyaltyprogramserviceapi.GuestLoyaltyOffer;
|
|
18058
|
+
reader.readMessage(value,proto.loyaltyprogramserviceapi.GuestLoyaltyOffer.deserializeBinaryFromReader);
|
|
18059
|
+
msg.addOffers(value);
|
|
18060
|
+
break;
|
|
18061
|
+
default:
|
|
18062
|
+
reader.skipField();
|
|
18063
|
+
break;
|
|
18064
|
+
}
|
|
18065
|
+
}
|
|
18066
|
+
return msg;
|
|
18067
|
+
};
|
|
18068
|
+
|
|
18069
|
+
|
|
18070
|
+
/**
|
|
18071
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
18072
|
+
* @return {!Uint8Array}
|
|
18073
|
+
*/
|
|
18074
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse.prototype.serializeBinary = function() {
|
|
18075
|
+
var writer = new jspb.BinaryWriter();
|
|
18076
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse.serializeBinaryToWriter(this, writer);
|
|
18077
|
+
return writer.getResultBuffer();
|
|
18078
|
+
};
|
|
18079
|
+
|
|
18080
|
+
|
|
18081
|
+
/**
|
|
18082
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
18083
|
+
* format), writing to the given BinaryWriter.
|
|
18084
|
+
* @param {!proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse} message
|
|
18085
|
+
* @param {!jspb.BinaryWriter} writer
|
|
18086
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
18087
|
+
*/
|
|
18088
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse.serializeBinaryToWriter = function(message, writer) {
|
|
18089
|
+
var f = undefined;
|
|
18090
|
+
f = message.getResponsecode();
|
|
18091
|
+
if (f != null) {
|
|
18092
|
+
writer.writeMessage(
|
|
18093
|
+
1,
|
|
18094
|
+
f,
|
|
18095
|
+
proto.loyaltyprogramserviceapi.ResponseCode.serializeBinaryToWriter
|
|
18096
|
+
);
|
|
18097
|
+
}
|
|
18098
|
+
f = message.getOffersList();
|
|
18099
|
+
if (f.length > 0) {
|
|
18100
|
+
writer.writeRepeatedMessage(
|
|
18101
|
+
2,
|
|
18102
|
+
f,
|
|
18103
|
+
proto.loyaltyprogramserviceapi.GuestLoyaltyOffer.serializeBinaryToWriter
|
|
18104
|
+
);
|
|
18105
|
+
}
|
|
18106
|
+
};
|
|
18107
|
+
|
|
18108
|
+
|
|
18109
|
+
/**
|
|
18110
|
+
* optional ResponseCode responseCode = 1;
|
|
18111
|
+
* @return {?proto.loyaltyprogramserviceapi.ResponseCode}
|
|
18112
|
+
*/
|
|
18113
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse.prototype.getResponsecode = function() {
|
|
18114
|
+
return /** @type{?proto.loyaltyprogramserviceapi.ResponseCode} */ (
|
|
18115
|
+
jspb.Message.getWrapperField(this, proto.loyaltyprogramserviceapi.ResponseCode, 1));
|
|
18116
|
+
};
|
|
18117
|
+
|
|
18118
|
+
|
|
18119
|
+
/**
|
|
18120
|
+
* @param {?proto.loyaltyprogramserviceapi.ResponseCode|undefined} value
|
|
18121
|
+
* @return {!proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse} returns this
|
|
18122
|
+
*/
|
|
18123
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse.prototype.setResponsecode = function(value) {
|
|
18124
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
18125
|
+
};
|
|
18126
|
+
|
|
18127
|
+
|
|
18128
|
+
/**
|
|
18129
|
+
* Clears the message field making it undefined.
|
|
18130
|
+
* @return {!proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse} returns this
|
|
18131
|
+
*/
|
|
18132
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse.prototype.clearResponsecode = function() {
|
|
18133
|
+
return this.setResponsecode(undefined);
|
|
18134
|
+
};
|
|
18135
|
+
|
|
18136
|
+
|
|
18137
|
+
/**
|
|
18138
|
+
* Returns whether this field is set.
|
|
18139
|
+
* @return {boolean}
|
|
18140
|
+
*/
|
|
18141
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse.prototype.hasResponsecode = function() {
|
|
18142
|
+
return jspb.Message.getField(this, 1) != null;
|
|
18143
|
+
};
|
|
18144
|
+
|
|
18145
|
+
|
|
18146
|
+
/**
|
|
18147
|
+
* repeated GuestLoyaltyOffer offers = 2;
|
|
18148
|
+
* @return {!Array<!proto.loyaltyprogramserviceapi.GuestLoyaltyOffer>}
|
|
18149
|
+
*/
|
|
18150
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse.prototype.getOffersList = function() {
|
|
18151
|
+
return /** @type{!Array<!proto.loyaltyprogramserviceapi.GuestLoyaltyOffer>} */ (
|
|
18152
|
+
jspb.Message.getRepeatedWrapperField(this, proto.loyaltyprogramserviceapi.GuestLoyaltyOffer, 2));
|
|
18153
|
+
};
|
|
18154
|
+
|
|
18155
|
+
|
|
18156
|
+
/**
|
|
18157
|
+
* @param {!Array<!proto.loyaltyprogramserviceapi.GuestLoyaltyOffer>} value
|
|
18158
|
+
* @return {!proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse} returns this
|
|
18159
|
+
*/
|
|
18160
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse.prototype.setOffersList = function(value) {
|
|
18161
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
18162
|
+
};
|
|
18163
|
+
|
|
18164
|
+
|
|
18165
|
+
/**
|
|
18166
|
+
* @param {!proto.loyaltyprogramserviceapi.GuestLoyaltyOffer=} opt_value
|
|
18167
|
+
* @param {number=} opt_index
|
|
18168
|
+
* @return {!proto.loyaltyprogramserviceapi.GuestLoyaltyOffer}
|
|
18169
|
+
*/
|
|
18170
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse.prototype.addOffers = function(opt_value, opt_index) {
|
|
18171
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.loyaltyprogramserviceapi.GuestLoyaltyOffer, opt_index);
|
|
18172
|
+
};
|
|
18173
|
+
|
|
18174
|
+
|
|
18175
|
+
/**
|
|
18176
|
+
* Clears the list making it empty but non-null.
|
|
18177
|
+
* @return {!proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse} returns this
|
|
18178
|
+
*/
|
|
18179
|
+
proto.loyaltyprogramserviceapi.GetGuestLoyaltyOffersResponse.prototype.clearOffersList = function() {
|
|
18180
|
+
return this.setOffersList([]);
|
|
18181
|
+
};
|
|
18182
|
+
|
|
18183
|
+
|
|
18184
|
+
|
|
18185
|
+
|
|
18186
|
+
|
|
17320
18187
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
17321
18188
|
/**
|
|
17322
18189
|
* Creates an object representation of this proto.
|