@sniipwebmaster/transaction-service-client-grpcweb 26.11.16382 → 26.11.16404
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.
|
@@ -3479,6 +3479,67 @@ proto.sniiptransactionapi.SniipTransactionAPIServicePromiseClient.prototype.payB
|
|
|
3479
3479
|
};
|
|
3480
3480
|
|
|
3481
3481
|
|
|
3482
|
+
/**
|
|
3483
|
+
* @const
|
|
3484
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
3485
|
+
* !proto.sniiptransactionapi.GetGuestPaymentStatusRequest,
|
|
3486
|
+
* !proto.sniiptransactionapi.GetGuestPaymentStatusResponse>}
|
|
3487
|
+
*/
|
|
3488
|
+
const methodDescriptor_SniipTransactionAPIService_GetGuestPaymentStatus = new grpc.web.MethodDescriptor(
|
|
3489
|
+
'/sniiptransactionapi.SniipTransactionAPIService/GetGuestPaymentStatus',
|
|
3490
|
+
grpc.web.MethodType.UNARY,
|
|
3491
|
+
proto.sniiptransactionapi.GetGuestPaymentStatusRequest,
|
|
3492
|
+
proto.sniiptransactionapi.GetGuestPaymentStatusResponse,
|
|
3493
|
+
/**
|
|
3494
|
+
* @param {!proto.sniiptransactionapi.GetGuestPaymentStatusRequest} request
|
|
3495
|
+
* @return {!Uint8Array}
|
|
3496
|
+
*/
|
|
3497
|
+
function(request) {
|
|
3498
|
+
return request.serializeBinary();
|
|
3499
|
+
},
|
|
3500
|
+
proto.sniiptransactionapi.GetGuestPaymentStatusResponse.deserializeBinary
|
|
3501
|
+
);
|
|
3502
|
+
|
|
3503
|
+
|
|
3504
|
+
/**
|
|
3505
|
+
* @param {!proto.sniiptransactionapi.GetGuestPaymentStatusRequest} request The
|
|
3506
|
+
* request proto
|
|
3507
|
+
* @param {?Object<string, string>} metadata User defined
|
|
3508
|
+
* call metadata
|
|
3509
|
+
* @param {function(?grpc.web.RpcError, ?proto.sniiptransactionapi.GetGuestPaymentStatusResponse)}
|
|
3510
|
+
* callback The callback function(error, response)
|
|
3511
|
+
* @return {!grpc.web.ClientReadableStream<!proto.sniiptransactionapi.GetGuestPaymentStatusResponse>|undefined}
|
|
3512
|
+
* The XHR Node Readable Stream
|
|
3513
|
+
*/
|
|
3514
|
+
proto.sniiptransactionapi.SniipTransactionAPIServiceClient.prototype.getGuestPaymentStatus =
|
|
3515
|
+
function(request, metadata, callback) {
|
|
3516
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
3517
|
+
'/sniiptransactionapi.SniipTransactionAPIService/GetGuestPaymentStatus',
|
|
3518
|
+
request,
|
|
3519
|
+
metadata || {},
|
|
3520
|
+
methodDescriptor_SniipTransactionAPIService_GetGuestPaymentStatus,
|
|
3521
|
+
callback);
|
|
3522
|
+
};
|
|
3523
|
+
|
|
3524
|
+
|
|
3525
|
+
/**
|
|
3526
|
+
* @param {!proto.sniiptransactionapi.GetGuestPaymentStatusRequest} request The
|
|
3527
|
+
* request proto
|
|
3528
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
3529
|
+
* call metadata
|
|
3530
|
+
* @return {!Promise<!proto.sniiptransactionapi.GetGuestPaymentStatusResponse>}
|
|
3531
|
+
* Promise that resolves to the response
|
|
3532
|
+
*/
|
|
3533
|
+
proto.sniiptransactionapi.SniipTransactionAPIServicePromiseClient.prototype.getGuestPaymentStatus =
|
|
3534
|
+
function(request, metadata) {
|
|
3535
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
3536
|
+
'/sniiptransactionapi.SniipTransactionAPIService/GetGuestPaymentStatus',
|
|
3537
|
+
request,
|
|
3538
|
+
metadata || {},
|
|
3539
|
+
methodDescriptor_SniipTransactionAPIService_GetGuestPaymentStatus);
|
|
3540
|
+
};
|
|
3541
|
+
|
|
3542
|
+
|
|
3482
3543
|
/**
|
|
3483
3544
|
* @const
|
|
3484
3545
|
* @type {!grpc.web.MethodDescriptor<
|
|
@@ -77,6 +77,8 @@ goog.exportSymbol('proto.sniiptransactionapi.GetBillerTransactionsRequest', null
|
|
|
77
77
|
goog.exportSymbol('proto.sniiptransactionapi.GetCollatedBillerTransactionsRequest', null, global);
|
|
78
78
|
goog.exportSymbol('proto.sniiptransactionapi.GetCollatedBillerTransactionsResponse', null, global);
|
|
79
79
|
goog.exportSymbol('proto.sniiptransactionapi.GetCreditCardResponse', null, global);
|
|
80
|
+
goog.exportSymbol('proto.sniiptransactionapi.GetGuestPaymentStatusRequest', null, global);
|
|
81
|
+
goog.exportSymbol('proto.sniiptransactionapi.GetGuestPaymentStatusResponse', null, global);
|
|
80
82
|
goog.exportSymbol('proto.sniiptransactionapi.GetInactiveUsersRequest', null, global);
|
|
81
83
|
goog.exportSymbol('proto.sniiptransactionapi.GetInternalPaymentHistoryForBillRequest', null, global);
|
|
82
84
|
goog.exportSymbol('proto.sniiptransactionapi.GetLatestTransactionForBillRequest', null, global);
|
|
@@ -105,6 +107,7 @@ goog.exportSymbol('proto.sniiptransactionapi.GetUserPaymentProcessorsResponse',
|
|
|
105
107
|
goog.exportSymbol('proto.sniiptransactionapi.GetUserTransactionsRequest', null, global);
|
|
106
108
|
goog.exportSymbol('proto.sniiptransactionapi.GetUserTransactionsResponse', null, global);
|
|
107
109
|
goog.exportSymbol('proto.sniiptransactionapi.GooglePayDetails', null, global);
|
|
110
|
+
goog.exportSymbol('proto.sniiptransactionapi.GuestPaymentState', null, global);
|
|
108
111
|
goog.exportSymbol('proto.sniiptransactionapi.HasAnyTransactionForUserIdsRequest', null, global);
|
|
109
112
|
goog.exportSymbol('proto.sniiptransactionapi.HasAnyTransactionForUserIdsResponse', null, global);
|
|
110
113
|
goog.exportSymbol('proto.sniiptransactionapi.HasPaymentHistoryRequest', null, global);
|
|
@@ -2347,6 +2350,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
2347
2350
|
*/
|
|
2348
2351
|
proto.sniiptransactionapi.PayBillAsGuestRequest.displayName = 'proto.sniiptransactionapi.PayBillAsGuestRequest';
|
|
2349
2352
|
}
|
|
2353
|
+
/**
|
|
2354
|
+
* Generated by JsPbCodeGenerator.
|
|
2355
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
2356
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
2357
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
2358
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2359
|
+
* valid.
|
|
2360
|
+
* @extends {jspb.Message}
|
|
2361
|
+
* @constructor
|
|
2362
|
+
*/
|
|
2363
|
+
proto.sniiptransactionapi.GetGuestPaymentStatusRequest = function(opt_data) {
|
|
2364
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
2365
|
+
};
|
|
2366
|
+
goog.inherits(proto.sniiptransactionapi.GetGuestPaymentStatusRequest, jspb.Message);
|
|
2367
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2368
|
+
/**
|
|
2369
|
+
* @public
|
|
2370
|
+
* @override
|
|
2371
|
+
*/
|
|
2372
|
+
proto.sniiptransactionapi.GetGuestPaymentStatusRequest.displayName = 'proto.sniiptransactionapi.GetGuestPaymentStatusRequest';
|
|
2373
|
+
}
|
|
2374
|
+
/**
|
|
2375
|
+
* Generated by JsPbCodeGenerator.
|
|
2376
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
2377
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
2378
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
2379
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2380
|
+
* valid.
|
|
2381
|
+
* @extends {jspb.Message}
|
|
2382
|
+
* @constructor
|
|
2383
|
+
*/
|
|
2384
|
+
proto.sniiptransactionapi.GetGuestPaymentStatusResponse = function(opt_data) {
|
|
2385
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
2386
|
+
};
|
|
2387
|
+
goog.inherits(proto.sniiptransactionapi.GetGuestPaymentStatusResponse, jspb.Message);
|
|
2388
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2389
|
+
/**
|
|
2390
|
+
* @public
|
|
2391
|
+
* @override
|
|
2392
|
+
*/
|
|
2393
|
+
proto.sniiptransactionapi.GetGuestPaymentStatusResponse.displayName = 'proto.sniiptransactionapi.GetGuestPaymentStatusResponse';
|
|
2394
|
+
}
|
|
2350
2395
|
/**
|
|
2351
2396
|
* Generated by JsPbCodeGenerator.
|
|
2352
2397
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -26462,6 +26507,347 @@ proto.sniiptransactionapi.PayBillAsGuestRequest.prototype.hasData = function() {
|
|
|
26462
26507
|
|
|
26463
26508
|
|
|
26464
26509
|
|
|
26510
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
26511
|
+
/**
|
|
26512
|
+
* Creates an object representation of this proto.
|
|
26513
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
26514
|
+
* Optional fields that are not set will be set to undefined.
|
|
26515
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
26516
|
+
* For the list of reserved names please see:
|
|
26517
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
26518
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
26519
|
+
* JSPB instance for transitional soy proto support:
|
|
26520
|
+
* http://goto/soy-param-migration
|
|
26521
|
+
* @return {!Object}
|
|
26522
|
+
*/
|
|
26523
|
+
proto.sniiptransactionapi.GetGuestPaymentStatusRequest.prototype.toObject = function(opt_includeInstance) {
|
|
26524
|
+
return proto.sniiptransactionapi.GetGuestPaymentStatusRequest.toObject(opt_includeInstance, this);
|
|
26525
|
+
};
|
|
26526
|
+
|
|
26527
|
+
|
|
26528
|
+
/**
|
|
26529
|
+
* Static version of the {@see toObject} method.
|
|
26530
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
26531
|
+
* the JSPB instance for transitional soy proto support:
|
|
26532
|
+
* http://goto/soy-param-migration
|
|
26533
|
+
* @param {!proto.sniiptransactionapi.GetGuestPaymentStatusRequest} msg The msg instance to transform.
|
|
26534
|
+
* @return {!Object}
|
|
26535
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
26536
|
+
*/
|
|
26537
|
+
proto.sniiptransactionapi.GetGuestPaymentStatusRequest.toObject = function(includeInstance, msg) {
|
|
26538
|
+
var f, obj = {
|
|
26539
|
+
billid: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
26540
|
+
readtoken: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
26541
|
+
};
|
|
26542
|
+
|
|
26543
|
+
if (includeInstance) {
|
|
26544
|
+
obj.$jspbMessageInstance = msg;
|
|
26545
|
+
}
|
|
26546
|
+
return obj;
|
|
26547
|
+
};
|
|
26548
|
+
}
|
|
26549
|
+
|
|
26550
|
+
|
|
26551
|
+
/**
|
|
26552
|
+
* Deserializes binary data (in protobuf wire format).
|
|
26553
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
26554
|
+
* @return {!proto.sniiptransactionapi.GetGuestPaymentStatusRequest}
|
|
26555
|
+
*/
|
|
26556
|
+
proto.sniiptransactionapi.GetGuestPaymentStatusRequest.deserializeBinary = function(bytes) {
|
|
26557
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
26558
|
+
var msg = new proto.sniiptransactionapi.GetGuestPaymentStatusRequest;
|
|
26559
|
+
return proto.sniiptransactionapi.GetGuestPaymentStatusRequest.deserializeBinaryFromReader(msg, reader);
|
|
26560
|
+
};
|
|
26561
|
+
|
|
26562
|
+
|
|
26563
|
+
/**
|
|
26564
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
26565
|
+
* given reader into the given message object.
|
|
26566
|
+
* @param {!proto.sniiptransactionapi.GetGuestPaymentStatusRequest} msg The message object to deserialize into.
|
|
26567
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
26568
|
+
* @return {!proto.sniiptransactionapi.GetGuestPaymentStatusRequest}
|
|
26569
|
+
*/
|
|
26570
|
+
proto.sniiptransactionapi.GetGuestPaymentStatusRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
26571
|
+
while (reader.nextField()) {
|
|
26572
|
+
if (reader.isEndGroup()) {
|
|
26573
|
+
break;
|
|
26574
|
+
}
|
|
26575
|
+
var field = reader.getFieldNumber();
|
|
26576
|
+
switch (field) {
|
|
26577
|
+
case 1:
|
|
26578
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
26579
|
+
msg.setBillid(value);
|
|
26580
|
+
break;
|
|
26581
|
+
case 2:
|
|
26582
|
+
var value = /** @type {string} */ (reader.readString());
|
|
26583
|
+
msg.setReadtoken(value);
|
|
26584
|
+
break;
|
|
26585
|
+
default:
|
|
26586
|
+
reader.skipField();
|
|
26587
|
+
break;
|
|
26588
|
+
}
|
|
26589
|
+
}
|
|
26590
|
+
return msg;
|
|
26591
|
+
};
|
|
26592
|
+
|
|
26593
|
+
|
|
26594
|
+
/**
|
|
26595
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
26596
|
+
* @return {!Uint8Array}
|
|
26597
|
+
*/
|
|
26598
|
+
proto.sniiptransactionapi.GetGuestPaymentStatusRequest.prototype.serializeBinary = function() {
|
|
26599
|
+
var writer = new jspb.BinaryWriter();
|
|
26600
|
+
proto.sniiptransactionapi.GetGuestPaymentStatusRequest.serializeBinaryToWriter(this, writer);
|
|
26601
|
+
return writer.getResultBuffer();
|
|
26602
|
+
};
|
|
26603
|
+
|
|
26604
|
+
|
|
26605
|
+
/**
|
|
26606
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
26607
|
+
* format), writing to the given BinaryWriter.
|
|
26608
|
+
* @param {!proto.sniiptransactionapi.GetGuestPaymentStatusRequest} message
|
|
26609
|
+
* @param {!jspb.BinaryWriter} writer
|
|
26610
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
26611
|
+
*/
|
|
26612
|
+
proto.sniiptransactionapi.GetGuestPaymentStatusRequest.serializeBinaryToWriter = function(message, writer) {
|
|
26613
|
+
var f = undefined;
|
|
26614
|
+
f = message.getBillid();
|
|
26615
|
+
if (f !== 0) {
|
|
26616
|
+
writer.writeInt64(
|
|
26617
|
+
1,
|
|
26618
|
+
f
|
|
26619
|
+
);
|
|
26620
|
+
}
|
|
26621
|
+
f = message.getReadtoken();
|
|
26622
|
+
if (f.length > 0) {
|
|
26623
|
+
writer.writeString(
|
|
26624
|
+
2,
|
|
26625
|
+
f
|
|
26626
|
+
);
|
|
26627
|
+
}
|
|
26628
|
+
};
|
|
26629
|
+
|
|
26630
|
+
|
|
26631
|
+
/**
|
|
26632
|
+
* optional int64 billId = 1;
|
|
26633
|
+
* @return {number}
|
|
26634
|
+
*/
|
|
26635
|
+
proto.sniiptransactionapi.GetGuestPaymentStatusRequest.prototype.getBillid = function() {
|
|
26636
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
26637
|
+
};
|
|
26638
|
+
|
|
26639
|
+
|
|
26640
|
+
/**
|
|
26641
|
+
* @param {number} value
|
|
26642
|
+
* @return {!proto.sniiptransactionapi.GetGuestPaymentStatusRequest} returns this
|
|
26643
|
+
*/
|
|
26644
|
+
proto.sniiptransactionapi.GetGuestPaymentStatusRequest.prototype.setBillid = function(value) {
|
|
26645
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
26646
|
+
};
|
|
26647
|
+
|
|
26648
|
+
|
|
26649
|
+
/**
|
|
26650
|
+
* optional string readToken = 2;
|
|
26651
|
+
* @return {string}
|
|
26652
|
+
*/
|
|
26653
|
+
proto.sniiptransactionapi.GetGuestPaymentStatusRequest.prototype.getReadtoken = function() {
|
|
26654
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
26655
|
+
};
|
|
26656
|
+
|
|
26657
|
+
|
|
26658
|
+
/**
|
|
26659
|
+
* @param {string} value
|
|
26660
|
+
* @return {!proto.sniiptransactionapi.GetGuestPaymentStatusRequest} returns this
|
|
26661
|
+
*/
|
|
26662
|
+
proto.sniiptransactionapi.GetGuestPaymentStatusRequest.prototype.setReadtoken = function(value) {
|
|
26663
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
26664
|
+
};
|
|
26665
|
+
|
|
26666
|
+
|
|
26667
|
+
|
|
26668
|
+
|
|
26669
|
+
|
|
26670
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
26671
|
+
/**
|
|
26672
|
+
* Creates an object representation of this proto.
|
|
26673
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
26674
|
+
* Optional fields that are not set will be set to undefined.
|
|
26675
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
26676
|
+
* For the list of reserved names please see:
|
|
26677
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
26678
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
26679
|
+
* JSPB instance for transitional soy proto support:
|
|
26680
|
+
* http://goto/soy-param-migration
|
|
26681
|
+
* @return {!Object}
|
|
26682
|
+
*/
|
|
26683
|
+
proto.sniiptransactionapi.GetGuestPaymentStatusResponse.prototype.toObject = function(opt_includeInstance) {
|
|
26684
|
+
return proto.sniiptransactionapi.GetGuestPaymentStatusResponse.toObject(opt_includeInstance, this);
|
|
26685
|
+
};
|
|
26686
|
+
|
|
26687
|
+
|
|
26688
|
+
/**
|
|
26689
|
+
* Static version of the {@see toObject} method.
|
|
26690
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
26691
|
+
* the JSPB instance for transitional soy proto support:
|
|
26692
|
+
* http://goto/soy-param-migration
|
|
26693
|
+
* @param {!proto.sniiptransactionapi.GetGuestPaymentStatusResponse} msg The msg instance to transform.
|
|
26694
|
+
* @return {!Object}
|
|
26695
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
26696
|
+
*/
|
|
26697
|
+
proto.sniiptransactionapi.GetGuestPaymentStatusResponse.toObject = function(includeInstance, msg) {
|
|
26698
|
+
var f, obj = {
|
|
26699
|
+
responsecode: (f = msg.getResponsecode()) && proto.sniiptransactionapi.ResponseCode.toObject(includeInstance, f),
|
|
26700
|
+
state: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
26701
|
+
};
|
|
26702
|
+
|
|
26703
|
+
if (includeInstance) {
|
|
26704
|
+
obj.$jspbMessageInstance = msg;
|
|
26705
|
+
}
|
|
26706
|
+
return obj;
|
|
26707
|
+
};
|
|
26708
|
+
}
|
|
26709
|
+
|
|
26710
|
+
|
|
26711
|
+
/**
|
|
26712
|
+
* Deserializes binary data (in protobuf wire format).
|
|
26713
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
26714
|
+
* @return {!proto.sniiptransactionapi.GetGuestPaymentStatusResponse}
|
|
26715
|
+
*/
|
|
26716
|
+
proto.sniiptransactionapi.GetGuestPaymentStatusResponse.deserializeBinary = function(bytes) {
|
|
26717
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
26718
|
+
var msg = new proto.sniiptransactionapi.GetGuestPaymentStatusResponse;
|
|
26719
|
+
return proto.sniiptransactionapi.GetGuestPaymentStatusResponse.deserializeBinaryFromReader(msg, reader);
|
|
26720
|
+
};
|
|
26721
|
+
|
|
26722
|
+
|
|
26723
|
+
/**
|
|
26724
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
26725
|
+
* given reader into the given message object.
|
|
26726
|
+
* @param {!proto.sniiptransactionapi.GetGuestPaymentStatusResponse} msg The message object to deserialize into.
|
|
26727
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
26728
|
+
* @return {!proto.sniiptransactionapi.GetGuestPaymentStatusResponse}
|
|
26729
|
+
*/
|
|
26730
|
+
proto.sniiptransactionapi.GetGuestPaymentStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
26731
|
+
while (reader.nextField()) {
|
|
26732
|
+
if (reader.isEndGroup()) {
|
|
26733
|
+
break;
|
|
26734
|
+
}
|
|
26735
|
+
var field = reader.getFieldNumber();
|
|
26736
|
+
switch (field) {
|
|
26737
|
+
case 1:
|
|
26738
|
+
var value = new proto.sniiptransactionapi.ResponseCode;
|
|
26739
|
+
reader.readMessage(value,proto.sniiptransactionapi.ResponseCode.deserializeBinaryFromReader);
|
|
26740
|
+
msg.setResponsecode(value);
|
|
26741
|
+
break;
|
|
26742
|
+
case 2:
|
|
26743
|
+
var value = /** @type {!proto.sniiptransactionapi.GuestPaymentState} */ (reader.readEnum());
|
|
26744
|
+
msg.setState(value);
|
|
26745
|
+
break;
|
|
26746
|
+
default:
|
|
26747
|
+
reader.skipField();
|
|
26748
|
+
break;
|
|
26749
|
+
}
|
|
26750
|
+
}
|
|
26751
|
+
return msg;
|
|
26752
|
+
};
|
|
26753
|
+
|
|
26754
|
+
|
|
26755
|
+
/**
|
|
26756
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
26757
|
+
* @return {!Uint8Array}
|
|
26758
|
+
*/
|
|
26759
|
+
proto.sniiptransactionapi.GetGuestPaymentStatusResponse.prototype.serializeBinary = function() {
|
|
26760
|
+
var writer = new jspb.BinaryWriter();
|
|
26761
|
+
proto.sniiptransactionapi.GetGuestPaymentStatusResponse.serializeBinaryToWriter(this, writer);
|
|
26762
|
+
return writer.getResultBuffer();
|
|
26763
|
+
};
|
|
26764
|
+
|
|
26765
|
+
|
|
26766
|
+
/**
|
|
26767
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
26768
|
+
* format), writing to the given BinaryWriter.
|
|
26769
|
+
* @param {!proto.sniiptransactionapi.GetGuestPaymentStatusResponse} message
|
|
26770
|
+
* @param {!jspb.BinaryWriter} writer
|
|
26771
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
26772
|
+
*/
|
|
26773
|
+
proto.sniiptransactionapi.GetGuestPaymentStatusResponse.serializeBinaryToWriter = function(message, writer) {
|
|
26774
|
+
var f = undefined;
|
|
26775
|
+
f = message.getResponsecode();
|
|
26776
|
+
if (f != null) {
|
|
26777
|
+
writer.writeMessage(
|
|
26778
|
+
1,
|
|
26779
|
+
f,
|
|
26780
|
+
proto.sniiptransactionapi.ResponseCode.serializeBinaryToWriter
|
|
26781
|
+
);
|
|
26782
|
+
}
|
|
26783
|
+
f = message.getState();
|
|
26784
|
+
if (f !== 0.0) {
|
|
26785
|
+
writer.writeEnum(
|
|
26786
|
+
2,
|
|
26787
|
+
f
|
|
26788
|
+
);
|
|
26789
|
+
}
|
|
26790
|
+
};
|
|
26791
|
+
|
|
26792
|
+
|
|
26793
|
+
/**
|
|
26794
|
+
* optional ResponseCode responseCode = 1;
|
|
26795
|
+
* @return {?proto.sniiptransactionapi.ResponseCode}
|
|
26796
|
+
*/
|
|
26797
|
+
proto.sniiptransactionapi.GetGuestPaymentStatusResponse.prototype.getResponsecode = function() {
|
|
26798
|
+
return /** @type{?proto.sniiptransactionapi.ResponseCode} */ (
|
|
26799
|
+
jspb.Message.getWrapperField(this, proto.sniiptransactionapi.ResponseCode, 1));
|
|
26800
|
+
};
|
|
26801
|
+
|
|
26802
|
+
|
|
26803
|
+
/**
|
|
26804
|
+
* @param {?proto.sniiptransactionapi.ResponseCode|undefined} value
|
|
26805
|
+
* @return {!proto.sniiptransactionapi.GetGuestPaymentStatusResponse} returns this
|
|
26806
|
+
*/
|
|
26807
|
+
proto.sniiptransactionapi.GetGuestPaymentStatusResponse.prototype.setResponsecode = function(value) {
|
|
26808
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
26809
|
+
};
|
|
26810
|
+
|
|
26811
|
+
|
|
26812
|
+
/**
|
|
26813
|
+
* Clears the message field making it undefined.
|
|
26814
|
+
* @return {!proto.sniiptransactionapi.GetGuestPaymentStatusResponse} returns this
|
|
26815
|
+
*/
|
|
26816
|
+
proto.sniiptransactionapi.GetGuestPaymentStatusResponse.prototype.clearResponsecode = function() {
|
|
26817
|
+
return this.setResponsecode(undefined);
|
|
26818
|
+
};
|
|
26819
|
+
|
|
26820
|
+
|
|
26821
|
+
/**
|
|
26822
|
+
* Returns whether this field is set.
|
|
26823
|
+
* @return {boolean}
|
|
26824
|
+
*/
|
|
26825
|
+
proto.sniiptransactionapi.GetGuestPaymentStatusResponse.prototype.hasResponsecode = function() {
|
|
26826
|
+
return jspb.Message.getField(this, 1) != null;
|
|
26827
|
+
};
|
|
26828
|
+
|
|
26829
|
+
|
|
26830
|
+
/**
|
|
26831
|
+
* optional GuestPaymentState state = 2;
|
|
26832
|
+
* @return {!proto.sniiptransactionapi.GuestPaymentState}
|
|
26833
|
+
*/
|
|
26834
|
+
proto.sniiptransactionapi.GetGuestPaymentStatusResponse.prototype.getState = function() {
|
|
26835
|
+
return /** @type {!proto.sniiptransactionapi.GuestPaymentState} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
26836
|
+
};
|
|
26837
|
+
|
|
26838
|
+
|
|
26839
|
+
/**
|
|
26840
|
+
* @param {!proto.sniiptransactionapi.GuestPaymentState} value
|
|
26841
|
+
* @return {!proto.sniiptransactionapi.GetGuestPaymentStatusResponse} returns this
|
|
26842
|
+
*/
|
|
26843
|
+
proto.sniiptransactionapi.GetGuestPaymentStatusResponse.prototype.setState = function(value) {
|
|
26844
|
+
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
26845
|
+
};
|
|
26846
|
+
|
|
26847
|
+
|
|
26848
|
+
|
|
26849
|
+
|
|
26850
|
+
|
|
26465
26851
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
26466
26852
|
/**
|
|
26467
26853
|
* Creates an object representation of this proto.
|
|
@@ -52003,6 +52389,17 @@ proto.sniiptransactionapi.ReceiptExportDeliveryMethod = {
|
|
|
52003
52389
|
RECEIPT_EXPORT_DELIVERY_METHOD_EMAIL: 2
|
|
52004
52390
|
};
|
|
52005
52391
|
|
|
52392
|
+
/**
|
|
52393
|
+
* @enum {number}
|
|
52394
|
+
*/
|
|
52395
|
+
proto.sniiptransactionapi.GuestPaymentState = {
|
|
52396
|
+
GUEST_PAYMENT_STATE_UNSPECIFIED: 0,
|
|
52397
|
+
GUEST_PAYMENT_STATE_NONE: 1,
|
|
52398
|
+
GUEST_PAYMENT_STATE_PENDING: 2,
|
|
52399
|
+
GUEST_PAYMENT_STATE_PAID: 3,
|
|
52400
|
+
GUEST_PAYMENT_STATE_REFUSED: 4
|
|
52401
|
+
};
|
|
52402
|
+
|
|
52006
52403
|
/**
|
|
52007
52404
|
* @enum {number}
|
|
52008
52405
|
*/
|