@sniipwebmaster/cybersource-client-grpcweb 25.3.608 → 25.3.625
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.
|
@@ -322,6 +322,67 @@ proto.cybersourceserviceapi.CybersourceServiceAPIServicePromiseClient.prototype.
|
|
|
322
322
|
};
|
|
323
323
|
|
|
324
324
|
|
|
325
|
+
/**
|
|
326
|
+
* @const
|
|
327
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
328
|
+
* !proto.cybersourceserviceapi.PayerAuthenticationRequest,
|
|
329
|
+
* !proto.cybersourceserviceapi.PayerAuthenticationResponse>}
|
|
330
|
+
*/
|
|
331
|
+
const methodDescriptor_CybersourceServiceAPIService_PayerAuthentication = new grpc.web.MethodDescriptor(
|
|
332
|
+
'/cybersourceserviceapi.CybersourceServiceAPIService/PayerAuthentication',
|
|
333
|
+
grpc.web.MethodType.UNARY,
|
|
334
|
+
proto.cybersourceserviceapi.PayerAuthenticationRequest,
|
|
335
|
+
proto.cybersourceserviceapi.PayerAuthenticationResponse,
|
|
336
|
+
/**
|
|
337
|
+
* @param {!proto.cybersourceserviceapi.PayerAuthenticationRequest} request
|
|
338
|
+
* @return {!Uint8Array}
|
|
339
|
+
*/
|
|
340
|
+
function(request) {
|
|
341
|
+
return request.serializeBinary();
|
|
342
|
+
},
|
|
343
|
+
proto.cybersourceserviceapi.PayerAuthenticationResponse.deserializeBinary
|
|
344
|
+
);
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* @param {!proto.cybersourceserviceapi.PayerAuthenticationRequest} request The
|
|
349
|
+
* request proto
|
|
350
|
+
* @param {?Object<string, string>} metadata User defined
|
|
351
|
+
* call metadata
|
|
352
|
+
* @param {function(?grpc.web.RpcError, ?proto.cybersourceserviceapi.PayerAuthenticationResponse)}
|
|
353
|
+
* callback The callback function(error, response)
|
|
354
|
+
* @return {!grpc.web.ClientReadableStream<!proto.cybersourceserviceapi.PayerAuthenticationResponse>|undefined}
|
|
355
|
+
* The XHR Node Readable Stream
|
|
356
|
+
*/
|
|
357
|
+
proto.cybersourceserviceapi.CybersourceServiceAPIServiceClient.prototype.payerAuthentication =
|
|
358
|
+
function(request, metadata, callback) {
|
|
359
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
360
|
+
'/cybersourceserviceapi.CybersourceServiceAPIService/PayerAuthentication',
|
|
361
|
+
request,
|
|
362
|
+
metadata || {},
|
|
363
|
+
methodDescriptor_CybersourceServiceAPIService_PayerAuthentication,
|
|
364
|
+
callback);
|
|
365
|
+
};
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* @param {!proto.cybersourceserviceapi.PayerAuthenticationRequest} request The
|
|
370
|
+
* request proto
|
|
371
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
372
|
+
* call metadata
|
|
373
|
+
* @return {!Promise<!proto.cybersourceserviceapi.PayerAuthenticationResponse>}
|
|
374
|
+
* Promise that resolves to the response
|
|
375
|
+
*/
|
|
376
|
+
proto.cybersourceserviceapi.CybersourceServiceAPIServicePromiseClient.prototype.payerAuthentication =
|
|
377
|
+
function(request, metadata) {
|
|
378
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
379
|
+
'/cybersourceserviceapi.CybersourceServiceAPIService/PayerAuthentication',
|
|
380
|
+
request,
|
|
381
|
+
metadata || {},
|
|
382
|
+
methodDescriptor_CybersourceServiceAPIService_PayerAuthentication);
|
|
383
|
+
};
|
|
384
|
+
|
|
385
|
+
|
|
325
386
|
/**
|
|
326
387
|
* @const
|
|
327
388
|
* @type {!grpc.web.MethodDescriptor<
|
|
@@ -36,6 +36,8 @@ goog.exportSymbol('proto.cybersourceserviceapi.GooglePay', null, global);
|
|
|
36
36
|
goog.exportSymbol('proto.cybersourceserviceapi.GooglePayDetailsRequest', null, global);
|
|
37
37
|
goog.exportSymbol('proto.cybersourceserviceapi.IssuerInformation', null, global);
|
|
38
38
|
goog.exportSymbol('proto.cybersourceserviceapi.MakePaymentRequest', null, global);
|
|
39
|
+
goog.exportSymbol('proto.cybersourceserviceapi.PayerAuthenticationRequest', null, global);
|
|
40
|
+
goog.exportSymbol('proto.cybersourceserviceapi.PayerAuthenticationResponse', null, global);
|
|
39
41
|
goog.exportSymbol('proto.cybersourceserviceapi.PaymentAccountInformation', null, global);
|
|
40
42
|
goog.exportSymbol('proto.cybersourceserviceapi.PaymentCard', null, global);
|
|
41
43
|
goog.exportSymbol('proto.cybersourceserviceapi.PaymentFeatures', null, global);
|
|
@@ -236,6 +238,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
236
238
|
*/
|
|
237
239
|
proto.cybersourceserviceapi.MakePaymentRequest.displayName = 'proto.cybersourceserviceapi.MakePaymentRequest';
|
|
238
240
|
}
|
|
241
|
+
/**
|
|
242
|
+
* Generated by JsPbCodeGenerator.
|
|
243
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
244
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
245
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
246
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
247
|
+
* valid.
|
|
248
|
+
* @extends {jspb.Message}
|
|
249
|
+
* @constructor
|
|
250
|
+
*/
|
|
251
|
+
proto.cybersourceserviceapi.PayerAuthenticationRequest = function(opt_data) {
|
|
252
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
253
|
+
};
|
|
254
|
+
goog.inherits(proto.cybersourceserviceapi.PayerAuthenticationRequest, jspb.Message);
|
|
255
|
+
if (goog.DEBUG && !COMPILED) {
|
|
256
|
+
/**
|
|
257
|
+
* @public
|
|
258
|
+
* @override
|
|
259
|
+
*/
|
|
260
|
+
proto.cybersourceserviceapi.PayerAuthenticationRequest.displayName = 'proto.cybersourceserviceapi.PayerAuthenticationRequest';
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Generated by JsPbCodeGenerator.
|
|
264
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
265
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
266
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
267
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
268
|
+
* valid.
|
|
269
|
+
* @extends {jspb.Message}
|
|
270
|
+
* @constructor
|
|
271
|
+
*/
|
|
272
|
+
proto.cybersourceserviceapi.PayerAuthenticationResponse = function(opt_data) {
|
|
273
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
274
|
+
};
|
|
275
|
+
goog.inherits(proto.cybersourceserviceapi.PayerAuthenticationResponse, jspb.Message);
|
|
276
|
+
if (goog.DEBUG && !COMPILED) {
|
|
277
|
+
/**
|
|
278
|
+
* @public
|
|
279
|
+
* @override
|
|
280
|
+
*/
|
|
281
|
+
proto.cybersourceserviceapi.PayerAuthenticationResponse.displayName = 'proto.cybersourceserviceapi.PayerAuthenticationResponse';
|
|
282
|
+
}
|
|
239
283
|
/**
|
|
240
284
|
* Generated by JsPbCodeGenerator.
|
|
241
285
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -2665,6 +2709,509 @@ proto.cybersourceserviceapi.MakePaymentRequest.prototype.hasBody = function() {
|
|
|
2665
2709
|
|
|
2666
2710
|
|
|
2667
2711
|
|
|
2712
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2713
|
+
/**
|
|
2714
|
+
* Creates an object representation of this proto.
|
|
2715
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2716
|
+
* Optional fields that are not set will be set to undefined.
|
|
2717
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2718
|
+
* For the list of reserved names please see:
|
|
2719
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2720
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2721
|
+
* JSPB instance for transitional soy proto support:
|
|
2722
|
+
* http://goto/soy-param-migration
|
|
2723
|
+
* @return {!Object}
|
|
2724
|
+
*/
|
|
2725
|
+
proto.cybersourceserviceapi.PayerAuthenticationRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2726
|
+
return proto.cybersourceserviceapi.PayerAuthenticationRequest.toObject(opt_includeInstance, this);
|
|
2727
|
+
};
|
|
2728
|
+
|
|
2729
|
+
|
|
2730
|
+
/**
|
|
2731
|
+
* Static version of the {@see toObject} method.
|
|
2732
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2733
|
+
* the JSPB instance for transitional soy proto support:
|
|
2734
|
+
* http://goto/soy-param-migration
|
|
2735
|
+
* @param {!proto.cybersourceserviceapi.PayerAuthenticationRequest} msg The msg instance to transform.
|
|
2736
|
+
* @return {!Object}
|
|
2737
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2738
|
+
*/
|
|
2739
|
+
proto.cybersourceserviceapi.PayerAuthenticationRequest.toObject = function(includeInstance, msg) {
|
|
2740
|
+
var f, obj = {
|
|
2741
|
+
paymentmethod: (f = msg.getPaymentmethod()) && proto.cybersourceserviceapi.PaymentMethod.toObject(includeInstance, f),
|
|
2742
|
+
paymentprocessor: (f = msg.getPaymentprocessor()) && proto.cybersourceserviceapi.PaymentProcessor.toObject(includeInstance, f),
|
|
2743
|
+
isbusiness: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
|
2744
|
+
userid: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
2745
|
+
};
|
|
2746
|
+
|
|
2747
|
+
if (includeInstance) {
|
|
2748
|
+
obj.$jspbMessageInstance = msg;
|
|
2749
|
+
}
|
|
2750
|
+
return obj;
|
|
2751
|
+
};
|
|
2752
|
+
}
|
|
2753
|
+
|
|
2754
|
+
|
|
2755
|
+
/**
|
|
2756
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2757
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2758
|
+
* @return {!proto.cybersourceserviceapi.PayerAuthenticationRequest}
|
|
2759
|
+
*/
|
|
2760
|
+
proto.cybersourceserviceapi.PayerAuthenticationRequest.deserializeBinary = function(bytes) {
|
|
2761
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2762
|
+
var msg = new proto.cybersourceserviceapi.PayerAuthenticationRequest;
|
|
2763
|
+
return proto.cybersourceserviceapi.PayerAuthenticationRequest.deserializeBinaryFromReader(msg, reader);
|
|
2764
|
+
};
|
|
2765
|
+
|
|
2766
|
+
|
|
2767
|
+
/**
|
|
2768
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2769
|
+
* given reader into the given message object.
|
|
2770
|
+
* @param {!proto.cybersourceserviceapi.PayerAuthenticationRequest} msg The message object to deserialize into.
|
|
2771
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2772
|
+
* @return {!proto.cybersourceserviceapi.PayerAuthenticationRequest}
|
|
2773
|
+
*/
|
|
2774
|
+
proto.cybersourceserviceapi.PayerAuthenticationRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2775
|
+
while (reader.nextField()) {
|
|
2776
|
+
if (reader.isEndGroup()) {
|
|
2777
|
+
break;
|
|
2778
|
+
}
|
|
2779
|
+
var field = reader.getFieldNumber();
|
|
2780
|
+
switch (field) {
|
|
2781
|
+
case 1:
|
|
2782
|
+
var value = new proto.cybersourceserviceapi.PaymentMethod;
|
|
2783
|
+
reader.readMessage(value,proto.cybersourceserviceapi.PaymentMethod.deserializeBinaryFromReader);
|
|
2784
|
+
msg.setPaymentmethod(value);
|
|
2785
|
+
break;
|
|
2786
|
+
case 2:
|
|
2787
|
+
var value = new proto.cybersourceserviceapi.PaymentProcessor;
|
|
2788
|
+
reader.readMessage(value,proto.cybersourceserviceapi.PaymentProcessor.deserializeBinaryFromReader);
|
|
2789
|
+
msg.setPaymentprocessor(value);
|
|
2790
|
+
break;
|
|
2791
|
+
case 3:
|
|
2792
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
2793
|
+
msg.setIsbusiness(value);
|
|
2794
|
+
break;
|
|
2795
|
+
case 4:
|
|
2796
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
2797
|
+
msg.setUserid(value);
|
|
2798
|
+
break;
|
|
2799
|
+
default:
|
|
2800
|
+
reader.skipField();
|
|
2801
|
+
break;
|
|
2802
|
+
}
|
|
2803
|
+
}
|
|
2804
|
+
return msg;
|
|
2805
|
+
};
|
|
2806
|
+
|
|
2807
|
+
|
|
2808
|
+
/**
|
|
2809
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2810
|
+
* @return {!Uint8Array}
|
|
2811
|
+
*/
|
|
2812
|
+
proto.cybersourceserviceapi.PayerAuthenticationRequest.prototype.serializeBinary = function() {
|
|
2813
|
+
var writer = new jspb.BinaryWriter();
|
|
2814
|
+
proto.cybersourceserviceapi.PayerAuthenticationRequest.serializeBinaryToWriter(this, writer);
|
|
2815
|
+
return writer.getResultBuffer();
|
|
2816
|
+
};
|
|
2817
|
+
|
|
2818
|
+
|
|
2819
|
+
/**
|
|
2820
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2821
|
+
* format), writing to the given BinaryWriter.
|
|
2822
|
+
* @param {!proto.cybersourceserviceapi.PayerAuthenticationRequest} message
|
|
2823
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2824
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2825
|
+
*/
|
|
2826
|
+
proto.cybersourceserviceapi.PayerAuthenticationRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2827
|
+
var f = undefined;
|
|
2828
|
+
f = message.getPaymentmethod();
|
|
2829
|
+
if (f != null) {
|
|
2830
|
+
writer.writeMessage(
|
|
2831
|
+
1,
|
|
2832
|
+
f,
|
|
2833
|
+
proto.cybersourceserviceapi.PaymentMethod.serializeBinaryToWriter
|
|
2834
|
+
);
|
|
2835
|
+
}
|
|
2836
|
+
f = message.getPaymentprocessor();
|
|
2837
|
+
if (f != null) {
|
|
2838
|
+
writer.writeMessage(
|
|
2839
|
+
2,
|
|
2840
|
+
f,
|
|
2841
|
+
proto.cybersourceserviceapi.PaymentProcessor.serializeBinaryToWriter
|
|
2842
|
+
);
|
|
2843
|
+
}
|
|
2844
|
+
f = message.getIsbusiness();
|
|
2845
|
+
if (f) {
|
|
2846
|
+
writer.writeBool(
|
|
2847
|
+
3,
|
|
2848
|
+
f
|
|
2849
|
+
);
|
|
2850
|
+
}
|
|
2851
|
+
f = message.getUserid();
|
|
2852
|
+
if (f !== 0) {
|
|
2853
|
+
writer.writeInt64(
|
|
2854
|
+
4,
|
|
2855
|
+
f
|
|
2856
|
+
);
|
|
2857
|
+
}
|
|
2858
|
+
};
|
|
2859
|
+
|
|
2860
|
+
|
|
2861
|
+
/**
|
|
2862
|
+
* optional PaymentMethod paymentMethod = 1;
|
|
2863
|
+
* @return {?proto.cybersourceserviceapi.PaymentMethod}
|
|
2864
|
+
*/
|
|
2865
|
+
proto.cybersourceserviceapi.PayerAuthenticationRequest.prototype.getPaymentmethod = function() {
|
|
2866
|
+
return /** @type{?proto.cybersourceserviceapi.PaymentMethod} */ (
|
|
2867
|
+
jspb.Message.getWrapperField(this, proto.cybersourceserviceapi.PaymentMethod, 1));
|
|
2868
|
+
};
|
|
2869
|
+
|
|
2870
|
+
|
|
2871
|
+
/**
|
|
2872
|
+
* @param {?proto.cybersourceserviceapi.PaymentMethod|undefined} value
|
|
2873
|
+
* @return {!proto.cybersourceserviceapi.PayerAuthenticationRequest} returns this
|
|
2874
|
+
*/
|
|
2875
|
+
proto.cybersourceserviceapi.PayerAuthenticationRequest.prototype.setPaymentmethod = function(value) {
|
|
2876
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
2877
|
+
};
|
|
2878
|
+
|
|
2879
|
+
|
|
2880
|
+
/**
|
|
2881
|
+
* Clears the message field making it undefined.
|
|
2882
|
+
* @return {!proto.cybersourceserviceapi.PayerAuthenticationRequest} returns this
|
|
2883
|
+
*/
|
|
2884
|
+
proto.cybersourceserviceapi.PayerAuthenticationRequest.prototype.clearPaymentmethod = function() {
|
|
2885
|
+
return this.setPaymentmethod(undefined);
|
|
2886
|
+
};
|
|
2887
|
+
|
|
2888
|
+
|
|
2889
|
+
/**
|
|
2890
|
+
* Returns whether this field is set.
|
|
2891
|
+
* @return {boolean}
|
|
2892
|
+
*/
|
|
2893
|
+
proto.cybersourceserviceapi.PayerAuthenticationRequest.prototype.hasPaymentmethod = function() {
|
|
2894
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2895
|
+
};
|
|
2896
|
+
|
|
2897
|
+
|
|
2898
|
+
/**
|
|
2899
|
+
* optional PaymentProcessor paymentProcessor = 2;
|
|
2900
|
+
* @return {?proto.cybersourceserviceapi.PaymentProcessor}
|
|
2901
|
+
*/
|
|
2902
|
+
proto.cybersourceserviceapi.PayerAuthenticationRequest.prototype.getPaymentprocessor = function() {
|
|
2903
|
+
return /** @type{?proto.cybersourceserviceapi.PaymentProcessor} */ (
|
|
2904
|
+
jspb.Message.getWrapperField(this, proto.cybersourceserviceapi.PaymentProcessor, 2));
|
|
2905
|
+
};
|
|
2906
|
+
|
|
2907
|
+
|
|
2908
|
+
/**
|
|
2909
|
+
* @param {?proto.cybersourceserviceapi.PaymentProcessor|undefined} value
|
|
2910
|
+
* @return {!proto.cybersourceserviceapi.PayerAuthenticationRequest} returns this
|
|
2911
|
+
*/
|
|
2912
|
+
proto.cybersourceserviceapi.PayerAuthenticationRequest.prototype.setPaymentprocessor = function(value) {
|
|
2913
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
2914
|
+
};
|
|
2915
|
+
|
|
2916
|
+
|
|
2917
|
+
/**
|
|
2918
|
+
* Clears the message field making it undefined.
|
|
2919
|
+
* @return {!proto.cybersourceserviceapi.PayerAuthenticationRequest} returns this
|
|
2920
|
+
*/
|
|
2921
|
+
proto.cybersourceserviceapi.PayerAuthenticationRequest.prototype.clearPaymentprocessor = function() {
|
|
2922
|
+
return this.setPaymentprocessor(undefined);
|
|
2923
|
+
};
|
|
2924
|
+
|
|
2925
|
+
|
|
2926
|
+
/**
|
|
2927
|
+
* Returns whether this field is set.
|
|
2928
|
+
* @return {boolean}
|
|
2929
|
+
*/
|
|
2930
|
+
proto.cybersourceserviceapi.PayerAuthenticationRequest.prototype.hasPaymentprocessor = function() {
|
|
2931
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2932
|
+
};
|
|
2933
|
+
|
|
2934
|
+
|
|
2935
|
+
/**
|
|
2936
|
+
* optional bool isBusiness = 3;
|
|
2937
|
+
* @return {boolean}
|
|
2938
|
+
*/
|
|
2939
|
+
proto.cybersourceserviceapi.PayerAuthenticationRequest.prototype.getIsbusiness = function() {
|
|
2940
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
|
|
2941
|
+
};
|
|
2942
|
+
|
|
2943
|
+
|
|
2944
|
+
/**
|
|
2945
|
+
* @param {boolean} value
|
|
2946
|
+
* @return {!proto.cybersourceserviceapi.PayerAuthenticationRequest} returns this
|
|
2947
|
+
*/
|
|
2948
|
+
proto.cybersourceserviceapi.PayerAuthenticationRequest.prototype.setIsbusiness = function(value) {
|
|
2949
|
+
return jspb.Message.setProto3BooleanField(this, 3, value);
|
|
2950
|
+
};
|
|
2951
|
+
|
|
2952
|
+
|
|
2953
|
+
/**
|
|
2954
|
+
* optional int64 userId = 4;
|
|
2955
|
+
* @return {number}
|
|
2956
|
+
*/
|
|
2957
|
+
proto.cybersourceserviceapi.PayerAuthenticationRequest.prototype.getUserid = function() {
|
|
2958
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
2959
|
+
};
|
|
2960
|
+
|
|
2961
|
+
|
|
2962
|
+
/**
|
|
2963
|
+
* @param {number} value
|
|
2964
|
+
* @return {!proto.cybersourceserviceapi.PayerAuthenticationRequest} returns this
|
|
2965
|
+
*/
|
|
2966
|
+
proto.cybersourceserviceapi.PayerAuthenticationRequest.prototype.setUserid = function(value) {
|
|
2967
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
2968
|
+
};
|
|
2969
|
+
|
|
2970
|
+
|
|
2971
|
+
|
|
2972
|
+
|
|
2973
|
+
|
|
2974
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2975
|
+
/**
|
|
2976
|
+
* Creates an object representation of this proto.
|
|
2977
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2978
|
+
* Optional fields that are not set will be set to undefined.
|
|
2979
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2980
|
+
* For the list of reserved names please see:
|
|
2981
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2982
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2983
|
+
* JSPB instance for transitional soy proto support:
|
|
2984
|
+
* http://goto/soy-param-migration
|
|
2985
|
+
* @return {!Object}
|
|
2986
|
+
*/
|
|
2987
|
+
proto.cybersourceserviceapi.PayerAuthenticationResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2988
|
+
return proto.cybersourceserviceapi.PayerAuthenticationResponse.toObject(opt_includeInstance, this);
|
|
2989
|
+
};
|
|
2990
|
+
|
|
2991
|
+
|
|
2992
|
+
/**
|
|
2993
|
+
* Static version of the {@see toObject} method.
|
|
2994
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2995
|
+
* the JSPB instance for transitional soy proto support:
|
|
2996
|
+
* http://goto/soy-param-migration
|
|
2997
|
+
* @param {!proto.cybersourceserviceapi.PayerAuthenticationResponse} msg The msg instance to transform.
|
|
2998
|
+
* @return {!Object}
|
|
2999
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3000
|
+
*/
|
|
3001
|
+
proto.cybersourceserviceapi.PayerAuthenticationResponse.toObject = function(includeInstance, msg) {
|
|
3002
|
+
var f, obj = {
|
|
3003
|
+
is3dsenrolled: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
3004
|
+
threedsissuerurl: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
3005
|
+
cardvalidationid: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
3006
|
+
responsecode: (f = msg.getResponsecode()) && proto.cybersourceserviceapi.ResponseCode.toObject(includeInstance, f)
|
|
3007
|
+
};
|
|
3008
|
+
|
|
3009
|
+
if (includeInstance) {
|
|
3010
|
+
obj.$jspbMessageInstance = msg;
|
|
3011
|
+
}
|
|
3012
|
+
return obj;
|
|
3013
|
+
};
|
|
3014
|
+
}
|
|
3015
|
+
|
|
3016
|
+
|
|
3017
|
+
/**
|
|
3018
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3019
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3020
|
+
* @return {!proto.cybersourceserviceapi.PayerAuthenticationResponse}
|
|
3021
|
+
*/
|
|
3022
|
+
proto.cybersourceserviceapi.PayerAuthenticationResponse.deserializeBinary = function(bytes) {
|
|
3023
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3024
|
+
var msg = new proto.cybersourceserviceapi.PayerAuthenticationResponse;
|
|
3025
|
+
return proto.cybersourceserviceapi.PayerAuthenticationResponse.deserializeBinaryFromReader(msg, reader);
|
|
3026
|
+
};
|
|
3027
|
+
|
|
3028
|
+
|
|
3029
|
+
/**
|
|
3030
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3031
|
+
* given reader into the given message object.
|
|
3032
|
+
* @param {!proto.cybersourceserviceapi.PayerAuthenticationResponse} msg The message object to deserialize into.
|
|
3033
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3034
|
+
* @return {!proto.cybersourceserviceapi.PayerAuthenticationResponse}
|
|
3035
|
+
*/
|
|
3036
|
+
proto.cybersourceserviceapi.PayerAuthenticationResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3037
|
+
while (reader.nextField()) {
|
|
3038
|
+
if (reader.isEndGroup()) {
|
|
3039
|
+
break;
|
|
3040
|
+
}
|
|
3041
|
+
var field = reader.getFieldNumber();
|
|
3042
|
+
switch (field) {
|
|
3043
|
+
case 1:
|
|
3044
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
3045
|
+
msg.setIs3dsenrolled(value);
|
|
3046
|
+
break;
|
|
3047
|
+
case 2:
|
|
3048
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3049
|
+
msg.setThreedsissuerurl(value);
|
|
3050
|
+
break;
|
|
3051
|
+
case 3:
|
|
3052
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
3053
|
+
msg.setCardvalidationid(value);
|
|
3054
|
+
break;
|
|
3055
|
+
case 4:
|
|
3056
|
+
var value = new proto.cybersourceserviceapi.ResponseCode;
|
|
3057
|
+
reader.readMessage(value,proto.cybersourceserviceapi.ResponseCode.deserializeBinaryFromReader);
|
|
3058
|
+
msg.setResponsecode(value);
|
|
3059
|
+
break;
|
|
3060
|
+
default:
|
|
3061
|
+
reader.skipField();
|
|
3062
|
+
break;
|
|
3063
|
+
}
|
|
3064
|
+
}
|
|
3065
|
+
return msg;
|
|
3066
|
+
};
|
|
3067
|
+
|
|
3068
|
+
|
|
3069
|
+
/**
|
|
3070
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3071
|
+
* @return {!Uint8Array}
|
|
3072
|
+
*/
|
|
3073
|
+
proto.cybersourceserviceapi.PayerAuthenticationResponse.prototype.serializeBinary = function() {
|
|
3074
|
+
var writer = new jspb.BinaryWriter();
|
|
3075
|
+
proto.cybersourceserviceapi.PayerAuthenticationResponse.serializeBinaryToWriter(this, writer);
|
|
3076
|
+
return writer.getResultBuffer();
|
|
3077
|
+
};
|
|
3078
|
+
|
|
3079
|
+
|
|
3080
|
+
/**
|
|
3081
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3082
|
+
* format), writing to the given BinaryWriter.
|
|
3083
|
+
* @param {!proto.cybersourceserviceapi.PayerAuthenticationResponse} message
|
|
3084
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3085
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3086
|
+
*/
|
|
3087
|
+
proto.cybersourceserviceapi.PayerAuthenticationResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3088
|
+
var f = undefined;
|
|
3089
|
+
f = message.getIs3dsenrolled();
|
|
3090
|
+
if (f) {
|
|
3091
|
+
writer.writeBool(
|
|
3092
|
+
1,
|
|
3093
|
+
f
|
|
3094
|
+
);
|
|
3095
|
+
}
|
|
3096
|
+
f = message.getThreedsissuerurl();
|
|
3097
|
+
if (f.length > 0) {
|
|
3098
|
+
writer.writeString(
|
|
3099
|
+
2,
|
|
3100
|
+
f
|
|
3101
|
+
);
|
|
3102
|
+
}
|
|
3103
|
+
f = message.getCardvalidationid();
|
|
3104
|
+
if (f !== 0) {
|
|
3105
|
+
writer.writeInt64(
|
|
3106
|
+
3,
|
|
3107
|
+
f
|
|
3108
|
+
);
|
|
3109
|
+
}
|
|
3110
|
+
f = message.getResponsecode();
|
|
3111
|
+
if (f != null) {
|
|
3112
|
+
writer.writeMessage(
|
|
3113
|
+
4,
|
|
3114
|
+
f,
|
|
3115
|
+
proto.cybersourceserviceapi.ResponseCode.serializeBinaryToWriter
|
|
3116
|
+
);
|
|
3117
|
+
}
|
|
3118
|
+
};
|
|
3119
|
+
|
|
3120
|
+
|
|
3121
|
+
/**
|
|
3122
|
+
* optional bool is3dsEnrolled = 1;
|
|
3123
|
+
* @return {boolean}
|
|
3124
|
+
*/
|
|
3125
|
+
proto.cybersourceserviceapi.PayerAuthenticationResponse.prototype.getIs3dsenrolled = function() {
|
|
3126
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
|
|
3127
|
+
};
|
|
3128
|
+
|
|
3129
|
+
|
|
3130
|
+
/**
|
|
3131
|
+
* @param {boolean} value
|
|
3132
|
+
* @return {!proto.cybersourceserviceapi.PayerAuthenticationResponse} returns this
|
|
3133
|
+
*/
|
|
3134
|
+
proto.cybersourceserviceapi.PayerAuthenticationResponse.prototype.setIs3dsenrolled = function(value) {
|
|
3135
|
+
return jspb.Message.setProto3BooleanField(this, 1, value);
|
|
3136
|
+
};
|
|
3137
|
+
|
|
3138
|
+
|
|
3139
|
+
/**
|
|
3140
|
+
* optional string ThreeDsIssuerUrl = 2;
|
|
3141
|
+
* @return {string}
|
|
3142
|
+
*/
|
|
3143
|
+
proto.cybersourceserviceapi.PayerAuthenticationResponse.prototype.getThreedsissuerurl = function() {
|
|
3144
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3145
|
+
};
|
|
3146
|
+
|
|
3147
|
+
|
|
3148
|
+
/**
|
|
3149
|
+
* @param {string} value
|
|
3150
|
+
* @return {!proto.cybersourceserviceapi.PayerAuthenticationResponse} returns this
|
|
3151
|
+
*/
|
|
3152
|
+
proto.cybersourceserviceapi.PayerAuthenticationResponse.prototype.setThreedsissuerurl = function(value) {
|
|
3153
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3154
|
+
};
|
|
3155
|
+
|
|
3156
|
+
|
|
3157
|
+
/**
|
|
3158
|
+
* optional int64 cardValidationId = 3;
|
|
3159
|
+
* @return {number}
|
|
3160
|
+
*/
|
|
3161
|
+
proto.cybersourceserviceapi.PayerAuthenticationResponse.prototype.getCardvalidationid = function() {
|
|
3162
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
3163
|
+
};
|
|
3164
|
+
|
|
3165
|
+
|
|
3166
|
+
/**
|
|
3167
|
+
* @param {number} value
|
|
3168
|
+
* @return {!proto.cybersourceserviceapi.PayerAuthenticationResponse} returns this
|
|
3169
|
+
*/
|
|
3170
|
+
proto.cybersourceserviceapi.PayerAuthenticationResponse.prototype.setCardvalidationid = function(value) {
|
|
3171
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
3172
|
+
};
|
|
3173
|
+
|
|
3174
|
+
|
|
3175
|
+
/**
|
|
3176
|
+
* optional ResponseCode responseCode = 4;
|
|
3177
|
+
* @return {?proto.cybersourceserviceapi.ResponseCode}
|
|
3178
|
+
*/
|
|
3179
|
+
proto.cybersourceserviceapi.PayerAuthenticationResponse.prototype.getResponsecode = function() {
|
|
3180
|
+
return /** @type{?proto.cybersourceserviceapi.ResponseCode} */ (
|
|
3181
|
+
jspb.Message.getWrapperField(this, proto.cybersourceserviceapi.ResponseCode, 4));
|
|
3182
|
+
};
|
|
3183
|
+
|
|
3184
|
+
|
|
3185
|
+
/**
|
|
3186
|
+
* @param {?proto.cybersourceserviceapi.ResponseCode|undefined} value
|
|
3187
|
+
* @return {!proto.cybersourceserviceapi.PayerAuthenticationResponse} returns this
|
|
3188
|
+
*/
|
|
3189
|
+
proto.cybersourceserviceapi.PayerAuthenticationResponse.prototype.setResponsecode = function(value) {
|
|
3190
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
3191
|
+
};
|
|
3192
|
+
|
|
3193
|
+
|
|
3194
|
+
/**
|
|
3195
|
+
* Clears the message field making it undefined.
|
|
3196
|
+
* @return {!proto.cybersourceserviceapi.PayerAuthenticationResponse} returns this
|
|
3197
|
+
*/
|
|
3198
|
+
proto.cybersourceserviceapi.PayerAuthenticationResponse.prototype.clearResponsecode = function() {
|
|
3199
|
+
return this.setResponsecode(undefined);
|
|
3200
|
+
};
|
|
3201
|
+
|
|
3202
|
+
|
|
3203
|
+
/**
|
|
3204
|
+
* Returns whether this field is set.
|
|
3205
|
+
* @return {boolean}
|
|
3206
|
+
*/
|
|
3207
|
+
proto.cybersourceserviceapi.PayerAuthenticationResponse.prototype.hasResponsecode = function() {
|
|
3208
|
+
return jspb.Message.getField(this, 4) != null;
|
|
3209
|
+
};
|
|
3210
|
+
|
|
3211
|
+
|
|
3212
|
+
|
|
3213
|
+
|
|
3214
|
+
|
|
2668
3215
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2669
3216
|
/**
|
|
2670
3217
|
* Creates an object representation of this proto.
|