@sniipwebmaster/payment-methods-client-grpcweb 0.2.283 → 0.2.303

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.
@@ -412,6 +412,62 @@ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseC
412
412
  };
413
413
 
414
414
 
415
+ /**
416
+ * @const
417
+ * @type {!grpc.web.AbstractClientBase.MethodInfo<
418
+ * !proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest,
419
+ * !proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse>}
420
+ */
421
+ const methodInfo_SniipPaymentMethodsServiceAPIService_GetCreditCardForPayment = new grpc.web.AbstractClientBase.MethodInfo(
422
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse,
423
+ /** @param {!proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest} request */
424
+ function(request) {
425
+ return request.serializeBinary();
426
+ },
427
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse.deserializeBinary
428
+ );
429
+
430
+
431
+ /**
432
+ * @param {!proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest} request The
433
+ * request proto
434
+ * @param {!Object<string, string>} metadata User defined
435
+ * call metadata
436
+ * @param {function(?grpc.web.Error, ?proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse)}
437
+ * callback The callback function(error, response)
438
+ * @return {!grpc.web.ClientReadableStream<!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse>|undefined}
439
+ * The XHR Node Readable Stream
440
+ */
441
+ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServiceClient.prototype.getCreditCardForPayment =
442
+ function(request, metadata, callback) {
443
+ return this.client_.rpcCall(this.hostname_ +
444
+ '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/GetCreditCardForPayment',
445
+ request,
446
+ metadata,
447
+ methodInfo_SniipPaymentMethodsServiceAPIService_GetCreditCardForPayment,
448
+ callback);
449
+ };
450
+
451
+
452
+ /**
453
+ * @param {!proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest} request The
454
+ * request proto
455
+ * @param {!Object<string, string>} metadata User defined
456
+ * call metadata
457
+ * @return {!Promise<!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse>}
458
+ * The XHR Node Readable Stream
459
+ */
460
+ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseClient.prototype.getCreditCardForPayment =
461
+ function(request, metadata) {
462
+ return new Promise((resolve, reject) => {
463
+ this.delegateClient_.getCreditCardForPayment(
464
+ request, metadata, (error, response) => {
465
+ error ? reject(error) : resolve(response);
466
+ });
467
+ });
468
+ };
469
+
470
+
415
471
  /**
416
472
  * @const
417
473
  * @type {!grpc.web.AbstractClientBase.MethodInfo<
@@ -25,9 +25,12 @@ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.BankAccount', null, globa
25
25
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.CreditCard', null, global);
26
26
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest', null, global);
27
27
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest', null, global);
28
+ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest', null, global);
29
+ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse', null, global);
28
30
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.CreditCardRequest', null, global);
29
31
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest', null, global);
30
32
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest', null, global);
33
+ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest', null, global);
31
34
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest', null, global);
32
35
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest', null, global);
33
36
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse', null, global);
@@ -2598,6 +2601,405 @@ proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.prototype.set
2598
2601
 
2599
2602
 
2600
2603
 
2604
+ /**
2605
+ * Generated by JsPbCodeGenerator.
2606
+ * @param {Array=} opt_data Optional initial data array, typically from a
2607
+ * server response, or constructed directly in Javascript. The array is used
2608
+ * in place and becomes part of the constructed object. It is not cloned.
2609
+ * If no data is provided, the constructed object will be empty, but still
2610
+ * valid.
2611
+ * @extends {jspb.Message}
2612
+ * @constructor
2613
+ */
2614
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest = function(opt_data) {
2615
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2616
+ };
2617
+ goog.inherits(proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest, jspb.Message);
2618
+ if (goog.DEBUG && !COMPILED) {
2619
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.displayName = 'proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest';
2620
+ }
2621
+
2622
+
2623
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2624
+ /**
2625
+ * Creates an object representation of this proto suitable for use in Soy templates.
2626
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2627
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2628
+ * For the list of reserved names please see:
2629
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
2630
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
2631
+ * for transitional soy proto support: http://goto/soy-param-migration
2632
+ * @return {!Object}
2633
+ */
2634
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.toObject = function(opt_includeInstance) {
2635
+ return proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.toObject(opt_includeInstance, this);
2636
+ };
2637
+
2638
+
2639
+ /**
2640
+ * Static version of the {@see toObject} method.
2641
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
2642
+ * instance for transitional soy proto support:
2643
+ * http://goto/soy-param-migration
2644
+ * @param {!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest} msg The msg instance to transform.
2645
+ * @return {!Object}
2646
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2647
+ */
2648
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.toObject = function(includeInstance, msg) {
2649
+ var f, obj = {
2650
+ creditcardid: jspb.Message.getFieldWithDefault(msg, 1, 0),
2651
+ accesstoken: jspb.Message.getFieldWithDefault(msg, 2, ""),
2652
+ userid: jspb.Message.getFieldWithDefault(msg, 3, 0)
2653
+ };
2654
+
2655
+ if (includeInstance) {
2656
+ obj.$jspbMessageInstance = msg;
2657
+ }
2658
+ return obj;
2659
+ };
2660
+ }
2661
+
2662
+
2663
+ /**
2664
+ * Deserializes binary data (in protobuf wire format).
2665
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2666
+ * @return {!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest}
2667
+ */
2668
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.deserializeBinary = function(bytes) {
2669
+ var reader = new jspb.BinaryReader(bytes);
2670
+ var msg = new proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest;
2671
+ return proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.deserializeBinaryFromReader(msg, reader);
2672
+ };
2673
+
2674
+
2675
+ /**
2676
+ * Deserializes binary data (in protobuf wire format) from the
2677
+ * given reader into the given message object.
2678
+ * @param {!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest} msg The message object to deserialize into.
2679
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2680
+ * @return {!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest}
2681
+ */
2682
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.deserializeBinaryFromReader = function(msg, reader) {
2683
+ while (reader.nextField()) {
2684
+ if (reader.isEndGroup()) {
2685
+ break;
2686
+ }
2687
+ var field = reader.getFieldNumber();
2688
+ switch (field) {
2689
+ case 1:
2690
+ var value = /** @type {number} */ (reader.readInt64());
2691
+ msg.setCreditcardid(value);
2692
+ break;
2693
+ case 2:
2694
+ var value = /** @type {string} */ (reader.readString());
2695
+ msg.setAccesstoken(value);
2696
+ break;
2697
+ case 3:
2698
+ var value = /** @type {number} */ (reader.readInt64());
2699
+ msg.setUserid(value);
2700
+ break;
2701
+ default:
2702
+ reader.skipField();
2703
+ break;
2704
+ }
2705
+ }
2706
+ return msg;
2707
+ };
2708
+
2709
+
2710
+ /**
2711
+ * Serializes the message to binary data (in protobuf wire format).
2712
+ * @return {!Uint8Array}
2713
+ */
2714
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.serializeBinary = function() {
2715
+ var writer = new jspb.BinaryWriter();
2716
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.serializeBinaryToWriter(this, writer);
2717
+ return writer.getResultBuffer();
2718
+ };
2719
+
2720
+
2721
+ /**
2722
+ * Serializes the given message to binary data (in protobuf wire
2723
+ * format), writing to the given BinaryWriter.
2724
+ * @param {!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest} message
2725
+ * @param {!jspb.BinaryWriter} writer
2726
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2727
+ */
2728
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.serializeBinaryToWriter = function(message, writer) {
2729
+ var f = undefined;
2730
+ f = message.getCreditcardid();
2731
+ if (f !== 0) {
2732
+ writer.writeInt64(
2733
+ 1,
2734
+ f
2735
+ );
2736
+ }
2737
+ f = message.getAccesstoken();
2738
+ if (f.length > 0) {
2739
+ writer.writeString(
2740
+ 2,
2741
+ f
2742
+ );
2743
+ }
2744
+ f = message.getUserid();
2745
+ if (f !== 0) {
2746
+ writer.writeInt64(
2747
+ 3,
2748
+ f
2749
+ );
2750
+ }
2751
+ };
2752
+
2753
+
2754
+ /**
2755
+ * optional int64 creditCardId = 1;
2756
+ * @return {number}
2757
+ */
2758
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.getCreditcardid = function() {
2759
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2760
+ };
2761
+
2762
+
2763
+ /** @param {number} value */
2764
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.setCreditcardid = function(value) {
2765
+ jspb.Message.setProto3IntField(this, 1, value);
2766
+ };
2767
+
2768
+
2769
+ /**
2770
+ * optional string accessToken = 2;
2771
+ * @return {string}
2772
+ */
2773
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.getAccesstoken = function() {
2774
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2775
+ };
2776
+
2777
+
2778
+ /** @param {string} value */
2779
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.setAccesstoken = function(value) {
2780
+ jspb.Message.setProto3StringField(this, 2, value);
2781
+ };
2782
+
2783
+
2784
+ /**
2785
+ * optional int64 userId = 3;
2786
+ * @return {number}
2787
+ */
2788
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.getUserid = function() {
2789
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2790
+ };
2791
+
2792
+
2793
+ /** @param {number} value */
2794
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.setUserid = function(value) {
2795
+ jspb.Message.setProto3IntField(this, 3, value);
2796
+ };
2797
+
2798
+
2799
+
2800
+ /**
2801
+ * Generated by JsPbCodeGenerator.
2802
+ * @param {Array=} opt_data Optional initial data array, typically from a
2803
+ * server response, or constructed directly in Javascript. The array is used
2804
+ * in place and becomes part of the constructed object. It is not cloned.
2805
+ * If no data is provided, the constructed object will be empty, but still
2806
+ * valid.
2807
+ * @extends {jspb.Message}
2808
+ * @constructor
2809
+ */
2810
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse = function(opt_data) {
2811
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2812
+ };
2813
+ goog.inherits(proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse, jspb.Message);
2814
+ if (goog.DEBUG && !COMPILED) {
2815
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse.displayName = 'proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse';
2816
+ }
2817
+
2818
+
2819
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2820
+ /**
2821
+ * Creates an object representation of this proto suitable for use in Soy templates.
2822
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2823
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2824
+ * For the list of reserved names please see:
2825
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
2826
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
2827
+ * for transitional soy proto support: http://goto/soy-param-migration
2828
+ * @return {!Object}
2829
+ */
2830
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse.prototype.toObject = function(opt_includeInstance) {
2831
+ return proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse.toObject(opt_includeInstance, this);
2832
+ };
2833
+
2834
+
2835
+ /**
2836
+ * Static version of the {@see toObject} method.
2837
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
2838
+ * instance for transitional soy proto support:
2839
+ * http://goto/soy-param-migration
2840
+ * @param {!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse} msg The msg instance to transform.
2841
+ * @return {!Object}
2842
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2843
+ */
2844
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse.toObject = function(includeInstance, msg) {
2845
+ var f, obj = {
2846
+ responsecode: (f = msg.getResponsecode()) && proto.sniippaymentmethodsserviceapi.ResponseCode.toObject(includeInstance, f),
2847
+ creditcard: (f = msg.getCreditcard()) && proto.sniippaymentmethodsserviceapi.CreditCard.toObject(includeInstance, f)
2848
+ };
2849
+
2850
+ if (includeInstance) {
2851
+ obj.$jspbMessageInstance = msg;
2852
+ }
2853
+ return obj;
2854
+ };
2855
+ }
2856
+
2857
+
2858
+ /**
2859
+ * Deserializes binary data (in protobuf wire format).
2860
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2861
+ * @return {!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse}
2862
+ */
2863
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse.deserializeBinary = function(bytes) {
2864
+ var reader = new jspb.BinaryReader(bytes);
2865
+ var msg = new proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse;
2866
+ return proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse.deserializeBinaryFromReader(msg, reader);
2867
+ };
2868
+
2869
+
2870
+ /**
2871
+ * Deserializes binary data (in protobuf wire format) from the
2872
+ * given reader into the given message object.
2873
+ * @param {!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse} msg The message object to deserialize into.
2874
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2875
+ * @return {!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse}
2876
+ */
2877
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse.deserializeBinaryFromReader = function(msg, reader) {
2878
+ while (reader.nextField()) {
2879
+ if (reader.isEndGroup()) {
2880
+ break;
2881
+ }
2882
+ var field = reader.getFieldNumber();
2883
+ switch (field) {
2884
+ case 1:
2885
+ var value = new proto.sniippaymentmethodsserviceapi.ResponseCode;
2886
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.ResponseCode.deserializeBinaryFromReader);
2887
+ msg.setResponsecode(value);
2888
+ break;
2889
+ case 2:
2890
+ var value = new proto.sniippaymentmethodsserviceapi.CreditCard;
2891
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.CreditCard.deserializeBinaryFromReader);
2892
+ msg.setCreditcard(value);
2893
+ break;
2894
+ default:
2895
+ reader.skipField();
2896
+ break;
2897
+ }
2898
+ }
2899
+ return msg;
2900
+ };
2901
+
2902
+
2903
+ /**
2904
+ * Serializes the message to binary data (in protobuf wire format).
2905
+ * @return {!Uint8Array}
2906
+ */
2907
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse.prototype.serializeBinary = function() {
2908
+ var writer = new jspb.BinaryWriter();
2909
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse.serializeBinaryToWriter(this, writer);
2910
+ return writer.getResultBuffer();
2911
+ };
2912
+
2913
+
2914
+ /**
2915
+ * Serializes the given message to binary data (in protobuf wire
2916
+ * format), writing to the given BinaryWriter.
2917
+ * @param {!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse} message
2918
+ * @param {!jspb.BinaryWriter} writer
2919
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2920
+ */
2921
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse.serializeBinaryToWriter = function(message, writer) {
2922
+ var f = undefined;
2923
+ f = message.getResponsecode();
2924
+ if (f != null) {
2925
+ writer.writeMessage(
2926
+ 1,
2927
+ f,
2928
+ proto.sniippaymentmethodsserviceapi.ResponseCode.serializeBinaryToWriter
2929
+ );
2930
+ }
2931
+ f = message.getCreditcard();
2932
+ if (f != null) {
2933
+ writer.writeMessage(
2934
+ 2,
2935
+ f,
2936
+ proto.sniippaymentmethodsserviceapi.CreditCard.serializeBinaryToWriter
2937
+ );
2938
+ }
2939
+ };
2940
+
2941
+
2942
+ /**
2943
+ * optional ResponseCode responseCode = 1;
2944
+ * @return {?proto.sniippaymentmethodsserviceapi.ResponseCode}
2945
+ */
2946
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse.prototype.getResponsecode = function() {
2947
+ return /** @type{?proto.sniippaymentmethodsserviceapi.ResponseCode} */ (
2948
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.ResponseCode, 1));
2949
+ };
2950
+
2951
+
2952
+ /** @param {?proto.sniippaymentmethodsserviceapi.ResponseCode|undefined} value */
2953
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse.prototype.setResponsecode = function(value) {
2954
+ jspb.Message.setWrapperField(this, 1, value);
2955
+ };
2956
+
2957
+
2958
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse.prototype.clearResponsecode = function() {
2959
+ this.setResponsecode(undefined);
2960
+ };
2961
+
2962
+
2963
+ /**
2964
+ * Returns whether this field is set.
2965
+ * @return {!boolean}
2966
+ */
2967
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse.prototype.hasResponsecode = function() {
2968
+ return jspb.Message.getField(this, 1) != null;
2969
+ };
2970
+
2971
+
2972
+ /**
2973
+ * optional CreditCard creditCard = 2;
2974
+ * @return {?proto.sniippaymentmethodsserviceapi.CreditCard}
2975
+ */
2976
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse.prototype.getCreditcard = function() {
2977
+ return /** @type{?proto.sniippaymentmethodsserviceapi.CreditCard} */ (
2978
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.CreditCard, 2));
2979
+ };
2980
+
2981
+
2982
+ /** @param {?proto.sniippaymentmethodsserviceapi.CreditCard|undefined} value */
2983
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse.prototype.setCreditcard = function(value) {
2984
+ jspb.Message.setWrapperField(this, 2, value);
2985
+ };
2986
+
2987
+
2988
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse.prototype.clearCreditcard = function() {
2989
+ this.setCreditcard(undefined);
2990
+ };
2991
+
2992
+
2993
+ /**
2994
+ * Returns whether this field is set.
2995
+ * @return {!boolean}
2996
+ */
2997
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse.prototype.hasCreditcard = function() {
2998
+ return jspb.Message.getField(this, 2) != null;
2999
+ };
3000
+
3001
+
3002
+
2601
3003
  /**
2602
3004
  * Generated by JsPbCodeGenerator.
2603
3005
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -3247,6 +3649,165 @@ proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.prototype.h
3247
3649
 
3248
3650
 
3249
3651
 
3652
+ /**
3653
+ * Generated by JsPbCodeGenerator.
3654
+ * @param {Array=} opt_data Optional initial data array, typically from a
3655
+ * server response, or constructed directly in Javascript. The array is used
3656
+ * in place and becomes part of the constructed object. It is not cloned.
3657
+ * If no data is provided, the constructed object will be empty, but still
3658
+ * valid.
3659
+ * @extends {jspb.Message}
3660
+ * @constructor
3661
+ */
3662
+ proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest = function(opt_data) {
3663
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3664
+ };
3665
+ goog.inherits(proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest, jspb.Message);
3666
+ if (goog.DEBUG && !COMPILED) {
3667
+ proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest.displayName = 'proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest';
3668
+ }
3669
+
3670
+
3671
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3672
+ /**
3673
+ * Creates an object representation of this proto suitable for use in Soy templates.
3674
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3675
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3676
+ * For the list of reserved names please see:
3677
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
3678
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
3679
+ * for transitional soy proto support: http://goto/soy-param-migration
3680
+ * @return {!Object}
3681
+ */
3682
+ proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest.prototype.toObject = function(opt_includeInstance) {
3683
+ return proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest.toObject(opt_includeInstance, this);
3684
+ };
3685
+
3686
+
3687
+ /**
3688
+ * Static version of the {@see toObject} method.
3689
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
3690
+ * instance for transitional soy proto support:
3691
+ * http://goto/soy-param-migration
3692
+ * @param {!proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest} msg The msg instance to transform.
3693
+ * @return {!Object}
3694
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3695
+ */
3696
+ proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest.toObject = function(includeInstance, msg) {
3697
+ var f, obj = {
3698
+ data: (f = msg.getData()) && proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.toObject(includeInstance, f)
3699
+ };
3700
+
3701
+ if (includeInstance) {
3702
+ obj.$jspbMessageInstance = msg;
3703
+ }
3704
+ return obj;
3705
+ };
3706
+ }
3707
+
3708
+
3709
+ /**
3710
+ * Deserializes binary data (in protobuf wire format).
3711
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3712
+ * @return {!proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest}
3713
+ */
3714
+ proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest.deserializeBinary = function(bytes) {
3715
+ var reader = new jspb.BinaryReader(bytes);
3716
+ var msg = new proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest;
3717
+ return proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest.deserializeBinaryFromReader(msg, reader);
3718
+ };
3719
+
3720
+
3721
+ /**
3722
+ * Deserializes binary data (in protobuf wire format) from the
3723
+ * given reader into the given message object.
3724
+ * @param {!proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest} msg The message object to deserialize into.
3725
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3726
+ * @return {!proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest}
3727
+ */
3728
+ proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest.deserializeBinaryFromReader = function(msg, reader) {
3729
+ while (reader.nextField()) {
3730
+ if (reader.isEndGroup()) {
3731
+ break;
3732
+ }
3733
+ var field = reader.getFieldNumber();
3734
+ switch (field) {
3735
+ case 1:
3736
+ var value = new proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest;
3737
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.deserializeBinaryFromReader);
3738
+ msg.setData(value);
3739
+ break;
3740
+ default:
3741
+ reader.skipField();
3742
+ break;
3743
+ }
3744
+ }
3745
+ return msg;
3746
+ };
3747
+
3748
+
3749
+ /**
3750
+ * Serializes the message to binary data (in protobuf wire format).
3751
+ * @return {!Uint8Array}
3752
+ */
3753
+ proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest.prototype.serializeBinary = function() {
3754
+ var writer = new jspb.BinaryWriter();
3755
+ proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest.serializeBinaryToWriter(this, writer);
3756
+ return writer.getResultBuffer();
3757
+ };
3758
+
3759
+
3760
+ /**
3761
+ * Serializes the given message to binary data (in protobuf wire
3762
+ * format), writing to the given BinaryWriter.
3763
+ * @param {!proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest} message
3764
+ * @param {!jspb.BinaryWriter} writer
3765
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3766
+ */
3767
+ proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest.serializeBinaryToWriter = function(message, writer) {
3768
+ var f = undefined;
3769
+ f = message.getData();
3770
+ if (f != null) {
3771
+ writer.writeMessage(
3772
+ 1,
3773
+ f,
3774
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.serializeBinaryToWriter
3775
+ );
3776
+ }
3777
+ };
3778
+
3779
+
3780
+ /**
3781
+ * optional CreditCardForPaymentRequest data = 1;
3782
+ * @return {?proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest}
3783
+ */
3784
+ proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest.prototype.getData = function() {
3785
+ return /** @type{?proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest} */ (
3786
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest, 1));
3787
+ };
3788
+
3789
+
3790
+ /** @param {?proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest|undefined} value */
3791
+ proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest.prototype.setData = function(value) {
3792
+ jspb.Message.setWrapperField(this, 1, value);
3793
+ };
3794
+
3795
+
3796
+ proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest.prototype.clearData = function() {
3797
+ this.setData(undefined);
3798
+ };
3799
+
3800
+
3801
+ /**
3802
+ * Returns whether this field is set.
3803
+ * @return {!boolean}
3804
+ */
3805
+ proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest.prototype.hasData = function() {
3806
+ return jspb.Message.getField(this, 1) != null;
3807
+ };
3808
+
3809
+
3810
+
3250
3811
  /**
3251
3812
  * Generated by JsPbCodeGenerator.
3252
3813
  * @param {Array=} opt_data Optional initial data array, typically from a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/payment-methods-client-grpcweb",
3
- "version": "0.2.283",
3
+ "version": "0.2.303",
4
4
  "description": "payment-methods-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",