@sniipwebmaster/loyalty-program-client-grpcweb 22.16.146 → 22.16.164
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_grpc_web_pb.js +160 -0
- package/dependancies/service_pb.js +867 -56
- package/package.json +1 -1
|
@@ -74,6 +74,86 @@ proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServicePromiseClient =
|
|
|
74
74
|
};
|
|
75
75
|
|
|
76
76
|
|
|
77
|
+
/**
|
|
78
|
+
* @const
|
|
79
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
80
|
+
* !proto.loyaltyprogramserviceapi.CreateJournalEntryForTransactionRequest,
|
|
81
|
+
* !proto.loyaltyprogramserviceapi.ResponseCode>}
|
|
82
|
+
*/
|
|
83
|
+
const methodDescriptor_LoyaltyProgramServiceAPIService_CreateJournalEntryForTransaction = new grpc.web.MethodDescriptor(
|
|
84
|
+
'/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/CreateJournalEntryForTransaction',
|
|
85
|
+
grpc.web.MethodType.UNARY,
|
|
86
|
+
proto.loyaltyprogramserviceapi.CreateJournalEntryForTransactionRequest,
|
|
87
|
+
proto.loyaltyprogramserviceapi.ResponseCode,
|
|
88
|
+
/**
|
|
89
|
+
* @param {!proto.loyaltyprogramserviceapi.CreateJournalEntryForTransactionRequest} request
|
|
90
|
+
* @return {!Uint8Array}
|
|
91
|
+
*/
|
|
92
|
+
function(request) {
|
|
93
|
+
return request.serializeBinary();
|
|
94
|
+
},
|
|
95
|
+
proto.loyaltyprogramserviceapi.ResponseCode.deserializeBinary
|
|
96
|
+
);
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @const
|
|
101
|
+
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
102
|
+
* !proto.loyaltyprogramserviceapi.CreateJournalEntryForTransactionRequest,
|
|
103
|
+
* !proto.loyaltyprogramserviceapi.ResponseCode>}
|
|
104
|
+
*/
|
|
105
|
+
const methodInfo_LoyaltyProgramServiceAPIService_CreateJournalEntryForTransaction = new grpc.web.AbstractClientBase.MethodInfo(
|
|
106
|
+
proto.loyaltyprogramserviceapi.ResponseCode,
|
|
107
|
+
/**
|
|
108
|
+
* @param {!proto.loyaltyprogramserviceapi.CreateJournalEntryForTransactionRequest} request
|
|
109
|
+
* @return {!Uint8Array}
|
|
110
|
+
*/
|
|
111
|
+
function(request) {
|
|
112
|
+
return request.serializeBinary();
|
|
113
|
+
},
|
|
114
|
+
proto.loyaltyprogramserviceapi.ResponseCode.deserializeBinary
|
|
115
|
+
);
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* @param {!proto.loyaltyprogramserviceapi.CreateJournalEntryForTransactionRequest} request The
|
|
120
|
+
* request proto
|
|
121
|
+
* @param {?Object<string, string>} metadata User defined
|
|
122
|
+
* call metadata
|
|
123
|
+
* @param {function(?grpc.web.Error, ?proto.loyaltyprogramserviceapi.ResponseCode)}
|
|
124
|
+
* callback The callback function(error, response)
|
|
125
|
+
* @return {!grpc.web.ClientReadableStream<!proto.loyaltyprogramserviceapi.ResponseCode>|undefined}
|
|
126
|
+
* The XHR Node Readable Stream
|
|
127
|
+
*/
|
|
128
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServiceClient.prototype.createJournalEntryForTransaction =
|
|
129
|
+
function(request, metadata, callback) {
|
|
130
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
131
|
+
'/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/CreateJournalEntryForTransaction',
|
|
132
|
+
request,
|
|
133
|
+
metadata || {},
|
|
134
|
+
methodDescriptor_LoyaltyProgramServiceAPIService_CreateJournalEntryForTransaction,
|
|
135
|
+
callback);
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @param {!proto.loyaltyprogramserviceapi.CreateJournalEntryForTransactionRequest} request The
|
|
141
|
+
* request proto
|
|
142
|
+
* @param {?Object<string, string>} metadata User defined
|
|
143
|
+
* call metadata
|
|
144
|
+
* @return {!Promise<!proto.loyaltyprogramserviceapi.ResponseCode>}
|
|
145
|
+
* Promise that resolves to the response
|
|
146
|
+
*/
|
|
147
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServicePromiseClient.prototype.createJournalEntryForTransaction =
|
|
148
|
+
function(request, metadata) {
|
|
149
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
150
|
+
'/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/CreateJournalEntryForTransaction',
|
|
151
|
+
request,
|
|
152
|
+
metadata || {},
|
|
153
|
+
methodDescriptor_LoyaltyProgramServiceAPIService_CreateJournalEntryForTransaction);
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
|
|
77
157
|
/**
|
|
78
158
|
* @const
|
|
79
159
|
* @type {!grpc.web.MethodDescriptor<
|
|
@@ -474,5 +554,85 @@ proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServicePromiseClient.prot
|
|
|
474
554
|
};
|
|
475
555
|
|
|
476
556
|
|
|
557
|
+
/**
|
|
558
|
+
* @const
|
|
559
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
560
|
+
* !proto.loyaltyprogramserviceapi.ValidateMembershipRequest,
|
|
561
|
+
* !proto.loyaltyprogramserviceapi.ValidateMembershipResponse>}
|
|
562
|
+
*/
|
|
563
|
+
const methodDescriptor_LoyaltyProgramServiceAPIService_ValidateMembership = new grpc.web.MethodDescriptor(
|
|
564
|
+
'/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/ValidateMembership',
|
|
565
|
+
grpc.web.MethodType.UNARY,
|
|
566
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipRequest,
|
|
567
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipResponse,
|
|
568
|
+
/**
|
|
569
|
+
* @param {!proto.loyaltyprogramserviceapi.ValidateMembershipRequest} request
|
|
570
|
+
* @return {!Uint8Array}
|
|
571
|
+
*/
|
|
572
|
+
function(request) {
|
|
573
|
+
return request.serializeBinary();
|
|
574
|
+
},
|
|
575
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipResponse.deserializeBinary
|
|
576
|
+
);
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
/**
|
|
580
|
+
* @const
|
|
581
|
+
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
582
|
+
* !proto.loyaltyprogramserviceapi.ValidateMembershipRequest,
|
|
583
|
+
* !proto.loyaltyprogramserviceapi.ValidateMembershipResponse>}
|
|
584
|
+
*/
|
|
585
|
+
const methodInfo_LoyaltyProgramServiceAPIService_ValidateMembership = new grpc.web.AbstractClientBase.MethodInfo(
|
|
586
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipResponse,
|
|
587
|
+
/**
|
|
588
|
+
* @param {!proto.loyaltyprogramserviceapi.ValidateMembershipRequest} request
|
|
589
|
+
* @return {!Uint8Array}
|
|
590
|
+
*/
|
|
591
|
+
function(request) {
|
|
592
|
+
return request.serializeBinary();
|
|
593
|
+
},
|
|
594
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipResponse.deserializeBinary
|
|
595
|
+
);
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* @param {!proto.loyaltyprogramserviceapi.ValidateMembershipRequest} request The
|
|
600
|
+
* request proto
|
|
601
|
+
* @param {?Object<string, string>} metadata User defined
|
|
602
|
+
* call metadata
|
|
603
|
+
* @param {function(?grpc.web.Error, ?proto.loyaltyprogramserviceapi.ValidateMembershipResponse)}
|
|
604
|
+
* callback The callback function(error, response)
|
|
605
|
+
* @return {!grpc.web.ClientReadableStream<!proto.loyaltyprogramserviceapi.ValidateMembershipResponse>|undefined}
|
|
606
|
+
* The XHR Node Readable Stream
|
|
607
|
+
*/
|
|
608
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServiceClient.prototype.validateMembership =
|
|
609
|
+
function(request, metadata, callback) {
|
|
610
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
611
|
+
'/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/ValidateMembership',
|
|
612
|
+
request,
|
|
613
|
+
metadata || {},
|
|
614
|
+
methodDescriptor_LoyaltyProgramServiceAPIService_ValidateMembership,
|
|
615
|
+
callback);
|
|
616
|
+
};
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* @param {!proto.loyaltyprogramserviceapi.ValidateMembershipRequest} request The
|
|
621
|
+
* request proto
|
|
622
|
+
* @param {?Object<string, string>} metadata User defined
|
|
623
|
+
* call metadata
|
|
624
|
+
* @return {!Promise<!proto.loyaltyprogramserviceapi.ValidateMembershipResponse>}
|
|
625
|
+
* Promise that resolves to the response
|
|
626
|
+
*/
|
|
627
|
+
proto.loyaltyprogramserviceapi.LoyaltyProgramServiceAPIServicePromiseClient.prototype.validateMembership =
|
|
628
|
+
function(request, metadata) {
|
|
629
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
630
|
+
'/loyaltyprogramserviceapi.LoyaltyProgramServiceAPIService/ValidateMembership',
|
|
631
|
+
request,
|
|
632
|
+
metadata || {},
|
|
633
|
+
methodDescriptor_LoyaltyProgramServiceAPIService_ValidateMembership);
|
|
634
|
+
};
|
|
635
|
+
|
|
636
|
+
|
|
477
637
|
module.exports = proto.loyaltyprogramserviceapi;
|
|
478
638
|
|
|
@@ -11,9 +11,11 @@ var global = Function('return this')();
|
|
|
11
11
|
|
|
12
12
|
var google_api_annotations_pb = require('./google/api/annotations_pb.js');
|
|
13
13
|
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
|
|
14
|
+
goog.exportSymbol('proto.loyaltyprogramserviceapi.CreateJournalEntryForTransactionRequest', null, global);
|
|
14
15
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.CreateLoyaltyProgramRequest', null, global);
|
|
15
16
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.CreateProgramRequest', null, global);
|
|
16
17
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.CreateProgramRequest.CreateProgramRequestMembershipNumberType', null, global);
|
|
18
|
+
goog.exportSymbol('proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest', null, global);
|
|
17
19
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.LinkMembershipRequest', null, global);
|
|
18
20
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.MembershipDetail', null, global);
|
|
19
21
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.MembershipDetailResponse', null, global);
|
|
@@ -22,6 +24,184 @@ goog.exportSymbol('proto.loyaltyprogramserviceapi.ProgramDetail.ProgramDetailMem
|
|
|
22
24
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.ProgramDetailResponse', null, global);
|
|
23
25
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.ProgramDetailsResponse', null, global);
|
|
24
26
|
goog.exportSymbol('proto.loyaltyprogramserviceapi.ResponseCode', null, global);
|
|
27
|
+
goog.exportSymbol('proto.loyaltyprogramserviceapi.ValidateMembershipRequest', null, global);
|
|
28
|
+
goog.exportSymbol('proto.loyaltyprogramserviceapi.ValidateMembershipResponse', null, global);
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Generated by JsPbCodeGenerator.
|
|
32
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
33
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
34
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
35
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
36
|
+
* valid.
|
|
37
|
+
* @extends {jspb.Message}
|
|
38
|
+
* @constructor
|
|
39
|
+
*/
|
|
40
|
+
proto.loyaltyprogramserviceapi.CreateJournalEntryForTransactionRequest = function(opt_data) {
|
|
41
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
42
|
+
};
|
|
43
|
+
goog.inherits(proto.loyaltyprogramserviceapi.CreateJournalEntryForTransactionRequest, jspb.Message);
|
|
44
|
+
if (goog.DEBUG && !COMPILED) {
|
|
45
|
+
proto.loyaltyprogramserviceapi.CreateJournalEntryForTransactionRequest.displayName = 'proto.loyaltyprogramserviceapi.CreateJournalEntryForTransactionRequest';
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
50
|
+
/**
|
|
51
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
52
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
53
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
54
|
+
* For the list of reserved names please see:
|
|
55
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
56
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
57
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
58
|
+
* @return {!Object}
|
|
59
|
+
*/
|
|
60
|
+
proto.loyaltyprogramserviceapi.CreateJournalEntryForTransactionRequest.prototype.toObject = function(opt_includeInstance) {
|
|
61
|
+
return proto.loyaltyprogramserviceapi.CreateJournalEntryForTransactionRequest.toObject(opt_includeInstance, this);
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Static version of the {@see toObject} method.
|
|
67
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
68
|
+
* instance for transitional soy proto support:
|
|
69
|
+
* http://goto/soy-param-migration
|
|
70
|
+
* @param {!proto.loyaltyprogramserviceapi.CreateJournalEntryForTransactionRequest} msg The msg instance to transform.
|
|
71
|
+
* @return {!Object}
|
|
72
|
+
*/
|
|
73
|
+
proto.loyaltyprogramserviceapi.CreateJournalEntryForTransactionRequest.toObject = function(includeInstance, msg) {
|
|
74
|
+
var f, obj = {
|
|
75
|
+
data: (f = msg.getData()) && proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest.toObject(includeInstance, f)
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
if (includeInstance) {
|
|
79
|
+
obj.$jspbMessageInstance = msg;
|
|
80
|
+
}
|
|
81
|
+
return obj;
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Deserializes binary data (in protobuf wire format).
|
|
88
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
89
|
+
* @return {!proto.loyaltyprogramserviceapi.CreateJournalEntryForTransactionRequest}
|
|
90
|
+
*/
|
|
91
|
+
proto.loyaltyprogramserviceapi.CreateJournalEntryForTransactionRequest.deserializeBinary = function(bytes) {
|
|
92
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
93
|
+
var msg = new proto.loyaltyprogramserviceapi.CreateJournalEntryForTransactionRequest;
|
|
94
|
+
return proto.loyaltyprogramserviceapi.CreateJournalEntryForTransactionRequest.deserializeBinaryFromReader(msg, reader);
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
100
|
+
* given reader into the given message object.
|
|
101
|
+
* @param {!proto.loyaltyprogramserviceapi.CreateJournalEntryForTransactionRequest} msg The message object to deserialize into.
|
|
102
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
103
|
+
* @return {!proto.loyaltyprogramserviceapi.CreateJournalEntryForTransactionRequest}
|
|
104
|
+
*/
|
|
105
|
+
proto.loyaltyprogramserviceapi.CreateJournalEntryForTransactionRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
106
|
+
while (reader.nextField()) {
|
|
107
|
+
if (reader.isEndGroup()) {
|
|
108
|
+
break;
|
|
109
|
+
}
|
|
110
|
+
var field = reader.getFieldNumber();
|
|
111
|
+
switch (field) {
|
|
112
|
+
case 1:
|
|
113
|
+
var value = new proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest;
|
|
114
|
+
reader.readMessage(value,proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest.deserializeBinaryFromReader);
|
|
115
|
+
msg.setData(value);
|
|
116
|
+
break;
|
|
117
|
+
default:
|
|
118
|
+
reader.skipField();
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
return msg;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Class method variant: serializes the given message to binary data
|
|
128
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
129
|
+
* @param {!proto.loyaltyprogramserviceapi.CreateJournalEntryForTransactionRequest} message
|
|
130
|
+
* @param {!jspb.BinaryWriter} writer
|
|
131
|
+
*/
|
|
132
|
+
proto.loyaltyprogramserviceapi.CreateJournalEntryForTransactionRequest.serializeBinaryToWriter = function(message, writer) {
|
|
133
|
+
message.serializeBinaryToWriter(writer);
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
139
|
+
* @return {!Uint8Array}
|
|
140
|
+
*/
|
|
141
|
+
proto.loyaltyprogramserviceapi.CreateJournalEntryForTransactionRequest.prototype.serializeBinary = function() {
|
|
142
|
+
var writer = new jspb.BinaryWriter();
|
|
143
|
+
this.serializeBinaryToWriter(writer);
|
|
144
|
+
return writer.getResultBuffer();
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
150
|
+
* writing to the given BinaryWriter.
|
|
151
|
+
* @param {!jspb.BinaryWriter} writer
|
|
152
|
+
*/
|
|
153
|
+
proto.loyaltyprogramserviceapi.CreateJournalEntryForTransactionRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
154
|
+
var f = undefined;
|
|
155
|
+
f = this.getData();
|
|
156
|
+
if (f != null) {
|
|
157
|
+
writer.writeMessage(
|
|
158
|
+
1,
|
|
159
|
+
f,
|
|
160
|
+
proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest.serializeBinaryToWriter
|
|
161
|
+
);
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
168
|
+
* @return {!proto.loyaltyprogramserviceapi.CreateJournalEntryForTransactionRequest} The clone.
|
|
169
|
+
*/
|
|
170
|
+
proto.loyaltyprogramserviceapi.CreateJournalEntryForTransactionRequest.prototype.cloneMessage = function() {
|
|
171
|
+
return /** @type {!proto.loyaltyprogramserviceapi.CreateJournalEntryForTransactionRequest} */ (jspb.Message.cloneMessage(this));
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* optional CreateTransactionJournalEntryRequest data = 1;
|
|
177
|
+
* @return {proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest}
|
|
178
|
+
*/
|
|
179
|
+
proto.loyaltyprogramserviceapi.CreateJournalEntryForTransactionRequest.prototype.getData = function() {
|
|
180
|
+
return /** @type{proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest} */ (
|
|
181
|
+
jspb.Message.getWrapperField(this, proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest, 1));
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
/** @param {proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest|undefined} value */
|
|
186
|
+
proto.loyaltyprogramserviceapi.CreateJournalEntryForTransactionRequest.prototype.setData = function(value) {
|
|
187
|
+
jspb.Message.setWrapperField(this, 1, value);
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
proto.loyaltyprogramserviceapi.CreateJournalEntryForTransactionRequest.prototype.clearData = function() {
|
|
192
|
+
this.setData(undefined);
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Returns whether this field is set.
|
|
198
|
+
* @return{!boolean}
|
|
199
|
+
*/
|
|
200
|
+
proto.loyaltyprogramserviceapi.CreateJournalEntryForTransactionRequest.prototype.hasData = function() {
|
|
201
|
+
return jspb.Message.getField(this, 1) != null;
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
|
|
25
205
|
|
|
26
206
|
/**
|
|
27
207
|
* Generated by JsPbCodeGenerator.
|
|
@@ -566,12 +746,12 @@ proto.loyaltyprogramserviceapi.CreateProgramRequest.CreateProgramRequestMembersh
|
|
|
566
746
|
* @extends {jspb.Message}
|
|
567
747
|
* @constructor
|
|
568
748
|
*/
|
|
569
|
-
proto.loyaltyprogramserviceapi.
|
|
749
|
+
proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest = function(opt_data) {
|
|
570
750
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
571
751
|
};
|
|
572
|
-
goog.inherits(proto.loyaltyprogramserviceapi.
|
|
752
|
+
goog.inherits(proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest, jspb.Message);
|
|
573
753
|
if (goog.DEBUG && !COMPILED) {
|
|
574
|
-
proto.loyaltyprogramserviceapi.
|
|
754
|
+
proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest.displayName = 'proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest';
|
|
575
755
|
}
|
|
576
756
|
|
|
577
757
|
|
|
@@ -586,8 +766,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
586
766
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
587
767
|
* @return {!Object}
|
|
588
768
|
*/
|
|
589
|
-
proto.loyaltyprogramserviceapi.
|
|
590
|
-
return proto.loyaltyprogramserviceapi.
|
|
769
|
+
proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest.prototype.toObject = function(opt_includeInstance) {
|
|
770
|
+
return proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest.toObject(opt_includeInstance, this);
|
|
591
771
|
};
|
|
592
772
|
|
|
593
773
|
|
|
@@ -596,13 +776,15 @@ proto.loyaltyprogramserviceapi.LinkMembershipRequest.prototype.toObject = functi
|
|
|
596
776
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
597
777
|
* instance for transitional soy proto support:
|
|
598
778
|
* http://goto/soy-param-migration
|
|
599
|
-
* @param {!proto.loyaltyprogramserviceapi.
|
|
779
|
+
* @param {!proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest} msg The msg instance to transform.
|
|
600
780
|
* @return {!Object}
|
|
601
781
|
*/
|
|
602
|
-
proto.loyaltyprogramserviceapi.
|
|
782
|
+
proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest.toObject = function(includeInstance, msg) {
|
|
603
783
|
var f, obj = {
|
|
604
|
-
|
|
605
|
-
|
|
784
|
+
membershipid: msg.getMembershipid(),
|
|
785
|
+
userid: msg.getUserid(),
|
|
786
|
+
transactionid: msg.getTransactionid(),
|
|
787
|
+
paymentamount: msg.getPaymentamount()
|
|
606
788
|
};
|
|
607
789
|
|
|
608
790
|
if (includeInstance) {
|
|
@@ -616,23 +798,23 @@ proto.loyaltyprogramserviceapi.LinkMembershipRequest.toObject = function(include
|
|
|
616
798
|
/**
|
|
617
799
|
* Deserializes binary data (in protobuf wire format).
|
|
618
800
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
619
|
-
* @return {!proto.loyaltyprogramserviceapi.
|
|
801
|
+
* @return {!proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest}
|
|
620
802
|
*/
|
|
621
|
-
proto.loyaltyprogramserviceapi.
|
|
803
|
+
proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest.deserializeBinary = function(bytes) {
|
|
622
804
|
var reader = new jspb.BinaryReader(bytes);
|
|
623
|
-
var msg = new proto.loyaltyprogramserviceapi.
|
|
624
|
-
return proto.loyaltyprogramserviceapi.
|
|
805
|
+
var msg = new proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest;
|
|
806
|
+
return proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest.deserializeBinaryFromReader(msg, reader);
|
|
625
807
|
};
|
|
626
808
|
|
|
627
809
|
|
|
628
810
|
/**
|
|
629
811
|
* Deserializes binary data (in protobuf wire format) from the
|
|
630
812
|
* given reader into the given message object.
|
|
631
|
-
* @param {!proto.loyaltyprogramserviceapi.
|
|
813
|
+
* @param {!proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest} msg The message object to deserialize into.
|
|
632
814
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
633
|
-
* @return {!proto.loyaltyprogramserviceapi.
|
|
815
|
+
* @return {!proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest}
|
|
634
816
|
*/
|
|
635
|
-
proto.loyaltyprogramserviceapi.
|
|
817
|
+
proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
636
818
|
while (reader.nextField()) {
|
|
637
819
|
if (reader.isEndGroup()) {
|
|
638
820
|
break;
|
|
@@ -641,11 +823,19 @@ proto.loyaltyprogramserviceapi.LinkMembershipRequest.deserializeBinaryFromReader
|
|
|
641
823
|
switch (field) {
|
|
642
824
|
case 1:
|
|
643
825
|
var value = /** @type {number} */ (reader.readInt64());
|
|
644
|
-
msg.
|
|
826
|
+
msg.setMembershipid(value);
|
|
645
827
|
break;
|
|
646
828
|
case 2:
|
|
647
|
-
var value = /** @type {
|
|
648
|
-
msg.
|
|
829
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
830
|
+
msg.setUserid(value);
|
|
831
|
+
break;
|
|
832
|
+
case 3:
|
|
833
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
834
|
+
msg.setTransactionid(value);
|
|
835
|
+
break;
|
|
836
|
+
case 4:
|
|
837
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
838
|
+
msg.setPaymentamount(value);
|
|
649
839
|
break;
|
|
650
840
|
default:
|
|
651
841
|
reader.skipField();
|
|
@@ -659,10 +849,10 @@ proto.loyaltyprogramserviceapi.LinkMembershipRequest.deserializeBinaryFromReader
|
|
|
659
849
|
/**
|
|
660
850
|
* Class method variant: serializes the given message to binary data
|
|
661
851
|
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
662
|
-
* @param {!proto.loyaltyprogramserviceapi.
|
|
852
|
+
* @param {!proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest} message
|
|
663
853
|
* @param {!jspb.BinaryWriter} writer
|
|
664
854
|
*/
|
|
665
|
-
proto.loyaltyprogramserviceapi.
|
|
855
|
+
proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest.serializeBinaryToWriter = function(message, writer) {
|
|
666
856
|
message.serializeBinaryToWriter(writer);
|
|
667
857
|
};
|
|
668
858
|
|
|
@@ -671,7 +861,7 @@ proto.loyaltyprogramserviceapi.LinkMembershipRequest.serializeBinaryToWriter = f
|
|
|
671
861
|
* Serializes the message to binary data (in protobuf wire format).
|
|
672
862
|
* @return {!Uint8Array}
|
|
673
863
|
*/
|
|
674
|
-
proto.loyaltyprogramserviceapi.
|
|
864
|
+
proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest.prototype.serializeBinary = function() {
|
|
675
865
|
var writer = new jspb.BinaryWriter();
|
|
676
866
|
this.serializeBinaryToWriter(writer);
|
|
677
867
|
return writer.getResultBuffer();
|
|
@@ -683,64 +873,108 @@ proto.loyaltyprogramserviceapi.LinkMembershipRequest.prototype.serializeBinary =
|
|
|
683
873
|
* writing to the given BinaryWriter.
|
|
684
874
|
* @param {!jspb.BinaryWriter} writer
|
|
685
875
|
*/
|
|
686
|
-
proto.loyaltyprogramserviceapi.
|
|
876
|
+
proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
687
877
|
var f = undefined;
|
|
688
|
-
f = this.
|
|
878
|
+
f = this.getMembershipid();
|
|
689
879
|
if (f !== 0) {
|
|
690
880
|
writer.writeInt64(
|
|
691
881
|
1,
|
|
692
882
|
f
|
|
693
883
|
);
|
|
694
884
|
}
|
|
695
|
-
f = this.
|
|
696
|
-
if (f
|
|
697
|
-
writer.
|
|
885
|
+
f = this.getUserid();
|
|
886
|
+
if (f !== 0) {
|
|
887
|
+
writer.writeInt64(
|
|
698
888
|
2,
|
|
699
889
|
f
|
|
700
890
|
);
|
|
701
891
|
}
|
|
892
|
+
f = this.getTransactionid();
|
|
893
|
+
if (f !== 0) {
|
|
894
|
+
writer.writeInt64(
|
|
895
|
+
3,
|
|
896
|
+
f
|
|
897
|
+
);
|
|
898
|
+
}
|
|
899
|
+
f = this.getPaymentamount();
|
|
900
|
+
if (f !== 0.0) {
|
|
901
|
+
writer.writeFloat(
|
|
902
|
+
4,
|
|
903
|
+
f
|
|
904
|
+
);
|
|
905
|
+
}
|
|
702
906
|
};
|
|
703
907
|
|
|
704
908
|
|
|
705
909
|
/**
|
|
706
910
|
* Creates a deep clone of this proto. No data is shared with the original.
|
|
707
|
-
* @return {!proto.loyaltyprogramserviceapi.
|
|
911
|
+
* @return {!proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest} The clone.
|
|
708
912
|
*/
|
|
709
|
-
proto.loyaltyprogramserviceapi.
|
|
710
|
-
return /** @type {!proto.loyaltyprogramserviceapi.
|
|
913
|
+
proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest.prototype.cloneMessage = function() {
|
|
914
|
+
return /** @type {!proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest} */ (jspb.Message.cloneMessage(this));
|
|
711
915
|
};
|
|
712
916
|
|
|
713
917
|
|
|
714
918
|
/**
|
|
715
|
-
* optional int64
|
|
919
|
+
* optional int64 membershipId = 1;
|
|
716
920
|
* @return {number}
|
|
717
921
|
*/
|
|
718
|
-
proto.loyaltyprogramserviceapi.
|
|
922
|
+
proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest.prototype.getMembershipid = function() {
|
|
719
923
|
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
720
924
|
};
|
|
721
925
|
|
|
722
926
|
|
|
723
927
|
/** @param {number} value */
|
|
724
|
-
proto.loyaltyprogramserviceapi.
|
|
928
|
+
proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest.prototype.setMembershipid = function(value) {
|
|
725
929
|
jspb.Message.setField(this, 1, value);
|
|
726
930
|
};
|
|
727
931
|
|
|
728
932
|
|
|
729
933
|
/**
|
|
730
|
-
* optional
|
|
731
|
-
* @return {
|
|
934
|
+
* optional int64 userId = 2;
|
|
935
|
+
* @return {number}
|
|
732
936
|
*/
|
|
733
|
-
proto.loyaltyprogramserviceapi.
|
|
734
|
-
return /** @type {
|
|
937
|
+
proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest.prototype.getUserid = function() {
|
|
938
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 2, 0));
|
|
735
939
|
};
|
|
736
940
|
|
|
737
941
|
|
|
738
|
-
/** @param {
|
|
739
|
-
proto.loyaltyprogramserviceapi.
|
|
942
|
+
/** @param {number} value */
|
|
943
|
+
proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest.prototype.setUserid = function(value) {
|
|
740
944
|
jspb.Message.setField(this, 2, value);
|
|
741
945
|
};
|
|
742
946
|
|
|
743
947
|
|
|
948
|
+
/**
|
|
949
|
+
* optional int64 transactionId = 3;
|
|
950
|
+
* @return {number}
|
|
951
|
+
*/
|
|
952
|
+
proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest.prototype.getTransactionid = function() {
|
|
953
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 3, 0));
|
|
954
|
+
};
|
|
955
|
+
|
|
956
|
+
|
|
957
|
+
/** @param {number} value */
|
|
958
|
+
proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest.prototype.setTransactionid = function(value) {
|
|
959
|
+
jspb.Message.setField(this, 3, value);
|
|
960
|
+
};
|
|
961
|
+
|
|
962
|
+
|
|
963
|
+
/**
|
|
964
|
+
* optional float paymentAmount = 4;
|
|
965
|
+
* @return {number}
|
|
966
|
+
*/
|
|
967
|
+
proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest.prototype.getPaymentamount = function() {
|
|
968
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 4, 0));
|
|
969
|
+
};
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
/** @param {number} value */
|
|
973
|
+
proto.loyaltyprogramserviceapi.CreateTransactionJournalEntryRequest.prototype.setPaymentamount = function(value) {
|
|
974
|
+
jspb.Message.setField(this, 4, value);
|
|
975
|
+
};
|
|
976
|
+
|
|
977
|
+
|
|
744
978
|
|
|
745
979
|
/**
|
|
746
980
|
* Generated by JsPbCodeGenerator.
|
|
@@ -752,12 +986,12 @@ proto.loyaltyprogramserviceapi.LinkMembershipRequest.prototype.setMembershipnumb
|
|
|
752
986
|
* @extends {jspb.Message}
|
|
753
987
|
* @constructor
|
|
754
988
|
*/
|
|
755
|
-
proto.loyaltyprogramserviceapi.
|
|
989
|
+
proto.loyaltyprogramserviceapi.LinkMembershipRequest = function(opt_data) {
|
|
756
990
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
757
991
|
};
|
|
758
|
-
goog.inherits(proto.loyaltyprogramserviceapi.
|
|
992
|
+
goog.inherits(proto.loyaltyprogramserviceapi.LinkMembershipRequest, jspb.Message);
|
|
759
993
|
if (goog.DEBUG && !COMPILED) {
|
|
760
|
-
proto.loyaltyprogramserviceapi.
|
|
994
|
+
proto.loyaltyprogramserviceapi.LinkMembershipRequest.displayName = 'proto.loyaltyprogramserviceapi.LinkMembershipRequest';
|
|
761
995
|
}
|
|
762
996
|
|
|
763
997
|
|
|
@@ -772,8 +1006,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
772
1006
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
773
1007
|
* @return {!Object}
|
|
774
1008
|
*/
|
|
775
|
-
proto.loyaltyprogramserviceapi.
|
|
776
|
-
return proto.loyaltyprogramserviceapi.
|
|
1009
|
+
proto.loyaltyprogramserviceapi.LinkMembershipRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1010
|
+
return proto.loyaltyprogramserviceapi.LinkMembershipRequest.toObject(opt_includeInstance, this);
|
|
777
1011
|
};
|
|
778
1012
|
|
|
779
1013
|
|
|
@@ -782,19 +1016,13 @@ proto.loyaltyprogramserviceapi.MembershipDetail.prototype.toObject = function(op
|
|
|
782
1016
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
783
1017
|
* instance for transitional soy proto support:
|
|
784
1018
|
* http://goto/soy-param-migration
|
|
785
|
-
* @param {!proto.loyaltyprogramserviceapi.
|
|
1019
|
+
* @param {!proto.loyaltyprogramserviceapi.LinkMembershipRequest} msg The msg instance to transform.
|
|
786
1020
|
* @return {!Object}
|
|
787
1021
|
*/
|
|
788
|
-
proto.loyaltyprogramserviceapi.
|
|
1022
|
+
proto.loyaltyprogramserviceapi.LinkMembershipRequest.toObject = function(includeInstance, msg) {
|
|
789
1023
|
var f, obj = {
|
|
790
|
-
id: msg.getId(),
|
|
791
|
-
membershipnumber: msg.getMembershipnumber(),
|
|
792
|
-
userid: msg.getUserid(),
|
|
793
|
-
isdefault: msg.getIsdefault(),
|
|
794
|
-
loyaltypointssum: msg.getLoyaltypointssum(),
|
|
795
1024
|
programid: msg.getProgramid(),
|
|
796
|
-
|
|
797
|
-
programlogourl: msg.getProgramlogourl()
|
|
1025
|
+
membershipnumber: msg.getMembershipnumber()
|
|
798
1026
|
};
|
|
799
1027
|
|
|
800
1028
|
if (includeInstance) {
|
|
@@ -808,11 +1036,203 @@ proto.loyaltyprogramserviceapi.MembershipDetail.toObject = function(includeInsta
|
|
|
808
1036
|
/**
|
|
809
1037
|
* Deserializes binary data (in protobuf wire format).
|
|
810
1038
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
811
|
-
* @return {!proto.loyaltyprogramserviceapi.
|
|
1039
|
+
* @return {!proto.loyaltyprogramserviceapi.LinkMembershipRequest}
|
|
812
1040
|
*/
|
|
813
|
-
proto.loyaltyprogramserviceapi.
|
|
1041
|
+
proto.loyaltyprogramserviceapi.LinkMembershipRequest.deserializeBinary = function(bytes) {
|
|
814
1042
|
var reader = new jspb.BinaryReader(bytes);
|
|
815
|
-
var msg = new proto.loyaltyprogramserviceapi.
|
|
1043
|
+
var msg = new proto.loyaltyprogramserviceapi.LinkMembershipRequest;
|
|
1044
|
+
return proto.loyaltyprogramserviceapi.LinkMembershipRequest.deserializeBinaryFromReader(msg, reader);
|
|
1045
|
+
};
|
|
1046
|
+
|
|
1047
|
+
|
|
1048
|
+
/**
|
|
1049
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1050
|
+
* given reader into the given message object.
|
|
1051
|
+
* @param {!proto.loyaltyprogramserviceapi.LinkMembershipRequest} msg The message object to deserialize into.
|
|
1052
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1053
|
+
* @return {!proto.loyaltyprogramserviceapi.LinkMembershipRequest}
|
|
1054
|
+
*/
|
|
1055
|
+
proto.loyaltyprogramserviceapi.LinkMembershipRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1056
|
+
while (reader.nextField()) {
|
|
1057
|
+
if (reader.isEndGroup()) {
|
|
1058
|
+
break;
|
|
1059
|
+
}
|
|
1060
|
+
var field = reader.getFieldNumber();
|
|
1061
|
+
switch (field) {
|
|
1062
|
+
case 1:
|
|
1063
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
1064
|
+
msg.setProgramid(value);
|
|
1065
|
+
break;
|
|
1066
|
+
case 2:
|
|
1067
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1068
|
+
msg.setMembershipnumber(value);
|
|
1069
|
+
break;
|
|
1070
|
+
default:
|
|
1071
|
+
reader.skipField();
|
|
1072
|
+
break;
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
return msg;
|
|
1076
|
+
};
|
|
1077
|
+
|
|
1078
|
+
|
|
1079
|
+
/**
|
|
1080
|
+
* Class method variant: serializes the given message to binary data
|
|
1081
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
1082
|
+
* @param {!proto.loyaltyprogramserviceapi.LinkMembershipRequest} message
|
|
1083
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1084
|
+
*/
|
|
1085
|
+
proto.loyaltyprogramserviceapi.LinkMembershipRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1086
|
+
message.serializeBinaryToWriter(writer);
|
|
1087
|
+
};
|
|
1088
|
+
|
|
1089
|
+
|
|
1090
|
+
/**
|
|
1091
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1092
|
+
* @return {!Uint8Array}
|
|
1093
|
+
*/
|
|
1094
|
+
proto.loyaltyprogramserviceapi.LinkMembershipRequest.prototype.serializeBinary = function() {
|
|
1095
|
+
var writer = new jspb.BinaryWriter();
|
|
1096
|
+
this.serializeBinaryToWriter(writer);
|
|
1097
|
+
return writer.getResultBuffer();
|
|
1098
|
+
};
|
|
1099
|
+
|
|
1100
|
+
|
|
1101
|
+
/**
|
|
1102
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
1103
|
+
* writing to the given BinaryWriter.
|
|
1104
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1105
|
+
*/
|
|
1106
|
+
proto.loyaltyprogramserviceapi.LinkMembershipRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
1107
|
+
var f = undefined;
|
|
1108
|
+
f = this.getProgramid();
|
|
1109
|
+
if (f !== 0) {
|
|
1110
|
+
writer.writeInt64(
|
|
1111
|
+
1,
|
|
1112
|
+
f
|
|
1113
|
+
);
|
|
1114
|
+
}
|
|
1115
|
+
f = this.getMembershipnumber();
|
|
1116
|
+
if (f.length > 0) {
|
|
1117
|
+
writer.writeString(
|
|
1118
|
+
2,
|
|
1119
|
+
f
|
|
1120
|
+
);
|
|
1121
|
+
}
|
|
1122
|
+
};
|
|
1123
|
+
|
|
1124
|
+
|
|
1125
|
+
/**
|
|
1126
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
1127
|
+
* @return {!proto.loyaltyprogramserviceapi.LinkMembershipRequest} The clone.
|
|
1128
|
+
*/
|
|
1129
|
+
proto.loyaltyprogramserviceapi.LinkMembershipRequest.prototype.cloneMessage = function() {
|
|
1130
|
+
return /** @type {!proto.loyaltyprogramserviceapi.LinkMembershipRequest} */ (jspb.Message.cloneMessage(this));
|
|
1131
|
+
};
|
|
1132
|
+
|
|
1133
|
+
|
|
1134
|
+
/**
|
|
1135
|
+
* optional int64 programId = 1;
|
|
1136
|
+
* @return {number}
|
|
1137
|
+
*/
|
|
1138
|
+
proto.loyaltyprogramserviceapi.LinkMembershipRequest.prototype.getProgramid = function() {
|
|
1139
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
1140
|
+
};
|
|
1141
|
+
|
|
1142
|
+
|
|
1143
|
+
/** @param {number} value */
|
|
1144
|
+
proto.loyaltyprogramserviceapi.LinkMembershipRequest.prototype.setProgramid = function(value) {
|
|
1145
|
+
jspb.Message.setField(this, 1, value);
|
|
1146
|
+
};
|
|
1147
|
+
|
|
1148
|
+
|
|
1149
|
+
/**
|
|
1150
|
+
* optional string membershipNumber = 2;
|
|
1151
|
+
* @return {string}
|
|
1152
|
+
*/
|
|
1153
|
+
proto.loyaltyprogramserviceapi.LinkMembershipRequest.prototype.getMembershipnumber = function() {
|
|
1154
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
|
|
1155
|
+
};
|
|
1156
|
+
|
|
1157
|
+
|
|
1158
|
+
/** @param {string} value */
|
|
1159
|
+
proto.loyaltyprogramserviceapi.LinkMembershipRequest.prototype.setMembershipnumber = function(value) {
|
|
1160
|
+
jspb.Message.setField(this, 2, value);
|
|
1161
|
+
};
|
|
1162
|
+
|
|
1163
|
+
|
|
1164
|
+
|
|
1165
|
+
/**
|
|
1166
|
+
* Generated by JsPbCodeGenerator.
|
|
1167
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1168
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1169
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1170
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1171
|
+
* valid.
|
|
1172
|
+
* @extends {jspb.Message}
|
|
1173
|
+
* @constructor
|
|
1174
|
+
*/
|
|
1175
|
+
proto.loyaltyprogramserviceapi.MembershipDetail = function(opt_data) {
|
|
1176
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1177
|
+
};
|
|
1178
|
+
goog.inherits(proto.loyaltyprogramserviceapi.MembershipDetail, jspb.Message);
|
|
1179
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1180
|
+
proto.loyaltyprogramserviceapi.MembershipDetail.displayName = 'proto.loyaltyprogramserviceapi.MembershipDetail';
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
|
|
1184
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1185
|
+
/**
|
|
1186
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
1187
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1188
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1189
|
+
* For the list of reserved names please see:
|
|
1190
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
1191
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
1192
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
1193
|
+
* @return {!Object}
|
|
1194
|
+
*/
|
|
1195
|
+
proto.loyaltyprogramserviceapi.MembershipDetail.prototype.toObject = function(opt_includeInstance) {
|
|
1196
|
+
return proto.loyaltyprogramserviceapi.MembershipDetail.toObject(opt_includeInstance, this);
|
|
1197
|
+
};
|
|
1198
|
+
|
|
1199
|
+
|
|
1200
|
+
/**
|
|
1201
|
+
* Static version of the {@see toObject} method.
|
|
1202
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
1203
|
+
* instance for transitional soy proto support:
|
|
1204
|
+
* http://goto/soy-param-migration
|
|
1205
|
+
* @param {!proto.loyaltyprogramserviceapi.MembershipDetail} msg The msg instance to transform.
|
|
1206
|
+
* @return {!Object}
|
|
1207
|
+
*/
|
|
1208
|
+
proto.loyaltyprogramserviceapi.MembershipDetail.toObject = function(includeInstance, msg) {
|
|
1209
|
+
var f, obj = {
|
|
1210
|
+
id: msg.getId(),
|
|
1211
|
+
membershipnumber: msg.getMembershipnumber(),
|
|
1212
|
+
userid: msg.getUserid(),
|
|
1213
|
+
isdefault: msg.getIsdefault(),
|
|
1214
|
+
loyaltypointssum: msg.getLoyaltypointssum(),
|
|
1215
|
+
programid: msg.getProgramid(),
|
|
1216
|
+
programname: msg.getProgramname(),
|
|
1217
|
+
programlogourl: msg.getProgramlogourl()
|
|
1218
|
+
};
|
|
1219
|
+
|
|
1220
|
+
if (includeInstance) {
|
|
1221
|
+
obj.$jspbMessageInstance = msg;
|
|
1222
|
+
}
|
|
1223
|
+
return obj;
|
|
1224
|
+
};
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
|
|
1228
|
+
/**
|
|
1229
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1230
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1231
|
+
* @return {!proto.loyaltyprogramserviceapi.MembershipDetail}
|
|
1232
|
+
*/
|
|
1233
|
+
proto.loyaltyprogramserviceapi.MembershipDetail.deserializeBinary = function(bytes) {
|
|
1234
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1235
|
+
var msg = new proto.loyaltyprogramserviceapi.MembershipDetail;
|
|
816
1236
|
return proto.loyaltyprogramserviceapi.MembershipDetail.deserializeBinaryFromReader(msg, reader);
|
|
817
1237
|
};
|
|
818
1238
|
|
|
@@ -2323,4 +2743,395 @@ proto.loyaltyprogramserviceapi.ResponseCode.prototype.setMessage = function(valu
|
|
|
2323
2743
|
};
|
|
2324
2744
|
|
|
2325
2745
|
|
|
2746
|
+
|
|
2747
|
+
/**
|
|
2748
|
+
* Generated by JsPbCodeGenerator.
|
|
2749
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
2750
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
2751
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
2752
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2753
|
+
* valid.
|
|
2754
|
+
* @extends {jspb.Message}
|
|
2755
|
+
* @constructor
|
|
2756
|
+
*/
|
|
2757
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipRequest = function(opt_data) {
|
|
2758
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
2759
|
+
};
|
|
2760
|
+
goog.inherits(proto.loyaltyprogramserviceapi.ValidateMembershipRequest, jspb.Message);
|
|
2761
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2762
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipRequest.displayName = 'proto.loyaltyprogramserviceapi.ValidateMembershipRequest';
|
|
2763
|
+
}
|
|
2764
|
+
|
|
2765
|
+
|
|
2766
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2767
|
+
/**
|
|
2768
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
2769
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2770
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2771
|
+
* For the list of reserved names please see:
|
|
2772
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
2773
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
2774
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
2775
|
+
* @return {!Object}
|
|
2776
|
+
*/
|
|
2777
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2778
|
+
return proto.loyaltyprogramserviceapi.ValidateMembershipRequest.toObject(opt_includeInstance, this);
|
|
2779
|
+
};
|
|
2780
|
+
|
|
2781
|
+
|
|
2782
|
+
/**
|
|
2783
|
+
* Static version of the {@see toObject} method.
|
|
2784
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
2785
|
+
* instance for transitional soy proto support:
|
|
2786
|
+
* http://goto/soy-param-migration
|
|
2787
|
+
* @param {!proto.loyaltyprogramserviceapi.ValidateMembershipRequest} msg The msg instance to transform.
|
|
2788
|
+
* @return {!Object}
|
|
2789
|
+
*/
|
|
2790
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipRequest.toObject = function(includeInstance, msg) {
|
|
2791
|
+
var f, obj = {
|
|
2792
|
+
programid: msg.getProgramid(),
|
|
2793
|
+
membershipnumber: msg.getMembershipnumber()
|
|
2794
|
+
};
|
|
2795
|
+
|
|
2796
|
+
if (includeInstance) {
|
|
2797
|
+
obj.$jspbMessageInstance = msg;
|
|
2798
|
+
}
|
|
2799
|
+
return obj;
|
|
2800
|
+
};
|
|
2801
|
+
}
|
|
2802
|
+
|
|
2803
|
+
|
|
2804
|
+
/**
|
|
2805
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2806
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2807
|
+
* @return {!proto.loyaltyprogramserviceapi.ValidateMembershipRequest}
|
|
2808
|
+
*/
|
|
2809
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipRequest.deserializeBinary = function(bytes) {
|
|
2810
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2811
|
+
var msg = new proto.loyaltyprogramserviceapi.ValidateMembershipRequest;
|
|
2812
|
+
return proto.loyaltyprogramserviceapi.ValidateMembershipRequest.deserializeBinaryFromReader(msg, reader);
|
|
2813
|
+
};
|
|
2814
|
+
|
|
2815
|
+
|
|
2816
|
+
/**
|
|
2817
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2818
|
+
* given reader into the given message object.
|
|
2819
|
+
* @param {!proto.loyaltyprogramserviceapi.ValidateMembershipRequest} msg The message object to deserialize into.
|
|
2820
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2821
|
+
* @return {!proto.loyaltyprogramserviceapi.ValidateMembershipRequest}
|
|
2822
|
+
*/
|
|
2823
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2824
|
+
while (reader.nextField()) {
|
|
2825
|
+
if (reader.isEndGroup()) {
|
|
2826
|
+
break;
|
|
2827
|
+
}
|
|
2828
|
+
var field = reader.getFieldNumber();
|
|
2829
|
+
switch (field) {
|
|
2830
|
+
case 1:
|
|
2831
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
2832
|
+
msg.setProgramid(value);
|
|
2833
|
+
break;
|
|
2834
|
+
case 2:
|
|
2835
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2836
|
+
msg.setMembershipnumber(value);
|
|
2837
|
+
break;
|
|
2838
|
+
default:
|
|
2839
|
+
reader.skipField();
|
|
2840
|
+
break;
|
|
2841
|
+
}
|
|
2842
|
+
}
|
|
2843
|
+
return msg;
|
|
2844
|
+
};
|
|
2845
|
+
|
|
2846
|
+
|
|
2847
|
+
/**
|
|
2848
|
+
* Class method variant: serializes the given message to binary data
|
|
2849
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
2850
|
+
* @param {!proto.loyaltyprogramserviceapi.ValidateMembershipRequest} message
|
|
2851
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2852
|
+
*/
|
|
2853
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2854
|
+
message.serializeBinaryToWriter(writer);
|
|
2855
|
+
};
|
|
2856
|
+
|
|
2857
|
+
|
|
2858
|
+
/**
|
|
2859
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2860
|
+
* @return {!Uint8Array}
|
|
2861
|
+
*/
|
|
2862
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipRequest.prototype.serializeBinary = function() {
|
|
2863
|
+
var writer = new jspb.BinaryWriter();
|
|
2864
|
+
this.serializeBinaryToWriter(writer);
|
|
2865
|
+
return writer.getResultBuffer();
|
|
2866
|
+
};
|
|
2867
|
+
|
|
2868
|
+
|
|
2869
|
+
/**
|
|
2870
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
2871
|
+
* writing to the given BinaryWriter.
|
|
2872
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2873
|
+
*/
|
|
2874
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
2875
|
+
var f = undefined;
|
|
2876
|
+
f = this.getProgramid();
|
|
2877
|
+
if (f !== 0) {
|
|
2878
|
+
writer.writeInt64(
|
|
2879
|
+
1,
|
|
2880
|
+
f
|
|
2881
|
+
);
|
|
2882
|
+
}
|
|
2883
|
+
f = this.getMembershipnumber();
|
|
2884
|
+
if (f.length > 0) {
|
|
2885
|
+
writer.writeString(
|
|
2886
|
+
2,
|
|
2887
|
+
f
|
|
2888
|
+
);
|
|
2889
|
+
}
|
|
2890
|
+
};
|
|
2891
|
+
|
|
2892
|
+
|
|
2893
|
+
/**
|
|
2894
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
2895
|
+
* @return {!proto.loyaltyprogramserviceapi.ValidateMembershipRequest} The clone.
|
|
2896
|
+
*/
|
|
2897
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipRequest.prototype.cloneMessage = function() {
|
|
2898
|
+
return /** @type {!proto.loyaltyprogramserviceapi.ValidateMembershipRequest} */ (jspb.Message.cloneMessage(this));
|
|
2899
|
+
};
|
|
2900
|
+
|
|
2901
|
+
|
|
2902
|
+
/**
|
|
2903
|
+
* optional int64 programId = 1;
|
|
2904
|
+
* @return {number}
|
|
2905
|
+
*/
|
|
2906
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipRequest.prototype.getProgramid = function() {
|
|
2907
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
2908
|
+
};
|
|
2909
|
+
|
|
2910
|
+
|
|
2911
|
+
/** @param {number} value */
|
|
2912
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipRequest.prototype.setProgramid = function(value) {
|
|
2913
|
+
jspb.Message.setField(this, 1, value);
|
|
2914
|
+
};
|
|
2915
|
+
|
|
2916
|
+
|
|
2917
|
+
/**
|
|
2918
|
+
* optional string membershipNumber = 2;
|
|
2919
|
+
* @return {string}
|
|
2920
|
+
*/
|
|
2921
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipRequest.prototype.getMembershipnumber = function() {
|
|
2922
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
|
|
2923
|
+
};
|
|
2924
|
+
|
|
2925
|
+
|
|
2926
|
+
/** @param {string} value */
|
|
2927
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipRequest.prototype.setMembershipnumber = function(value) {
|
|
2928
|
+
jspb.Message.setField(this, 2, value);
|
|
2929
|
+
};
|
|
2930
|
+
|
|
2931
|
+
|
|
2932
|
+
|
|
2933
|
+
/**
|
|
2934
|
+
* Generated by JsPbCodeGenerator.
|
|
2935
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
2936
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
2937
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
2938
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2939
|
+
* valid.
|
|
2940
|
+
* @extends {jspb.Message}
|
|
2941
|
+
* @constructor
|
|
2942
|
+
*/
|
|
2943
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipResponse = function(opt_data) {
|
|
2944
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
2945
|
+
};
|
|
2946
|
+
goog.inherits(proto.loyaltyprogramserviceapi.ValidateMembershipResponse, jspb.Message);
|
|
2947
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2948
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipResponse.displayName = 'proto.loyaltyprogramserviceapi.ValidateMembershipResponse';
|
|
2949
|
+
}
|
|
2950
|
+
|
|
2951
|
+
|
|
2952
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2953
|
+
/**
|
|
2954
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
2955
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2956
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2957
|
+
* For the list of reserved names please see:
|
|
2958
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
2959
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
2960
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
2961
|
+
* @return {!Object}
|
|
2962
|
+
*/
|
|
2963
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2964
|
+
return proto.loyaltyprogramserviceapi.ValidateMembershipResponse.toObject(opt_includeInstance, this);
|
|
2965
|
+
};
|
|
2966
|
+
|
|
2967
|
+
|
|
2968
|
+
/**
|
|
2969
|
+
* Static version of the {@see toObject} method.
|
|
2970
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
2971
|
+
* instance for transitional soy proto support:
|
|
2972
|
+
* http://goto/soy-param-migration
|
|
2973
|
+
* @param {!proto.loyaltyprogramserviceapi.ValidateMembershipResponse} msg The msg instance to transform.
|
|
2974
|
+
* @return {!Object}
|
|
2975
|
+
*/
|
|
2976
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipResponse.toObject = function(includeInstance, msg) {
|
|
2977
|
+
var f, obj = {
|
|
2978
|
+
responsecode: (f = msg.getResponsecode()) && proto.loyaltyprogramserviceapi.ResponseCode.toObject(includeInstance, f),
|
|
2979
|
+
validated: msg.getValidated()
|
|
2980
|
+
};
|
|
2981
|
+
|
|
2982
|
+
if (includeInstance) {
|
|
2983
|
+
obj.$jspbMessageInstance = msg;
|
|
2984
|
+
}
|
|
2985
|
+
return obj;
|
|
2986
|
+
};
|
|
2987
|
+
}
|
|
2988
|
+
|
|
2989
|
+
|
|
2990
|
+
/**
|
|
2991
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2992
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2993
|
+
* @return {!proto.loyaltyprogramserviceapi.ValidateMembershipResponse}
|
|
2994
|
+
*/
|
|
2995
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipResponse.deserializeBinary = function(bytes) {
|
|
2996
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2997
|
+
var msg = new proto.loyaltyprogramserviceapi.ValidateMembershipResponse;
|
|
2998
|
+
return proto.loyaltyprogramserviceapi.ValidateMembershipResponse.deserializeBinaryFromReader(msg, reader);
|
|
2999
|
+
};
|
|
3000
|
+
|
|
3001
|
+
|
|
3002
|
+
/**
|
|
3003
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3004
|
+
* given reader into the given message object.
|
|
3005
|
+
* @param {!proto.loyaltyprogramserviceapi.ValidateMembershipResponse} msg The message object to deserialize into.
|
|
3006
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3007
|
+
* @return {!proto.loyaltyprogramserviceapi.ValidateMembershipResponse}
|
|
3008
|
+
*/
|
|
3009
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3010
|
+
while (reader.nextField()) {
|
|
3011
|
+
if (reader.isEndGroup()) {
|
|
3012
|
+
break;
|
|
3013
|
+
}
|
|
3014
|
+
var field = reader.getFieldNumber();
|
|
3015
|
+
switch (field) {
|
|
3016
|
+
case 1:
|
|
3017
|
+
var value = new proto.loyaltyprogramserviceapi.ResponseCode;
|
|
3018
|
+
reader.readMessage(value,proto.loyaltyprogramserviceapi.ResponseCode.deserializeBinaryFromReader);
|
|
3019
|
+
msg.setResponsecode(value);
|
|
3020
|
+
break;
|
|
3021
|
+
case 2:
|
|
3022
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
3023
|
+
msg.setValidated(value);
|
|
3024
|
+
break;
|
|
3025
|
+
default:
|
|
3026
|
+
reader.skipField();
|
|
3027
|
+
break;
|
|
3028
|
+
}
|
|
3029
|
+
}
|
|
3030
|
+
return msg;
|
|
3031
|
+
};
|
|
3032
|
+
|
|
3033
|
+
|
|
3034
|
+
/**
|
|
3035
|
+
* Class method variant: serializes the given message to binary data
|
|
3036
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
3037
|
+
* @param {!proto.loyaltyprogramserviceapi.ValidateMembershipResponse} message
|
|
3038
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3039
|
+
*/
|
|
3040
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3041
|
+
message.serializeBinaryToWriter(writer);
|
|
3042
|
+
};
|
|
3043
|
+
|
|
3044
|
+
|
|
3045
|
+
/**
|
|
3046
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3047
|
+
* @return {!Uint8Array}
|
|
3048
|
+
*/
|
|
3049
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipResponse.prototype.serializeBinary = function() {
|
|
3050
|
+
var writer = new jspb.BinaryWriter();
|
|
3051
|
+
this.serializeBinaryToWriter(writer);
|
|
3052
|
+
return writer.getResultBuffer();
|
|
3053
|
+
};
|
|
3054
|
+
|
|
3055
|
+
|
|
3056
|
+
/**
|
|
3057
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
3058
|
+
* writing to the given BinaryWriter.
|
|
3059
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3060
|
+
*/
|
|
3061
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipResponse.prototype.serializeBinaryToWriter = function (writer) {
|
|
3062
|
+
var f = undefined;
|
|
3063
|
+
f = this.getResponsecode();
|
|
3064
|
+
if (f != null) {
|
|
3065
|
+
writer.writeMessage(
|
|
3066
|
+
1,
|
|
3067
|
+
f,
|
|
3068
|
+
proto.loyaltyprogramserviceapi.ResponseCode.serializeBinaryToWriter
|
|
3069
|
+
);
|
|
3070
|
+
}
|
|
3071
|
+
f = this.getValidated();
|
|
3072
|
+
if (f) {
|
|
3073
|
+
writer.writeBool(
|
|
3074
|
+
2,
|
|
3075
|
+
f
|
|
3076
|
+
);
|
|
3077
|
+
}
|
|
3078
|
+
};
|
|
3079
|
+
|
|
3080
|
+
|
|
3081
|
+
/**
|
|
3082
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
3083
|
+
* @return {!proto.loyaltyprogramserviceapi.ValidateMembershipResponse} The clone.
|
|
3084
|
+
*/
|
|
3085
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipResponse.prototype.cloneMessage = function() {
|
|
3086
|
+
return /** @type {!proto.loyaltyprogramserviceapi.ValidateMembershipResponse} */ (jspb.Message.cloneMessage(this));
|
|
3087
|
+
};
|
|
3088
|
+
|
|
3089
|
+
|
|
3090
|
+
/**
|
|
3091
|
+
* optional ResponseCode responseCode = 1;
|
|
3092
|
+
* @return {proto.loyaltyprogramserviceapi.ResponseCode}
|
|
3093
|
+
*/
|
|
3094
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipResponse.prototype.getResponsecode = function() {
|
|
3095
|
+
return /** @type{proto.loyaltyprogramserviceapi.ResponseCode} */ (
|
|
3096
|
+
jspb.Message.getWrapperField(this, proto.loyaltyprogramserviceapi.ResponseCode, 1));
|
|
3097
|
+
};
|
|
3098
|
+
|
|
3099
|
+
|
|
3100
|
+
/** @param {proto.loyaltyprogramserviceapi.ResponseCode|undefined} value */
|
|
3101
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipResponse.prototype.setResponsecode = function(value) {
|
|
3102
|
+
jspb.Message.setWrapperField(this, 1, value);
|
|
3103
|
+
};
|
|
3104
|
+
|
|
3105
|
+
|
|
3106
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipResponse.prototype.clearResponsecode = function() {
|
|
3107
|
+
this.setResponsecode(undefined);
|
|
3108
|
+
};
|
|
3109
|
+
|
|
3110
|
+
|
|
3111
|
+
/**
|
|
3112
|
+
* Returns whether this field is set.
|
|
3113
|
+
* @return{!boolean}
|
|
3114
|
+
*/
|
|
3115
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipResponse.prototype.hasResponsecode = function() {
|
|
3116
|
+
return jspb.Message.getField(this, 1) != null;
|
|
3117
|
+
};
|
|
3118
|
+
|
|
3119
|
+
|
|
3120
|
+
/**
|
|
3121
|
+
* optional bool validated = 2;
|
|
3122
|
+
* Note that Boolean fields may be set to 0/1 when serialized from a Java server.
|
|
3123
|
+
* You should avoid comparisons like {@code val === true/false} in those cases.
|
|
3124
|
+
* @return {boolean}
|
|
3125
|
+
*/
|
|
3126
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipResponse.prototype.getValidated = function() {
|
|
3127
|
+
return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 2, false));
|
|
3128
|
+
};
|
|
3129
|
+
|
|
3130
|
+
|
|
3131
|
+
/** @param {boolean} value */
|
|
3132
|
+
proto.loyaltyprogramserviceapi.ValidateMembershipResponse.prototype.setValidated = function(value) {
|
|
3133
|
+
jspb.Message.setField(this, 2, value);
|
|
3134
|
+
};
|
|
3135
|
+
|
|
3136
|
+
|
|
2326
3137
|
goog.object.extend(exports, proto.loyaltyprogramserviceapi);
|