@sniipwebmaster/payment-methods-client-grpcweb-ts 26.11.9575 → 26.11.9596
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.
|
@@ -169,6 +169,49 @@ export class SniipPaymentMethodsServiceAPIServiceClient {
|
|
|
169
169
|
this.methodDescriptorAddGuestPaymentMethod);
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
+
methodDescriptorGetGuestCardCheck = new grpcWeb.MethodDescriptor(
|
|
173
|
+
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/GetGuestCardCheck',
|
|
174
|
+
grpcWeb.MethodType.UNARY,
|
|
175
|
+
service_pb.GetGuestCardCheckRequest,
|
|
176
|
+
service_pb.GetGuestCardCheckResponse,
|
|
177
|
+
(request: service_pb.GetGuestCardCheckRequest) => {
|
|
178
|
+
return request.serializeBinary();
|
|
179
|
+
},
|
|
180
|
+
service_pb.GetGuestCardCheckResponse.deserializeBinary
|
|
181
|
+
);
|
|
182
|
+
|
|
183
|
+
getGuestCardCheck(
|
|
184
|
+
request: service_pb.GetGuestCardCheckRequest,
|
|
185
|
+
metadata?: grpcWeb.Metadata | null): Promise<service_pb.GetGuestCardCheckResponse>;
|
|
186
|
+
|
|
187
|
+
getGuestCardCheck(
|
|
188
|
+
request: service_pb.GetGuestCardCheckRequest,
|
|
189
|
+
metadata: grpcWeb.Metadata | null,
|
|
190
|
+
callback: (err: grpcWeb.RpcError,
|
|
191
|
+
response: service_pb.GetGuestCardCheckResponse) => void): grpcWeb.ClientReadableStream<service_pb.GetGuestCardCheckResponse>;
|
|
192
|
+
|
|
193
|
+
getGuestCardCheck(
|
|
194
|
+
request: service_pb.GetGuestCardCheckRequest,
|
|
195
|
+
metadata?: grpcWeb.Metadata | null,
|
|
196
|
+
callback?: (err: grpcWeb.RpcError,
|
|
197
|
+
response: service_pb.GetGuestCardCheckResponse) => void) {
|
|
198
|
+
if (callback !== undefined) {
|
|
199
|
+
return this.client_.rpcCall(
|
|
200
|
+
this.hostname_ +
|
|
201
|
+
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/GetGuestCardCheck',
|
|
202
|
+
request,
|
|
203
|
+
metadata || {},
|
|
204
|
+
this.methodDescriptorGetGuestCardCheck,
|
|
205
|
+
callback);
|
|
206
|
+
}
|
|
207
|
+
return this.client_.unaryCall(
|
|
208
|
+
this.hostname_ +
|
|
209
|
+
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/GetGuestCardCheck',
|
|
210
|
+
request,
|
|
211
|
+
metadata || {},
|
|
212
|
+
this.methodDescriptorGetGuestCardCheck);
|
|
213
|
+
}
|
|
214
|
+
|
|
172
215
|
methodDescriptorAddZenithToken = new grpcWeb.MethodDescriptor(
|
|
173
216
|
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/AddZenithToken',
|
|
174
217
|
grpcWeb.MethodType.UNARY,
|
|
@@ -422,6 +422,68 @@ export namespace AddGuestPaymentMethodResponse {
|
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
424
|
|
|
425
|
+
export class GetGuestCardCheckRequest extends jspb.Message {
|
|
426
|
+
getCapabilitytoken(): string;
|
|
427
|
+
setCapabilitytoken(value: string): GetGuestCardCheckRequest;
|
|
428
|
+
|
|
429
|
+
getBillid(): number;
|
|
430
|
+
setBillid(value: number): GetGuestCardCheckRequest;
|
|
431
|
+
|
|
432
|
+
getPaymentmethodid(): number;
|
|
433
|
+
setPaymentmethodid(value: number): GetGuestCardCheckRequest;
|
|
434
|
+
|
|
435
|
+
getPaymentmethodaccesskey(): string;
|
|
436
|
+
setPaymentmethodaccesskey(value: string): GetGuestCardCheckRequest;
|
|
437
|
+
|
|
438
|
+
serializeBinary(): Uint8Array;
|
|
439
|
+
toObject(includeInstance?: boolean): GetGuestCardCheckRequest.AsObject;
|
|
440
|
+
static toObject(includeInstance: boolean, msg: GetGuestCardCheckRequest): GetGuestCardCheckRequest.AsObject;
|
|
441
|
+
static serializeBinaryToWriter(message: GetGuestCardCheckRequest, writer: jspb.BinaryWriter): void;
|
|
442
|
+
static deserializeBinary(bytes: Uint8Array): GetGuestCardCheckRequest;
|
|
443
|
+
static deserializeBinaryFromReader(message: GetGuestCardCheckRequest, reader: jspb.BinaryReader): GetGuestCardCheckRequest;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
export namespace GetGuestCardCheckRequest {
|
|
447
|
+
export type AsObject = {
|
|
448
|
+
capabilitytoken: string,
|
|
449
|
+
billid: number,
|
|
450
|
+
paymentmethodid: number,
|
|
451
|
+
paymentmethodaccesskey: string,
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
export class GetGuestCardCheckResponse extends jspb.Message {
|
|
456
|
+
getResponsecode(): ResponseCode | undefined;
|
|
457
|
+
setResponsecode(value?: ResponseCode): GetGuestCardCheckResponse;
|
|
458
|
+
hasResponsecode(): boolean;
|
|
459
|
+
clearResponsecode(): GetGuestCardCheckResponse;
|
|
460
|
+
|
|
461
|
+
getCardvalidationresult(): CardValidationResult;
|
|
462
|
+
setCardvalidationresult(value: CardValidationResult): GetGuestCardCheckResponse;
|
|
463
|
+
|
|
464
|
+
getCardvalidationresulturl(): string;
|
|
465
|
+
setCardvalidationresulturl(value: string): GetGuestCardCheckResponse;
|
|
466
|
+
|
|
467
|
+
getRedirecturlafterverification(): string;
|
|
468
|
+
setRedirecturlafterverification(value: string): GetGuestCardCheckResponse;
|
|
469
|
+
|
|
470
|
+
serializeBinary(): Uint8Array;
|
|
471
|
+
toObject(includeInstance?: boolean): GetGuestCardCheckResponse.AsObject;
|
|
472
|
+
static toObject(includeInstance: boolean, msg: GetGuestCardCheckResponse): GetGuestCardCheckResponse.AsObject;
|
|
473
|
+
static serializeBinaryToWriter(message: GetGuestCardCheckResponse, writer: jspb.BinaryWriter): void;
|
|
474
|
+
static deserializeBinary(bytes: Uint8Array): GetGuestCardCheckResponse;
|
|
475
|
+
static deserializeBinaryFromReader(message: GetGuestCardCheckResponse, reader: jspb.BinaryReader): GetGuestCardCheckResponse;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
export namespace GetGuestCardCheckResponse {
|
|
479
|
+
export type AsObject = {
|
|
480
|
+
responsecode?: ResponseCode.AsObject,
|
|
481
|
+
cardvalidationresult: CardValidationResult,
|
|
482
|
+
cardvalidationresulturl: string,
|
|
483
|
+
redirecturlafterverification: string,
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
|
|
425
487
|
export class AddZenithTokenRequest extends jspb.Message {
|
|
426
488
|
getData(): ZenithTokenAddRequest | undefined;
|
|
427
489
|
setData(value?: ZenithTokenAddRequest): AddZenithTokenRequest;
|
|
@@ -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.
|