@sniipwebmaster/loyalty-program-client-grpcweb-ts 26.11.4587 → 26.11.4612
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.
|
@@ -1631,5 +1631,48 @@ export class LoyaltyProgramServiceAPIServiceClient {
|
|
|
1631
1631
|
this.methodDescriptorGetUserLoyaltyMonthlyLimitStatus);
|
|
1632
1632
|
}
|
|
1633
1633
|
|
|
1634
|
+
methodDescriptorGetGuestLoyaltyOffers = new grpcWeb.MethodDescriptor(
|
|
1635
|
+
'/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/GetGuestLoyaltyOffers',
|
|
1636
|
+
grpcWeb.MethodType.UNARY,
|
|
1637
|
+
service_pb.GetGuestLoyaltyOffersRequest,
|
|
1638
|
+
service_pb.GetGuestLoyaltyOffersResponse,
|
|
1639
|
+
(request: service_pb.GetGuestLoyaltyOffersRequest) => {
|
|
1640
|
+
return request.serializeBinary();
|
|
1641
|
+
},
|
|
1642
|
+
service_pb.GetGuestLoyaltyOffersResponse.deserializeBinary
|
|
1643
|
+
);
|
|
1644
|
+
|
|
1645
|
+
getGuestLoyaltyOffers(
|
|
1646
|
+
request: service_pb.GetGuestLoyaltyOffersRequest,
|
|
1647
|
+
metadata?: grpcWeb.Metadata | null): Promise<service_pb.GetGuestLoyaltyOffersResponse>;
|
|
1648
|
+
|
|
1649
|
+
getGuestLoyaltyOffers(
|
|
1650
|
+
request: service_pb.GetGuestLoyaltyOffersRequest,
|
|
1651
|
+
metadata: grpcWeb.Metadata | null,
|
|
1652
|
+
callback: (err: grpcWeb.RpcError,
|
|
1653
|
+
response: service_pb.GetGuestLoyaltyOffersResponse) => void): grpcWeb.ClientReadableStream<service_pb.GetGuestLoyaltyOffersResponse>;
|
|
1654
|
+
|
|
1655
|
+
getGuestLoyaltyOffers(
|
|
1656
|
+
request: service_pb.GetGuestLoyaltyOffersRequest,
|
|
1657
|
+
metadata?: grpcWeb.Metadata | null,
|
|
1658
|
+
callback?: (err: grpcWeb.RpcError,
|
|
1659
|
+
response: service_pb.GetGuestLoyaltyOffersResponse) => void) {
|
|
1660
|
+
if (callback !== undefined) {
|
|
1661
|
+
return this.client_.rpcCall(
|
|
1662
|
+
this.hostname_ +
|
|
1663
|
+
'/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/GetGuestLoyaltyOffers',
|
|
1664
|
+
request,
|
|
1665
|
+
metadata || {},
|
|
1666
|
+
this.methodDescriptorGetGuestLoyaltyOffers,
|
|
1667
|
+
callback);
|
|
1668
|
+
}
|
|
1669
|
+
return this.client_.unaryCall(
|
|
1670
|
+
this.hostname_ +
|
|
1671
|
+
'/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/GetGuestLoyaltyOffers',
|
|
1672
|
+
request,
|
|
1673
|
+
metadata || {},
|
|
1674
|
+
this.methodDescriptorGetGuestLoyaltyOffers);
|
|
1675
|
+
}
|
|
1676
|
+
|
|
1634
1677
|
}
|
|
1635
1678
|
|
|
@@ -2117,6 +2117,112 @@ export namespace CheckBillerLoyaltyRequirementResponse {
|
|
|
2117
2117
|
}
|
|
2118
2118
|
}
|
|
2119
2119
|
|
|
2120
|
+
export class GetGuestLoyaltyOffersRequest extends jspb.Message {
|
|
2121
|
+
getBillerid(): number;
|
|
2122
|
+
setBillerid(value: number): GetGuestLoyaltyOffersRequest;
|
|
2123
|
+
|
|
2124
|
+
getAmount(): number;
|
|
2125
|
+
setAmount(value: number): GetGuestLoyaltyOffersRequest;
|
|
2126
|
+
|
|
2127
|
+
getPaymentprocessor(): string;
|
|
2128
|
+
setPaymentprocessor(value: string): GetGuestLoyaltyOffersRequest;
|
|
2129
|
+
|
|
2130
|
+
getIsbusinesstransaction(): boolean;
|
|
2131
|
+
setIsbusinesstransaction(value: boolean): GetGuestLoyaltyOffersRequest;
|
|
2132
|
+
|
|
2133
|
+
getAppaccounttype(): string;
|
|
2134
|
+
setAppaccounttype(value: string): GetGuestLoyaltyOffersRequest;
|
|
2135
|
+
|
|
2136
|
+
serializeBinary(): Uint8Array;
|
|
2137
|
+
toObject(includeInstance?: boolean): GetGuestLoyaltyOffersRequest.AsObject;
|
|
2138
|
+
static toObject(includeInstance: boolean, msg: GetGuestLoyaltyOffersRequest): GetGuestLoyaltyOffersRequest.AsObject;
|
|
2139
|
+
static serializeBinaryToWriter(message: GetGuestLoyaltyOffersRequest, writer: jspb.BinaryWriter): void;
|
|
2140
|
+
static deserializeBinary(bytes: Uint8Array): GetGuestLoyaltyOffersRequest;
|
|
2141
|
+
static deserializeBinaryFromReader(message: GetGuestLoyaltyOffersRequest, reader: jspb.BinaryReader): GetGuestLoyaltyOffersRequest;
|
|
2142
|
+
}
|
|
2143
|
+
|
|
2144
|
+
export namespace GetGuestLoyaltyOffersRequest {
|
|
2145
|
+
export type AsObject = {
|
|
2146
|
+
billerid: number,
|
|
2147
|
+
amount: number,
|
|
2148
|
+
paymentprocessor: string,
|
|
2149
|
+
isbusinesstransaction: boolean,
|
|
2150
|
+
appaccounttype: string,
|
|
2151
|
+
}
|
|
2152
|
+
}
|
|
2153
|
+
|
|
2154
|
+
export class GuestLoyaltyOffer extends jspb.Message {
|
|
2155
|
+
getCode(): string;
|
|
2156
|
+
setCode(value: string): GuestLoyaltyOffer;
|
|
2157
|
+
|
|
2158
|
+
getName(): string;
|
|
2159
|
+
setName(value: string): GuestLoyaltyOffer;
|
|
2160
|
+
|
|
2161
|
+
getShortname(): string;
|
|
2162
|
+
setShortname(value: string): GuestLoyaltyOffer;
|
|
2163
|
+
|
|
2164
|
+
getLogourl(): string;
|
|
2165
|
+
setLogourl(value: string): GuestLoyaltyOffer;
|
|
2166
|
+
|
|
2167
|
+
getSmalllogourl(): string;
|
|
2168
|
+
setSmalllogourl(value: string): GuestLoyaltyOffer;
|
|
2169
|
+
|
|
2170
|
+
getPointlabelsingular(): string;
|
|
2171
|
+
setPointlabelsingular(value: string): GuestLoyaltyOffer;
|
|
2172
|
+
|
|
2173
|
+
getPointlabelplural(): string;
|
|
2174
|
+
setPointlabelplural(value: string): GuestLoyaltyOffer;
|
|
2175
|
+
|
|
2176
|
+
getPoints(): number;
|
|
2177
|
+
setPoints(value: number): GuestLoyaltyOffer;
|
|
2178
|
+
|
|
2179
|
+
serializeBinary(): Uint8Array;
|
|
2180
|
+
toObject(includeInstance?: boolean): GuestLoyaltyOffer.AsObject;
|
|
2181
|
+
static toObject(includeInstance: boolean, msg: GuestLoyaltyOffer): GuestLoyaltyOffer.AsObject;
|
|
2182
|
+
static serializeBinaryToWriter(message: GuestLoyaltyOffer, writer: jspb.BinaryWriter): void;
|
|
2183
|
+
static deserializeBinary(bytes: Uint8Array): GuestLoyaltyOffer;
|
|
2184
|
+
static deserializeBinaryFromReader(message: GuestLoyaltyOffer, reader: jspb.BinaryReader): GuestLoyaltyOffer;
|
|
2185
|
+
}
|
|
2186
|
+
|
|
2187
|
+
export namespace GuestLoyaltyOffer {
|
|
2188
|
+
export type AsObject = {
|
|
2189
|
+
code: string,
|
|
2190
|
+
name: string,
|
|
2191
|
+
shortname: string,
|
|
2192
|
+
logourl: string,
|
|
2193
|
+
smalllogourl: string,
|
|
2194
|
+
pointlabelsingular: string,
|
|
2195
|
+
pointlabelplural: string,
|
|
2196
|
+
points: number,
|
|
2197
|
+
}
|
|
2198
|
+
}
|
|
2199
|
+
|
|
2200
|
+
export class GetGuestLoyaltyOffersResponse extends jspb.Message {
|
|
2201
|
+
getResponsecode(): ResponseCode | undefined;
|
|
2202
|
+
setResponsecode(value?: ResponseCode): GetGuestLoyaltyOffersResponse;
|
|
2203
|
+
hasResponsecode(): boolean;
|
|
2204
|
+
clearResponsecode(): GetGuestLoyaltyOffersResponse;
|
|
2205
|
+
|
|
2206
|
+
getOffersList(): Array<GuestLoyaltyOffer>;
|
|
2207
|
+
setOffersList(value: Array<GuestLoyaltyOffer>): GetGuestLoyaltyOffersResponse;
|
|
2208
|
+
clearOffersList(): GetGuestLoyaltyOffersResponse;
|
|
2209
|
+
addOffers(value?: GuestLoyaltyOffer, index?: number): GuestLoyaltyOffer;
|
|
2210
|
+
|
|
2211
|
+
serializeBinary(): Uint8Array;
|
|
2212
|
+
toObject(includeInstance?: boolean): GetGuestLoyaltyOffersResponse.AsObject;
|
|
2213
|
+
static toObject(includeInstance: boolean, msg: GetGuestLoyaltyOffersResponse): GetGuestLoyaltyOffersResponse.AsObject;
|
|
2214
|
+
static serializeBinaryToWriter(message: GetGuestLoyaltyOffersResponse, writer: jspb.BinaryWriter): void;
|
|
2215
|
+
static deserializeBinary(bytes: Uint8Array): GetGuestLoyaltyOffersResponse;
|
|
2216
|
+
static deserializeBinaryFromReader(message: GetGuestLoyaltyOffersResponse, reader: jspb.BinaryReader): GetGuestLoyaltyOffersResponse;
|
|
2217
|
+
}
|
|
2218
|
+
|
|
2219
|
+
export namespace GetGuestLoyaltyOffersResponse {
|
|
2220
|
+
export type AsObject = {
|
|
2221
|
+
responsecode?: ResponseCode.AsObject,
|
|
2222
|
+
offersList: Array<GuestLoyaltyOffer.AsObject>,
|
|
2223
|
+
}
|
|
2224
|
+
}
|
|
2225
|
+
|
|
2120
2226
|
export class UpdateStandardEarnMonthlyLimitRequest extends jspb.Message {
|
|
2121
2227
|
getLoyaltyprogramid(): number;
|
|
2122
2228
|
setLoyaltyprogramid(value: number): UpdateStandardEarnMonthlyLimitRequest;
|
|
@@ -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.
|