@sniipwebmaster/loyalty-program-client-grpcweb 25.8.2210 → 25.8.2220
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.
|
@@ -627,6 +627,67 @@ proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServicePromiseClient.prot
|
|
|
627
627
|
};
|
|
628
628
|
|
|
629
629
|
|
|
630
|
+
/**
|
|
631
|
+
* @const
|
|
632
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
633
|
+
* !proto.loyaltyprogramserviceapi.CalculatePointsRequest,
|
|
634
|
+
* !proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse>}
|
|
635
|
+
*/
|
|
636
|
+
const methodDescriptor_LoyaltyProgramServiceAPIService_GetLoyaltyTiersDetailInternal = new grpc.web.MethodDescriptor(
|
|
637
|
+
'/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/GetLoyaltyTiersDetailInternal',
|
|
638
|
+
grpc.web.MethodType.UNARY,
|
|
639
|
+
proto.loyaltyprogramserviceapi.CalculatePointsRequest,
|
|
640
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse,
|
|
641
|
+
/**
|
|
642
|
+
* @param {!proto.loyaltyprogramserviceapi.CalculatePointsRequest} request
|
|
643
|
+
* @return {!Uint8Array}
|
|
644
|
+
*/
|
|
645
|
+
function(request) {
|
|
646
|
+
return request.serializeBinary();
|
|
647
|
+
},
|
|
648
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse.deserializeBinary
|
|
649
|
+
);
|
|
650
|
+
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* @param {!proto.loyaltyprogramserviceapi.CalculatePointsRequest} request The
|
|
654
|
+
* request proto
|
|
655
|
+
* @param {?Object<string, string>} metadata User defined
|
|
656
|
+
* call metadata
|
|
657
|
+
* @param {function(?grpc.web.RpcError, ?proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse)}
|
|
658
|
+
* callback The callback function(error, response)
|
|
659
|
+
* @return {!grpc.web.ClientReadableStream<!proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse>|undefined}
|
|
660
|
+
* The XHR Node Readable Stream
|
|
661
|
+
*/
|
|
662
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServiceClient.prototype.getLoyaltyTiersDetailInternal =
|
|
663
|
+
function(request, metadata, callback) {
|
|
664
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
665
|
+
'/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/GetLoyaltyTiersDetailInternal',
|
|
666
|
+
request,
|
|
667
|
+
metadata || {},
|
|
668
|
+
methodDescriptor_LoyaltyProgramServiceAPIService_GetLoyaltyTiersDetailInternal,
|
|
669
|
+
callback);
|
|
670
|
+
};
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
/**
|
|
674
|
+
* @param {!proto.loyaltyprogramserviceapi.CalculatePointsRequest} request The
|
|
675
|
+
* request proto
|
|
676
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
677
|
+
* call metadata
|
|
678
|
+
* @return {!Promise<!proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse>}
|
|
679
|
+
* Promise that resolves to the response
|
|
680
|
+
*/
|
|
681
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServicePromiseClient.prototype.getLoyaltyTiersDetailInternal =
|
|
682
|
+
function(request, metadata) {
|
|
683
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
684
|
+
'/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/GetLoyaltyTiersDetailInternal',
|
|
685
|
+
request,
|
|
686
|
+
metadata || {},
|
|
687
|
+
methodDescriptor_LoyaltyProgramServiceAPIService_GetLoyaltyTiersDetailInternal);
|
|
688
|
+
};
|
|
689
|
+
|
|
690
|
+
|
|
630
691
|
/**
|
|
631
692
|
* @const
|
|
632
693
|
* @type {!grpc.web.MethodDescriptor<
|
|
@@ -30,6 +30,7 @@ goog.exportSymbol('proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionReques
|
|
|
30
30
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.CreateProgramRequest', null, global);
|
|
31
31
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.CreateProgramRequest.CreateProgramRequestMembershipNumberType', null, global);
|
|
32
32
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.GetActiveUserMembershipRequest', null, global);
|
|
33
|
+
goog.exportSymbol('proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse', null, global);
|
|
33
34
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.GetLoyaltyTransactionsByMembershipIdRequest', null, global);
|
|
34
35
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.GetMembershipByIdRequest', null, global);
|
|
35
36
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.GetProgramForMembershipInternalRequest', null, global);
|
|
@@ -41,6 +42,7 @@ goog.exportSymbol('proto.loyaltyprogramserviceapi.LightMembershipDetail', null,
|
|
|
41
42
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.LightMembershipDetailResponse', null, global);
|
|
42
43
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.LinkMembershipRequest', null, global);
|
|
43
44
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.LoyaltyProgramOption', null, global);
|
|
45
|
+
goog.exportSymbol('proto.loyaltyprogramserviceapi.LoyaltyTierDetail', null, global);
|
|
44
46
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.LoyaltyTransaction', null, global);
|
|
45
47
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse', null, global);
|
|
46
48
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.MembershipDetail', null, global);
|
|
@@ -292,6 +294,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
292
294
|
*/
|
|
293
295
|
proto.loyaltyprogramserviceapi.GetMembershipByIdRequest.displayName = 'proto.loyaltyprogramserviceapi.GetMembershipByIdRequest';
|
|
294
296
|
}
|
|
297
|
+
/**
|
|
298
|
+
* Generated by JsPbCodeGenerator.
|
|
299
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
300
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
301
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
302
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
303
|
+
* valid.
|
|
304
|
+
* @extends {jspb.Message}
|
|
305
|
+
* @constructor
|
|
306
|
+
*/
|
|
307
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse = function(opt_data) {
|
|
308
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse.repeatedFields_, null);
|
|
309
|
+
};
|
|
310
|
+
goog.inherits(proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse, jspb.Message);
|
|
311
|
+
if (goog.DEBUG && !COMPILED) {
|
|
312
|
+
/**
|
|
313
|
+
* @public
|
|
314
|
+
* @override
|
|
315
|
+
*/
|
|
316
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse.displayName = 'proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse';
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* Generated by JsPbCodeGenerator.
|
|
320
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
321
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
322
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
323
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
324
|
+
* valid.
|
|
325
|
+
* @extends {jspb.Message}
|
|
326
|
+
* @constructor
|
|
327
|
+
*/
|
|
328
|
+
proto.loyaltyprogramserviceapi.LoyaltyTierDetail = function(opt_data) {
|
|
329
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
330
|
+
};
|
|
331
|
+
goog.inherits(proto.loyaltyprogramserviceapi.LoyaltyTierDetail, jspb.Message);
|
|
332
|
+
if (goog.DEBUG && !COMPILED) {
|
|
333
|
+
/**
|
|
334
|
+
* @public
|
|
335
|
+
* @override
|
|
336
|
+
*/
|
|
337
|
+
proto.loyaltyprogramserviceapi.LoyaltyTierDetail.displayName = 'proto.loyaltyprogramserviceapi.LoyaltyTierDetail';
|
|
338
|
+
}
|
|
295
339
|
/**
|
|
296
340
|
* Generated by JsPbCodeGenerator.
|
|
297
341
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -3466,6 +3510,527 @@ proto.loyaltyprogramserviceapi.GetMembershipByIdRequest.prototype.setMembershipi
|
|
|
3466
3510
|
|
|
3467
3511
|
|
|
3468
3512
|
|
|
3513
|
+
/**
|
|
3514
|
+
* List of repeated fields within this message type.
|
|
3515
|
+
* @private {!Array<number>}
|
|
3516
|
+
* @const
|
|
3517
|
+
*/
|
|
3518
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse.repeatedFields_ = [7];
|
|
3519
|
+
|
|
3520
|
+
|
|
3521
|
+
|
|
3522
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3523
|
+
/**
|
|
3524
|
+
* Creates an object representation of this proto.
|
|
3525
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3526
|
+
* Optional fields that are not set will be set to undefined.
|
|
3527
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3528
|
+
* For the list of reserved names please see:
|
|
3529
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3530
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3531
|
+
* JSPB instance for transitional soy proto support:
|
|
3532
|
+
* http://goto/soy-param-migration
|
|
3533
|
+
* @return {!Object}
|
|
3534
|
+
*/
|
|
3535
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3536
|
+
return proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse.toObject(opt_includeInstance, this);
|
|
3537
|
+
};
|
|
3538
|
+
|
|
3539
|
+
|
|
3540
|
+
/**
|
|
3541
|
+
* Static version of the {@see toObject} method.
|
|
3542
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3543
|
+
* the JSPB instance for transitional soy proto support:
|
|
3544
|
+
* http://goto/soy-param-migration
|
|
3545
|
+
* @param {!proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse} msg The msg instance to transform.
|
|
3546
|
+
* @return {!Object}
|
|
3547
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3548
|
+
*/
|
|
3549
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse.toObject = function(includeInstance, msg) {
|
|
3550
|
+
var f, obj = {
|
|
3551
|
+
responsecode: (f = msg.getResponsecode()) && proto.loyaltyprogramserviceapi.ResponseCode.toObject(includeInstance, f),
|
|
3552
|
+
membershipid: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
3553
|
+
membershipnumber: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
3554
|
+
loyaltyprogramname: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
3555
|
+
loyaltypointslabel: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
3556
|
+
loyaltyprogramcode: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
3557
|
+
loyaltytierdetailsList: jspb.Message.toObjectList(msg.getLoyaltytierdetailsList(),
|
|
3558
|
+
proto.loyaltyprogramserviceapi.LoyaltyTierDetail.toObject, includeInstance)
|
|
3559
|
+
};
|
|
3560
|
+
|
|
3561
|
+
if (includeInstance) {
|
|
3562
|
+
obj.$jspbMessageInstance = msg;
|
|
3563
|
+
}
|
|
3564
|
+
return obj;
|
|
3565
|
+
};
|
|
3566
|
+
}
|
|
3567
|
+
|
|
3568
|
+
|
|
3569
|
+
/**
|
|
3570
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3571
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3572
|
+
* @return {!proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse}
|
|
3573
|
+
*/
|
|
3574
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse.deserializeBinary = function(bytes) {
|
|
3575
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3576
|
+
var msg = new proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse;
|
|
3577
|
+
return proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse.deserializeBinaryFromReader(msg, reader);
|
|
3578
|
+
};
|
|
3579
|
+
|
|
3580
|
+
|
|
3581
|
+
/**
|
|
3582
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3583
|
+
* given reader into the given message object.
|
|
3584
|
+
* @param {!proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse} msg The message object to deserialize into.
|
|
3585
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3586
|
+
* @return {!proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse}
|
|
3587
|
+
*/
|
|
3588
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3589
|
+
while (reader.nextField()) {
|
|
3590
|
+
if (reader.isEndGroup()) {
|
|
3591
|
+
break;
|
|
3592
|
+
}
|
|
3593
|
+
var field = reader.getFieldNumber();
|
|
3594
|
+
switch (field) {
|
|
3595
|
+
case 1:
|
|
3596
|
+
var value = new proto.loyaltyprogramserviceapi.ResponseCode;
|
|
3597
|
+
reader.readMessage(value,proto.loyaltyprogramserviceapi.ResponseCode.deserializeBinaryFromReader);
|
|
3598
|
+
msg.setResponsecode(value);
|
|
3599
|
+
break;
|
|
3600
|
+
case 2:
|
|
3601
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
3602
|
+
msg.setMembershipid(value);
|
|
3603
|
+
break;
|
|
3604
|
+
case 3:
|
|
3605
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3606
|
+
msg.setMembershipnumber(value);
|
|
3607
|
+
break;
|
|
3608
|
+
case 4:
|
|
3609
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3610
|
+
msg.setLoyaltyprogramname(value);
|
|
3611
|
+
break;
|
|
3612
|
+
case 5:
|
|
3613
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3614
|
+
msg.setLoyaltypointslabel(value);
|
|
3615
|
+
break;
|
|
3616
|
+
case 6:
|
|
3617
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3618
|
+
msg.setLoyaltyprogramcode(value);
|
|
3619
|
+
break;
|
|
3620
|
+
case 7:
|
|
3621
|
+
var value = new proto.loyaltyprogramserviceapi.LoyaltyTierDetail;
|
|
3622
|
+
reader.readMessage(value,proto.loyaltyprogramserviceapi.LoyaltyTierDetail.deserializeBinaryFromReader);
|
|
3623
|
+
msg.addLoyaltytierdetails(value);
|
|
3624
|
+
break;
|
|
3625
|
+
default:
|
|
3626
|
+
reader.skipField();
|
|
3627
|
+
break;
|
|
3628
|
+
}
|
|
3629
|
+
}
|
|
3630
|
+
return msg;
|
|
3631
|
+
};
|
|
3632
|
+
|
|
3633
|
+
|
|
3634
|
+
/**
|
|
3635
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3636
|
+
* @return {!Uint8Array}
|
|
3637
|
+
*/
|
|
3638
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse.prototype.serializeBinary = function() {
|
|
3639
|
+
var writer = new jspb.BinaryWriter();
|
|
3640
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse.serializeBinaryToWriter(this, writer);
|
|
3641
|
+
return writer.getResultBuffer();
|
|
3642
|
+
};
|
|
3643
|
+
|
|
3644
|
+
|
|
3645
|
+
/**
|
|
3646
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3647
|
+
* format), writing to the given BinaryWriter.
|
|
3648
|
+
* @param {!proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse} message
|
|
3649
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3650
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3651
|
+
*/
|
|
3652
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3653
|
+
var f = undefined;
|
|
3654
|
+
f = message.getResponsecode();
|
|
3655
|
+
if (f != null) {
|
|
3656
|
+
writer.writeMessage(
|
|
3657
|
+
1,
|
|
3658
|
+
f,
|
|
3659
|
+
proto.loyaltyprogramserviceapi.ResponseCode.serializeBinaryToWriter
|
|
3660
|
+
);
|
|
3661
|
+
}
|
|
3662
|
+
f = message.getMembershipid();
|
|
3663
|
+
if (f !== 0) {
|
|
3664
|
+
writer.writeInt64(
|
|
3665
|
+
2,
|
|
3666
|
+
f
|
|
3667
|
+
);
|
|
3668
|
+
}
|
|
3669
|
+
f = message.getMembershipnumber();
|
|
3670
|
+
if (f.length > 0) {
|
|
3671
|
+
writer.writeString(
|
|
3672
|
+
3,
|
|
3673
|
+
f
|
|
3674
|
+
);
|
|
3675
|
+
}
|
|
3676
|
+
f = message.getLoyaltyprogramname();
|
|
3677
|
+
if (f.length > 0) {
|
|
3678
|
+
writer.writeString(
|
|
3679
|
+
4,
|
|
3680
|
+
f
|
|
3681
|
+
);
|
|
3682
|
+
}
|
|
3683
|
+
f = message.getLoyaltypointslabel();
|
|
3684
|
+
if (f.length > 0) {
|
|
3685
|
+
writer.writeString(
|
|
3686
|
+
5,
|
|
3687
|
+
f
|
|
3688
|
+
);
|
|
3689
|
+
}
|
|
3690
|
+
f = message.getLoyaltyprogramcode();
|
|
3691
|
+
if (f.length > 0) {
|
|
3692
|
+
writer.writeString(
|
|
3693
|
+
6,
|
|
3694
|
+
f
|
|
3695
|
+
);
|
|
3696
|
+
}
|
|
3697
|
+
f = message.getLoyaltytierdetailsList();
|
|
3698
|
+
if (f.length > 0) {
|
|
3699
|
+
writer.writeRepeatedMessage(
|
|
3700
|
+
7,
|
|
3701
|
+
f,
|
|
3702
|
+
proto.loyaltyprogramserviceapi.LoyaltyTierDetail.serializeBinaryToWriter
|
|
3703
|
+
);
|
|
3704
|
+
}
|
|
3705
|
+
};
|
|
3706
|
+
|
|
3707
|
+
|
|
3708
|
+
/**
|
|
3709
|
+
* optional ResponseCode responseCode = 1;
|
|
3710
|
+
* @return {?proto.loyaltyprogramserviceapi.ResponseCode}
|
|
3711
|
+
*/
|
|
3712
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse.prototype.getResponsecode = function() {
|
|
3713
|
+
return /** @type{?proto.loyaltyprogramserviceapi.ResponseCode} */ (
|
|
3714
|
+
jspb.Message.getWrapperField(this, proto.loyaltyprogramserviceapi.ResponseCode, 1));
|
|
3715
|
+
};
|
|
3716
|
+
|
|
3717
|
+
|
|
3718
|
+
/**
|
|
3719
|
+
* @param {?proto.loyaltyprogramserviceapi.ResponseCode|undefined} value
|
|
3720
|
+
* @return {!proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse} returns this
|
|
3721
|
+
*/
|
|
3722
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse.prototype.setResponsecode = function(value) {
|
|
3723
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
3724
|
+
};
|
|
3725
|
+
|
|
3726
|
+
|
|
3727
|
+
/**
|
|
3728
|
+
* Clears the message field making it undefined.
|
|
3729
|
+
* @return {!proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse} returns this
|
|
3730
|
+
*/
|
|
3731
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse.prototype.clearResponsecode = function() {
|
|
3732
|
+
return this.setResponsecode(undefined);
|
|
3733
|
+
};
|
|
3734
|
+
|
|
3735
|
+
|
|
3736
|
+
/**
|
|
3737
|
+
* Returns whether this field is set.
|
|
3738
|
+
* @return {boolean}
|
|
3739
|
+
*/
|
|
3740
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse.prototype.hasResponsecode = function() {
|
|
3741
|
+
return jspb.Message.getField(this, 1) != null;
|
|
3742
|
+
};
|
|
3743
|
+
|
|
3744
|
+
|
|
3745
|
+
/**
|
|
3746
|
+
* optional int64 membershipId = 2;
|
|
3747
|
+
* @return {number}
|
|
3748
|
+
*/
|
|
3749
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse.prototype.getMembershipid = function() {
|
|
3750
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
3751
|
+
};
|
|
3752
|
+
|
|
3753
|
+
|
|
3754
|
+
/**
|
|
3755
|
+
* @param {number} value
|
|
3756
|
+
* @return {!proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse} returns this
|
|
3757
|
+
*/
|
|
3758
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse.prototype.setMembershipid = function(value) {
|
|
3759
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
3760
|
+
};
|
|
3761
|
+
|
|
3762
|
+
|
|
3763
|
+
/**
|
|
3764
|
+
* optional string membershipNumber = 3;
|
|
3765
|
+
* @return {string}
|
|
3766
|
+
*/
|
|
3767
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse.prototype.getMembershipnumber = function() {
|
|
3768
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
3769
|
+
};
|
|
3770
|
+
|
|
3771
|
+
|
|
3772
|
+
/**
|
|
3773
|
+
* @param {string} value
|
|
3774
|
+
* @return {!proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse} returns this
|
|
3775
|
+
*/
|
|
3776
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse.prototype.setMembershipnumber = function(value) {
|
|
3777
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
3778
|
+
};
|
|
3779
|
+
|
|
3780
|
+
|
|
3781
|
+
/**
|
|
3782
|
+
* optional string loyaltyProgramName = 4;
|
|
3783
|
+
* @return {string}
|
|
3784
|
+
*/
|
|
3785
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse.prototype.getLoyaltyprogramname = function() {
|
|
3786
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
3787
|
+
};
|
|
3788
|
+
|
|
3789
|
+
|
|
3790
|
+
/**
|
|
3791
|
+
* @param {string} value
|
|
3792
|
+
* @return {!proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse} returns this
|
|
3793
|
+
*/
|
|
3794
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse.prototype.setLoyaltyprogramname = function(value) {
|
|
3795
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
3796
|
+
};
|
|
3797
|
+
|
|
3798
|
+
|
|
3799
|
+
/**
|
|
3800
|
+
* optional string loyaltyPointsLabel = 5;
|
|
3801
|
+
* @return {string}
|
|
3802
|
+
*/
|
|
3803
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse.prototype.getLoyaltypointslabel = function() {
|
|
3804
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
3805
|
+
};
|
|
3806
|
+
|
|
3807
|
+
|
|
3808
|
+
/**
|
|
3809
|
+
* @param {string} value
|
|
3810
|
+
* @return {!proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse} returns this
|
|
3811
|
+
*/
|
|
3812
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse.prototype.setLoyaltypointslabel = function(value) {
|
|
3813
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
3814
|
+
};
|
|
3815
|
+
|
|
3816
|
+
|
|
3817
|
+
/**
|
|
3818
|
+
* optional string loyaltyProgramCode = 6;
|
|
3819
|
+
* @return {string}
|
|
3820
|
+
*/
|
|
3821
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse.prototype.getLoyaltyprogramcode = function() {
|
|
3822
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
3823
|
+
};
|
|
3824
|
+
|
|
3825
|
+
|
|
3826
|
+
/**
|
|
3827
|
+
* @param {string} value
|
|
3828
|
+
* @return {!proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse} returns this
|
|
3829
|
+
*/
|
|
3830
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse.prototype.setLoyaltyprogramcode = function(value) {
|
|
3831
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
3832
|
+
};
|
|
3833
|
+
|
|
3834
|
+
|
|
3835
|
+
/**
|
|
3836
|
+
* repeated LoyaltyTierDetail loyaltyTierDetails = 7;
|
|
3837
|
+
* @return {!Array<!proto.loyaltyprogramserviceapi.LoyaltyTierDetail>}
|
|
3838
|
+
*/
|
|
3839
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse.prototype.getLoyaltytierdetailsList = function() {
|
|
3840
|
+
return /** @type{!Array<!proto.loyaltyprogramserviceapi.LoyaltyTierDetail>} */ (
|
|
3841
|
+
jspb.Message.getRepeatedWrapperField(this, proto.loyaltyprogramserviceapi.LoyaltyTierDetail, 7));
|
|
3842
|
+
};
|
|
3843
|
+
|
|
3844
|
+
|
|
3845
|
+
/**
|
|
3846
|
+
* @param {!Array<!proto.loyaltyprogramserviceapi.LoyaltyTierDetail>} value
|
|
3847
|
+
* @return {!proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse} returns this
|
|
3848
|
+
*/
|
|
3849
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse.prototype.setLoyaltytierdetailsList = function(value) {
|
|
3850
|
+
return jspb.Message.setRepeatedWrapperField(this, 7, value);
|
|
3851
|
+
};
|
|
3852
|
+
|
|
3853
|
+
|
|
3854
|
+
/**
|
|
3855
|
+
* @param {!proto.loyaltyprogramserviceapi.LoyaltyTierDetail=} opt_value
|
|
3856
|
+
* @param {number=} opt_index
|
|
3857
|
+
* @return {!proto.loyaltyprogramserviceapi.LoyaltyTierDetail}
|
|
3858
|
+
*/
|
|
3859
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse.prototype.addLoyaltytierdetails = function(opt_value, opt_index) {
|
|
3860
|
+
return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.loyaltyprogramserviceapi.LoyaltyTierDetail, opt_index);
|
|
3861
|
+
};
|
|
3862
|
+
|
|
3863
|
+
|
|
3864
|
+
/**
|
|
3865
|
+
* Clears the list making it empty but non-null.
|
|
3866
|
+
* @return {!proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse} returns this
|
|
3867
|
+
*/
|
|
3868
|
+
proto.loyaltyprogramserviceapi.GetLoyaltyTiersDetailResponse.prototype.clearLoyaltytierdetailsList = function() {
|
|
3869
|
+
return this.setLoyaltytierdetailsList([]);
|
|
3870
|
+
};
|
|
3871
|
+
|
|
3872
|
+
|
|
3873
|
+
|
|
3874
|
+
|
|
3875
|
+
|
|
3876
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3877
|
+
/**
|
|
3878
|
+
* Creates an object representation of this proto.
|
|
3879
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3880
|
+
* Optional fields that are not set will be set to undefined.
|
|
3881
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3882
|
+
* For the list of reserved names please see:
|
|
3883
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3884
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3885
|
+
* JSPB instance for transitional soy proto support:
|
|
3886
|
+
* http://goto/soy-param-migration
|
|
3887
|
+
* @return {!Object}
|
|
3888
|
+
*/
|
|
3889
|
+
proto.loyaltyprogramserviceapi.LoyaltyTierDetail.prototype.toObject = function(opt_includeInstance) {
|
|
3890
|
+
return proto.loyaltyprogramserviceapi.LoyaltyTierDetail.toObject(opt_includeInstance, this);
|
|
3891
|
+
};
|
|
3892
|
+
|
|
3893
|
+
|
|
3894
|
+
/**
|
|
3895
|
+
* Static version of the {@see toObject} method.
|
|
3896
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3897
|
+
* the JSPB instance for transitional soy proto support:
|
|
3898
|
+
* http://goto/soy-param-migration
|
|
3899
|
+
* @param {!proto.loyaltyprogramserviceapi.LoyaltyTierDetail} msg The msg instance to transform.
|
|
3900
|
+
* @return {!Object}
|
|
3901
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3902
|
+
*/
|
|
3903
|
+
proto.loyaltyprogramserviceapi.LoyaltyTierDetail.toObject = function(includeInstance, msg) {
|
|
3904
|
+
var f, obj = {
|
|
3905
|
+
loyaltyoptionid: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
3906
|
+
points: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
3907
|
+
};
|
|
3908
|
+
|
|
3909
|
+
if (includeInstance) {
|
|
3910
|
+
obj.$jspbMessageInstance = msg;
|
|
3911
|
+
}
|
|
3912
|
+
return obj;
|
|
3913
|
+
};
|
|
3914
|
+
}
|
|
3915
|
+
|
|
3916
|
+
|
|
3917
|
+
/**
|
|
3918
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3919
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3920
|
+
* @return {!proto.loyaltyprogramserviceapi.LoyaltyTierDetail}
|
|
3921
|
+
*/
|
|
3922
|
+
proto.loyaltyprogramserviceapi.LoyaltyTierDetail.deserializeBinary = function(bytes) {
|
|
3923
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3924
|
+
var msg = new proto.loyaltyprogramserviceapi.LoyaltyTierDetail;
|
|
3925
|
+
return proto.loyaltyprogramserviceapi.LoyaltyTierDetail.deserializeBinaryFromReader(msg, reader);
|
|
3926
|
+
};
|
|
3927
|
+
|
|
3928
|
+
|
|
3929
|
+
/**
|
|
3930
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3931
|
+
* given reader into the given message object.
|
|
3932
|
+
* @param {!proto.loyaltyprogramserviceapi.LoyaltyTierDetail} msg The message object to deserialize into.
|
|
3933
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3934
|
+
* @return {!proto.loyaltyprogramserviceapi.LoyaltyTierDetail}
|
|
3935
|
+
*/
|
|
3936
|
+
proto.loyaltyprogramserviceapi.LoyaltyTierDetail.deserializeBinaryFromReader = function(msg, reader) {
|
|
3937
|
+
while (reader.nextField()) {
|
|
3938
|
+
if (reader.isEndGroup()) {
|
|
3939
|
+
break;
|
|
3940
|
+
}
|
|
3941
|
+
var field = reader.getFieldNumber();
|
|
3942
|
+
switch (field) {
|
|
3943
|
+
case 1:
|
|
3944
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
3945
|
+
msg.setLoyaltyoptionid(value);
|
|
3946
|
+
break;
|
|
3947
|
+
case 2:
|
|
3948
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
3949
|
+
msg.setPoints(value);
|
|
3950
|
+
break;
|
|
3951
|
+
default:
|
|
3952
|
+
reader.skipField();
|
|
3953
|
+
break;
|
|
3954
|
+
}
|
|
3955
|
+
}
|
|
3956
|
+
return msg;
|
|
3957
|
+
};
|
|
3958
|
+
|
|
3959
|
+
|
|
3960
|
+
/**
|
|
3961
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3962
|
+
* @return {!Uint8Array}
|
|
3963
|
+
*/
|
|
3964
|
+
proto.loyaltyprogramserviceapi.LoyaltyTierDetail.prototype.serializeBinary = function() {
|
|
3965
|
+
var writer = new jspb.BinaryWriter();
|
|
3966
|
+
proto.loyaltyprogramserviceapi.LoyaltyTierDetail.serializeBinaryToWriter(this, writer);
|
|
3967
|
+
return writer.getResultBuffer();
|
|
3968
|
+
};
|
|
3969
|
+
|
|
3970
|
+
|
|
3971
|
+
/**
|
|
3972
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3973
|
+
* format), writing to the given BinaryWriter.
|
|
3974
|
+
* @param {!proto.loyaltyprogramserviceapi.LoyaltyTierDetail} message
|
|
3975
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3976
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3977
|
+
*/
|
|
3978
|
+
proto.loyaltyprogramserviceapi.LoyaltyTierDetail.serializeBinaryToWriter = function(message, writer) {
|
|
3979
|
+
var f = undefined;
|
|
3980
|
+
f = message.getLoyaltyoptionid();
|
|
3981
|
+
if (f !== 0) {
|
|
3982
|
+
writer.writeInt64(
|
|
3983
|
+
1,
|
|
3984
|
+
f
|
|
3985
|
+
);
|
|
3986
|
+
}
|
|
3987
|
+
f = message.getPoints();
|
|
3988
|
+
if (f !== 0) {
|
|
3989
|
+
writer.writeInt32(
|
|
3990
|
+
2,
|
|
3991
|
+
f
|
|
3992
|
+
);
|
|
3993
|
+
}
|
|
3994
|
+
};
|
|
3995
|
+
|
|
3996
|
+
|
|
3997
|
+
/**
|
|
3998
|
+
* optional int64 loyaltyOptionId = 1;
|
|
3999
|
+
* @return {number}
|
|
4000
|
+
*/
|
|
4001
|
+
proto.loyaltyprogramserviceapi.LoyaltyTierDetail.prototype.getLoyaltyoptionid = function() {
|
|
4002
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
4003
|
+
};
|
|
4004
|
+
|
|
4005
|
+
|
|
4006
|
+
/**
|
|
4007
|
+
* @param {number} value
|
|
4008
|
+
* @return {!proto.loyaltyprogramserviceapi.LoyaltyTierDetail} returns this
|
|
4009
|
+
*/
|
|
4010
|
+
proto.loyaltyprogramserviceapi.LoyaltyTierDetail.prototype.setLoyaltyoptionid = function(value) {
|
|
4011
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
4012
|
+
};
|
|
4013
|
+
|
|
4014
|
+
|
|
4015
|
+
/**
|
|
4016
|
+
* optional int32 points = 2;
|
|
4017
|
+
* @return {number}
|
|
4018
|
+
*/
|
|
4019
|
+
proto.loyaltyprogramserviceapi.LoyaltyTierDetail.prototype.getPoints = function() {
|
|
4020
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
4021
|
+
};
|
|
4022
|
+
|
|
4023
|
+
|
|
4024
|
+
/**
|
|
4025
|
+
* @param {number} value
|
|
4026
|
+
* @return {!proto.loyaltyprogramserviceapi.LoyaltyTierDetail} returns this
|
|
4027
|
+
*/
|
|
4028
|
+
proto.loyaltyprogramserviceapi.LoyaltyTierDetail.prototype.setPoints = function(value) {
|
|
4029
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
4030
|
+
};
|
|
4031
|
+
|
|
4032
|
+
|
|
4033
|
+
|
|
3469
4034
|
|
|
3470
4035
|
|
|
3471
4036
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|