@sniipwebmaster/worldpay-service-client-grpcweb 25.5.22 → 25.5.34
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 +452 -0
- package/dependancies/service_pb.js +2300 -0
- package/package.json +1 -1
|
@@ -0,0 +1,2300 @@
|
|
|
1
|
+
// source: service.proto
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview
|
|
4
|
+
* @enhanceable
|
|
5
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
|
+
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
|
+
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
// @ts-nocheck
|
|
13
|
+
|
|
14
|
+
var jspb = require('google-protobuf');
|
|
15
|
+
var goog = jspb;
|
|
16
|
+
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
|
|
17
|
+
|
|
18
|
+
var google_api_annotations_pb = require('./google/api/annotations_pb.js');
|
|
19
|
+
goog.object.extend(proto, google_api_annotations_pb);
|
|
20
|
+
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
|
|
21
|
+
goog.object.extend(proto, google_protobuf_empty_pb);
|
|
22
|
+
var google_type_decimal_pb = require('./google/type/decimal_pb.js');
|
|
23
|
+
goog.object.extend(proto, google_type_decimal_pb);
|
|
24
|
+
var protoc$gen$openapiv2_options_annotations_pb = require('./protoc-gen-openapiv2/options/annotations_pb.js');
|
|
25
|
+
goog.object.extend(proto, protoc$gen$openapiv2_options_annotations_pb);
|
|
26
|
+
goog.exportSymbol('proto.worldpayserviceapi.PaymentMethod', null, global);
|
|
27
|
+
goog.exportSymbol('proto.worldpayserviceapi.PaymentProcessorMidType', null, global);
|
|
28
|
+
goog.exportSymbol('proto.worldpayserviceapi.PaymentRequest', null, global);
|
|
29
|
+
goog.exportSymbol('proto.worldpayserviceapi.PaymentResponse', null, global);
|
|
30
|
+
goog.exportSymbol('proto.worldpayserviceapi.PaymentStatusRequest', null, global);
|
|
31
|
+
goog.exportSymbol('proto.worldpayserviceapi.PaymentStatusResponse', null, global);
|
|
32
|
+
goog.exportSymbol('proto.worldpayserviceapi.PostRequest', null, global);
|
|
33
|
+
goog.exportSymbol('proto.worldpayserviceapi.ResponseCode', null, global);
|
|
34
|
+
goog.exportSymbol('proto.worldpayserviceapi.WorldPayPaymentType', null, global);
|
|
35
|
+
/**
|
|
36
|
+
* Generated by JsPbCodeGenerator.
|
|
37
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
38
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
39
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
40
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
41
|
+
* valid.
|
|
42
|
+
* @extends {jspb.Message}
|
|
43
|
+
* @constructor
|
|
44
|
+
*/
|
|
45
|
+
proto.worldpayserviceapi.ResponseCode = function(opt_data) {
|
|
46
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
47
|
+
};
|
|
48
|
+
goog.inherits(proto.worldpayserviceapi.ResponseCode, jspb.Message);
|
|
49
|
+
if (goog.DEBUG && !COMPILED) {
|
|
50
|
+
/**
|
|
51
|
+
* @public
|
|
52
|
+
* @override
|
|
53
|
+
*/
|
|
54
|
+
proto.worldpayserviceapi.ResponseCode.displayName = 'proto.worldpayserviceapi.ResponseCode';
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Generated by JsPbCodeGenerator.
|
|
58
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
59
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
60
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
61
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
62
|
+
* valid.
|
|
63
|
+
* @extends {jspb.Message}
|
|
64
|
+
* @constructor
|
|
65
|
+
*/
|
|
66
|
+
proto.worldpayserviceapi.PostRequest = function(opt_data) {
|
|
67
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
68
|
+
};
|
|
69
|
+
goog.inherits(proto.worldpayserviceapi.PostRequest, jspb.Message);
|
|
70
|
+
if (goog.DEBUG && !COMPILED) {
|
|
71
|
+
/**
|
|
72
|
+
* @public
|
|
73
|
+
* @override
|
|
74
|
+
*/
|
|
75
|
+
proto.worldpayserviceapi.PostRequest.displayName = 'proto.worldpayserviceapi.PostRequest';
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Generated by JsPbCodeGenerator.
|
|
79
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
80
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
81
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
82
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
83
|
+
* valid.
|
|
84
|
+
* @extends {jspb.Message}
|
|
85
|
+
* @constructor
|
|
86
|
+
*/
|
|
87
|
+
proto.worldpayserviceapi.PaymentMethod = function(opt_data) {
|
|
88
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
89
|
+
};
|
|
90
|
+
goog.inherits(proto.worldpayserviceapi.PaymentMethod, jspb.Message);
|
|
91
|
+
if (goog.DEBUG && !COMPILED) {
|
|
92
|
+
/**
|
|
93
|
+
* @public
|
|
94
|
+
* @override
|
|
95
|
+
*/
|
|
96
|
+
proto.worldpayserviceapi.PaymentMethod.displayName = 'proto.worldpayserviceapi.PaymentMethod';
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Generated by JsPbCodeGenerator.
|
|
100
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
101
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
102
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
103
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
104
|
+
* valid.
|
|
105
|
+
* @extends {jspb.Message}
|
|
106
|
+
* @constructor
|
|
107
|
+
*/
|
|
108
|
+
proto.worldpayserviceapi.PaymentRequest = function(opt_data) {
|
|
109
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
110
|
+
};
|
|
111
|
+
goog.inherits(proto.worldpayserviceapi.PaymentRequest, jspb.Message);
|
|
112
|
+
if (goog.DEBUG && !COMPILED) {
|
|
113
|
+
/**
|
|
114
|
+
* @public
|
|
115
|
+
* @override
|
|
116
|
+
*/
|
|
117
|
+
proto.worldpayserviceapi.PaymentRequest.displayName = 'proto.worldpayserviceapi.PaymentRequest';
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Generated by JsPbCodeGenerator.
|
|
121
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
122
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
123
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
124
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
125
|
+
* valid.
|
|
126
|
+
* @extends {jspb.Message}
|
|
127
|
+
* @constructor
|
|
128
|
+
*/
|
|
129
|
+
proto.worldpayserviceapi.PaymentResponse = function(opt_data) {
|
|
130
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
131
|
+
};
|
|
132
|
+
goog.inherits(proto.worldpayserviceapi.PaymentResponse, jspb.Message);
|
|
133
|
+
if (goog.DEBUG && !COMPILED) {
|
|
134
|
+
/**
|
|
135
|
+
* @public
|
|
136
|
+
* @override
|
|
137
|
+
*/
|
|
138
|
+
proto.worldpayserviceapi.PaymentResponse.displayName = 'proto.worldpayserviceapi.PaymentResponse';
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Generated by JsPbCodeGenerator.
|
|
142
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
143
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
144
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
145
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
146
|
+
* valid.
|
|
147
|
+
* @extends {jspb.Message}
|
|
148
|
+
* @constructor
|
|
149
|
+
*/
|
|
150
|
+
proto.worldpayserviceapi.PaymentStatusRequest = function(opt_data) {
|
|
151
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
152
|
+
};
|
|
153
|
+
goog.inherits(proto.worldpayserviceapi.PaymentStatusRequest, jspb.Message);
|
|
154
|
+
if (goog.DEBUG && !COMPILED) {
|
|
155
|
+
/**
|
|
156
|
+
* @public
|
|
157
|
+
* @override
|
|
158
|
+
*/
|
|
159
|
+
proto.worldpayserviceapi.PaymentStatusRequest.displayName = 'proto.worldpayserviceapi.PaymentStatusRequest';
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Generated by JsPbCodeGenerator.
|
|
163
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
164
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
165
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
166
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
167
|
+
* valid.
|
|
168
|
+
* @extends {jspb.Message}
|
|
169
|
+
* @constructor
|
|
170
|
+
*/
|
|
171
|
+
proto.worldpayserviceapi.PaymentStatusResponse = function(opt_data) {
|
|
172
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
173
|
+
};
|
|
174
|
+
goog.inherits(proto.worldpayserviceapi.PaymentStatusResponse, jspb.Message);
|
|
175
|
+
if (goog.DEBUG && !COMPILED) {
|
|
176
|
+
/**
|
|
177
|
+
* @public
|
|
178
|
+
* @override
|
|
179
|
+
*/
|
|
180
|
+
proto.worldpayserviceapi.PaymentStatusResponse.displayName = 'proto.worldpayserviceapi.PaymentStatusResponse';
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
186
|
+
/**
|
|
187
|
+
* Creates an object representation of this proto.
|
|
188
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
189
|
+
* Optional fields that are not set will be set to undefined.
|
|
190
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
191
|
+
* For the list of reserved names please see:
|
|
192
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
193
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
194
|
+
* JSPB instance for transitional soy proto support:
|
|
195
|
+
* http://goto/soy-param-migration
|
|
196
|
+
* @return {!Object}
|
|
197
|
+
*/
|
|
198
|
+
proto.worldpayserviceapi.ResponseCode.prototype.toObject = function(opt_includeInstance) {
|
|
199
|
+
return proto.worldpayserviceapi.ResponseCode.toObject(opt_includeInstance, this);
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Static version of the {@see toObject} method.
|
|
205
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
206
|
+
* the JSPB instance for transitional soy proto support:
|
|
207
|
+
* http://goto/soy-param-migration
|
|
208
|
+
* @param {!proto.worldpayserviceapi.ResponseCode} msg The msg instance to transform.
|
|
209
|
+
* @return {!Object}
|
|
210
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
211
|
+
*/
|
|
212
|
+
proto.worldpayserviceapi.ResponseCode.toObject = function(includeInstance, msg) {
|
|
213
|
+
var f, obj = {
|
|
214
|
+
message: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
215
|
+
code: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
if (includeInstance) {
|
|
219
|
+
obj.$jspbMessageInstance = msg;
|
|
220
|
+
}
|
|
221
|
+
return obj;
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Deserializes binary data (in protobuf wire format).
|
|
228
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
229
|
+
* @return {!proto.worldpayserviceapi.ResponseCode}
|
|
230
|
+
*/
|
|
231
|
+
proto.worldpayserviceapi.ResponseCode.deserializeBinary = function(bytes) {
|
|
232
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
233
|
+
var msg = new proto.worldpayserviceapi.ResponseCode;
|
|
234
|
+
return proto.worldpayserviceapi.ResponseCode.deserializeBinaryFromReader(msg, reader);
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
240
|
+
* given reader into the given message object.
|
|
241
|
+
* @param {!proto.worldpayserviceapi.ResponseCode} msg The message object to deserialize into.
|
|
242
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
243
|
+
* @return {!proto.worldpayserviceapi.ResponseCode}
|
|
244
|
+
*/
|
|
245
|
+
proto.worldpayserviceapi.ResponseCode.deserializeBinaryFromReader = function(msg, reader) {
|
|
246
|
+
while (reader.nextField()) {
|
|
247
|
+
if (reader.isEndGroup()) {
|
|
248
|
+
break;
|
|
249
|
+
}
|
|
250
|
+
var field = reader.getFieldNumber();
|
|
251
|
+
switch (field) {
|
|
252
|
+
case 1:
|
|
253
|
+
var value = /** @type {string} */ (reader.readString());
|
|
254
|
+
msg.setMessage(value);
|
|
255
|
+
break;
|
|
256
|
+
case 2:
|
|
257
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
258
|
+
msg.setCode(value);
|
|
259
|
+
break;
|
|
260
|
+
default:
|
|
261
|
+
reader.skipField();
|
|
262
|
+
break;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
return msg;
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
271
|
+
* @return {!Uint8Array}
|
|
272
|
+
*/
|
|
273
|
+
proto.worldpayserviceapi.ResponseCode.prototype.serializeBinary = function() {
|
|
274
|
+
var writer = new jspb.BinaryWriter();
|
|
275
|
+
proto.worldpayserviceapi.ResponseCode.serializeBinaryToWriter(this, writer);
|
|
276
|
+
return writer.getResultBuffer();
|
|
277
|
+
};
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
282
|
+
* format), writing to the given BinaryWriter.
|
|
283
|
+
* @param {!proto.worldpayserviceapi.ResponseCode} message
|
|
284
|
+
* @param {!jspb.BinaryWriter} writer
|
|
285
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
286
|
+
*/
|
|
287
|
+
proto.worldpayserviceapi.ResponseCode.serializeBinaryToWriter = function(message, writer) {
|
|
288
|
+
var f = undefined;
|
|
289
|
+
f = message.getMessage();
|
|
290
|
+
if (f.length > 0) {
|
|
291
|
+
writer.writeString(
|
|
292
|
+
1,
|
|
293
|
+
f
|
|
294
|
+
);
|
|
295
|
+
}
|
|
296
|
+
f = message.getCode();
|
|
297
|
+
if (f !== 0) {
|
|
298
|
+
writer.writeInt32(
|
|
299
|
+
2,
|
|
300
|
+
f
|
|
301
|
+
);
|
|
302
|
+
}
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* optional string message = 1;
|
|
308
|
+
* @return {string}
|
|
309
|
+
*/
|
|
310
|
+
proto.worldpayserviceapi.ResponseCode.prototype.getMessage = function() {
|
|
311
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* @param {string} value
|
|
317
|
+
* @return {!proto.worldpayserviceapi.ResponseCode} returns this
|
|
318
|
+
*/
|
|
319
|
+
proto.worldpayserviceapi.ResponseCode.prototype.setMessage = function(value) {
|
|
320
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* optional int32 code = 2;
|
|
326
|
+
* @return {number}
|
|
327
|
+
*/
|
|
328
|
+
proto.worldpayserviceapi.ResponseCode.prototype.getCode = function() {
|
|
329
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* @param {number} value
|
|
335
|
+
* @return {!proto.worldpayserviceapi.ResponseCode} returns this
|
|
336
|
+
*/
|
|
337
|
+
proto.worldpayserviceapi.ResponseCode.prototype.setCode = function(value) {
|
|
338
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
346
|
+
/**
|
|
347
|
+
* Creates an object representation of this proto.
|
|
348
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
349
|
+
* Optional fields that are not set will be set to undefined.
|
|
350
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
351
|
+
* For the list of reserved names please see:
|
|
352
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
353
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
354
|
+
* JSPB instance for transitional soy proto support:
|
|
355
|
+
* http://goto/soy-param-migration
|
|
356
|
+
* @return {!Object}
|
|
357
|
+
*/
|
|
358
|
+
proto.worldpayserviceapi.PostRequest.prototype.toObject = function(opt_includeInstance) {
|
|
359
|
+
return proto.worldpayserviceapi.PostRequest.toObject(opt_includeInstance, this);
|
|
360
|
+
};
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* Static version of the {@see toObject} method.
|
|
365
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
366
|
+
* the JSPB instance for transitional soy proto support:
|
|
367
|
+
* http://goto/soy-param-migration
|
|
368
|
+
* @param {!proto.worldpayserviceapi.PostRequest} msg The msg instance to transform.
|
|
369
|
+
* @return {!Object}
|
|
370
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
371
|
+
*/
|
|
372
|
+
proto.worldpayserviceapi.PostRequest.toObject = function(includeInstance, msg) {
|
|
373
|
+
var f, obj = {
|
|
374
|
+
value: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
375
|
+
};
|
|
376
|
+
|
|
377
|
+
if (includeInstance) {
|
|
378
|
+
obj.$jspbMessageInstance = msg;
|
|
379
|
+
}
|
|
380
|
+
return obj;
|
|
381
|
+
};
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* Deserializes binary data (in protobuf wire format).
|
|
387
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
388
|
+
* @return {!proto.worldpayserviceapi.PostRequest}
|
|
389
|
+
*/
|
|
390
|
+
proto.worldpayserviceapi.PostRequest.deserializeBinary = function(bytes) {
|
|
391
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
392
|
+
var msg = new proto.worldpayserviceapi.PostRequest;
|
|
393
|
+
return proto.worldpayserviceapi.PostRequest.deserializeBinaryFromReader(msg, reader);
|
|
394
|
+
};
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
399
|
+
* given reader into the given message object.
|
|
400
|
+
* @param {!proto.worldpayserviceapi.PostRequest} msg The message object to deserialize into.
|
|
401
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
402
|
+
* @return {!proto.worldpayserviceapi.PostRequest}
|
|
403
|
+
*/
|
|
404
|
+
proto.worldpayserviceapi.PostRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
405
|
+
while (reader.nextField()) {
|
|
406
|
+
if (reader.isEndGroup()) {
|
|
407
|
+
break;
|
|
408
|
+
}
|
|
409
|
+
var field = reader.getFieldNumber();
|
|
410
|
+
switch (field) {
|
|
411
|
+
case 1:
|
|
412
|
+
var value = /** @type {string} */ (reader.readString());
|
|
413
|
+
msg.setValue(value);
|
|
414
|
+
break;
|
|
415
|
+
default:
|
|
416
|
+
reader.skipField();
|
|
417
|
+
break;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
return msg;
|
|
421
|
+
};
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
426
|
+
* @return {!Uint8Array}
|
|
427
|
+
*/
|
|
428
|
+
proto.worldpayserviceapi.PostRequest.prototype.serializeBinary = function() {
|
|
429
|
+
var writer = new jspb.BinaryWriter();
|
|
430
|
+
proto.worldpayserviceapi.PostRequest.serializeBinaryToWriter(this, writer);
|
|
431
|
+
return writer.getResultBuffer();
|
|
432
|
+
};
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
437
|
+
* format), writing to the given BinaryWriter.
|
|
438
|
+
* @param {!proto.worldpayserviceapi.PostRequest} message
|
|
439
|
+
* @param {!jspb.BinaryWriter} writer
|
|
440
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
441
|
+
*/
|
|
442
|
+
proto.worldpayserviceapi.PostRequest.serializeBinaryToWriter = function(message, writer) {
|
|
443
|
+
var f = undefined;
|
|
444
|
+
f = message.getValue();
|
|
445
|
+
if (f.length > 0) {
|
|
446
|
+
writer.writeString(
|
|
447
|
+
1,
|
|
448
|
+
f
|
|
449
|
+
);
|
|
450
|
+
}
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* optional string value = 1;
|
|
456
|
+
* @return {string}
|
|
457
|
+
*/
|
|
458
|
+
proto.worldpayserviceapi.PostRequest.prototype.getValue = function() {
|
|
459
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
460
|
+
};
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* @param {string} value
|
|
465
|
+
* @return {!proto.worldpayserviceapi.PostRequest} returns this
|
|
466
|
+
*/
|
|
467
|
+
proto.worldpayserviceapi.PostRequest.prototype.setValue = function(value) {
|
|
468
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
469
|
+
};
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
476
|
+
/**
|
|
477
|
+
* Creates an object representation of this proto.
|
|
478
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
479
|
+
* Optional fields that are not set will be set to undefined.
|
|
480
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
481
|
+
* For the list of reserved names please see:
|
|
482
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
483
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
484
|
+
* JSPB instance for transitional soy proto support:
|
|
485
|
+
* http://goto/soy-param-migration
|
|
486
|
+
* @return {!Object}
|
|
487
|
+
*/
|
|
488
|
+
proto.worldpayserviceapi.PaymentMethod.prototype.toObject = function(opt_includeInstance) {
|
|
489
|
+
return proto.worldpayserviceapi.PaymentMethod.toObject(opt_includeInstance, this);
|
|
490
|
+
};
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* Static version of the {@see toObject} method.
|
|
495
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
496
|
+
* the JSPB instance for transitional soy proto support:
|
|
497
|
+
* http://goto/soy-param-migration
|
|
498
|
+
* @param {!proto.worldpayserviceapi.PaymentMethod} msg The msg instance to transform.
|
|
499
|
+
* @return {!Object}
|
|
500
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
501
|
+
*/
|
|
502
|
+
proto.worldpayserviceapi.PaymentMethod.toObject = function(includeInstance, msg) {
|
|
503
|
+
var f, obj = {
|
|
504
|
+
worldpaypaymenttype: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
505
|
+
paymentmethodid: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
506
|
+
};
|
|
507
|
+
|
|
508
|
+
if (includeInstance) {
|
|
509
|
+
obj.$jspbMessageInstance = msg;
|
|
510
|
+
}
|
|
511
|
+
return obj;
|
|
512
|
+
};
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Deserializes binary data (in protobuf wire format).
|
|
518
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
519
|
+
* @return {!proto.worldpayserviceapi.PaymentMethod}
|
|
520
|
+
*/
|
|
521
|
+
proto.worldpayserviceapi.PaymentMethod.deserializeBinary = function(bytes) {
|
|
522
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
523
|
+
var msg = new proto.worldpayserviceapi.PaymentMethod;
|
|
524
|
+
return proto.worldpayserviceapi.PaymentMethod.deserializeBinaryFromReader(msg, reader);
|
|
525
|
+
};
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
530
|
+
* given reader into the given message object.
|
|
531
|
+
* @param {!proto.worldpayserviceapi.PaymentMethod} msg The message object to deserialize into.
|
|
532
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
533
|
+
* @return {!proto.worldpayserviceapi.PaymentMethod}
|
|
534
|
+
*/
|
|
535
|
+
proto.worldpayserviceapi.PaymentMethod.deserializeBinaryFromReader = function(msg, reader) {
|
|
536
|
+
while (reader.nextField()) {
|
|
537
|
+
if (reader.isEndGroup()) {
|
|
538
|
+
break;
|
|
539
|
+
}
|
|
540
|
+
var field = reader.getFieldNumber();
|
|
541
|
+
switch (field) {
|
|
542
|
+
case 1:
|
|
543
|
+
var value = /** @type {!proto.worldpayserviceapi.WorldPayPaymentType} */ (reader.readEnum());
|
|
544
|
+
msg.setWorldpaypaymenttype(value);
|
|
545
|
+
break;
|
|
546
|
+
case 2:
|
|
547
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
548
|
+
msg.setPaymentmethodid(value);
|
|
549
|
+
break;
|
|
550
|
+
default:
|
|
551
|
+
reader.skipField();
|
|
552
|
+
break;
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
return msg;
|
|
556
|
+
};
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
561
|
+
* @return {!Uint8Array}
|
|
562
|
+
*/
|
|
563
|
+
proto.worldpayserviceapi.PaymentMethod.prototype.serializeBinary = function() {
|
|
564
|
+
var writer = new jspb.BinaryWriter();
|
|
565
|
+
proto.worldpayserviceapi.PaymentMethod.serializeBinaryToWriter(this, writer);
|
|
566
|
+
return writer.getResultBuffer();
|
|
567
|
+
};
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
572
|
+
* format), writing to the given BinaryWriter.
|
|
573
|
+
* @param {!proto.worldpayserviceapi.PaymentMethod} message
|
|
574
|
+
* @param {!jspb.BinaryWriter} writer
|
|
575
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
576
|
+
*/
|
|
577
|
+
proto.worldpayserviceapi.PaymentMethod.serializeBinaryToWriter = function(message, writer) {
|
|
578
|
+
var f = undefined;
|
|
579
|
+
f = message.getWorldpaypaymenttype();
|
|
580
|
+
if (f !== 0.0) {
|
|
581
|
+
writer.writeEnum(
|
|
582
|
+
1,
|
|
583
|
+
f
|
|
584
|
+
);
|
|
585
|
+
}
|
|
586
|
+
f = message.getPaymentmethodid();
|
|
587
|
+
if (f !== 0) {
|
|
588
|
+
writer.writeInt64(
|
|
589
|
+
2,
|
|
590
|
+
f
|
|
591
|
+
);
|
|
592
|
+
}
|
|
593
|
+
};
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
* optional WorldPayPaymentType worldPayPaymentType = 1;
|
|
598
|
+
* @return {!proto.worldpayserviceapi.WorldPayPaymentType}
|
|
599
|
+
*/
|
|
600
|
+
proto.worldpayserviceapi.PaymentMethod.prototype.getWorldpaypaymenttype = function() {
|
|
601
|
+
return /** @type {!proto.worldpayserviceapi.WorldPayPaymentType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
602
|
+
};
|
|
603
|
+
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* @param {!proto.worldpayserviceapi.WorldPayPaymentType} value
|
|
607
|
+
* @return {!proto.worldpayserviceapi.PaymentMethod} returns this
|
|
608
|
+
*/
|
|
609
|
+
proto.worldpayserviceapi.PaymentMethod.prototype.setWorldpaypaymenttype = function(value) {
|
|
610
|
+
return jspb.Message.setProto3EnumField(this, 1, value);
|
|
611
|
+
};
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* optional int64 paymentMethodId = 2;
|
|
616
|
+
* @return {number}
|
|
617
|
+
*/
|
|
618
|
+
proto.worldpayserviceapi.PaymentMethod.prototype.getPaymentmethodid = function() {
|
|
619
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
620
|
+
};
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* @param {number} value
|
|
625
|
+
* @return {!proto.worldpayserviceapi.PaymentMethod} returns this
|
|
626
|
+
*/
|
|
627
|
+
proto.worldpayserviceapi.PaymentMethod.prototype.setPaymentmethodid = function(value) {
|
|
628
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
629
|
+
};
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
|
|
635
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
636
|
+
/**
|
|
637
|
+
* Creates an object representation of this proto.
|
|
638
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
639
|
+
* Optional fields that are not set will be set to undefined.
|
|
640
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
641
|
+
* For the list of reserved names please see:
|
|
642
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
643
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
644
|
+
* JSPB instance for transitional soy proto support:
|
|
645
|
+
* http://goto/soy-param-migration
|
|
646
|
+
* @return {!Object}
|
|
647
|
+
*/
|
|
648
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.toObject = function(opt_includeInstance) {
|
|
649
|
+
return proto.worldpayserviceapi.PaymentRequest.toObject(opt_includeInstance, this);
|
|
650
|
+
};
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* Static version of the {@see toObject} method.
|
|
655
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
656
|
+
* the JSPB instance for transitional soy proto support:
|
|
657
|
+
* http://goto/soy-param-migration
|
|
658
|
+
* @param {!proto.worldpayserviceapi.PaymentRequest} msg The msg instance to transform.
|
|
659
|
+
* @return {!Object}
|
|
660
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
661
|
+
*/
|
|
662
|
+
proto.worldpayserviceapi.PaymentRequest.toObject = function(includeInstance, msg) {
|
|
663
|
+
var f, obj = {
|
|
664
|
+
userid: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
665
|
+
billid: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
666
|
+
paymentmethod: (f = msg.getPaymentmethod()) && proto.worldpayserviceapi.PaymentMethod.toObject(includeInstance, f),
|
|
667
|
+
paidamountexcludingsurcharge: (f = msg.getPaidamountexcludingsurcharge()) && google_type_decimal_pb.Decimal.toObject(includeInstance, f),
|
|
668
|
+
paymentprocessorsurchargeamount: (f = msg.getPaymentprocessorsurchargeamount()) && google_type_decimal_pb.Decimal.toObject(includeInstance, f),
|
|
669
|
+
paidamountincludingsurchargefees: (f = msg.getPaidamountincludingsurchargefees()) && google_type_decimal_pb.Decimal.toObject(includeInstance, f),
|
|
670
|
+
transactionid: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
671
|
+
accesstoken: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
672
|
+
crn: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
673
|
+
ipaddress: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
674
|
+
billercodeshortname: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
675
|
+
billercodelongname: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
676
|
+
paymentprocessor: jspb.Message.getFieldWithDefault(msg, 12, 0),
|
|
677
|
+
paymentvariant: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
678
|
+
billercode: jspb.Message.getFieldWithDefault(msg, 14, ""),
|
|
679
|
+
reference: jspb.Message.getFieldWithDefault(msg, 15, ""),
|
|
680
|
+
billerid: jspb.Message.getFieldWithDefault(msg, 16, 0),
|
|
681
|
+
isbusiness: jspb.Message.getBooleanFieldWithDefault(msg, 17, false),
|
|
682
|
+
anziccode: jspb.Message.getFieldWithDefault(msg, 18, "")
|
|
683
|
+
};
|
|
684
|
+
|
|
685
|
+
if (includeInstance) {
|
|
686
|
+
obj.$jspbMessageInstance = msg;
|
|
687
|
+
}
|
|
688
|
+
return obj;
|
|
689
|
+
};
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* Deserializes binary data (in protobuf wire format).
|
|
695
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
696
|
+
* @return {!proto.worldpayserviceapi.PaymentRequest}
|
|
697
|
+
*/
|
|
698
|
+
proto.worldpayserviceapi.PaymentRequest.deserializeBinary = function(bytes) {
|
|
699
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
700
|
+
var msg = new proto.worldpayserviceapi.PaymentRequest;
|
|
701
|
+
return proto.worldpayserviceapi.PaymentRequest.deserializeBinaryFromReader(msg, reader);
|
|
702
|
+
};
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
707
|
+
* given reader into the given message object.
|
|
708
|
+
* @param {!proto.worldpayserviceapi.PaymentRequest} msg The message object to deserialize into.
|
|
709
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
710
|
+
* @return {!proto.worldpayserviceapi.PaymentRequest}
|
|
711
|
+
*/
|
|
712
|
+
proto.worldpayserviceapi.PaymentRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
713
|
+
while (reader.nextField()) {
|
|
714
|
+
if (reader.isEndGroup()) {
|
|
715
|
+
break;
|
|
716
|
+
}
|
|
717
|
+
var field = reader.getFieldNumber();
|
|
718
|
+
switch (field) {
|
|
719
|
+
case 1:
|
|
720
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
721
|
+
msg.setUserid(value);
|
|
722
|
+
break;
|
|
723
|
+
case 2:
|
|
724
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
725
|
+
msg.setBillid(value);
|
|
726
|
+
break;
|
|
727
|
+
case 3:
|
|
728
|
+
var value = new proto.worldpayserviceapi.PaymentMethod;
|
|
729
|
+
reader.readMessage(value,proto.worldpayserviceapi.PaymentMethod.deserializeBinaryFromReader);
|
|
730
|
+
msg.setPaymentmethod(value);
|
|
731
|
+
break;
|
|
732
|
+
case 4:
|
|
733
|
+
var value = new google_type_decimal_pb.Decimal;
|
|
734
|
+
reader.readMessage(value,google_type_decimal_pb.Decimal.deserializeBinaryFromReader);
|
|
735
|
+
msg.setPaidamountexcludingsurcharge(value);
|
|
736
|
+
break;
|
|
737
|
+
case 9:
|
|
738
|
+
var value = new google_type_decimal_pb.Decimal;
|
|
739
|
+
reader.readMessage(value,google_type_decimal_pb.Decimal.deserializeBinaryFromReader);
|
|
740
|
+
msg.setPaymentprocessorsurchargeamount(value);
|
|
741
|
+
break;
|
|
742
|
+
case 19:
|
|
743
|
+
var value = new google_type_decimal_pb.Decimal;
|
|
744
|
+
reader.readMessage(value,google_type_decimal_pb.Decimal.deserializeBinaryFromReader);
|
|
745
|
+
msg.setPaidamountincludingsurchargefees(value);
|
|
746
|
+
break;
|
|
747
|
+
case 5:
|
|
748
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
749
|
+
msg.setTransactionid(value);
|
|
750
|
+
break;
|
|
751
|
+
case 6:
|
|
752
|
+
var value = /** @type {string} */ (reader.readString());
|
|
753
|
+
msg.setAccesstoken(value);
|
|
754
|
+
break;
|
|
755
|
+
case 7:
|
|
756
|
+
var value = /** @type {string} */ (reader.readString());
|
|
757
|
+
msg.setCrn(value);
|
|
758
|
+
break;
|
|
759
|
+
case 8:
|
|
760
|
+
var value = /** @type {string} */ (reader.readString());
|
|
761
|
+
msg.setIpaddress(value);
|
|
762
|
+
break;
|
|
763
|
+
case 10:
|
|
764
|
+
var value = /** @type {string} */ (reader.readString());
|
|
765
|
+
msg.setBillercodeshortname(value);
|
|
766
|
+
break;
|
|
767
|
+
case 11:
|
|
768
|
+
var value = /** @type {string} */ (reader.readString());
|
|
769
|
+
msg.setBillercodelongname(value);
|
|
770
|
+
break;
|
|
771
|
+
case 12:
|
|
772
|
+
var value = /** @type {!proto.worldpayserviceapi.PaymentProcessorMidType} */ (reader.readEnum());
|
|
773
|
+
msg.setPaymentprocessor(value);
|
|
774
|
+
break;
|
|
775
|
+
case 13:
|
|
776
|
+
var value = /** @type {string} */ (reader.readString());
|
|
777
|
+
msg.setPaymentvariant(value);
|
|
778
|
+
break;
|
|
779
|
+
case 14:
|
|
780
|
+
var value = /** @type {string} */ (reader.readString());
|
|
781
|
+
msg.setBillercode(value);
|
|
782
|
+
break;
|
|
783
|
+
case 15:
|
|
784
|
+
var value = /** @type {string} */ (reader.readString());
|
|
785
|
+
msg.setReference(value);
|
|
786
|
+
break;
|
|
787
|
+
case 16:
|
|
788
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
789
|
+
msg.setBillerid(value);
|
|
790
|
+
break;
|
|
791
|
+
case 17:
|
|
792
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
793
|
+
msg.setIsbusiness(value);
|
|
794
|
+
break;
|
|
795
|
+
case 18:
|
|
796
|
+
var value = /** @type {string} */ (reader.readString());
|
|
797
|
+
msg.setAnziccode(value);
|
|
798
|
+
break;
|
|
799
|
+
default:
|
|
800
|
+
reader.skipField();
|
|
801
|
+
break;
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
return msg;
|
|
805
|
+
};
|
|
806
|
+
|
|
807
|
+
|
|
808
|
+
/**
|
|
809
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
810
|
+
* @return {!Uint8Array}
|
|
811
|
+
*/
|
|
812
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.serializeBinary = function() {
|
|
813
|
+
var writer = new jspb.BinaryWriter();
|
|
814
|
+
proto.worldpayserviceapi.PaymentRequest.serializeBinaryToWriter(this, writer);
|
|
815
|
+
return writer.getResultBuffer();
|
|
816
|
+
};
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
821
|
+
* format), writing to the given BinaryWriter.
|
|
822
|
+
* @param {!proto.worldpayserviceapi.PaymentRequest} message
|
|
823
|
+
* @param {!jspb.BinaryWriter} writer
|
|
824
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
825
|
+
*/
|
|
826
|
+
proto.worldpayserviceapi.PaymentRequest.serializeBinaryToWriter = function(message, writer) {
|
|
827
|
+
var f = undefined;
|
|
828
|
+
f = message.getUserid();
|
|
829
|
+
if (f !== 0) {
|
|
830
|
+
writer.writeInt64(
|
|
831
|
+
1,
|
|
832
|
+
f
|
|
833
|
+
);
|
|
834
|
+
}
|
|
835
|
+
f = message.getBillid();
|
|
836
|
+
if (f !== 0) {
|
|
837
|
+
writer.writeInt64(
|
|
838
|
+
2,
|
|
839
|
+
f
|
|
840
|
+
);
|
|
841
|
+
}
|
|
842
|
+
f = message.getPaymentmethod();
|
|
843
|
+
if (f != null) {
|
|
844
|
+
writer.writeMessage(
|
|
845
|
+
3,
|
|
846
|
+
f,
|
|
847
|
+
proto.worldpayserviceapi.PaymentMethod.serializeBinaryToWriter
|
|
848
|
+
);
|
|
849
|
+
}
|
|
850
|
+
f = message.getPaidamountexcludingsurcharge();
|
|
851
|
+
if (f != null) {
|
|
852
|
+
writer.writeMessage(
|
|
853
|
+
4,
|
|
854
|
+
f,
|
|
855
|
+
google_type_decimal_pb.Decimal.serializeBinaryToWriter
|
|
856
|
+
);
|
|
857
|
+
}
|
|
858
|
+
f = message.getPaymentprocessorsurchargeamount();
|
|
859
|
+
if (f != null) {
|
|
860
|
+
writer.writeMessage(
|
|
861
|
+
9,
|
|
862
|
+
f,
|
|
863
|
+
google_type_decimal_pb.Decimal.serializeBinaryToWriter
|
|
864
|
+
);
|
|
865
|
+
}
|
|
866
|
+
f = message.getPaidamountincludingsurchargefees();
|
|
867
|
+
if (f != null) {
|
|
868
|
+
writer.writeMessage(
|
|
869
|
+
19,
|
|
870
|
+
f,
|
|
871
|
+
google_type_decimal_pb.Decimal.serializeBinaryToWriter
|
|
872
|
+
);
|
|
873
|
+
}
|
|
874
|
+
f = message.getTransactionid();
|
|
875
|
+
if (f !== 0) {
|
|
876
|
+
writer.writeInt64(
|
|
877
|
+
5,
|
|
878
|
+
f
|
|
879
|
+
);
|
|
880
|
+
}
|
|
881
|
+
f = message.getAccesstoken();
|
|
882
|
+
if (f.length > 0) {
|
|
883
|
+
writer.writeString(
|
|
884
|
+
6,
|
|
885
|
+
f
|
|
886
|
+
);
|
|
887
|
+
}
|
|
888
|
+
f = message.getCrn();
|
|
889
|
+
if (f.length > 0) {
|
|
890
|
+
writer.writeString(
|
|
891
|
+
7,
|
|
892
|
+
f
|
|
893
|
+
);
|
|
894
|
+
}
|
|
895
|
+
f = message.getIpaddress();
|
|
896
|
+
if (f.length > 0) {
|
|
897
|
+
writer.writeString(
|
|
898
|
+
8,
|
|
899
|
+
f
|
|
900
|
+
);
|
|
901
|
+
}
|
|
902
|
+
f = message.getBillercodeshortname();
|
|
903
|
+
if (f.length > 0) {
|
|
904
|
+
writer.writeString(
|
|
905
|
+
10,
|
|
906
|
+
f
|
|
907
|
+
);
|
|
908
|
+
}
|
|
909
|
+
f = message.getBillercodelongname();
|
|
910
|
+
if (f.length > 0) {
|
|
911
|
+
writer.writeString(
|
|
912
|
+
11,
|
|
913
|
+
f
|
|
914
|
+
);
|
|
915
|
+
}
|
|
916
|
+
f = message.getPaymentprocessor();
|
|
917
|
+
if (f !== 0.0) {
|
|
918
|
+
writer.writeEnum(
|
|
919
|
+
12,
|
|
920
|
+
f
|
|
921
|
+
);
|
|
922
|
+
}
|
|
923
|
+
f = message.getPaymentvariant();
|
|
924
|
+
if (f.length > 0) {
|
|
925
|
+
writer.writeString(
|
|
926
|
+
13,
|
|
927
|
+
f
|
|
928
|
+
);
|
|
929
|
+
}
|
|
930
|
+
f = message.getBillercode();
|
|
931
|
+
if (f.length > 0) {
|
|
932
|
+
writer.writeString(
|
|
933
|
+
14,
|
|
934
|
+
f
|
|
935
|
+
);
|
|
936
|
+
}
|
|
937
|
+
f = message.getReference();
|
|
938
|
+
if (f.length > 0) {
|
|
939
|
+
writer.writeString(
|
|
940
|
+
15,
|
|
941
|
+
f
|
|
942
|
+
);
|
|
943
|
+
}
|
|
944
|
+
f = message.getBillerid();
|
|
945
|
+
if (f !== 0) {
|
|
946
|
+
writer.writeInt64(
|
|
947
|
+
16,
|
|
948
|
+
f
|
|
949
|
+
);
|
|
950
|
+
}
|
|
951
|
+
f = message.getIsbusiness();
|
|
952
|
+
if (f) {
|
|
953
|
+
writer.writeBool(
|
|
954
|
+
17,
|
|
955
|
+
f
|
|
956
|
+
);
|
|
957
|
+
}
|
|
958
|
+
f = message.getAnziccode();
|
|
959
|
+
if (f.length > 0) {
|
|
960
|
+
writer.writeString(
|
|
961
|
+
18,
|
|
962
|
+
f
|
|
963
|
+
);
|
|
964
|
+
}
|
|
965
|
+
};
|
|
966
|
+
|
|
967
|
+
|
|
968
|
+
/**
|
|
969
|
+
* optional int64 userId = 1;
|
|
970
|
+
* @return {number}
|
|
971
|
+
*/
|
|
972
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.getUserid = function() {
|
|
973
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
974
|
+
};
|
|
975
|
+
|
|
976
|
+
|
|
977
|
+
/**
|
|
978
|
+
* @param {number} value
|
|
979
|
+
* @return {!proto.worldpayserviceapi.PaymentRequest} returns this
|
|
980
|
+
*/
|
|
981
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.setUserid = function(value) {
|
|
982
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
983
|
+
};
|
|
984
|
+
|
|
985
|
+
|
|
986
|
+
/**
|
|
987
|
+
* optional int64 billId = 2;
|
|
988
|
+
* @return {number}
|
|
989
|
+
*/
|
|
990
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.getBillid = function() {
|
|
991
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
992
|
+
};
|
|
993
|
+
|
|
994
|
+
|
|
995
|
+
/**
|
|
996
|
+
* @param {number} value
|
|
997
|
+
* @return {!proto.worldpayserviceapi.PaymentRequest} returns this
|
|
998
|
+
*/
|
|
999
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.setBillid = function(value) {
|
|
1000
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
1001
|
+
};
|
|
1002
|
+
|
|
1003
|
+
|
|
1004
|
+
/**
|
|
1005
|
+
* optional PaymentMethod paymentMethod = 3;
|
|
1006
|
+
* @return {?proto.worldpayserviceapi.PaymentMethod}
|
|
1007
|
+
*/
|
|
1008
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.getPaymentmethod = function() {
|
|
1009
|
+
return /** @type{?proto.worldpayserviceapi.PaymentMethod} */ (
|
|
1010
|
+
jspb.Message.getWrapperField(this, proto.worldpayserviceapi.PaymentMethod, 3));
|
|
1011
|
+
};
|
|
1012
|
+
|
|
1013
|
+
|
|
1014
|
+
/**
|
|
1015
|
+
* @param {?proto.worldpayserviceapi.PaymentMethod|undefined} value
|
|
1016
|
+
* @return {!proto.worldpayserviceapi.PaymentRequest} returns this
|
|
1017
|
+
*/
|
|
1018
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.setPaymentmethod = function(value) {
|
|
1019
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
1020
|
+
};
|
|
1021
|
+
|
|
1022
|
+
|
|
1023
|
+
/**
|
|
1024
|
+
* Clears the message field making it undefined.
|
|
1025
|
+
* @return {!proto.worldpayserviceapi.PaymentRequest} returns this
|
|
1026
|
+
*/
|
|
1027
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.clearPaymentmethod = function() {
|
|
1028
|
+
return this.setPaymentmethod(undefined);
|
|
1029
|
+
};
|
|
1030
|
+
|
|
1031
|
+
|
|
1032
|
+
/**
|
|
1033
|
+
* Returns whether this field is set.
|
|
1034
|
+
* @return {boolean}
|
|
1035
|
+
*/
|
|
1036
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.hasPaymentmethod = function() {
|
|
1037
|
+
return jspb.Message.getField(this, 3) != null;
|
|
1038
|
+
};
|
|
1039
|
+
|
|
1040
|
+
|
|
1041
|
+
/**
|
|
1042
|
+
* optional google.type.Decimal paidAmountExcludingSurcharge = 4;
|
|
1043
|
+
* @return {?proto.google.type.Decimal}
|
|
1044
|
+
*/
|
|
1045
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.getPaidamountexcludingsurcharge = function() {
|
|
1046
|
+
return /** @type{?proto.google.type.Decimal} */ (
|
|
1047
|
+
jspb.Message.getWrapperField(this, google_type_decimal_pb.Decimal, 4));
|
|
1048
|
+
};
|
|
1049
|
+
|
|
1050
|
+
|
|
1051
|
+
/**
|
|
1052
|
+
* @param {?proto.google.type.Decimal|undefined} value
|
|
1053
|
+
* @return {!proto.worldpayserviceapi.PaymentRequest} returns this
|
|
1054
|
+
*/
|
|
1055
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.setPaidamountexcludingsurcharge = function(value) {
|
|
1056
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
1057
|
+
};
|
|
1058
|
+
|
|
1059
|
+
|
|
1060
|
+
/**
|
|
1061
|
+
* Clears the message field making it undefined.
|
|
1062
|
+
* @return {!proto.worldpayserviceapi.PaymentRequest} returns this
|
|
1063
|
+
*/
|
|
1064
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.clearPaidamountexcludingsurcharge = function() {
|
|
1065
|
+
return this.setPaidamountexcludingsurcharge(undefined);
|
|
1066
|
+
};
|
|
1067
|
+
|
|
1068
|
+
|
|
1069
|
+
/**
|
|
1070
|
+
* Returns whether this field is set.
|
|
1071
|
+
* @return {boolean}
|
|
1072
|
+
*/
|
|
1073
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.hasPaidamountexcludingsurcharge = function() {
|
|
1074
|
+
return jspb.Message.getField(this, 4) != null;
|
|
1075
|
+
};
|
|
1076
|
+
|
|
1077
|
+
|
|
1078
|
+
/**
|
|
1079
|
+
* optional google.type.Decimal paymentProcessorSurchargeAmount = 9;
|
|
1080
|
+
* @return {?proto.google.type.Decimal}
|
|
1081
|
+
*/
|
|
1082
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.getPaymentprocessorsurchargeamount = function() {
|
|
1083
|
+
return /** @type{?proto.google.type.Decimal} */ (
|
|
1084
|
+
jspb.Message.getWrapperField(this, google_type_decimal_pb.Decimal, 9));
|
|
1085
|
+
};
|
|
1086
|
+
|
|
1087
|
+
|
|
1088
|
+
/**
|
|
1089
|
+
* @param {?proto.google.type.Decimal|undefined} value
|
|
1090
|
+
* @return {!proto.worldpayserviceapi.PaymentRequest} returns this
|
|
1091
|
+
*/
|
|
1092
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.setPaymentprocessorsurchargeamount = function(value) {
|
|
1093
|
+
return jspb.Message.setWrapperField(this, 9, value);
|
|
1094
|
+
};
|
|
1095
|
+
|
|
1096
|
+
|
|
1097
|
+
/**
|
|
1098
|
+
* Clears the message field making it undefined.
|
|
1099
|
+
* @return {!proto.worldpayserviceapi.PaymentRequest} returns this
|
|
1100
|
+
*/
|
|
1101
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.clearPaymentprocessorsurchargeamount = function() {
|
|
1102
|
+
return this.setPaymentprocessorsurchargeamount(undefined);
|
|
1103
|
+
};
|
|
1104
|
+
|
|
1105
|
+
|
|
1106
|
+
/**
|
|
1107
|
+
* Returns whether this field is set.
|
|
1108
|
+
* @return {boolean}
|
|
1109
|
+
*/
|
|
1110
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.hasPaymentprocessorsurchargeamount = function() {
|
|
1111
|
+
return jspb.Message.getField(this, 9) != null;
|
|
1112
|
+
};
|
|
1113
|
+
|
|
1114
|
+
|
|
1115
|
+
/**
|
|
1116
|
+
* optional google.type.Decimal paidAmountIncludingSurchargeFees = 19;
|
|
1117
|
+
* @return {?proto.google.type.Decimal}
|
|
1118
|
+
*/
|
|
1119
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.getPaidamountincludingsurchargefees = function() {
|
|
1120
|
+
return /** @type{?proto.google.type.Decimal} */ (
|
|
1121
|
+
jspb.Message.getWrapperField(this, google_type_decimal_pb.Decimal, 19));
|
|
1122
|
+
};
|
|
1123
|
+
|
|
1124
|
+
|
|
1125
|
+
/**
|
|
1126
|
+
* @param {?proto.google.type.Decimal|undefined} value
|
|
1127
|
+
* @return {!proto.worldpayserviceapi.PaymentRequest} returns this
|
|
1128
|
+
*/
|
|
1129
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.setPaidamountincludingsurchargefees = function(value) {
|
|
1130
|
+
return jspb.Message.setWrapperField(this, 19, value);
|
|
1131
|
+
};
|
|
1132
|
+
|
|
1133
|
+
|
|
1134
|
+
/**
|
|
1135
|
+
* Clears the message field making it undefined.
|
|
1136
|
+
* @return {!proto.worldpayserviceapi.PaymentRequest} returns this
|
|
1137
|
+
*/
|
|
1138
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.clearPaidamountincludingsurchargefees = function() {
|
|
1139
|
+
return this.setPaidamountincludingsurchargefees(undefined);
|
|
1140
|
+
};
|
|
1141
|
+
|
|
1142
|
+
|
|
1143
|
+
/**
|
|
1144
|
+
* Returns whether this field is set.
|
|
1145
|
+
* @return {boolean}
|
|
1146
|
+
*/
|
|
1147
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.hasPaidamountincludingsurchargefees = function() {
|
|
1148
|
+
return jspb.Message.getField(this, 19) != null;
|
|
1149
|
+
};
|
|
1150
|
+
|
|
1151
|
+
|
|
1152
|
+
/**
|
|
1153
|
+
* optional int64 transactionId = 5;
|
|
1154
|
+
* @return {number}
|
|
1155
|
+
*/
|
|
1156
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.getTransactionid = function() {
|
|
1157
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
1158
|
+
};
|
|
1159
|
+
|
|
1160
|
+
|
|
1161
|
+
/**
|
|
1162
|
+
* @param {number} value
|
|
1163
|
+
* @return {!proto.worldpayserviceapi.PaymentRequest} returns this
|
|
1164
|
+
*/
|
|
1165
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.setTransactionid = function(value) {
|
|
1166
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
1167
|
+
};
|
|
1168
|
+
|
|
1169
|
+
|
|
1170
|
+
/**
|
|
1171
|
+
* optional string accessToken = 6;
|
|
1172
|
+
* @return {string}
|
|
1173
|
+
*/
|
|
1174
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.getAccesstoken = function() {
|
|
1175
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
1176
|
+
};
|
|
1177
|
+
|
|
1178
|
+
|
|
1179
|
+
/**
|
|
1180
|
+
* @param {string} value
|
|
1181
|
+
* @return {!proto.worldpayserviceapi.PaymentRequest} returns this
|
|
1182
|
+
*/
|
|
1183
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.setAccesstoken = function(value) {
|
|
1184
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
1185
|
+
};
|
|
1186
|
+
|
|
1187
|
+
|
|
1188
|
+
/**
|
|
1189
|
+
* optional string crn = 7;
|
|
1190
|
+
* @return {string}
|
|
1191
|
+
*/
|
|
1192
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.getCrn = function() {
|
|
1193
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
1194
|
+
};
|
|
1195
|
+
|
|
1196
|
+
|
|
1197
|
+
/**
|
|
1198
|
+
* @param {string} value
|
|
1199
|
+
* @return {!proto.worldpayserviceapi.PaymentRequest} returns this
|
|
1200
|
+
*/
|
|
1201
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.setCrn = function(value) {
|
|
1202
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
1203
|
+
};
|
|
1204
|
+
|
|
1205
|
+
|
|
1206
|
+
/**
|
|
1207
|
+
* optional string ipAddress = 8;
|
|
1208
|
+
* @return {string}
|
|
1209
|
+
*/
|
|
1210
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.getIpaddress = function() {
|
|
1211
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
1212
|
+
};
|
|
1213
|
+
|
|
1214
|
+
|
|
1215
|
+
/**
|
|
1216
|
+
* @param {string} value
|
|
1217
|
+
* @return {!proto.worldpayserviceapi.PaymentRequest} returns this
|
|
1218
|
+
*/
|
|
1219
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.setIpaddress = function(value) {
|
|
1220
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
1221
|
+
};
|
|
1222
|
+
|
|
1223
|
+
|
|
1224
|
+
/**
|
|
1225
|
+
* optional string billerCodeShortName = 10;
|
|
1226
|
+
* @return {string}
|
|
1227
|
+
*/
|
|
1228
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.getBillercodeshortname = function() {
|
|
1229
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
1230
|
+
};
|
|
1231
|
+
|
|
1232
|
+
|
|
1233
|
+
/**
|
|
1234
|
+
* @param {string} value
|
|
1235
|
+
* @return {!proto.worldpayserviceapi.PaymentRequest} returns this
|
|
1236
|
+
*/
|
|
1237
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.setBillercodeshortname = function(value) {
|
|
1238
|
+
return jspb.Message.setProto3StringField(this, 10, value);
|
|
1239
|
+
};
|
|
1240
|
+
|
|
1241
|
+
|
|
1242
|
+
/**
|
|
1243
|
+
* optional string billerCodeLongName = 11;
|
|
1244
|
+
* @return {string}
|
|
1245
|
+
*/
|
|
1246
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.getBillercodelongname = function() {
|
|
1247
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
|
1248
|
+
};
|
|
1249
|
+
|
|
1250
|
+
|
|
1251
|
+
/**
|
|
1252
|
+
* @param {string} value
|
|
1253
|
+
* @return {!proto.worldpayserviceapi.PaymentRequest} returns this
|
|
1254
|
+
*/
|
|
1255
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.setBillercodelongname = function(value) {
|
|
1256
|
+
return jspb.Message.setProto3StringField(this, 11, value);
|
|
1257
|
+
};
|
|
1258
|
+
|
|
1259
|
+
|
|
1260
|
+
/**
|
|
1261
|
+
* optional PaymentProcessorMidType paymentProcessor = 12;
|
|
1262
|
+
* @return {!proto.worldpayserviceapi.PaymentProcessorMidType}
|
|
1263
|
+
*/
|
|
1264
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.getPaymentprocessor = function() {
|
|
1265
|
+
return /** @type {!proto.worldpayserviceapi.PaymentProcessorMidType} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
|
|
1266
|
+
};
|
|
1267
|
+
|
|
1268
|
+
|
|
1269
|
+
/**
|
|
1270
|
+
* @param {!proto.worldpayserviceapi.PaymentProcessorMidType} value
|
|
1271
|
+
* @return {!proto.worldpayserviceapi.PaymentRequest} returns this
|
|
1272
|
+
*/
|
|
1273
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.setPaymentprocessor = function(value) {
|
|
1274
|
+
return jspb.Message.setProto3EnumField(this, 12, value);
|
|
1275
|
+
};
|
|
1276
|
+
|
|
1277
|
+
|
|
1278
|
+
/**
|
|
1279
|
+
* optional string paymentVariant = 13;
|
|
1280
|
+
* @return {string}
|
|
1281
|
+
*/
|
|
1282
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.getPaymentvariant = function() {
|
|
1283
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
|
|
1284
|
+
};
|
|
1285
|
+
|
|
1286
|
+
|
|
1287
|
+
/**
|
|
1288
|
+
* @param {string} value
|
|
1289
|
+
* @return {!proto.worldpayserviceapi.PaymentRequest} returns this
|
|
1290
|
+
*/
|
|
1291
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.setPaymentvariant = function(value) {
|
|
1292
|
+
return jspb.Message.setProto3StringField(this, 13, value);
|
|
1293
|
+
};
|
|
1294
|
+
|
|
1295
|
+
|
|
1296
|
+
/**
|
|
1297
|
+
* optional string billerCode = 14;
|
|
1298
|
+
* @return {string}
|
|
1299
|
+
*/
|
|
1300
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.getBillercode = function() {
|
|
1301
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
|
|
1302
|
+
};
|
|
1303
|
+
|
|
1304
|
+
|
|
1305
|
+
/**
|
|
1306
|
+
* @param {string} value
|
|
1307
|
+
* @return {!proto.worldpayserviceapi.PaymentRequest} returns this
|
|
1308
|
+
*/
|
|
1309
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.setBillercode = function(value) {
|
|
1310
|
+
return jspb.Message.setProto3StringField(this, 14, value);
|
|
1311
|
+
};
|
|
1312
|
+
|
|
1313
|
+
|
|
1314
|
+
/**
|
|
1315
|
+
* optional string reference = 15;
|
|
1316
|
+
* @return {string}
|
|
1317
|
+
*/
|
|
1318
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.getReference = function() {
|
|
1319
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
|
|
1320
|
+
};
|
|
1321
|
+
|
|
1322
|
+
|
|
1323
|
+
/**
|
|
1324
|
+
* @param {string} value
|
|
1325
|
+
* @return {!proto.worldpayserviceapi.PaymentRequest} returns this
|
|
1326
|
+
*/
|
|
1327
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.setReference = function(value) {
|
|
1328
|
+
return jspb.Message.setProto3StringField(this, 15, value);
|
|
1329
|
+
};
|
|
1330
|
+
|
|
1331
|
+
|
|
1332
|
+
/**
|
|
1333
|
+
* optional int64 billerId = 16;
|
|
1334
|
+
* @return {number}
|
|
1335
|
+
*/
|
|
1336
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.getBillerid = function() {
|
|
1337
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0));
|
|
1338
|
+
};
|
|
1339
|
+
|
|
1340
|
+
|
|
1341
|
+
/**
|
|
1342
|
+
* @param {number} value
|
|
1343
|
+
* @return {!proto.worldpayserviceapi.PaymentRequest} returns this
|
|
1344
|
+
*/
|
|
1345
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.setBillerid = function(value) {
|
|
1346
|
+
return jspb.Message.setProto3IntField(this, 16, value);
|
|
1347
|
+
};
|
|
1348
|
+
|
|
1349
|
+
|
|
1350
|
+
/**
|
|
1351
|
+
* optional bool isBusiness = 17;
|
|
1352
|
+
* @return {boolean}
|
|
1353
|
+
*/
|
|
1354
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.getIsbusiness = function() {
|
|
1355
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 17, false));
|
|
1356
|
+
};
|
|
1357
|
+
|
|
1358
|
+
|
|
1359
|
+
/**
|
|
1360
|
+
* @param {boolean} value
|
|
1361
|
+
* @return {!proto.worldpayserviceapi.PaymentRequest} returns this
|
|
1362
|
+
*/
|
|
1363
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.setIsbusiness = function(value) {
|
|
1364
|
+
return jspb.Message.setProto3BooleanField(this, 17, value);
|
|
1365
|
+
};
|
|
1366
|
+
|
|
1367
|
+
|
|
1368
|
+
/**
|
|
1369
|
+
* optional string anzicCode = 18;
|
|
1370
|
+
* @return {string}
|
|
1371
|
+
*/
|
|
1372
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.getAnziccode = function() {
|
|
1373
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
|
|
1374
|
+
};
|
|
1375
|
+
|
|
1376
|
+
|
|
1377
|
+
/**
|
|
1378
|
+
* @param {string} value
|
|
1379
|
+
* @return {!proto.worldpayserviceapi.PaymentRequest} returns this
|
|
1380
|
+
*/
|
|
1381
|
+
proto.worldpayserviceapi.PaymentRequest.prototype.setAnziccode = function(value) {
|
|
1382
|
+
return jspb.Message.setProto3StringField(this, 18, value);
|
|
1383
|
+
};
|
|
1384
|
+
|
|
1385
|
+
|
|
1386
|
+
|
|
1387
|
+
|
|
1388
|
+
|
|
1389
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1390
|
+
/**
|
|
1391
|
+
* Creates an object representation of this proto.
|
|
1392
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1393
|
+
* Optional fields that are not set will be set to undefined.
|
|
1394
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1395
|
+
* For the list of reserved names please see:
|
|
1396
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1397
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1398
|
+
* JSPB instance for transitional soy proto support:
|
|
1399
|
+
* http://goto/soy-param-migration
|
|
1400
|
+
* @return {!Object}
|
|
1401
|
+
*/
|
|
1402
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1403
|
+
return proto.worldpayserviceapi.PaymentResponse.toObject(opt_includeInstance, this);
|
|
1404
|
+
};
|
|
1405
|
+
|
|
1406
|
+
|
|
1407
|
+
/**
|
|
1408
|
+
* Static version of the {@see toObject} method.
|
|
1409
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1410
|
+
* the JSPB instance for transitional soy proto support:
|
|
1411
|
+
* http://goto/soy-param-migration
|
|
1412
|
+
* @param {!proto.worldpayserviceapi.PaymentResponse} msg The msg instance to transform.
|
|
1413
|
+
* @return {!Object}
|
|
1414
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1415
|
+
*/
|
|
1416
|
+
proto.worldpayserviceapi.PaymentResponse.toObject = function(includeInstance, msg) {
|
|
1417
|
+
var f, obj = {
|
|
1418
|
+
responsecode: (f = msg.getResponsecode()) && proto.worldpayserviceapi.ResponseCode.toObject(includeInstance, f),
|
|
1419
|
+
response: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1420
|
+
status: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
1421
|
+
source: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
1422
|
+
sourceid: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
1423
|
+
gatewaytransactionid: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
1424
|
+
sniiptransactionid: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
1425
|
+
receiptid: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
1426
|
+
paidamountexcludingsurcharge: (f = msg.getPaidamountexcludingsurcharge()) && google_type_decimal_pb.Decimal.toObject(includeInstance, f),
|
|
1427
|
+
paymentprocessorsurchargeamount: (f = msg.getPaymentprocessorsurchargeamount()) && google_type_decimal_pb.Decimal.toObject(includeInstance, f),
|
|
1428
|
+
paidamountincludingsurchargefees: (f = msg.getPaidamountincludingsurchargefees()) && google_type_decimal_pb.Decimal.toObject(includeInstance, f),
|
|
1429
|
+
gatewaybankresponsecode: jspb.Message.getFieldWithDefault(msg, 12, 0),
|
|
1430
|
+
gatewayresponsemessage: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
1431
|
+
actionurl: jspb.Message.getFieldWithDefault(msg, 15, ""),
|
|
1432
|
+
actionurlbase64image: jspb.Message.getFieldWithDefault(msg, 16, "")
|
|
1433
|
+
};
|
|
1434
|
+
|
|
1435
|
+
if (includeInstance) {
|
|
1436
|
+
obj.$jspbMessageInstance = msg;
|
|
1437
|
+
}
|
|
1438
|
+
return obj;
|
|
1439
|
+
};
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
|
|
1443
|
+
/**
|
|
1444
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1445
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1446
|
+
* @return {!proto.worldpayserviceapi.PaymentResponse}
|
|
1447
|
+
*/
|
|
1448
|
+
proto.worldpayserviceapi.PaymentResponse.deserializeBinary = function(bytes) {
|
|
1449
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1450
|
+
var msg = new proto.worldpayserviceapi.PaymentResponse;
|
|
1451
|
+
return proto.worldpayserviceapi.PaymentResponse.deserializeBinaryFromReader(msg, reader);
|
|
1452
|
+
};
|
|
1453
|
+
|
|
1454
|
+
|
|
1455
|
+
/**
|
|
1456
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1457
|
+
* given reader into the given message object.
|
|
1458
|
+
* @param {!proto.worldpayserviceapi.PaymentResponse} msg The message object to deserialize into.
|
|
1459
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1460
|
+
* @return {!proto.worldpayserviceapi.PaymentResponse}
|
|
1461
|
+
*/
|
|
1462
|
+
proto.worldpayserviceapi.PaymentResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1463
|
+
while (reader.nextField()) {
|
|
1464
|
+
if (reader.isEndGroup()) {
|
|
1465
|
+
break;
|
|
1466
|
+
}
|
|
1467
|
+
var field = reader.getFieldNumber();
|
|
1468
|
+
switch (field) {
|
|
1469
|
+
case 1:
|
|
1470
|
+
var value = new proto.worldpayserviceapi.ResponseCode;
|
|
1471
|
+
reader.readMessage(value,proto.worldpayserviceapi.ResponseCode.deserializeBinaryFromReader);
|
|
1472
|
+
msg.setResponsecode(value);
|
|
1473
|
+
break;
|
|
1474
|
+
case 2:
|
|
1475
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1476
|
+
msg.setResponse(value);
|
|
1477
|
+
break;
|
|
1478
|
+
case 3:
|
|
1479
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1480
|
+
msg.setStatus(value);
|
|
1481
|
+
break;
|
|
1482
|
+
case 4:
|
|
1483
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1484
|
+
msg.setSource(value);
|
|
1485
|
+
break;
|
|
1486
|
+
case 5:
|
|
1487
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
1488
|
+
msg.setSourceid(value);
|
|
1489
|
+
break;
|
|
1490
|
+
case 6:
|
|
1491
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1492
|
+
msg.setGatewaytransactionid(value);
|
|
1493
|
+
break;
|
|
1494
|
+
case 7:
|
|
1495
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
1496
|
+
msg.setSniiptransactionid(value);
|
|
1497
|
+
break;
|
|
1498
|
+
case 8:
|
|
1499
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1500
|
+
msg.setReceiptid(value);
|
|
1501
|
+
break;
|
|
1502
|
+
case 9:
|
|
1503
|
+
var value = new google_type_decimal_pb.Decimal;
|
|
1504
|
+
reader.readMessage(value,google_type_decimal_pb.Decimal.deserializeBinaryFromReader);
|
|
1505
|
+
msg.setPaidamountexcludingsurcharge(value);
|
|
1506
|
+
break;
|
|
1507
|
+
case 10:
|
|
1508
|
+
var value = new google_type_decimal_pb.Decimal;
|
|
1509
|
+
reader.readMessage(value,google_type_decimal_pb.Decimal.deserializeBinaryFromReader);
|
|
1510
|
+
msg.setPaymentprocessorsurchargeamount(value);
|
|
1511
|
+
break;
|
|
1512
|
+
case 11:
|
|
1513
|
+
var value = new google_type_decimal_pb.Decimal;
|
|
1514
|
+
reader.readMessage(value,google_type_decimal_pb.Decimal.deserializeBinaryFromReader);
|
|
1515
|
+
msg.setPaidamountincludingsurchargefees(value);
|
|
1516
|
+
break;
|
|
1517
|
+
case 12:
|
|
1518
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1519
|
+
msg.setGatewaybankresponsecode(value);
|
|
1520
|
+
break;
|
|
1521
|
+
case 13:
|
|
1522
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1523
|
+
msg.setGatewayresponsemessage(value);
|
|
1524
|
+
break;
|
|
1525
|
+
case 15:
|
|
1526
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1527
|
+
msg.setActionurl(value);
|
|
1528
|
+
break;
|
|
1529
|
+
case 16:
|
|
1530
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1531
|
+
msg.setActionurlbase64image(value);
|
|
1532
|
+
break;
|
|
1533
|
+
default:
|
|
1534
|
+
reader.skipField();
|
|
1535
|
+
break;
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
return msg;
|
|
1539
|
+
};
|
|
1540
|
+
|
|
1541
|
+
|
|
1542
|
+
/**
|
|
1543
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1544
|
+
* @return {!Uint8Array}
|
|
1545
|
+
*/
|
|
1546
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.serializeBinary = function() {
|
|
1547
|
+
var writer = new jspb.BinaryWriter();
|
|
1548
|
+
proto.worldpayserviceapi.PaymentResponse.serializeBinaryToWriter(this, writer);
|
|
1549
|
+
return writer.getResultBuffer();
|
|
1550
|
+
};
|
|
1551
|
+
|
|
1552
|
+
|
|
1553
|
+
/**
|
|
1554
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1555
|
+
* format), writing to the given BinaryWriter.
|
|
1556
|
+
* @param {!proto.worldpayserviceapi.PaymentResponse} message
|
|
1557
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1558
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1559
|
+
*/
|
|
1560
|
+
proto.worldpayserviceapi.PaymentResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1561
|
+
var f = undefined;
|
|
1562
|
+
f = message.getResponsecode();
|
|
1563
|
+
if (f != null) {
|
|
1564
|
+
writer.writeMessage(
|
|
1565
|
+
1,
|
|
1566
|
+
f,
|
|
1567
|
+
proto.worldpayserviceapi.ResponseCode.serializeBinaryToWriter
|
|
1568
|
+
);
|
|
1569
|
+
}
|
|
1570
|
+
f = message.getResponse();
|
|
1571
|
+
if (f.length > 0) {
|
|
1572
|
+
writer.writeString(
|
|
1573
|
+
2,
|
|
1574
|
+
f
|
|
1575
|
+
);
|
|
1576
|
+
}
|
|
1577
|
+
f = message.getStatus();
|
|
1578
|
+
if (f.length > 0) {
|
|
1579
|
+
writer.writeString(
|
|
1580
|
+
3,
|
|
1581
|
+
f
|
|
1582
|
+
);
|
|
1583
|
+
}
|
|
1584
|
+
f = message.getSource();
|
|
1585
|
+
if (f.length > 0) {
|
|
1586
|
+
writer.writeString(
|
|
1587
|
+
4,
|
|
1588
|
+
f
|
|
1589
|
+
);
|
|
1590
|
+
}
|
|
1591
|
+
f = message.getSourceid();
|
|
1592
|
+
if (f !== 0) {
|
|
1593
|
+
writer.writeInt64(
|
|
1594
|
+
5,
|
|
1595
|
+
f
|
|
1596
|
+
);
|
|
1597
|
+
}
|
|
1598
|
+
f = message.getGatewaytransactionid();
|
|
1599
|
+
if (f.length > 0) {
|
|
1600
|
+
writer.writeString(
|
|
1601
|
+
6,
|
|
1602
|
+
f
|
|
1603
|
+
);
|
|
1604
|
+
}
|
|
1605
|
+
f = message.getSniiptransactionid();
|
|
1606
|
+
if (f !== 0) {
|
|
1607
|
+
writer.writeInt64(
|
|
1608
|
+
7,
|
|
1609
|
+
f
|
|
1610
|
+
);
|
|
1611
|
+
}
|
|
1612
|
+
f = message.getReceiptid();
|
|
1613
|
+
if (f.length > 0) {
|
|
1614
|
+
writer.writeString(
|
|
1615
|
+
8,
|
|
1616
|
+
f
|
|
1617
|
+
);
|
|
1618
|
+
}
|
|
1619
|
+
f = message.getPaidamountexcludingsurcharge();
|
|
1620
|
+
if (f != null) {
|
|
1621
|
+
writer.writeMessage(
|
|
1622
|
+
9,
|
|
1623
|
+
f,
|
|
1624
|
+
google_type_decimal_pb.Decimal.serializeBinaryToWriter
|
|
1625
|
+
);
|
|
1626
|
+
}
|
|
1627
|
+
f = message.getPaymentprocessorsurchargeamount();
|
|
1628
|
+
if (f != null) {
|
|
1629
|
+
writer.writeMessage(
|
|
1630
|
+
10,
|
|
1631
|
+
f,
|
|
1632
|
+
google_type_decimal_pb.Decimal.serializeBinaryToWriter
|
|
1633
|
+
);
|
|
1634
|
+
}
|
|
1635
|
+
f = message.getPaidamountincludingsurchargefees();
|
|
1636
|
+
if (f != null) {
|
|
1637
|
+
writer.writeMessage(
|
|
1638
|
+
11,
|
|
1639
|
+
f,
|
|
1640
|
+
google_type_decimal_pb.Decimal.serializeBinaryToWriter
|
|
1641
|
+
);
|
|
1642
|
+
}
|
|
1643
|
+
f = message.getGatewaybankresponsecode();
|
|
1644
|
+
if (f !== 0) {
|
|
1645
|
+
writer.writeInt32(
|
|
1646
|
+
12,
|
|
1647
|
+
f
|
|
1648
|
+
);
|
|
1649
|
+
}
|
|
1650
|
+
f = message.getGatewayresponsemessage();
|
|
1651
|
+
if (f.length > 0) {
|
|
1652
|
+
writer.writeString(
|
|
1653
|
+
13,
|
|
1654
|
+
f
|
|
1655
|
+
);
|
|
1656
|
+
}
|
|
1657
|
+
f = message.getActionurl();
|
|
1658
|
+
if (f.length > 0) {
|
|
1659
|
+
writer.writeString(
|
|
1660
|
+
15,
|
|
1661
|
+
f
|
|
1662
|
+
);
|
|
1663
|
+
}
|
|
1664
|
+
f = message.getActionurlbase64image();
|
|
1665
|
+
if (f.length > 0) {
|
|
1666
|
+
writer.writeString(
|
|
1667
|
+
16,
|
|
1668
|
+
f
|
|
1669
|
+
);
|
|
1670
|
+
}
|
|
1671
|
+
};
|
|
1672
|
+
|
|
1673
|
+
|
|
1674
|
+
/**
|
|
1675
|
+
* optional ResponseCode responseCode = 1;
|
|
1676
|
+
* @return {?proto.worldpayserviceapi.ResponseCode}
|
|
1677
|
+
*/
|
|
1678
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.getResponsecode = function() {
|
|
1679
|
+
return /** @type{?proto.worldpayserviceapi.ResponseCode} */ (
|
|
1680
|
+
jspb.Message.getWrapperField(this, proto.worldpayserviceapi.ResponseCode, 1));
|
|
1681
|
+
};
|
|
1682
|
+
|
|
1683
|
+
|
|
1684
|
+
/**
|
|
1685
|
+
* @param {?proto.worldpayserviceapi.ResponseCode|undefined} value
|
|
1686
|
+
* @return {!proto.worldpayserviceapi.PaymentResponse} returns this
|
|
1687
|
+
*/
|
|
1688
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.setResponsecode = function(value) {
|
|
1689
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
1690
|
+
};
|
|
1691
|
+
|
|
1692
|
+
|
|
1693
|
+
/**
|
|
1694
|
+
* Clears the message field making it undefined.
|
|
1695
|
+
* @return {!proto.worldpayserviceapi.PaymentResponse} returns this
|
|
1696
|
+
*/
|
|
1697
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.clearResponsecode = function() {
|
|
1698
|
+
return this.setResponsecode(undefined);
|
|
1699
|
+
};
|
|
1700
|
+
|
|
1701
|
+
|
|
1702
|
+
/**
|
|
1703
|
+
* Returns whether this field is set.
|
|
1704
|
+
* @return {boolean}
|
|
1705
|
+
*/
|
|
1706
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.hasResponsecode = function() {
|
|
1707
|
+
return jspb.Message.getField(this, 1) != null;
|
|
1708
|
+
};
|
|
1709
|
+
|
|
1710
|
+
|
|
1711
|
+
/**
|
|
1712
|
+
* optional string response = 2;
|
|
1713
|
+
* @return {string}
|
|
1714
|
+
*/
|
|
1715
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.getResponse = function() {
|
|
1716
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1717
|
+
};
|
|
1718
|
+
|
|
1719
|
+
|
|
1720
|
+
/**
|
|
1721
|
+
* @param {string} value
|
|
1722
|
+
* @return {!proto.worldpayserviceapi.PaymentResponse} returns this
|
|
1723
|
+
*/
|
|
1724
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.setResponse = function(value) {
|
|
1725
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1726
|
+
};
|
|
1727
|
+
|
|
1728
|
+
|
|
1729
|
+
/**
|
|
1730
|
+
* optional string status = 3;
|
|
1731
|
+
* @return {string}
|
|
1732
|
+
*/
|
|
1733
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.getStatus = function() {
|
|
1734
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1735
|
+
};
|
|
1736
|
+
|
|
1737
|
+
|
|
1738
|
+
/**
|
|
1739
|
+
* @param {string} value
|
|
1740
|
+
* @return {!proto.worldpayserviceapi.PaymentResponse} returns this
|
|
1741
|
+
*/
|
|
1742
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.setStatus = function(value) {
|
|
1743
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
1744
|
+
};
|
|
1745
|
+
|
|
1746
|
+
|
|
1747
|
+
/**
|
|
1748
|
+
* optional string source = 4;
|
|
1749
|
+
* @return {string}
|
|
1750
|
+
*/
|
|
1751
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.getSource = function() {
|
|
1752
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
1753
|
+
};
|
|
1754
|
+
|
|
1755
|
+
|
|
1756
|
+
/**
|
|
1757
|
+
* @param {string} value
|
|
1758
|
+
* @return {!proto.worldpayserviceapi.PaymentResponse} returns this
|
|
1759
|
+
*/
|
|
1760
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.setSource = function(value) {
|
|
1761
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
1762
|
+
};
|
|
1763
|
+
|
|
1764
|
+
|
|
1765
|
+
/**
|
|
1766
|
+
* optional int64 sourceId = 5;
|
|
1767
|
+
* @return {number}
|
|
1768
|
+
*/
|
|
1769
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.getSourceid = function() {
|
|
1770
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
1771
|
+
};
|
|
1772
|
+
|
|
1773
|
+
|
|
1774
|
+
/**
|
|
1775
|
+
* @param {number} value
|
|
1776
|
+
* @return {!proto.worldpayserviceapi.PaymentResponse} returns this
|
|
1777
|
+
*/
|
|
1778
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.setSourceid = function(value) {
|
|
1779
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
1780
|
+
};
|
|
1781
|
+
|
|
1782
|
+
|
|
1783
|
+
/**
|
|
1784
|
+
* optional string gatewayTransactionId = 6;
|
|
1785
|
+
* @return {string}
|
|
1786
|
+
*/
|
|
1787
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.getGatewaytransactionid = function() {
|
|
1788
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
1789
|
+
};
|
|
1790
|
+
|
|
1791
|
+
|
|
1792
|
+
/**
|
|
1793
|
+
* @param {string} value
|
|
1794
|
+
* @return {!proto.worldpayserviceapi.PaymentResponse} returns this
|
|
1795
|
+
*/
|
|
1796
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.setGatewaytransactionid = function(value) {
|
|
1797
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
1798
|
+
};
|
|
1799
|
+
|
|
1800
|
+
|
|
1801
|
+
/**
|
|
1802
|
+
* optional int64 sniipTransactionId = 7;
|
|
1803
|
+
* @return {number}
|
|
1804
|
+
*/
|
|
1805
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.getSniiptransactionid = function() {
|
|
1806
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
1807
|
+
};
|
|
1808
|
+
|
|
1809
|
+
|
|
1810
|
+
/**
|
|
1811
|
+
* @param {number} value
|
|
1812
|
+
* @return {!proto.worldpayserviceapi.PaymentResponse} returns this
|
|
1813
|
+
*/
|
|
1814
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.setSniiptransactionid = function(value) {
|
|
1815
|
+
return jspb.Message.setProto3IntField(this, 7, value);
|
|
1816
|
+
};
|
|
1817
|
+
|
|
1818
|
+
|
|
1819
|
+
/**
|
|
1820
|
+
* optional string receiptId = 8;
|
|
1821
|
+
* @return {string}
|
|
1822
|
+
*/
|
|
1823
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.getReceiptid = function() {
|
|
1824
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
1825
|
+
};
|
|
1826
|
+
|
|
1827
|
+
|
|
1828
|
+
/**
|
|
1829
|
+
* @param {string} value
|
|
1830
|
+
* @return {!proto.worldpayserviceapi.PaymentResponse} returns this
|
|
1831
|
+
*/
|
|
1832
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.setReceiptid = function(value) {
|
|
1833
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
1834
|
+
};
|
|
1835
|
+
|
|
1836
|
+
|
|
1837
|
+
/**
|
|
1838
|
+
* optional google.type.Decimal paidAmountExcludingSurcharge = 9;
|
|
1839
|
+
* @return {?proto.google.type.Decimal}
|
|
1840
|
+
*/
|
|
1841
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.getPaidamountexcludingsurcharge = function() {
|
|
1842
|
+
return /** @type{?proto.google.type.Decimal} */ (
|
|
1843
|
+
jspb.Message.getWrapperField(this, google_type_decimal_pb.Decimal, 9));
|
|
1844
|
+
};
|
|
1845
|
+
|
|
1846
|
+
|
|
1847
|
+
/**
|
|
1848
|
+
* @param {?proto.google.type.Decimal|undefined} value
|
|
1849
|
+
* @return {!proto.worldpayserviceapi.PaymentResponse} returns this
|
|
1850
|
+
*/
|
|
1851
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.setPaidamountexcludingsurcharge = function(value) {
|
|
1852
|
+
return jspb.Message.setWrapperField(this, 9, value);
|
|
1853
|
+
};
|
|
1854
|
+
|
|
1855
|
+
|
|
1856
|
+
/**
|
|
1857
|
+
* Clears the message field making it undefined.
|
|
1858
|
+
* @return {!proto.worldpayserviceapi.PaymentResponse} returns this
|
|
1859
|
+
*/
|
|
1860
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.clearPaidamountexcludingsurcharge = function() {
|
|
1861
|
+
return this.setPaidamountexcludingsurcharge(undefined);
|
|
1862
|
+
};
|
|
1863
|
+
|
|
1864
|
+
|
|
1865
|
+
/**
|
|
1866
|
+
* Returns whether this field is set.
|
|
1867
|
+
* @return {boolean}
|
|
1868
|
+
*/
|
|
1869
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.hasPaidamountexcludingsurcharge = function() {
|
|
1870
|
+
return jspb.Message.getField(this, 9) != null;
|
|
1871
|
+
};
|
|
1872
|
+
|
|
1873
|
+
|
|
1874
|
+
/**
|
|
1875
|
+
* optional google.type.Decimal paymentProcessorSurchargeAmount = 10;
|
|
1876
|
+
* @return {?proto.google.type.Decimal}
|
|
1877
|
+
*/
|
|
1878
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.getPaymentprocessorsurchargeamount = function() {
|
|
1879
|
+
return /** @type{?proto.google.type.Decimal} */ (
|
|
1880
|
+
jspb.Message.getWrapperField(this, google_type_decimal_pb.Decimal, 10));
|
|
1881
|
+
};
|
|
1882
|
+
|
|
1883
|
+
|
|
1884
|
+
/**
|
|
1885
|
+
* @param {?proto.google.type.Decimal|undefined} value
|
|
1886
|
+
* @return {!proto.worldpayserviceapi.PaymentResponse} returns this
|
|
1887
|
+
*/
|
|
1888
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.setPaymentprocessorsurchargeamount = function(value) {
|
|
1889
|
+
return jspb.Message.setWrapperField(this, 10, value);
|
|
1890
|
+
};
|
|
1891
|
+
|
|
1892
|
+
|
|
1893
|
+
/**
|
|
1894
|
+
* Clears the message field making it undefined.
|
|
1895
|
+
* @return {!proto.worldpayserviceapi.PaymentResponse} returns this
|
|
1896
|
+
*/
|
|
1897
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.clearPaymentprocessorsurchargeamount = function() {
|
|
1898
|
+
return this.setPaymentprocessorsurchargeamount(undefined);
|
|
1899
|
+
};
|
|
1900
|
+
|
|
1901
|
+
|
|
1902
|
+
/**
|
|
1903
|
+
* Returns whether this field is set.
|
|
1904
|
+
* @return {boolean}
|
|
1905
|
+
*/
|
|
1906
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.hasPaymentprocessorsurchargeamount = function() {
|
|
1907
|
+
return jspb.Message.getField(this, 10) != null;
|
|
1908
|
+
};
|
|
1909
|
+
|
|
1910
|
+
|
|
1911
|
+
/**
|
|
1912
|
+
* optional google.type.Decimal paidAmountIncludingSurchargeFees = 11;
|
|
1913
|
+
* @return {?proto.google.type.Decimal}
|
|
1914
|
+
*/
|
|
1915
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.getPaidamountincludingsurchargefees = function() {
|
|
1916
|
+
return /** @type{?proto.google.type.Decimal} */ (
|
|
1917
|
+
jspb.Message.getWrapperField(this, google_type_decimal_pb.Decimal, 11));
|
|
1918
|
+
};
|
|
1919
|
+
|
|
1920
|
+
|
|
1921
|
+
/**
|
|
1922
|
+
* @param {?proto.google.type.Decimal|undefined} value
|
|
1923
|
+
* @return {!proto.worldpayserviceapi.PaymentResponse} returns this
|
|
1924
|
+
*/
|
|
1925
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.setPaidamountincludingsurchargefees = function(value) {
|
|
1926
|
+
return jspb.Message.setWrapperField(this, 11, value);
|
|
1927
|
+
};
|
|
1928
|
+
|
|
1929
|
+
|
|
1930
|
+
/**
|
|
1931
|
+
* Clears the message field making it undefined.
|
|
1932
|
+
* @return {!proto.worldpayserviceapi.PaymentResponse} returns this
|
|
1933
|
+
*/
|
|
1934
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.clearPaidamountincludingsurchargefees = function() {
|
|
1935
|
+
return this.setPaidamountincludingsurchargefees(undefined);
|
|
1936
|
+
};
|
|
1937
|
+
|
|
1938
|
+
|
|
1939
|
+
/**
|
|
1940
|
+
* Returns whether this field is set.
|
|
1941
|
+
* @return {boolean}
|
|
1942
|
+
*/
|
|
1943
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.hasPaidamountincludingsurchargefees = function() {
|
|
1944
|
+
return jspb.Message.getField(this, 11) != null;
|
|
1945
|
+
};
|
|
1946
|
+
|
|
1947
|
+
|
|
1948
|
+
/**
|
|
1949
|
+
* optional int32 gatewayBankResponseCode = 12;
|
|
1950
|
+
* @return {number}
|
|
1951
|
+
*/
|
|
1952
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.getGatewaybankresponsecode = function() {
|
|
1953
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
|
|
1954
|
+
};
|
|
1955
|
+
|
|
1956
|
+
|
|
1957
|
+
/**
|
|
1958
|
+
* @param {number} value
|
|
1959
|
+
* @return {!proto.worldpayserviceapi.PaymentResponse} returns this
|
|
1960
|
+
*/
|
|
1961
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.setGatewaybankresponsecode = function(value) {
|
|
1962
|
+
return jspb.Message.setProto3IntField(this, 12, value);
|
|
1963
|
+
};
|
|
1964
|
+
|
|
1965
|
+
|
|
1966
|
+
/**
|
|
1967
|
+
* optional string gatewayResponseMessage = 13;
|
|
1968
|
+
* @return {string}
|
|
1969
|
+
*/
|
|
1970
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.getGatewayresponsemessage = function() {
|
|
1971
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
|
|
1972
|
+
};
|
|
1973
|
+
|
|
1974
|
+
|
|
1975
|
+
/**
|
|
1976
|
+
* @param {string} value
|
|
1977
|
+
* @return {!proto.worldpayserviceapi.PaymentResponse} returns this
|
|
1978
|
+
*/
|
|
1979
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.setGatewayresponsemessage = function(value) {
|
|
1980
|
+
return jspb.Message.setProto3StringField(this, 13, value);
|
|
1981
|
+
};
|
|
1982
|
+
|
|
1983
|
+
|
|
1984
|
+
/**
|
|
1985
|
+
* optional string actionUrl = 15;
|
|
1986
|
+
* @return {string}
|
|
1987
|
+
*/
|
|
1988
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.getActionurl = function() {
|
|
1989
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
|
|
1990
|
+
};
|
|
1991
|
+
|
|
1992
|
+
|
|
1993
|
+
/**
|
|
1994
|
+
* @param {string} value
|
|
1995
|
+
* @return {!proto.worldpayserviceapi.PaymentResponse} returns this
|
|
1996
|
+
*/
|
|
1997
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.setActionurl = function(value) {
|
|
1998
|
+
return jspb.Message.setProto3StringField(this, 15, value);
|
|
1999
|
+
};
|
|
2000
|
+
|
|
2001
|
+
|
|
2002
|
+
/**
|
|
2003
|
+
* optional string actionUrlBase64Image = 16;
|
|
2004
|
+
* @return {string}
|
|
2005
|
+
*/
|
|
2006
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.getActionurlbase64image = function() {
|
|
2007
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
|
|
2008
|
+
};
|
|
2009
|
+
|
|
2010
|
+
|
|
2011
|
+
/**
|
|
2012
|
+
* @param {string} value
|
|
2013
|
+
* @return {!proto.worldpayserviceapi.PaymentResponse} returns this
|
|
2014
|
+
*/
|
|
2015
|
+
proto.worldpayserviceapi.PaymentResponse.prototype.setActionurlbase64image = function(value) {
|
|
2016
|
+
return jspb.Message.setProto3StringField(this, 16, value);
|
|
2017
|
+
};
|
|
2018
|
+
|
|
2019
|
+
|
|
2020
|
+
|
|
2021
|
+
|
|
2022
|
+
|
|
2023
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2024
|
+
/**
|
|
2025
|
+
* Creates an object representation of this proto.
|
|
2026
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2027
|
+
* Optional fields that are not set will be set to undefined.
|
|
2028
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2029
|
+
* For the list of reserved names please see:
|
|
2030
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2031
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2032
|
+
* JSPB instance for transitional soy proto support:
|
|
2033
|
+
* http://goto/soy-param-migration
|
|
2034
|
+
* @return {!Object}
|
|
2035
|
+
*/
|
|
2036
|
+
proto.worldpayserviceapi.PaymentStatusRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2037
|
+
return proto.worldpayserviceapi.PaymentStatusRequest.toObject(opt_includeInstance, this);
|
|
2038
|
+
};
|
|
2039
|
+
|
|
2040
|
+
|
|
2041
|
+
/**
|
|
2042
|
+
* Static version of the {@see toObject} method.
|
|
2043
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2044
|
+
* the JSPB instance for transitional soy proto support:
|
|
2045
|
+
* http://goto/soy-param-migration
|
|
2046
|
+
* @param {!proto.worldpayserviceapi.PaymentStatusRequest} msg The msg instance to transform.
|
|
2047
|
+
* @return {!Object}
|
|
2048
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2049
|
+
*/
|
|
2050
|
+
proto.worldpayserviceapi.PaymentStatusRequest.toObject = function(includeInstance, msg) {
|
|
2051
|
+
var f, obj = {
|
|
2052
|
+
transactionid: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
2053
|
+
};
|
|
2054
|
+
|
|
2055
|
+
if (includeInstance) {
|
|
2056
|
+
obj.$jspbMessageInstance = msg;
|
|
2057
|
+
}
|
|
2058
|
+
return obj;
|
|
2059
|
+
};
|
|
2060
|
+
}
|
|
2061
|
+
|
|
2062
|
+
|
|
2063
|
+
/**
|
|
2064
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2065
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2066
|
+
* @return {!proto.worldpayserviceapi.PaymentStatusRequest}
|
|
2067
|
+
*/
|
|
2068
|
+
proto.worldpayserviceapi.PaymentStatusRequest.deserializeBinary = function(bytes) {
|
|
2069
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2070
|
+
var msg = new proto.worldpayserviceapi.PaymentStatusRequest;
|
|
2071
|
+
return proto.worldpayserviceapi.PaymentStatusRequest.deserializeBinaryFromReader(msg, reader);
|
|
2072
|
+
};
|
|
2073
|
+
|
|
2074
|
+
|
|
2075
|
+
/**
|
|
2076
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2077
|
+
* given reader into the given message object.
|
|
2078
|
+
* @param {!proto.worldpayserviceapi.PaymentStatusRequest} msg The message object to deserialize into.
|
|
2079
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2080
|
+
* @return {!proto.worldpayserviceapi.PaymentStatusRequest}
|
|
2081
|
+
*/
|
|
2082
|
+
proto.worldpayserviceapi.PaymentStatusRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2083
|
+
while (reader.nextField()) {
|
|
2084
|
+
if (reader.isEndGroup()) {
|
|
2085
|
+
break;
|
|
2086
|
+
}
|
|
2087
|
+
var field = reader.getFieldNumber();
|
|
2088
|
+
switch (field) {
|
|
2089
|
+
case 1:
|
|
2090
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
2091
|
+
msg.setTransactionid(value);
|
|
2092
|
+
break;
|
|
2093
|
+
default:
|
|
2094
|
+
reader.skipField();
|
|
2095
|
+
break;
|
|
2096
|
+
}
|
|
2097
|
+
}
|
|
2098
|
+
return msg;
|
|
2099
|
+
};
|
|
2100
|
+
|
|
2101
|
+
|
|
2102
|
+
/**
|
|
2103
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2104
|
+
* @return {!Uint8Array}
|
|
2105
|
+
*/
|
|
2106
|
+
proto.worldpayserviceapi.PaymentStatusRequest.prototype.serializeBinary = function() {
|
|
2107
|
+
var writer = new jspb.BinaryWriter();
|
|
2108
|
+
proto.worldpayserviceapi.PaymentStatusRequest.serializeBinaryToWriter(this, writer);
|
|
2109
|
+
return writer.getResultBuffer();
|
|
2110
|
+
};
|
|
2111
|
+
|
|
2112
|
+
|
|
2113
|
+
/**
|
|
2114
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2115
|
+
* format), writing to the given BinaryWriter.
|
|
2116
|
+
* @param {!proto.worldpayserviceapi.PaymentStatusRequest} message
|
|
2117
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2118
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2119
|
+
*/
|
|
2120
|
+
proto.worldpayserviceapi.PaymentStatusRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2121
|
+
var f = undefined;
|
|
2122
|
+
f = message.getTransactionid();
|
|
2123
|
+
if (f !== 0) {
|
|
2124
|
+
writer.writeInt64(
|
|
2125
|
+
1,
|
|
2126
|
+
f
|
|
2127
|
+
);
|
|
2128
|
+
}
|
|
2129
|
+
};
|
|
2130
|
+
|
|
2131
|
+
|
|
2132
|
+
/**
|
|
2133
|
+
* optional int64 transactionId = 1;
|
|
2134
|
+
* @return {number}
|
|
2135
|
+
*/
|
|
2136
|
+
proto.worldpayserviceapi.PaymentStatusRequest.prototype.getTransactionid = function() {
|
|
2137
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
2138
|
+
};
|
|
2139
|
+
|
|
2140
|
+
|
|
2141
|
+
/**
|
|
2142
|
+
* @param {number} value
|
|
2143
|
+
* @return {!proto.worldpayserviceapi.PaymentStatusRequest} returns this
|
|
2144
|
+
*/
|
|
2145
|
+
proto.worldpayserviceapi.PaymentStatusRequest.prototype.setTransactionid = function(value) {
|
|
2146
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
2147
|
+
};
|
|
2148
|
+
|
|
2149
|
+
|
|
2150
|
+
|
|
2151
|
+
|
|
2152
|
+
|
|
2153
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2154
|
+
/**
|
|
2155
|
+
* Creates an object representation of this proto.
|
|
2156
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2157
|
+
* Optional fields that are not set will be set to undefined.
|
|
2158
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2159
|
+
* For the list of reserved names please see:
|
|
2160
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2161
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2162
|
+
* JSPB instance for transitional soy proto support:
|
|
2163
|
+
* http://goto/soy-param-migration
|
|
2164
|
+
* @return {!Object}
|
|
2165
|
+
*/
|
|
2166
|
+
proto.worldpayserviceapi.PaymentStatusResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2167
|
+
return proto.worldpayserviceapi.PaymentStatusResponse.toObject(opt_includeInstance, this);
|
|
2168
|
+
};
|
|
2169
|
+
|
|
2170
|
+
|
|
2171
|
+
/**
|
|
2172
|
+
* Static version of the {@see toObject} method.
|
|
2173
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2174
|
+
* the JSPB instance for transitional soy proto support:
|
|
2175
|
+
* http://goto/soy-param-migration
|
|
2176
|
+
* @param {!proto.worldpayserviceapi.PaymentStatusResponse} msg The msg instance to transform.
|
|
2177
|
+
* @return {!Object}
|
|
2178
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2179
|
+
*/
|
|
2180
|
+
proto.worldpayserviceapi.PaymentStatusResponse.toObject = function(includeInstance, msg) {
|
|
2181
|
+
var f, obj = {
|
|
2182
|
+
paymentstatus: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
2183
|
+
};
|
|
2184
|
+
|
|
2185
|
+
if (includeInstance) {
|
|
2186
|
+
obj.$jspbMessageInstance = msg;
|
|
2187
|
+
}
|
|
2188
|
+
return obj;
|
|
2189
|
+
};
|
|
2190
|
+
}
|
|
2191
|
+
|
|
2192
|
+
|
|
2193
|
+
/**
|
|
2194
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2195
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2196
|
+
* @return {!proto.worldpayserviceapi.PaymentStatusResponse}
|
|
2197
|
+
*/
|
|
2198
|
+
proto.worldpayserviceapi.PaymentStatusResponse.deserializeBinary = function(bytes) {
|
|
2199
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2200
|
+
var msg = new proto.worldpayserviceapi.PaymentStatusResponse;
|
|
2201
|
+
return proto.worldpayserviceapi.PaymentStatusResponse.deserializeBinaryFromReader(msg, reader);
|
|
2202
|
+
};
|
|
2203
|
+
|
|
2204
|
+
|
|
2205
|
+
/**
|
|
2206
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2207
|
+
* given reader into the given message object.
|
|
2208
|
+
* @param {!proto.worldpayserviceapi.PaymentStatusResponse} msg The message object to deserialize into.
|
|
2209
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2210
|
+
* @return {!proto.worldpayserviceapi.PaymentStatusResponse}
|
|
2211
|
+
*/
|
|
2212
|
+
proto.worldpayserviceapi.PaymentStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2213
|
+
while (reader.nextField()) {
|
|
2214
|
+
if (reader.isEndGroup()) {
|
|
2215
|
+
break;
|
|
2216
|
+
}
|
|
2217
|
+
var field = reader.getFieldNumber();
|
|
2218
|
+
switch (field) {
|
|
2219
|
+
case 1:
|
|
2220
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2221
|
+
msg.setPaymentstatus(value);
|
|
2222
|
+
break;
|
|
2223
|
+
default:
|
|
2224
|
+
reader.skipField();
|
|
2225
|
+
break;
|
|
2226
|
+
}
|
|
2227
|
+
}
|
|
2228
|
+
return msg;
|
|
2229
|
+
};
|
|
2230
|
+
|
|
2231
|
+
|
|
2232
|
+
/**
|
|
2233
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2234
|
+
* @return {!Uint8Array}
|
|
2235
|
+
*/
|
|
2236
|
+
proto.worldpayserviceapi.PaymentStatusResponse.prototype.serializeBinary = function() {
|
|
2237
|
+
var writer = new jspb.BinaryWriter();
|
|
2238
|
+
proto.worldpayserviceapi.PaymentStatusResponse.serializeBinaryToWriter(this, writer);
|
|
2239
|
+
return writer.getResultBuffer();
|
|
2240
|
+
};
|
|
2241
|
+
|
|
2242
|
+
|
|
2243
|
+
/**
|
|
2244
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2245
|
+
* format), writing to the given BinaryWriter.
|
|
2246
|
+
* @param {!proto.worldpayserviceapi.PaymentStatusResponse} message
|
|
2247
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2248
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2249
|
+
*/
|
|
2250
|
+
proto.worldpayserviceapi.PaymentStatusResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2251
|
+
var f = undefined;
|
|
2252
|
+
f = message.getPaymentstatus();
|
|
2253
|
+
if (f.length > 0) {
|
|
2254
|
+
writer.writeString(
|
|
2255
|
+
1,
|
|
2256
|
+
f
|
|
2257
|
+
);
|
|
2258
|
+
}
|
|
2259
|
+
};
|
|
2260
|
+
|
|
2261
|
+
|
|
2262
|
+
/**
|
|
2263
|
+
* optional string paymentStatus = 1;
|
|
2264
|
+
* @return {string}
|
|
2265
|
+
*/
|
|
2266
|
+
proto.worldpayserviceapi.PaymentStatusResponse.prototype.getPaymentstatus = function() {
|
|
2267
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2268
|
+
};
|
|
2269
|
+
|
|
2270
|
+
|
|
2271
|
+
/**
|
|
2272
|
+
* @param {string} value
|
|
2273
|
+
* @return {!proto.worldpayserviceapi.PaymentStatusResponse} returns this
|
|
2274
|
+
*/
|
|
2275
|
+
proto.worldpayserviceapi.PaymentStatusResponse.prototype.setPaymentstatus = function(value) {
|
|
2276
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2277
|
+
};
|
|
2278
|
+
|
|
2279
|
+
|
|
2280
|
+
/**
|
|
2281
|
+
* @enum {number}
|
|
2282
|
+
*/
|
|
2283
|
+
proto.worldpayserviceapi.PaymentProcessorMidType = {
|
|
2284
|
+
PAYMENT_PROCESSOR_MID_TYPE_UNKNOWN: 0,
|
|
2285
|
+
PAYMENT_PROCESSOR_MID_TYPE_SME: 1,
|
|
2286
|
+
PAYMENT_PROCESSOR_MID_TYPE_BPAY: 2,
|
|
2287
|
+
PAYMENT_PROCESSOR_MID_TYPE_SNIIP: 3
|
|
2288
|
+
};
|
|
2289
|
+
|
|
2290
|
+
/**
|
|
2291
|
+
* @enum {number}
|
|
2292
|
+
*/
|
|
2293
|
+
proto.worldpayserviceapi.WorldPayPaymentType = {
|
|
2294
|
+
WORLD_PAY_PAYMENT_TYPE_UNKNOWN: 0,
|
|
2295
|
+
WORLD_PAY_PAYMENT_TYPE_WE_CHAT_PAY: 1,
|
|
2296
|
+
WORLD_PAY_PAYMENT_TYPE_UNION_PAY: 2,
|
|
2297
|
+
WORLD_PAY_PAYMENT_TYPE_ALI_PAY: 3
|
|
2298
|
+
};
|
|
2299
|
+
|
|
2300
|
+
goog.object.extend(exports, proto.worldpayserviceapi);
|