@sniipwebmaster/loyalty-program-client-grpcweb 25.5.1955 → 25.7.1983
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.
- package/dependancies/service_pb.js +426 -4
- package/package.json +1 -1
|
@@ -36,6 +36,7 @@ goog.exportSymbol('proto.loyaltyprogramserviceapi.GetTransactionsHistoryByMember
|
|
|
36
36
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.GetUserMembershipsRequest', null, global);
|
|
37
37
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.HasRewardBeenRedeemedResponse', null, global);
|
|
38
38
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.LinkMembershipRequest', null, global);
|
|
39
|
+
goog.exportSymbol('proto.loyaltyprogramserviceapi.LoyaltyProgramOption', null, global);
|
|
39
40
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.LoyaltyTransaction', null, global);
|
|
40
41
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.LoyaltyTransactionsResponse', null, global);
|
|
41
42
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.MembershipDetail', null, global);
|
|
@@ -592,7 +593,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
592
593
|
* @constructor
|
|
593
594
|
*/
|
|
594
595
|
proto.loyaltyprogramserviceapi.ProgramDetail = function(opt_data) {
|
|
595
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
596
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.loyaltyprogramserviceapi.ProgramDetail.repeatedFields_, null);
|
|
596
597
|
};
|
|
597
598
|
goog.inherits(proto.loyaltyprogramserviceapi.ProgramDetail, jspb.Message);
|
|
598
599
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -602,6 +603,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
602
603
|
*/
|
|
603
604
|
proto.loyaltyprogramserviceapi.ProgramDetail.displayName = 'proto.loyaltyprogramserviceapi.ProgramDetail';
|
|
604
605
|
}
|
|
606
|
+
/**
|
|
607
|
+
* Generated by JsPbCodeGenerator.
|
|
608
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
609
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
610
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
611
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
612
|
+
* valid.
|
|
613
|
+
* @extends {jspb.Message}
|
|
614
|
+
* @constructor
|
|
615
|
+
*/
|
|
616
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramOption = function(opt_data) {
|
|
617
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
618
|
+
};
|
|
619
|
+
goog.inherits(proto.loyaltyprogramserviceapi.LoyaltyProgramOption, jspb.Message);
|
|
620
|
+
if (goog.DEBUG && !COMPILED) {
|
|
621
|
+
/**
|
|
622
|
+
* @public
|
|
623
|
+
* @override
|
|
624
|
+
*/
|
|
625
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramOption.displayName = 'proto.loyaltyprogramserviceapi.LoyaltyProgramOption';
|
|
626
|
+
}
|
|
605
627
|
/**
|
|
606
628
|
* Generated by JsPbCodeGenerator.
|
|
607
629
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -2295,7 +2317,8 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.toObject = functi
|
|
|
2295
2317
|
paymentamount: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
|
|
2296
2318
|
description: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
2297
2319
|
paymentmethodid: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
2298
|
-
isbusinesstransaction: jspb.Message.getBooleanFieldWithDefault(msg, 8, false)
|
|
2320
|
+
isbusinesstransaction: jspb.Message.getBooleanFieldWithDefault(msg, 8, false),
|
|
2321
|
+
loyaltyoptionid: jspb.Message.getFieldWithDefault(msg, 9, 0)
|
|
2299
2322
|
};
|
|
2300
2323
|
|
|
2301
2324
|
if (includeInstance) {
|
|
@@ -2364,6 +2387,10 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.deserializeBinary
|
|
|
2364
2387
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
2365
2388
|
msg.setIsbusinesstransaction(value);
|
|
2366
2389
|
break;
|
|
2390
|
+
case 9:
|
|
2391
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
2392
|
+
msg.setLoyaltyoptionid(value);
|
|
2393
|
+
break;
|
|
2367
2394
|
default:
|
|
2368
2395
|
reader.skipField();
|
|
2369
2396
|
break;
|
|
@@ -2449,6 +2476,13 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.serializeBinaryTo
|
|
|
2449
2476
|
f
|
|
2450
2477
|
);
|
|
2451
2478
|
}
|
|
2479
|
+
f = message.getLoyaltyoptionid();
|
|
2480
|
+
if (f !== 0) {
|
|
2481
|
+
writer.writeInt64(
|
|
2482
|
+
9,
|
|
2483
|
+
f
|
|
2484
|
+
);
|
|
2485
|
+
}
|
|
2452
2486
|
};
|
|
2453
2487
|
|
|
2454
2488
|
|
|
@@ -2596,6 +2630,24 @@ proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.setIsbu
|
|
|
2596
2630
|
};
|
|
2597
2631
|
|
|
2598
2632
|
|
|
2633
|
+
/**
|
|
2634
|
+
* optional int64 loyaltyOptionId = 9;
|
|
2635
|
+
* @return {number}
|
|
2636
|
+
*/
|
|
2637
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.getLoyaltyoptionid = function() {
|
|
2638
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
|
|
2639
|
+
};
|
|
2640
|
+
|
|
2641
|
+
|
|
2642
|
+
/**
|
|
2643
|
+
* @param {number} value
|
|
2644
|
+
* @return {!proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest} returns this
|
|
2645
|
+
*/
|
|
2646
|
+
proto.loyaltyprogramserviceapi.CreateLoyaltyTransactionRequest.prototype.setLoyaltyoptionid = function(value) {
|
|
2647
|
+
return jspb.Message.setProto3IntField(this, 9, value);
|
|
2648
|
+
};
|
|
2649
|
+
|
|
2650
|
+
|
|
2599
2651
|
|
|
2600
2652
|
|
|
2601
2653
|
|
|
@@ -4059,7 +4111,9 @@ proto.loyaltyprogramserviceapi.LoyaltyTransaction.toObject = function(includeIns
|
|
|
4059
4111
|
paymentamount: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0),
|
|
4060
4112
|
datemodified: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
4061
4113
|
datedeleted: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
4062
|
-
feepercentagereducedbyamount: jspb.Message.getFieldWithDefault(msg, 12, 0)
|
|
4114
|
+
feepercentagereducedbyamount: jspb.Message.getFieldWithDefault(msg, 12, 0),
|
|
4115
|
+
loyaltyoptionid: jspb.Message.getFieldWithDefault(msg, 13, 0),
|
|
4116
|
+
loyaltyoptionname: jspb.Message.getFieldWithDefault(msg, 14, "")
|
|
4063
4117
|
};
|
|
4064
4118
|
|
|
4065
4119
|
if (includeInstance) {
|
|
@@ -4144,6 +4198,14 @@ proto.loyaltyprogramserviceapi.LoyaltyTransaction.deserializeBinaryFromReader =
|
|
|
4144
4198
|
var value = /** @type {number} */ (reader.readInt32());
|
|
4145
4199
|
msg.setFeepercentagereducedbyamount(value);
|
|
4146
4200
|
break;
|
|
4201
|
+
case 13:
|
|
4202
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
4203
|
+
msg.setLoyaltyoptionid(value);
|
|
4204
|
+
break;
|
|
4205
|
+
case 14:
|
|
4206
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4207
|
+
msg.setLoyaltyoptionname(value);
|
|
4208
|
+
break;
|
|
4147
4209
|
default:
|
|
4148
4210
|
reader.skipField();
|
|
4149
4211
|
break;
|
|
@@ -4257,6 +4319,20 @@ proto.loyaltyprogramserviceapi.LoyaltyTransaction.serializeBinaryToWriter = func
|
|
|
4257
4319
|
f
|
|
4258
4320
|
);
|
|
4259
4321
|
}
|
|
4322
|
+
f = message.getLoyaltyoptionid();
|
|
4323
|
+
if (f !== 0) {
|
|
4324
|
+
writer.writeInt64(
|
|
4325
|
+
13,
|
|
4326
|
+
f
|
|
4327
|
+
);
|
|
4328
|
+
}
|
|
4329
|
+
f = message.getLoyaltyoptionname();
|
|
4330
|
+
if (f.length > 0) {
|
|
4331
|
+
writer.writeString(
|
|
4332
|
+
14,
|
|
4333
|
+
f
|
|
4334
|
+
);
|
|
4335
|
+
}
|
|
4260
4336
|
};
|
|
4261
4337
|
|
|
4262
4338
|
|
|
@@ -4476,6 +4552,42 @@ proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.setFeepercentageredu
|
|
|
4476
4552
|
};
|
|
4477
4553
|
|
|
4478
4554
|
|
|
4555
|
+
/**
|
|
4556
|
+
* optional int64 loyaltyOptionId = 13;
|
|
4557
|
+
* @return {number}
|
|
4558
|
+
*/
|
|
4559
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.getLoyaltyoptionid = function() {
|
|
4560
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
|
|
4561
|
+
};
|
|
4562
|
+
|
|
4563
|
+
|
|
4564
|
+
/**
|
|
4565
|
+
* @param {number} value
|
|
4566
|
+
* @return {!proto.loyaltyprogramserviceapi.LoyaltyTransaction} returns this
|
|
4567
|
+
*/
|
|
4568
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.setLoyaltyoptionid = function(value) {
|
|
4569
|
+
return jspb.Message.setProto3IntField(this, 13, value);
|
|
4570
|
+
};
|
|
4571
|
+
|
|
4572
|
+
|
|
4573
|
+
/**
|
|
4574
|
+
* optional string loyaltyOptionName = 14;
|
|
4575
|
+
* @return {string}
|
|
4576
|
+
*/
|
|
4577
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.getLoyaltyoptionname = function() {
|
|
4578
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
|
|
4579
|
+
};
|
|
4580
|
+
|
|
4581
|
+
|
|
4582
|
+
/**
|
|
4583
|
+
* @param {string} value
|
|
4584
|
+
* @return {!proto.loyaltyprogramserviceapi.LoyaltyTransaction} returns this
|
|
4585
|
+
*/
|
|
4586
|
+
proto.loyaltyprogramserviceapi.LoyaltyTransaction.prototype.setLoyaltyoptionname = function(value) {
|
|
4587
|
+
return jspb.Message.setProto3StringField(this, 14, value);
|
|
4588
|
+
};
|
|
4589
|
+
|
|
4590
|
+
|
|
4479
4591
|
|
|
4480
4592
|
/**
|
|
4481
4593
|
* List of repeated fields within this message type.
|
|
@@ -6836,6 +6948,13 @@ proto.loyaltyprogramserviceapi.PaymentMethodsResponse.prototype.clearPaymentmeth
|
|
|
6836
6948
|
|
|
6837
6949
|
|
|
6838
6950
|
|
|
6951
|
+
/**
|
|
6952
|
+
* List of repeated fields within this message type.
|
|
6953
|
+
* @private {!Array<number>}
|
|
6954
|
+
* @const
|
|
6955
|
+
*/
|
|
6956
|
+
proto.loyaltyprogramserviceapi.ProgramDetail.repeatedFields_ = [18];
|
|
6957
|
+
|
|
6839
6958
|
|
|
6840
6959
|
|
|
6841
6960
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -6883,7 +7002,9 @@ proto.loyaltyprogramserviceapi.ProgramDetail.toObject = function(includeInstance
|
|
|
6883
7002
|
membershipnumberlabel: jspb.Message.getFieldWithDefault(msg, 14, ""),
|
|
6884
7003
|
ishidden: jspb.Message.getBooleanFieldWithDefault(msg, 15, false),
|
|
6885
7004
|
feediscountmessage: jspb.Message.getFieldWithDefault(msg, 16, ""),
|
|
6886
|
-
issurnamevalidation: jspb.Message.getBooleanFieldWithDefault(msg, 17, false)
|
|
7005
|
+
issurnamevalidation: jspb.Message.getBooleanFieldWithDefault(msg, 17, false),
|
|
7006
|
+
loyaltyoptionsList: jspb.Message.toObjectList(msg.getLoyaltyoptionsList(),
|
|
7007
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramOption.toObject, includeInstance)
|
|
6887
7008
|
};
|
|
6888
7009
|
|
|
6889
7010
|
if (includeInstance) {
|
|
@@ -6988,6 +7109,11 @@ proto.loyaltyprogramserviceapi.ProgramDetail.deserializeBinaryFromReader = funct
|
|
|
6988
7109
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
6989
7110
|
msg.setIssurnamevalidation(value);
|
|
6990
7111
|
break;
|
|
7112
|
+
case 18:
|
|
7113
|
+
var value = new proto.loyaltyprogramserviceapi.LoyaltyProgramOption;
|
|
7114
|
+
reader.readMessage(value,proto.loyaltyprogramserviceapi.LoyaltyProgramOption.deserializeBinaryFromReader);
|
|
7115
|
+
msg.addLoyaltyoptions(value);
|
|
7116
|
+
break;
|
|
6991
7117
|
default:
|
|
6992
7118
|
reader.skipField();
|
|
6993
7119
|
break;
|
|
@@ -7136,6 +7262,14 @@ proto.loyaltyprogramserviceapi.ProgramDetail.serializeBinaryToWriter = function(
|
|
|
7136
7262
|
f
|
|
7137
7263
|
);
|
|
7138
7264
|
}
|
|
7265
|
+
f = message.getLoyaltyoptionsList();
|
|
7266
|
+
if (f.length > 0) {
|
|
7267
|
+
writer.writeRepeatedMessage(
|
|
7268
|
+
18,
|
|
7269
|
+
f,
|
|
7270
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramOption.serializeBinaryToWriter
|
|
7271
|
+
);
|
|
7272
|
+
}
|
|
7139
7273
|
};
|
|
7140
7274
|
|
|
7141
7275
|
|
|
@@ -7455,6 +7589,294 @@ proto.loyaltyprogramserviceapi.ProgramDetail.prototype.setIssurnamevalidation =
|
|
|
7455
7589
|
};
|
|
7456
7590
|
|
|
7457
7591
|
|
|
7592
|
+
/**
|
|
7593
|
+
* repeated LoyaltyProgramOption loyaltyOptions = 18;
|
|
7594
|
+
* @return {!Array<!proto.loyaltyprogramserviceapi.LoyaltyProgramOption>}
|
|
7595
|
+
*/
|
|
7596
|
+
proto.loyaltyprogramserviceapi.ProgramDetail.prototype.getLoyaltyoptionsList = function() {
|
|
7597
|
+
return /** @type{!Array<!proto.loyaltyprogramserviceapi.LoyaltyProgramOption>} */ (
|
|
7598
|
+
jspb.Message.getRepeatedWrapperField(this, proto.loyaltyprogramserviceapi.LoyaltyProgramOption, 18));
|
|
7599
|
+
};
|
|
7600
|
+
|
|
7601
|
+
|
|
7602
|
+
/**
|
|
7603
|
+
* @param {!Array<!proto.loyaltyprogramserviceapi.LoyaltyProgramOption>} value
|
|
7604
|
+
* @return {!proto.loyaltyprogramserviceapi.ProgramDetail} returns this
|
|
7605
|
+
*/
|
|
7606
|
+
proto.loyaltyprogramserviceapi.ProgramDetail.prototype.setLoyaltyoptionsList = function(value) {
|
|
7607
|
+
return jspb.Message.setRepeatedWrapperField(this, 18, value);
|
|
7608
|
+
};
|
|
7609
|
+
|
|
7610
|
+
|
|
7611
|
+
/**
|
|
7612
|
+
* @param {!proto.loyaltyprogramserviceapi.LoyaltyProgramOption=} opt_value
|
|
7613
|
+
* @param {number=} opt_index
|
|
7614
|
+
* @return {!proto.loyaltyprogramserviceapi.LoyaltyProgramOption}
|
|
7615
|
+
*/
|
|
7616
|
+
proto.loyaltyprogramserviceapi.ProgramDetail.prototype.addLoyaltyoptions = function(opt_value, opt_index) {
|
|
7617
|
+
return jspb.Message.addToRepeatedWrapperField(this, 18, opt_value, proto.loyaltyprogramserviceapi.LoyaltyProgramOption, opt_index);
|
|
7618
|
+
};
|
|
7619
|
+
|
|
7620
|
+
|
|
7621
|
+
/**
|
|
7622
|
+
* Clears the list making it empty but non-null.
|
|
7623
|
+
* @return {!proto.loyaltyprogramserviceapi.ProgramDetail} returns this
|
|
7624
|
+
*/
|
|
7625
|
+
proto.loyaltyprogramserviceapi.ProgramDetail.prototype.clearLoyaltyoptionsList = function() {
|
|
7626
|
+
return this.setLoyaltyoptionsList([]);
|
|
7627
|
+
};
|
|
7628
|
+
|
|
7629
|
+
|
|
7630
|
+
|
|
7631
|
+
|
|
7632
|
+
|
|
7633
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7634
|
+
/**
|
|
7635
|
+
* Creates an object representation of this proto.
|
|
7636
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7637
|
+
* Optional fields that are not set will be set to undefined.
|
|
7638
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7639
|
+
* For the list of reserved names please see:
|
|
7640
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7641
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7642
|
+
* JSPB instance for transitional soy proto support:
|
|
7643
|
+
* http://goto/soy-param-migration
|
|
7644
|
+
* @return {!Object}
|
|
7645
|
+
*/
|
|
7646
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramOption.prototype.toObject = function(opt_includeInstance) {
|
|
7647
|
+
return proto.loyaltyprogramserviceapi.LoyaltyProgramOption.toObject(opt_includeInstance, this);
|
|
7648
|
+
};
|
|
7649
|
+
|
|
7650
|
+
|
|
7651
|
+
/**
|
|
7652
|
+
* Static version of the {@see toObject} method.
|
|
7653
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7654
|
+
* the JSPB instance for transitional soy proto support:
|
|
7655
|
+
* http://goto/soy-param-migration
|
|
7656
|
+
* @param {!proto.loyaltyprogramserviceapi.LoyaltyProgramOption} msg The msg instance to transform.
|
|
7657
|
+
* @return {!Object}
|
|
7658
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7659
|
+
*/
|
|
7660
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramOption.toObject = function(includeInstance, msg) {
|
|
7661
|
+
var f, obj = {
|
|
7662
|
+
loyaltyprogramoptionid: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
7663
|
+
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
7664
|
+
earned: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
7665
|
+
spent: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
7666
|
+
isdefault: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
|
|
7667
|
+
};
|
|
7668
|
+
|
|
7669
|
+
if (includeInstance) {
|
|
7670
|
+
obj.$jspbMessageInstance = msg;
|
|
7671
|
+
}
|
|
7672
|
+
return obj;
|
|
7673
|
+
};
|
|
7674
|
+
}
|
|
7675
|
+
|
|
7676
|
+
|
|
7677
|
+
/**
|
|
7678
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7679
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7680
|
+
* @return {!proto.loyaltyprogramserviceapi.LoyaltyProgramOption}
|
|
7681
|
+
*/
|
|
7682
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramOption.deserializeBinary = function(bytes) {
|
|
7683
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7684
|
+
var msg = new proto.loyaltyprogramserviceapi.LoyaltyProgramOption;
|
|
7685
|
+
return proto.loyaltyprogramserviceapi.LoyaltyProgramOption.deserializeBinaryFromReader(msg, reader);
|
|
7686
|
+
};
|
|
7687
|
+
|
|
7688
|
+
|
|
7689
|
+
/**
|
|
7690
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7691
|
+
* given reader into the given message object.
|
|
7692
|
+
* @param {!proto.loyaltyprogramserviceapi.LoyaltyProgramOption} msg The message object to deserialize into.
|
|
7693
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7694
|
+
* @return {!proto.loyaltyprogramserviceapi.LoyaltyProgramOption}
|
|
7695
|
+
*/
|
|
7696
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramOption.deserializeBinaryFromReader = function(msg, reader) {
|
|
7697
|
+
while (reader.nextField()) {
|
|
7698
|
+
if (reader.isEndGroup()) {
|
|
7699
|
+
break;
|
|
7700
|
+
}
|
|
7701
|
+
var field = reader.getFieldNumber();
|
|
7702
|
+
switch (field) {
|
|
7703
|
+
case 1:
|
|
7704
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
7705
|
+
msg.setLoyaltyprogramoptionid(value);
|
|
7706
|
+
break;
|
|
7707
|
+
case 2:
|
|
7708
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7709
|
+
msg.setName(value);
|
|
7710
|
+
break;
|
|
7711
|
+
case 3:
|
|
7712
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
7713
|
+
msg.setEarned(value);
|
|
7714
|
+
break;
|
|
7715
|
+
case 4:
|
|
7716
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
7717
|
+
msg.setSpent(value);
|
|
7718
|
+
break;
|
|
7719
|
+
case 5:
|
|
7720
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
7721
|
+
msg.setIsdefault(value);
|
|
7722
|
+
break;
|
|
7723
|
+
default:
|
|
7724
|
+
reader.skipField();
|
|
7725
|
+
break;
|
|
7726
|
+
}
|
|
7727
|
+
}
|
|
7728
|
+
return msg;
|
|
7729
|
+
};
|
|
7730
|
+
|
|
7731
|
+
|
|
7732
|
+
/**
|
|
7733
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7734
|
+
* @return {!Uint8Array}
|
|
7735
|
+
*/
|
|
7736
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramOption.prototype.serializeBinary = function() {
|
|
7737
|
+
var writer = new jspb.BinaryWriter();
|
|
7738
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramOption.serializeBinaryToWriter(this, writer);
|
|
7739
|
+
return writer.getResultBuffer();
|
|
7740
|
+
};
|
|
7741
|
+
|
|
7742
|
+
|
|
7743
|
+
/**
|
|
7744
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7745
|
+
* format), writing to the given BinaryWriter.
|
|
7746
|
+
* @param {!proto.loyaltyprogramserviceapi.LoyaltyProgramOption} message
|
|
7747
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7748
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7749
|
+
*/
|
|
7750
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramOption.serializeBinaryToWriter = function(message, writer) {
|
|
7751
|
+
var f = undefined;
|
|
7752
|
+
f = message.getLoyaltyprogramoptionid();
|
|
7753
|
+
if (f !== 0) {
|
|
7754
|
+
writer.writeInt64(
|
|
7755
|
+
1,
|
|
7756
|
+
f
|
|
7757
|
+
);
|
|
7758
|
+
}
|
|
7759
|
+
f = message.getName();
|
|
7760
|
+
if (f.length > 0) {
|
|
7761
|
+
writer.writeString(
|
|
7762
|
+
2,
|
|
7763
|
+
f
|
|
7764
|
+
);
|
|
7765
|
+
}
|
|
7766
|
+
f = message.getEarned();
|
|
7767
|
+
if (f !== 0) {
|
|
7768
|
+
writer.writeInt32(
|
|
7769
|
+
3,
|
|
7770
|
+
f
|
|
7771
|
+
);
|
|
7772
|
+
}
|
|
7773
|
+
f = message.getSpent();
|
|
7774
|
+
if (f !== 0) {
|
|
7775
|
+
writer.writeInt32(
|
|
7776
|
+
4,
|
|
7777
|
+
f
|
|
7778
|
+
);
|
|
7779
|
+
}
|
|
7780
|
+
f = message.getIsdefault();
|
|
7781
|
+
if (f) {
|
|
7782
|
+
writer.writeBool(
|
|
7783
|
+
5,
|
|
7784
|
+
f
|
|
7785
|
+
);
|
|
7786
|
+
}
|
|
7787
|
+
};
|
|
7788
|
+
|
|
7789
|
+
|
|
7790
|
+
/**
|
|
7791
|
+
* optional int64 loyaltyProgramOptionId = 1;
|
|
7792
|
+
* @return {number}
|
|
7793
|
+
*/
|
|
7794
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramOption.prototype.getLoyaltyprogramoptionid = function() {
|
|
7795
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
7796
|
+
};
|
|
7797
|
+
|
|
7798
|
+
|
|
7799
|
+
/**
|
|
7800
|
+
* @param {number} value
|
|
7801
|
+
* @return {!proto.loyaltyprogramserviceapi.LoyaltyProgramOption} returns this
|
|
7802
|
+
*/
|
|
7803
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramOption.prototype.setLoyaltyprogramoptionid = function(value) {
|
|
7804
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
7805
|
+
};
|
|
7806
|
+
|
|
7807
|
+
|
|
7808
|
+
/**
|
|
7809
|
+
* optional string name = 2;
|
|
7810
|
+
* @return {string}
|
|
7811
|
+
*/
|
|
7812
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramOption.prototype.getName = function() {
|
|
7813
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
7814
|
+
};
|
|
7815
|
+
|
|
7816
|
+
|
|
7817
|
+
/**
|
|
7818
|
+
* @param {string} value
|
|
7819
|
+
* @return {!proto.loyaltyprogramserviceapi.LoyaltyProgramOption} returns this
|
|
7820
|
+
*/
|
|
7821
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramOption.prototype.setName = function(value) {
|
|
7822
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
7823
|
+
};
|
|
7824
|
+
|
|
7825
|
+
|
|
7826
|
+
/**
|
|
7827
|
+
* optional int32 earned = 3;
|
|
7828
|
+
* @return {number}
|
|
7829
|
+
*/
|
|
7830
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramOption.prototype.getEarned = function() {
|
|
7831
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
7832
|
+
};
|
|
7833
|
+
|
|
7834
|
+
|
|
7835
|
+
/**
|
|
7836
|
+
* @param {number} value
|
|
7837
|
+
* @return {!proto.loyaltyprogramserviceapi.LoyaltyProgramOption} returns this
|
|
7838
|
+
*/
|
|
7839
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramOption.prototype.setEarned = function(value) {
|
|
7840
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
7841
|
+
};
|
|
7842
|
+
|
|
7843
|
+
|
|
7844
|
+
/**
|
|
7845
|
+
* optional int32 spent = 4;
|
|
7846
|
+
* @return {number}
|
|
7847
|
+
*/
|
|
7848
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramOption.prototype.getSpent = function() {
|
|
7849
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
7850
|
+
};
|
|
7851
|
+
|
|
7852
|
+
|
|
7853
|
+
/**
|
|
7854
|
+
* @param {number} value
|
|
7855
|
+
* @return {!proto.loyaltyprogramserviceapi.LoyaltyProgramOption} returns this
|
|
7856
|
+
*/
|
|
7857
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramOption.prototype.setSpent = function(value) {
|
|
7858
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
7859
|
+
};
|
|
7860
|
+
|
|
7861
|
+
|
|
7862
|
+
/**
|
|
7863
|
+
* optional bool isDefault = 5;
|
|
7864
|
+
* @return {boolean}
|
|
7865
|
+
*/
|
|
7866
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramOption.prototype.getIsdefault = function() {
|
|
7867
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
|
|
7868
|
+
};
|
|
7869
|
+
|
|
7870
|
+
|
|
7871
|
+
/**
|
|
7872
|
+
* @param {boolean} value
|
|
7873
|
+
* @return {!proto.loyaltyprogramserviceapi.LoyaltyProgramOption} returns this
|
|
7874
|
+
*/
|
|
7875
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramOption.prototype.setIsdefault = function(value) {
|
|
7876
|
+
return jspb.Message.setProto3BooleanField(this, 5, value);
|
|
7877
|
+
};
|
|
7878
|
+
|
|
7879
|
+
|
|
7458
7880
|
|
|
7459
7881
|
|
|
7460
7882
|
|