@sniipwebmaster/payment-methods-client-grpcweb 26.11.9575 → 26.11.9587
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.
|
@@ -261,6 +261,67 @@ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseC
|
|
|
261
261
|
};
|
|
262
262
|
|
|
263
263
|
|
|
264
|
+
/**
|
|
265
|
+
* @const
|
|
266
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
267
|
+
* !proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest,
|
|
268
|
+
* !proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse>}
|
|
269
|
+
*/
|
|
270
|
+
const methodDescriptor_SniipPaymentMethodsServiceAPIService_GetGuestCardCheck = new grpc.web.MethodDescriptor(
|
|
271
|
+
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/GetGuestCardCheck',
|
|
272
|
+
grpc.web.MethodType.UNARY,
|
|
273
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest,
|
|
274
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse,
|
|
275
|
+
/**
|
|
276
|
+
* @param {!proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest} request
|
|
277
|
+
* @return {!Uint8Array}
|
|
278
|
+
*/
|
|
279
|
+
function(request) {
|
|
280
|
+
return request.serializeBinary();
|
|
281
|
+
},
|
|
282
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse.deserializeBinary
|
|
283
|
+
);
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* @param {!proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest} request The
|
|
288
|
+
* request proto
|
|
289
|
+
* @param {?Object<string, string>} metadata User defined
|
|
290
|
+
* call metadata
|
|
291
|
+
* @param {function(?grpc.web.RpcError, ?proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse)}
|
|
292
|
+
* callback The callback function(error, response)
|
|
293
|
+
* @return {!grpc.web.ClientReadableStream<!proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse>|undefined}
|
|
294
|
+
* The XHR Node Readable Stream
|
|
295
|
+
*/
|
|
296
|
+
proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServiceClient.prototype.getGuestCardCheck =
|
|
297
|
+
function(request, metadata, callback) {
|
|
298
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
299
|
+
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/GetGuestCardCheck',
|
|
300
|
+
request,
|
|
301
|
+
metadata || {},
|
|
302
|
+
methodDescriptor_SniipPaymentMethodsServiceAPIService_GetGuestCardCheck,
|
|
303
|
+
callback);
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* @param {!proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest} request The
|
|
309
|
+
* request proto
|
|
310
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
311
|
+
* call metadata
|
|
312
|
+
* @return {!Promise<!proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse>}
|
|
313
|
+
* Promise that resolves to the response
|
|
314
|
+
*/
|
|
315
|
+
proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseClient.prototype.getGuestCardCheck =
|
|
316
|
+
function(request, metadata) {
|
|
317
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
318
|
+
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/GetGuestCardCheck',
|
|
319
|
+
request,
|
|
320
|
+
metadata || {},
|
|
321
|
+
methodDescriptor_SniipPaymentMethodsServiceAPIService_GetGuestCardCheck);
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
|
|
264
325
|
/**
|
|
265
326
|
* @const
|
|
266
327
|
* @type {!grpc.web.MethodDescriptor<
|
|
@@ -82,6 +82,8 @@ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetCardHashRequest', null
|
|
|
82
82
|
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetCardHashesForUserRequest', null, global);
|
|
83
83
|
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest', null, global);
|
|
84
84
|
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetDigitalPaymentMethodsInfoRequest', null, global);
|
|
85
|
+
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest', null, global);
|
|
86
|
+
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse', null, global);
|
|
85
87
|
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetPaymentMethodAvailabilityRequest', null, global);
|
|
86
88
|
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdRequest', null, global);
|
|
87
89
|
goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetPaymentMethodByPaymentMethodIdResponse', null, global);
|
|
@@ -440,6 +442,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
440
442
|
*/
|
|
441
443
|
proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse.displayName = 'proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse';
|
|
442
444
|
}
|
|
445
|
+
/**
|
|
446
|
+
* Generated by JsPbCodeGenerator.
|
|
447
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
448
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
449
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
450
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
451
|
+
* valid.
|
|
452
|
+
* @extends {jspb.Message}
|
|
453
|
+
* @constructor
|
|
454
|
+
*/
|
|
455
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest = function(opt_data) {
|
|
456
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
457
|
+
};
|
|
458
|
+
goog.inherits(proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest, jspb.Message);
|
|
459
|
+
if (goog.DEBUG && !COMPILED) {
|
|
460
|
+
/**
|
|
461
|
+
* @public
|
|
462
|
+
* @override
|
|
463
|
+
*/
|
|
464
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest.displayName = 'proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest';
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* Generated by JsPbCodeGenerator.
|
|
468
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
469
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
470
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
471
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
472
|
+
* valid.
|
|
473
|
+
* @extends {jspb.Message}
|
|
474
|
+
* @constructor
|
|
475
|
+
*/
|
|
476
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse = function(opt_data) {
|
|
477
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
478
|
+
};
|
|
479
|
+
goog.inherits(proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse, jspb.Message);
|
|
480
|
+
if (goog.DEBUG && !COMPILED) {
|
|
481
|
+
/**
|
|
482
|
+
* @public
|
|
483
|
+
* @override
|
|
484
|
+
*/
|
|
485
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse.displayName = 'proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse';
|
|
486
|
+
}
|
|
443
487
|
/**
|
|
444
488
|
* Generated by JsPbCodeGenerator.
|
|
445
489
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -6291,6 +6335,467 @@ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse.prototype.setP
|
|
|
6291
6335
|
|
|
6292
6336
|
|
|
6293
6337
|
|
|
6338
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6339
|
+
/**
|
|
6340
|
+
* Creates an object representation of this proto.
|
|
6341
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6342
|
+
* Optional fields that are not set will be set to undefined.
|
|
6343
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6344
|
+
* For the list of reserved names please see:
|
|
6345
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6346
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6347
|
+
* JSPB instance for transitional soy proto support:
|
|
6348
|
+
* http://goto/soy-param-migration
|
|
6349
|
+
* @return {!Object}
|
|
6350
|
+
*/
|
|
6351
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest.prototype.toObject = function(opt_includeInstance) {
|
|
6352
|
+
return proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest.toObject(opt_includeInstance, this);
|
|
6353
|
+
};
|
|
6354
|
+
|
|
6355
|
+
|
|
6356
|
+
/**
|
|
6357
|
+
* Static version of the {@see toObject} method.
|
|
6358
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6359
|
+
* the JSPB instance for transitional soy proto support:
|
|
6360
|
+
* http://goto/soy-param-migration
|
|
6361
|
+
* @param {!proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest} msg The msg instance to transform.
|
|
6362
|
+
* @return {!Object}
|
|
6363
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6364
|
+
*/
|
|
6365
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest.toObject = function(includeInstance, msg) {
|
|
6366
|
+
var f, obj = {
|
|
6367
|
+
capabilitytoken: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6368
|
+
billid: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
6369
|
+
paymentmethodid: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
6370
|
+
paymentmethodaccesskey: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
6371
|
+
};
|
|
6372
|
+
|
|
6373
|
+
if (includeInstance) {
|
|
6374
|
+
obj.$jspbMessageInstance = msg;
|
|
6375
|
+
}
|
|
6376
|
+
return obj;
|
|
6377
|
+
};
|
|
6378
|
+
}
|
|
6379
|
+
|
|
6380
|
+
|
|
6381
|
+
/**
|
|
6382
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6383
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6384
|
+
* @return {!proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest}
|
|
6385
|
+
*/
|
|
6386
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest.deserializeBinary = function(bytes) {
|
|
6387
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6388
|
+
var msg = new proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest;
|
|
6389
|
+
return proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest.deserializeBinaryFromReader(msg, reader);
|
|
6390
|
+
};
|
|
6391
|
+
|
|
6392
|
+
|
|
6393
|
+
/**
|
|
6394
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6395
|
+
* given reader into the given message object.
|
|
6396
|
+
* @param {!proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest} msg The message object to deserialize into.
|
|
6397
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6398
|
+
* @return {!proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest}
|
|
6399
|
+
*/
|
|
6400
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
6401
|
+
while (reader.nextField()) {
|
|
6402
|
+
if (reader.isEndGroup()) {
|
|
6403
|
+
break;
|
|
6404
|
+
}
|
|
6405
|
+
var field = reader.getFieldNumber();
|
|
6406
|
+
switch (field) {
|
|
6407
|
+
case 1:
|
|
6408
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6409
|
+
msg.setCapabilitytoken(value);
|
|
6410
|
+
break;
|
|
6411
|
+
case 2:
|
|
6412
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
6413
|
+
msg.setBillid(value);
|
|
6414
|
+
break;
|
|
6415
|
+
case 3:
|
|
6416
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
6417
|
+
msg.setPaymentmethodid(value);
|
|
6418
|
+
break;
|
|
6419
|
+
case 4:
|
|
6420
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6421
|
+
msg.setPaymentmethodaccesskey(value);
|
|
6422
|
+
break;
|
|
6423
|
+
default:
|
|
6424
|
+
reader.skipField();
|
|
6425
|
+
break;
|
|
6426
|
+
}
|
|
6427
|
+
}
|
|
6428
|
+
return msg;
|
|
6429
|
+
};
|
|
6430
|
+
|
|
6431
|
+
|
|
6432
|
+
/**
|
|
6433
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6434
|
+
* @return {!Uint8Array}
|
|
6435
|
+
*/
|
|
6436
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest.prototype.serializeBinary = function() {
|
|
6437
|
+
var writer = new jspb.BinaryWriter();
|
|
6438
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest.serializeBinaryToWriter(this, writer);
|
|
6439
|
+
return writer.getResultBuffer();
|
|
6440
|
+
};
|
|
6441
|
+
|
|
6442
|
+
|
|
6443
|
+
/**
|
|
6444
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6445
|
+
* format), writing to the given BinaryWriter.
|
|
6446
|
+
* @param {!proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest} message
|
|
6447
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6448
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6449
|
+
*/
|
|
6450
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest.serializeBinaryToWriter = function(message, writer) {
|
|
6451
|
+
var f = undefined;
|
|
6452
|
+
f = message.getCapabilitytoken();
|
|
6453
|
+
if (f.length > 0) {
|
|
6454
|
+
writer.writeString(
|
|
6455
|
+
1,
|
|
6456
|
+
f
|
|
6457
|
+
);
|
|
6458
|
+
}
|
|
6459
|
+
f = message.getBillid();
|
|
6460
|
+
if (f !== 0) {
|
|
6461
|
+
writer.writeInt64(
|
|
6462
|
+
2,
|
|
6463
|
+
f
|
|
6464
|
+
);
|
|
6465
|
+
}
|
|
6466
|
+
f = message.getPaymentmethodid();
|
|
6467
|
+
if (f !== 0) {
|
|
6468
|
+
writer.writeInt64(
|
|
6469
|
+
3,
|
|
6470
|
+
f
|
|
6471
|
+
);
|
|
6472
|
+
}
|
|
6473
|
+
f = message.getPaymentmethodaccesskey();
|
|
6474
|
+
if (f.length > 0) {
|
|
6475
|
+
writer.writeString(
|
|
6476
|
+
4,
|
|
6477
|
+
f
|
|
6478
|
+
);
|
|
6479
|
+
}
|
|
6480
|
+
};
|
|
6481
|
+
|
|
6482
|
+
|
|
6483
|
+
/**
|
|
6484
|
+
* optional string capabilityToken = 1;
|
|
6485
|
+
* @return {string}
|
|
6486
|
+
*/
|
|
6487
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest.prototype.getCapabilitytoken = function() {
|
|
6488
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
6489
|
+
};
|
|
6490
|
+
|
|
6491
|
+
|
|
6492
|
+
/**
|
|
6493
|
+
* @param {string} value
|
|
6494
|
+
* @return {!proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest} returns this
|
|
6495
|
+
*/
|
|
6496
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest.prototype.setCapabilitytoken = function(value) {
|
|
6497
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
6498
|
+
};
|
|
6499
|
+
|
|
6500
|
+
|
|
6501
|
+
/**
|
|
6502
|
+
* optional int64 billId = 2;
|
|
6503
|
+
* @return {number}
|
|
6504
|
+
*/
|
|
6505
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest.prototype.getBillid = function() {
|
|
6506
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
6507
|
+
};
|
|
6508
|
+
|
|
6509
|
+
|
|
6510
|
+
/**
|
|
6511
|
+
* @param {number} value
|
|
6512
|
+
* @return {!proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest} returns this
|
|
6513
|
+
*/
|
|
6514
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest.prototype.setBillid = function(value) {
|
|
6515
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
6516
|
+
};
|
|
6517
|
+
|
|
6518
|
+
|
|
6519
|
+
/**
|
|
6520
|
+
* optional int64 paymentMethodId = 3;
|
|
6521
|
+
* @return {number}
|
|
6522
|
+
*/
|
|
6523
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest.prototype.getPaymentmethodid = function() {
|
|
6524
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
6525
|
+
};
|
|
6526
|
+
|
|
6527
|
+
|
|
6528
|
+
/**
|
|
6529
|
+
* @param {number} value
|
|
6530
|
+
* @return {!proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest} returns this
|
|
6531
|
+
*/
|
|
6532
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest.prototype.setPaymentmethodid = function(value) {
|
|
6533
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
6534
|
+
};
|
|
6535
|
+
|
|
6536
|
+
|
|
6537
|
+
/**
|
|
6538
|
+
* optional string paymentMethodAccessKey = 4;
|
|
6539
|
+
* @return {string}
|
|
6540
|
+
*/
|
|
6541
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest.prototype.getPaymentmethodaccesskey = function() {
|
|
6542
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
6543
|
+
};
|
|
6544
|
+
|
|
6545
|
+
|
|
6546
|
+
/**
|
|
6547
|
+
* @param {string} value
|
|
6548
|
+
* @return {!proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest} returns this
|
|
6549
|
+
*/
|
|
6550
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckRequest.prototype.setPaymentmethodaccesskey = function(value) {
|
|
6551
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
6552
|
+
};
|
|
6553
|
+
|
|
6554
|
+
|
|
6555
|
+
|
|
6556
|
+
|
|
6557
|
+
|
|
6558
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6559
|
+
/**
|
|
6560
|
+
* Creates an object representation of this proto.
|
|
6561
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6562
|
+
* Optional fields that are not set will be set to undefined.
|
|
6563
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6564
|
+
* For the list of reserved names please see:
|
|
6565
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6566
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6567
|
+
* JSPB instance for transitional soy proto support:
|
|
6568
|
+
* http://goto/soy-param-migration
|
|
6569
|
+
* @return {!Object}
|
|
6570
|
+
*/
|
|
6571
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse.prototype.toObject = function(opt_includeInstance) {
|
|
6572
|
+
return proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse.toObject(opt_includeInstance, this);
|
|
6573
|
+
};
|
|
6574
|
+
|
|
6575
|
+
|
|
6576
|
+
/**
|
|
6577
|
+
* Static version of the {@see toObject} method.
|
|
6578
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6579
|
+
* the JSPB instance for transitional soy proto support:
|
|
6580
|
+
* http://goto/soy-param-migration
|
|
6581
|
+
* @param {!proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse} msg The msg instance to transform.
|
|
6582
|
+
* @return {!Object}
|
|
6583
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6584
|
+
*/
|
|
6585
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse.toObject = function(includeInstance, msg) {
|
|
6586
|
+
var f, obj = {
|
|
6587
|
+
responsecode: (f = msg.getResponsecode()) && proto.sniippaymentmethodsserviceapi.ResponseCode.toObject(includeInstance, f),
|
|
6588
|
+
cardvalidationresult: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
6589
|
+
cardvalidationresulturl: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
6590
|
+
redirecturlafterverification: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
6591
|
+
};
|
|
6592
|
+
|
|
6593
|
+
if (includeInstance) {
|
|
6594
|
+
obj.$jspbMessageInstance = msg;
|
|
6595
|
+
}
|
|
6596
|
+
return obj;
|
|
6597
|
+
};
|
|
6598
|
+
}
|
|
6599
|
+
|
|
6600
|
+
|
|
6601
|
+
/**
|
|
6602
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6603
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6604
|
+
* @return {!proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse}
|
|
6605
|
+
*/
|
|
6606
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse.deserializeBinary = function(bytes) {
|
|
6607
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6608
|
+
var msg = new proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse;
|
|
6609
|
+
return proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse.deserializeBinaryFromReader(msg, reader);
|
|
6610
|
+
};
|
|
6611
|
+
|
|
6612
|
+
|
|
6613
|
+
/**
|
|
6614
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6615
|
+
* given reader into the given message object.
|
|
6616
|
+
* @param {!proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse} msg The message object to deserialize into.
|
|
6617
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6618
|
+
* @return {!proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse}
|
|
6619
|
+
*/
|
|
6620
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
6621
|
+
while (reader.nextField()) {
|
|
6622
|
+
if (reader.isEndGroup()) {
|
|
6623
|
+
break;
|
|
6624
|
+
}
|
|
6625
|
+
var field = reader.getFieldNumber();
|
|
6626
|
+
switch (field) {
|
|
6627
|
+
case 1:
|
|
6628
|
+
var value = new proto.sniippaymentmethodsserviceapi.ResponseCode;
|
|
6629
|
+
reader.readMessage(value,proto.sniippaymentmethodsserviceapi.ResponseCode.deserializeBinaryFromReader);
|
|
6630
|
+
msg.setResponsecode(value);
|
|
6631
|
+
break;
|
|
6632
|
+
case 2:
|
|
6633
|
+
var value = /** @type {!proto.sniippaymentmethodsserviceapi.CardValidationResult} */ (reader.readEnum());
|
|
6634
|
+
msg.setCardvalidationresult(value);
|
|
6635
|
+
break;
|
|
6636
|
+
case 3:
|
|
6637
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6638
|
+
msg.setCardvalidationresulturl(value);
|
|
6639
|
+
break;
|
|
6640
|
+
case 4:
|
|
6641
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6642
|
+
msg.setRedirecturlafterverification(value);
|
|
6643
|
+
break;
|
|
6644
|
+
default:
|
|
6645
|
+
reader.skipField();
|
|
6646
|
+
break;
|
|
6647
|
+
}
|
|
6648
|
+
}
|
|
6649
|
+
return msg;
|
|
6650
|
+
};
|
|
6651
|
+
|
|
6652
|
+
|
|
6653
|
+
/**
|
|
6654
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6655
|
+
* @return {!Uint8Array}
|
|
6656
|
+
*/
|
|
6657
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse.prototype.serializeBinary = function() {
|
|
6658
|
+
var writer = new jspb.BinaryWriter();
|
|
6659
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse.serializeBinaryToWriter(this, writer);
|
|
6660
|
+
return writer.getResultBuffer();
|
|
6661
|
+
};
|
|
6662
|
+
|
|
6663
|
+
|
|
6664
|
+
/**
|
|
6665
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6666
|
+
* format), writing to the given BinaryWriter.
|
|
6667
|
+
* @param {!proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse} message
|
|
6668
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6669
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6670
|
+
*/
|
|
6671
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse.serializeBinaryToWriter = function(message, writer) {
|
|
6672
|
+
var f = undefined;
|
|
6673
|
+
f = message.getResponsecode();
|
|
6674
|
+
if (f != null) {
|
|
6675
|
+
writer.writeMessage(
|
|
6676
|
+
1,
|
|
6677
|
+
f,
|
|
6678
|
+
proto.sniippaymentmethodsserviceapi.ResponseCode.serializeBinaryToWriter
|
|
6679
|
+
);
|
|
6680
|
+
}
|
|
6681
|
+
f = message.getCardvalidationresult();
|
|
6682
|
+
if (f !== 0.0) {
|
|
6683
|
+
writer.writeEnum(
|
|
6684
|
+
2,
|
|
6685
|
+
f
|
|
6686
|
+
);
|
|
6687
|
+
}
|
|
6688
|
+
f = message.getCardvalidationresulturl();
|
|
6689
|
+
if (f.length > 0) {
|
|
6690
|
+
writer.writeString(
|
|
6691
|
+
3,
|
|
6692
|
+
f
|
|
6693
|
+
);
|
|
6694
|
+
}
|
|
6695
|
+
f = message.getRedirecturlafterverification();
|
|
6696
|
+
if (f.length > 0) {
|
|
6697
|
+
writer.writeString(
|
|
6698
|
+
4,
|
|
6699
|
+
f
|
|
6700
|
+
);
|
|
6701
|
+
}
|
|
6702
|
+
};
|
|
6703
|
+
|
|
6704
|
+
|
|
6705
|
+
/**
|
|
6706
|
+
* optional ResponseCode responseCode = 1;
|
|
6707
|
+
* @return {?proto.sniippaymentmethodsserviceapi.ResponseCode}
|
|
6708
|
+
*/
|
|
6709
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse.prototype.getResponsecode = function() {
|
|
6710
|
+
return /** @type{?proto.sniippaymentmethodsserviceapi.ResponseCode} */ (
|
|
6711
|
+
jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.ResponseCode, 1));
|
|
6712
|
+
};
|
|
6713
|
+
|
|
6714
|
+
|
|
6715
|
+
/**
|
|
6716
|
+
* @param {?proto.sniippaymentmethodsserviceapi.ResponseCode|undefined} value
|
|
6717
|
+
* @return {!proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse} returns this
|
|
6718
|
+
*/
|
|
6719
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse.prototype.setResponsecode = function(value) {
|
|
6720
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
6721
|
+
};
|
|
6722
|
+
|
|
6723
|
+
|
|
6724
|
+
/**
|
|
6725
|
+
* Clears the message field making it undefined.
|
|
6726
|
+
* @return {!proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse} returns this
|
|
6727
|
+
*/
|
|
6728
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse.prototype.clearResponsecode = function() {
|
|
6729
|
+
return this.setResponsecode(undefined);
|
|
6730
|
+
};
|
|
6731
|
+
|
|
6732
|
+
|
|
6733
|
+
/**
|
|
6734
|
+
* Returns whether this field is set.
|
|
6735
|
+
* @return {boolean}
|
|
6736
|
+
*/
|
|
6737
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse.prototype.hasResponsecode = function() {
|
|
6738
|
+
return jspb.Message.getField(this, 1) != null;
|
|
6739
|
+
};
|
|
6740
|
+
|
|
6741
|
+
|
|
6742
|
+
/**
|
|
6743
|
+
* optional CardValidationResult cardValidationResult = 2;
|
|
6744
|
+
* @return {!proto.sniippaymentmethodsserviceapi.CardValidationResult}
|
|
6745
|
+
*/
|
|
6746
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse.prototype.getCardvalidationresult = function() {
|
|
6747
|
+
return /** @type {!proto.sniippaymentmethodsserviceapi.CardValidationResult} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
6748
|
+
};
|
|
6749
|
+
|
|
6750
|
+
|
|
6751
|
+
/**
|
|
6752
|
+
* @param {!proto.sniippaymentmethodsserviceapi.CardValidationResult} value
|
|
6753
|
+
* @return {!proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse} returns this
|
|
6754
|
+
*/
|
|
6755
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse.prototype.setCardvalidationresult = function(value) {
|
|
6756
|
+
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
6757
|
+
};
|
|
6758
|
+
|
|
6759
|
+
|
|
6760
|
+
/**
|
|
6761
|
+
* optional string CardValidationResultUrl = 3;
|
|
6762
|
+
* @return {string}
|
|
6763
|
+
*/
|
|
6764
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse.prototype.getCardvalidationresulturl = function() {
|
|
6765
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
6766
|
+
};
|
|
6767
|
+
|
|
6768
|
+
|
|
6769
|
+
/**
|
|
6770
|
+
* @param {string} value
|
|
6771
|
+
* @return {!proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse} returns this
|
|
6772
|
+
*/
|
|
6773
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse.prototype.setCardvalidationresulturl = function(value) {
|
|
6774
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
6775
|
+
};
|
|
6776
|
+
|
|
6777
|
+
|
|
6778
|
+
/**
|
|
6779
|
+
* optional string redirectUrlAfterVerification = 4;
|
|
6780
|
+
* @return {string}
|
|
6781
|
+
*/
|
|
6782
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse.prototype.getRedirecturlafterverification = function() {
|
|
6783
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
6784
|
+
};
|
|
6785
|
+
|
|
6786
|
+
|
|
6787
|
+
/**
|
|
6788
|
+
* @param {string} value
|
|
6789
|
+
* @return {!proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse} returns this
|
|
6790
|
+
*/
|
|
6791
|
+
proto.sniippaymentmethodsserviceapi.GetGuestCardCheckResponse.prototype.setRedirecturlafterverification = function(value) {
|
|
6792
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
6793
|
+
};
|
|
6794
|
+
|
|
6795
|
+
|
|
6796
|
+
|
|
6797
|
+
|
|
6798
|
+
|
|
6294
6799
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6295
6800
|
/**
|
|
6296
6801
|
* Creates an object representation of this proto.
|