@sniipwebmaster/payment-methods-client-grpcweb 0.2.267 → 0.2.291

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.
@@ -25,18 +25,21 @@ 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);
31
- goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetCreditCardRequest', null, global);
32
- goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetCreditCardResponse', null, global);
33
+ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest', null, global);
34
+ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest', null, global);
33
35
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest', null, global);
34
36
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse', null, global);
35
37
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest', null, global);
36
- goog.exportSymbol('proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest', null, global);
37
38
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.MaskedCreditCard', null, global);
38
39
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethod', null, global);
39
40
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest', null, global);
41
+ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest', null, global);
42
+ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse', null, global);
40
43
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethodResponse', null, global);
41
44
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethodsResponse', null, global);
42
45
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.RemovePaymentMethodRequest', null, global);
@@ -2608,12 +2611,12 @@ proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.prototype.set
2608
2611
  * @extends {jspb.Message}
2609
2612
  * @constructor
2610
2613
  */
2611
- proto.sniippaymentmethodsserviceapi.CreditCardRequest = function(opt_data) {
2614
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest = function(opt_data) {
2612
2615
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2613
2616
  };
2614
- goog.inherits(proto.sniippaymentmethodsserviceapi.CreditCardRequest, jspb.Message);
2617
+ goog.inherits(proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest, jspb.Message);
2615
2618
  if (goog.DEBUG && !COMPILED) {
2616
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.displayName = 'proto.sniippaymentmethodsserviceapi.CreditCardRequest';
2619
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.displayName = 'proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest';
2617
2620
  }
2618
2621
 
2619
2622
 
@@ -2628,8 +2631,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
2628
2631
  * for transitional soy proto support: http://goto/soy-param-migration
2629
2632
  * @return {!Object}
2630
2633
  */
2631
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.toObject = function(opt_includeInstance) {
2632
- return proto.sniippaymentmethodsserviceapi.CreditCardRequest.toObject(opt_includeInstance, this);
2634
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.toObject = function(opt_includeInstance) {
2635
+ return proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.toObject(opt_includeInstance, this);
2633
2636
  };
2634
2637
 
2635
2638
 
@@ -2638,20 +2641,15 @@ proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.toObject = funct
2638
2641
  * @param {boolean|undefined} includeInstance Whether to include the JSPB
2639
2642
  * instance for transitional soy proto support:
2640
2643
  * http://goto/soy-param-migration
2641
- * @param {!proto.sniippaymentmethodsserviceapi.CreditCardRequest} msg The msg instance to transform.
2644
+ * @param {!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest} msg The msg instance to transform.
2642
2645
  * @return {!Object}
2643
2646
  * @suppress {unusedLocalVariables} f is only used for nested messages
2644
2647
  */
2645
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.toObject = function(includeInstance, msg) {
2648
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.toObject = function(includeInstance, msg) {
2646
2649
  var f, obj = {
2647
- nameoncard: jspb.Message.getFieldWithDefault(msg, 1, ""),
2648
- cardnumber: jspb.Message.getFieldWithDefault(msg, 2, ""),
2649
- cvv: jspb.Message.getFieldWithDefault(msg, 3, ""),
2650
- cardtype: jspb.Message.getFieldWithDefault(msg, 4, ""),
2651
- monthexpiry: jspb.Message.getFieldWithDefault(msg, 5, 0),
2652
- yearexpiry: jspb.Message.getFieldWithDefault(msg, 6, 0),
2653
- nickname: jspb.Message.getFieldWithDefault(msg, 7, ""),
2654
- accesstoken: jspb.Message.getFieldWithDefault(msg, 8, "")
2650
+ creditcardid: jspb.Message.getFieldWithDefault(msg, 1, 0),
2651
+ accesstoken: jspb.Message.getFieldWithDefault(msg, 2, ""),
2652
+ userid: jspb.Message.getFieldWithDefault(msg, 3, 0)
2655
2653
  };
2656
2654
 
2657
2655
  if (includeInstance) {
@@ -2665,23 +2663,23 @@ proto.sniippaymentmethodsserviceapi.CreditCardRequest.toObject = function(includ
2665
2663
  /**
2666
2664
  * Deserializes binary data (in protobuf wire format).
2667
2665
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
2668
- * @return {!proto.sniippaymentmethodsserviceapi.CreditCardRequest}
2666
+ * @return {!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest}
2669
2667
  */
2670
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.deserializeBinary = function(bytes) {
2668
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.deserializeBinary = function(bytes) {
2671
2669
  var reader = new jspb.BinaryReader(bytes);
2672
- var msg = new proto.sniippaymentmethodsserviceapi.CreditCardRequest;
2673
- return proto.sniippaymentmethodsserviceapi.CreditCardRequest.deserializeBinaryFromReader(msg, reader);
2670
+ var msg = new proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest;
2671
+ return proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.deserializeBinaryFromReader(msg, reader);
2674
2672
  };
2675
2673
 
2676
2674
 
2677
2675
  /**
2678
2676
  * Deserializes binary data (in protobuf wire format) from the
2679
2677
  * given reader into the given message object.
2680
- * @param {!proto.sniippaymentmethodsserviceapi.CreditCardRequest} msg The message object to deserialize into.
2678
+ * @param {!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest} msg The message object to deserialize into.
2681
2679
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2682
- * @return {!proto.sniippaymentmethodsserviceapi.CreditCardRequest}
2680
+ * @return {!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest}
2683
2681
  */
2684
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.deserializeBinaryFromReader = function(msg, reader) {
2682
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.deserializeBinaryFromReader = function(msg, reader) {
2685
2683
  while (reader.nextField()) {
2686
2684
  if (reader.isEndGroup()) {
2687
2685
  break;
@@ -2689,36 +2687,16 @@ proto.sniippaymentmethodsserviceapi.CreditCardRequest.deserializeBinaryFromReade
2689
2687
  var field = reader.getFieldNumber();
2690
2688
  switch (field) {
2691
2689
  case 1:
2692
- var value = /** @type {string} */ (reader.readString());
2693
- msg.setNameoncard(value);
2690
+ var value = /** @type {number} */ (reader.readInt64());
2691
+ msg.setCreditcardid(value);
2694
2692
  break;
2695
2693
  case 2:
2696
2694
  var value = /** @type {string} */ (reader.readString());
2697
- msg.setCardnumber(value);
2695
+ msg.setAccesstoken(value);
2698
2696
  break;
2699
2697
  case 3:
2700
- var value = /** @type {string} */ (reader.readString());
2701
- msg.setCvv(value);
2702
- break;
2703
- case 4:
2704
- var value = /** @type {string} */ (reader.readString());
2705
- msg.setCardtype(value);
2706
- break;
2707
- case 5:
2708
- var value = /** @type {number} */ (reader.readInt32());
2709
- msg.setMonthexpiry(value);
2710
- break;
2711
- case 6:
2712
- var value = /** @type {number} */ (reader.readInt32());
2713
- msg.setYearexpiry(value);
2714
- break;
2715
- case 7:
2716
- var value = /** @type {string} */ (reader.readString());
2717
- msg.setNickname(value);
2718
- break;
2719
- case 8:
2720
- var value = /** @type {string} */ (reader.readString());
2721
- msg.setAccesstoken(value);
2698
+ var value = /** @type {number} */ (reader.readInt64());
2699
+ msg.setUserid(value);
2722
2700
  break;
2723
2701
  default:
2724
2702
  reader.skipField();
@@ -2733,9 +2711,9 @@ proto.sniippaymentmethodsserviceapi.CreditCardRequest.deserializeBinaryFromReade
2733
2711
  * Serializes the message to binary data (in protobuf wire format).
2734
2712
  * @return {!Uint8Array}
2735
2713
  */
2736
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.serializeBinary = function() {
2714
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.serializeBinary = function() {
2737
2715
  var writer = new jspb.BinaryWriter();
2738
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.serializeBinaryToWriter(this, writer);
2716
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.serializeBinaryToWriter(this, writer);
2739
2717
  return writer.getResultBuffer();
2740
2718
  };
2741
2719
 
@@ -2743,65 +2721,30 @@ proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.serializeBinary
2743
2721
  /**
2744
2722
  * Serializes the given message to binary data (in protobuf wire
2745
2723
  * format), writing to the given BinaryWriter.
2746
- * @param {!proto.sniippaymentmethodsserviceapi.CreditCardRequest} message
2724
+ * @param {!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest} message
2747
2725
  * @param {!jspb.BinaryWriter} writer
2748
2726
  * @suppress {unusedLocalVariables} f is only used for nested messages
2749
2727
  */
2750
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.serializeBinaryToWriter = function(message, writer) {
2728
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.serializeBinaryToWriter = function(message, writer) {
2751
2729
  var f = undefined;
2752
- f = message.getNameoncard();
2753
- if (f.length > 0) {
2754
- writer.writeString(
2730
+ f = message.getCreditcardid();
2731
+ if (f !== 0) {
2732
+ writer.writeInt64(
2755
2733
  1,
2756
2734
  f
2757
2735
  );
2758
2736
  }
2759
- f = message.getCardnumber();
2737
+ f = message.getAccesstoken();
2760
2738
  if (f.length > 0) {
2761
2739
  writer.writeString(
2762
2740
  2,
2763
2741
  f
2764
2742
  );
2765
2743
  }
2766
- f = message.getCvv();
2767
- if (f.length > 0) {
2768
- writer.writeString(
2769
- 3,
2770
- f
2771
- );
2772
- }
2773
- f = message.getCardtype();
2774
- if (f.length > 0) {
2775
- writer.writeString(
2776
- 4,
2777
- f
2778
- );
2779
- }
2780
- f = message.getMonthexpiry();
2781
- if (f !== 0) {
2782
- writer.writeInt32(
2783
- 5,
2784
- f
2785
- );
2786
- }
2787
- f = message.getYearexpiry();
2744
+ f = message.getUserid();
2788
2745
  if (f !== 0) {
2789
- writer.writeInt32(
2790
- 6,
2791
- f
2792
- );
2793
- }
2794
- f = message.getNickname();
2795
- if (f.length > 0) {
2796
- writer.writeString(
2797
- 7,
2798
- f
2799
- );
2800
- }
2801
- f = message.getAccesstoken();
2802
- if (f.length > 0) {
2803
- writer.writeString(
2804
- 8,
2746
+ writer.writeInt64(
2747
+ 3,
2805
2748
  f
2806
2749
  );
2807
2750
  }
@@ -2809,122 +2752,47 @@ proto.sniippaymentmethodsserviceapi.CreditCardRequest.serializeBinaryToWriter =
2809
2752
 
2810
2753
 
2811
2754
  /**
2812
- * optional string nameOnCard = 1;
2813
- * @return {string}
2755
+ * optional int64 creditCardId = 1;
2756
+ * @return {number}
2814
2757
  */
2815
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.getNameoncard = function() {
2816
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2758
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.getCreditcardid = function() {
2759
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2817
2760
  };
2818
2761
 
2819
2762
 
2820
- /** @param {string} value */
2821
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.setNameoncard = function(value) {
2822
- jspb.Message.setProto3StringField(this, 1, value);
2763
+ /** @param {number} value */
2764
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.setCreditcardid = function(value) {
2765
+ jspb.Message.setProto3IntField(this, 1, value);
2823
2766
  };
2824
2767
 
2825
2768
 
2826
2769
  /**
2827
- * optional string cardNumber = 2;
2770
+ * optional string accessToken = 2;
2828
2771
  * @return {string}
2829
2772
  */
2830
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.getCardnumber = function() {
2773
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.getAccesstoken = function() {
2831
2774
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2832
2775
  };
2833
2776
 
2834
2777
 
2835
2778
  /** @param {string} value */
2836
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.setCardnumber = function(value) {
2779
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.setAccesstoken = function(value) {
2837
2780
  jspb.Message.setProto3StringField(this, 2, value);
2838
2781
  };
2839
2782
 
2840
2783
 
2841
2784
  /**
2842
- * optional string cvv = 3;
2843
- * @return {string}
2844
- */
2845
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.getCvv = function() {
2846
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2847
- };
2848
-
2849
-
2850
- /** @param {string} value */
2851
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.setCvv = function(value) {
2852
- jspb.Message.setProto3StringField(this, 3, value);
2853
- };
2854
-
2855
-
2856
- /**
2857
- * optional string cardType = 4;
2858
- * @return {string}
2859
- */
2860
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.getCardtype = function() {
2861
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2862
- };
2863
-
2864
-
2865
- /** @param {string} value */
2866
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.setCardtype = function(value) {
2867
- jspb.Message.setProto3StringField(this, 4, value);
2868
- };
2869
-
2870
-
2871
- /**
2872
- * optional int32 monthExpiry = 5;
2873
- * @return {number}
2874
- */
2875
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.getMonthexpiry = function() {
2876
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
2877
- };
2878
-
2879
-
2880
- /** @param {number} value */
2881
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.setMonthexpiry = function(value) {
2882
- jspb.Message.setProto3IntField(this, 5, value);
2883
- };
2884
-
2885
-
2886
- /**
2887
- * optional int32 yearExpiry = 6;
2785
+ * optional int64 userId = 3;
2888
2786
  * @return {number}
2889
2787
  */
2890
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.getYearexpiry = function() {
2891
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
2788
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.getUserid = function() {
2789
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2892
2790
  };
2893
2791
 
2894
2792
 
2895
2793
  /** @param {number} value */
2896
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.setYearexpiry = function(value) {
2897
- jspb.Message.setProto3IntField(this, 6, value);
2898
- };
2899
-
2900
-
2901
- /**
2902
- * optional string nickname = 7;
2903
- * @return {string}
2904
- */
2905
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.getNickname = function() {
2906
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
2907
- };
2908
-
2909
-
2910
- /** @param {string} value */
2911
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.setNickname = function(value) {
2912
- jspb.Message.setProto3StringField(this, 7, value);
2913
- };
2914
-
2915
-
2916
- /**
2917
- * optional string accessToken = 8;
2918
- * @return {string}
2919
- */
2920
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.getAccesstoken = function() {
2921
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
2922
- };
2923
-
2924
-
2925
- /** @param {string} value */
2926
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.setAccesstoken = function(value) {
2927
- jspb.Message.setProto3StringField(this, 8, value);
2794
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.setUserid = function(value) {
2795
+ jspb.Message.setProto3IntField(this, 3, value);
2928
2796
  };
2929
2797
 
2930
2798
 
@@ -2939,12 +2807,12 @@ proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.setAccesstoken =
2939
2807
  * @extends {jspb.Message}
2940
2808
  * @constructor
2941
2809
  */
2942
- proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest = function(opt_data) {
2810
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse = function(opt_data) {
2943
2811
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2944
2812
  };
2945
- goog.inherits(proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest, jspb.Message);
2813
+ goog.inherits(proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse, jspb.Message);
2946
2814
  if (goog.DEBUG && !COMPILED) {
2947
- proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.displayName = 'proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest';
2815
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse.displayName = 'proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse';
2948
2816
  }
2949
2817
 
2950
2818
 
@@ -2959,8 +2827,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
2959
2827
  * for transitional soy proto support: http://goto/soy-param-migration
2960
2828
  * @return {!Object}
2961
2829
  */
2962
- proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.prototype.toObject = function(opt_includeInstance) {
2963
- return proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.toObject(opt_includeInstance, this);
2830
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse.prototype.toObject = function(opt_includeInstance) {
2831
+ return proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse.toObject(opt_includeInstance, this);
2964
2832
  };
2965
2833
 
2966
2834
 
@@ -2969,13 +2837,14 @@ proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.prototype.toObject =
2969
2837
  * @param {boolean|undefined} includeInstance Whether to include the JSPB
2970
2838
  * instance for transitional soy proto support:
2971
2839
  * http://goto/soy-param-migration
2972
- * @param {!proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest} msg The msg instance to transform.
2840
+ * @param {!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse} msg The msg instance to transform.
2973
2841
  * @return {!Object}
2974
2842
  * @suppress {unusedLocalVariables} f is only used for nested messages
2975
2843
  */
2976
- proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.toObject = function(includeInstance, msg) {
2844
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse.toObject = function(includeInstance, msg) {
2977
2845
  var f, obj = {
2978
- data: (f = msg.getData()) && proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest.toObject(includeInstance, f)
2846
+ responsecode: (f = msg.getResponsecode()) && proto.sniippaymentmethodsserviceapi.ResponseCode.toObject(includeInstance, f),
2847
+ creditcard: (f = msg.getCreditcard()) && proto.sniippaymentmethodsserviceapi.CreditCard.toObject(includeInstance, f)
2979
2848
  };
2980
2849
 
2981
2850
  if (includeInstance) {
@@ -2989,23 +2858,23 @@ proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.toObject = function(
2989
2858
  /**
2990
2859
  * Deserializes binary data (in protobuf wire format).
2991
2860
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
2992
- * @return {!proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest}
2861
+ * @return {!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse}
2993
2862
  */
2994
- proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.deserializeBinary = function(bytes) {
2863
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse.deserializeBinary = function(bytes) {
2995
2864
  var reader = new jspb.BinaryReader(bytes);
2996
- var msg = new proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest;
2997
- return proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.deserializeBinaryFromReader(msg, reader);
2865
+ var msg = new proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse;
2866
+ return proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse.deserializeBinaryFromReader(msg, reader);
2998
2867
  };
2999
2868
 
3000
2869
 
3001
2870
  /**
3002
2871
  * Deserializes binary data (in protobuf wire format) from the
3003
2872
  * given reader into the given message object.
3004
- * @param {!proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest} msg The message object to deserialize into.
2873
+ * @param {!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse} msg The message object to deserialize into.
3005
2874
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3006
- * @return {!proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest}
2875
+ * @return {!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse}
3007
2876
  */
3008
- proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.deserializeBinaryFromReader = function(msg, reader) {
2877
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse.deserializeBinaryFromReader = function(msg, reader) {
3009
2878
  while (reader.nextField()) {
3010
2879
  if (reader.isEndGroup()) {
3011
2880
  break;
@@ -3013,9 +2882,14 @@ proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.deserializeBinaryFro
3013
2882
  var field = reader.getFieldNumber();
3014
2883
  switch (field) {
3015
2884
  case 1:
3016
- var value = new proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest;
3017
- reader.readMessage(value,proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest.deserializeBinaryFromReader);
3018
- msg.setData(value);
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);
3019
2893
  break;
3020
2894
  default:
3021
2895
  reader.skipField();
@@ -3030,9 +2904,9 @@ proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.deserializeBinaryFro
3030
2904
  * Serializes the message to binary data (in protobuf wire format).
3031
2905
  * @return {!Uint8Array}
3032
2906
  */
3033
- proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.prototype.serializeBinary = function() {
2907
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse.prototype.serializeBinary = function() {
3034
2908
  var writer = new jspb.BinaryWriter();
3035
- proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.serializeBinaryToWriter(this, writer);
2909
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse.serializeBinaryToWriter(this, writer);
3036
2910
  return writer.getResultBuffer();
3037
2911
  };
3038
2912
 
@@ -3040,41 +2914,49 @@ proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.prototype.serializeB
3040
2914
  /**
3041
2915
  * Serializes the given message to binary data (in protobuf wire
3042
2916
  * format), writing to the given BinaryWriter.
3043
- * @param {!proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest} message
2917
+ * @param {!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse} message
3044
2918
  * @param {!jspb.BinaryWriter} writer
3045
2919
  * @suppress {unusedLocalVariables} f is only used for nested messages
3046
2920
  */
3047
- proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.serializeBinaryToWriter = function(message, writer) {
2921
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse.serializeBinaryToWriter = function(message, writer) {
3048
2922
  var f = undefined;
3049
- f = message.getData();
2923
+ f = message.getResponsecode();
3050
2924
  if (f != null) {
3051
2925
  writer.writeMessage(
3052
2926
  1,
3053
2927
  f,
3054
- proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest.serializeBinaryToWriter
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
3055
2937
  );
3056
2938
  }
3057
2939
  };
3058
2940
 
3059
2941
 
3060
2942
  /**
3061
- * optional CreditCardDeleteRequest data = 1;
3062
- * @return {?proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest}
2943
+ * optional ResponseCode responseCode = 1;
2944
+ * @return {?proto.sniippaymentmethodsserviceapi.ResponseCode}
3063
2945
  */
3064
- proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.prototype.getData = function() {
3065
- return /** @type{?proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest} */ (
3066
- jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest, 1));
2946
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse.prototype.getResponsecode = function() {
2947
+ return /** @type{?proto.sniippaymentmethodsserviceapi.ResponseCode} */ (
2948
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.ResponseCode, 1));
3067
2949
  };
3068
2950
 
3069
2951
 
3070
- /** @param {?proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest|undefined} value */
3071
- proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.prototype.setData = function(value) {
2952
+ /** @param {?proto.sniippaymentmethodsserviceapi.ResponseCode|undefined} value */
2953
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse.prototype.setResponsecode = function(value) {
3072
2954
  jspb.Message.setWrapperField(this, 1, value);
3073
2955
  };
3074
2956
 
3075
2957
 
3076
- proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.prototype.clearData = function() {
3077
- this.setData(undefined);
2958
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse.prototype.clearResponsecode = function() {
2959
+ this.setResponsecode(undefined);
3078
2960
  };
3079
2961
 
3080
2962
 
@@ -3082,11 +2964,41 @@ proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.prototype.clearData
3082
2964
  * Returns whether this field is set.
3083
2965
  * @return {!boolean}
3084
2966
  */
3085
- proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.prototype.hasData = function() {
2967
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentResponse.prototype.hasResponsecode = function() {
3086
2968
  return jspb.Message.getField(this, 1) != null;
3087
2969
  };
3088
2970
 
3089
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
+
3090
3002
 
3091
3003
  /**
3092
3004
  * Generated by JsPbCodeGenerator.
@@ -3098,12 +3010,12 @@ proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.prototype.hasData =
3098
3010
  * @extends {jspb.Message}
3099
3011
  * @constructor
3100
3012
  */
3101
- proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest = function(opt_data) {
3013
+ proto.sniippaymentmethodsserviceapi.CreditCardRequest = function(opt_data) {
3102
3014
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3103
3015
  };
3104
- goog.inherits(proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest, jspb.Message);
3016
+ goog.inherits(proto.sniippaymentmethodsserviceapi.CreditCardRequest, jspb.Message);
3105
3017
  if (goog.DEBUG && !COMPILED) {
3106
- proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.displayName = 'proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest';
3018
+ proto.sniippaymentmethodsserviceapi.CreditCardRequest.displayName = 'proto.sniippaymentmethodsserviceapi.CreditCardRequest';
3107
3019
  }
3108
3020
 
3109
3021
 
@@ -3118,8 +3030,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
3118
3030
  * for transitional soy proto support: http://goto/soy-param-migration
3119
3031
  * @return {!Object}
3120
3032
  */
3121
- proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.prototype.toObject = function(opt_includeInstance) {
3122
- return proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.toObject(opt_includeInstance, this);
3033
+ proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.toObject = function(opt_includeInstance) {
3034
+ return proto.sniippaymentmethodsserviceapi.CreditCardRequest.toObject(opt_includeInstance, this);
3123
3035
  };
3124
3036
 
3125
3037
 
@@ -3128,13 +3040,20 @@ proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.prototype.t
3128
3040
  * @param {boolean|undefined} includeInstance Whether to include the JSPB
3129
3041
  * instance for transitional soy proto support:
3130
3042
  * http://goto/soy-param-migration
3131
- * @param {!proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest} msg The msg instance to transform.
3043
+ * @param {!proto.sniippaymentmethodsserviceapi.CreditCardRequest} msg The msg instance to transform.
3132
3044
  * @return {!Object}
3133
3045
  * @suppress {unusedLocalVariables} f is only used for nested messages
3134
3046
  */
3135
- proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.toObject = function(includeInstance, msg) {
3047
+ proto.sniippaymentmethodsserviceapi.CreditCardRequest.toObject = function(includeInstance, msg) {
3136
3048
  var f, obj = {
3137
- data: (f = msg.getData()) && proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.toObject(includeInstance, f)
3049
+ nameoncard: jspb.Message.getFieldWithDefault(msg, 1, ""),
3050
+ cardnumber: jspb.Message.getFieldWithDefault(msg, 2, ""),
3051
+ cvv: jspb.Message.getFieldWithDefault(msg, 3, ""),
3052
+ cardtype: jspb.Message.getFieldWithDefault(msg, 4, ""),
3053
+ monthexpiry: jspb.Message.getFieldWithDefault(msg, 5, 0),
3054
+ yearexpiry: jspb.Message.getFieldWithDefault(msg, 6, 0),
3055
+ nickname: jspb.Message.getFieldWithDefault(msg, 7, ""),
3056
+ accesstoken: jspb.Message.getFieldWithDefault(msg, 8, "")
3138
3057
  };
3139
3058
 
3140
3059
  if (includeInstance) {
@@ -3148,23 +3067,23 @@ proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.toObject =
3148
3067
  /**
3149
3068
  * Deserializes binary data (in protobuf wire format).
3150
3069
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
3151
- * @return {!proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest}
3070
+ * @return {!proto.sniippaymentmethodsserviceapi.CreditCardRequest}
3152
3071
  */
3153
- proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.deserializeBinary = function(bytes) {
3072
+ proto.sniippaymentmethodsserviceapi.CreditCardRequest.deserializeBinary = function(bytes) {
3154
3073
  var reader = new jspb.BinaryReader(bytes);
3155
- var msg = new proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest;
3156
- return proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.deserializeBinaryFromReader(msg, reader);
3074
+ var msg = new proto.sniippaymentmethodsserviceapi.CreditCardRequest;
3075
+ return proto.sniippaymentmethodsserviceapi.CreditCardRequest.deserializeBinaryFromReader(msg, reader);
3157
3076
  };
3158
3077
 
3159
3078
 
3160
3079
  /**
3161
3080
  * Deserializes binary data (in protobuf wire format) from the
3162
3081
  * given reader into the given message object.
3163
- * @param {!proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest} msg The message object to deserialize into.
3082
+ * @param {!proto.sniippaymentmethodsserviceapi.CreditCardRequest} msg The message object to deserialize into.
3164
3083
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3165
- * @return {!proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest}
3084
+ * @return {!proto.sniippaymentmethodsserviceapi.CreditCardRequest}
3166
3085
  */
3167
- proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.deserializeBinaryFromReader = function(msg, reader) {
3086
+ proto.sniippaymentmethodsserviceapi.CreditCardRequest.deserializeBinaryFromReader = function(msg, reader) {
3168
3087
  while (reader.nextField()) {
3169
3088
  if (reader.isEndGroup()) {
3170
3089
  break;
@@ -3172,8 +3091,332 @@ proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.deserialize
3172
3091
  var field = reader.getFieldNumber();
3173
3092
  switch (field) {
3174
3093
  case 1:
3175
- var value = new proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest;
3176
- reader.readMessage(value,proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.deserializeBinaryFromReader);
3094
+ var value = /** @type {string} */ (reader.readString());
3095
+ msg.setNameoncard(value);
3096
+ break;
3097
+ case 2:
3098
+ var value = /** @type {string} */ (reader.readString());
3099
+ msg.setCardnumber(value);
3100
+ break;
3101
+ case 3:
3102
+ var value = /** @type {string} */ (reader.readString());
3103
+ msg.setCvv(value);
3104
+ break;
3105
+ case 4:
3106
+ var value = /** @type {string} */ (reader.readString());
3107
+ msg.setCardtype(value);
3108
+ break;
3109
+ case 5:
3110
+ var value = /** @type {number} */ (reader.readInt32());
3111
+ msg.setMonthexpiry(value);
3112
+ break;
3113
+ case 6:
3114
+ var value = /** @type {number} */ (reader.readInt32());
3115
+ msg.setYearexpiry(value);
3116
+ break;
3117
+ case 7:
3118
+ var value = /** @type {string} */ (reader.readString());
3119
+ msg.setNickname(value);
3120
+ break;
3121
+ case 8:
3122
+ var value = /** @type {string} */ (reader.readString());
3123
+ msg.setAccesstoken(value);
3124
+ break;
3125
+ default:
3126
+ reader.skipField();
3127
+ break;
3128
+ }
3129
+ }
3130
+ return msg;
3131
+ };
3132
+
3133
+
3134
+ /**
3135
+ * Serializes the message to binary data (in protobuf wire format).
3136
+ * @return {!Uint8Array}
3137
+ */
3138
+ proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.serializeBinary = function() {
3139
+ var writer = new jspb.BinaryWriter();
3140
+ proto.sniippaymentmethodsserviceapi.CreditCardRequest.serializeBinaryToWriter(this, writer);
3141
+ return writer.getResultBuffer();
3142
+ };
3143
+
3144
+
3145
+ /**
3146
+ * Serializes the given message to binary data (in protobuf wire
3147
+ * format), writing to the given BinaryWriter.
3148
+ * @param {!proto.sniippaymentmethodsserviceapi.CreditCardRequest} message
3149
+ * @param {!jspb.BinaryWriter} writer
3150
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3151
+ */
3152
+ proto.sniippaymentmethodsserviceapi.CreditCardRequest.serializeBinaryToWriter = function(message, writer) {
3153
+ var f = undefined;
3154
+ f = message.getNameoncard();
3155
+ if (f.length > 0) {
3156
+ writer.writeString(
3157
+ 1,
3158
+ f
3159
+ );
3160
+ }
3161
+ f = message.getCardnumber();
3162
+ if (f.length > 0) {
3163
+ writer.writeString(
3164
+ 2,
3165
+ f
3166
+ );
3167
+ }
3168
+ f = message.getCvv();
3169
+ if (f.length > 0) {
3170
+ writer.writeString(
3171
+ 3,
3172
+ f
3173
+ );
3174
+ }
3175
+ f = message.getCardtype();
3176
+ if (f.length > 0) {
3177
+ writer.writeString(
3178
+ 4,
3179
+ f
3180
+ );
3181
+ }
3182
+ f = message.getMonthexpiry();
3183
+ if (f !== 0) {
3184
+ writer.writeInt32(
3185
+ 5,
3186
+ f
3187
+ );
3188
+ }
3189
+ f = message.getYearexpiry();
3190
+ if (f !== 0) {
3191
+ writer.writeInt32(
3192
+ 6,
3193
+ f
3194
+ );
3195
+ }
3196
+ f = message.getNickname();
3197
+ if (f.length > 0) {
3198
+ writer.writeString(
3199
+ 7,
3200
+ f
3201
+ );
3202
+ }
3203
+ f = message.getAccesstoken();
3204
+ if (f.length > 0) {
3205
+ writer.writeString(
3206
+ 8,
3207
+ f
3208
+ );
3209
+ }
3210
+ };
3211
+
3212
+
3213
+ /**
3214
+ * optional string nameOnCard = 1;
3215
+ * @return {string}
3216
+ */
3217
+ proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.getNameoncard = function() {
3218
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3219
+ };
3220
+
3221
+
3222
+ /** @param {string} value */
3223
+ proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.setNameoncard = function(value) {
3224
+ jspb.Message.setProto3StringField(this, 1, value);
3225
+ };
3226
+
3227
+
3228
+ /**
3229
+ * optional string cardNumber = 2;
3230
+ * @return {string}
3231
+ */
3232
+ proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.getCardnumber = function() {
3233
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3234
+ };
3235
+
3236
+
3237
+ /** @param {string} value */
3238
+ proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.setCardnumber = function(value) {
3239
+ jspb.Message.setProto3StringField(this, 2, value);
3240
+ };
3241
+
3242
+
3243
+ /**
3244
+ * optional string cvv = 3;
3245
+ * @return {string}
3246
+ */
3247
+ proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.getCvv = function() {
3248
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3249
+ };
3250
+
3251
+
3252
+ /** @param {string} value */
3253
+ proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.setCvv = function(value) {
3254
+ jspb.Message.setProto3StringField(this, 3, value);
3255
+ };
3256
+
3257
+
3258
+ /**
3259
+ * optional string cardType = 4;
3260
+ * @return {string}
3261
+ */
3262
+ proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.getCardtype = function() {
3263
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3264
+ };
3265
+
3266
+
3267
+ /** @param {string} value */
3268
+ proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.setCardtype = function(value) {
3269
+ jspb.Message.setProto3StringField(this, 4, value);
3270
+ };
3271
+
3272
+
3273
+ /**
3274
+ * optional int32 monthExpiry = 5;
3275
+ * @return {number}
3276
+ */
3277
+ proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.getMonthexpiry = function() {
3278
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
3279
+ };
3280
+
3281
+
3282
+ /** @param {number} value */
3283
+ proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.setMonthexpiry = function(value) {
3284
+ jspb.Message.setProto3IntField(this, 5, value);
3285
+ };
3286
+
3287
+
3288
+ /**
3289
+ * optional int32 yearExpiry = 6;
3290
+ * @return {number}
3291
+ */
3292
+ proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.getYearexpiry = function() {
3293
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
3294
+ };
3295
+
3296
+
3297
+ /** @param {number} value */
3298
+ proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.setYearexpiry = function(value) {
3299
+ jspb.Message.setProto3IntField(this, 6, value);
3300
+ };
3301
+
3302
+
3303
+ /**
3304
+ * optional string nickname = 7;
3305
+ * @return {string}
3306
+ */
3307
+ proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.getNickname = function() {
3308
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
3309
+ };
3310
+
3311
+
3312
+ /** @param {string} value */
3313
+ proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.setNickname = function(value) {
3314
+ jspb.Message.setProto3StringField(this, 7, value);
3315
+ };
3316
+
3317
+
3318
+ /**
3319
+ * optional string accessToken = 8;
3320
+ * @return {string}
3321
+ */
3322
+ proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.getAccesstoken = function() {
3323
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
3324
+ };
3325
+
3326
+
3327
+ /** @param {string} value */
3328
+ proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.setAccesstoken = function(value) {
3329
+ jspb.Message.setProto3StringField(this, 8, value);
3330
+ };
3331
+
3332
+
3333
+
3334
+ /**
3335
+ * Generated by JsPbCodeGenerator.
3336
+ * @param {Array=} opt_data Optional initial data array, typically from a
3337
+ * server response, or constructed directly in Javascript. The array is used
3338
+ * in place and becomes part of the constructed object. It is not cloned.
3339
+ * If no data is provided, the constructed object will be empty, but still
3340
+ * valid.
3341
+ * @extends {jspb.Message}
3342
+ * @constructor
3343
+ */
3344
+ proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest = function(opt_data) {
3345
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3346
+ };
3347
+ goog.inherits(proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest, jspb.Message);
3348
+ if (goog.DEBUG && !COMPILED) {
3349
+ proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.displayName = 'proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest';
3350
+ }
3351
+
3352
+
3353
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3354
+ /**
3355
+ * Creates an object representation of this proto suitable for use in Soy templates.
3356
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3357
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3358
+ * For the list of reserved names please see:
3359
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
3360
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
3361
+ * for transitional soy proto support: http://goto/soy-param-migration
3362
+ * @return {!Object}
3363
+ */
3364
+ proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.prototype.toObject = function(opt_includeInstance) {
3365
+ return proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.toObject(opt_includeInstance, this);
3366
+ };
3367
+
3368
+
3369
+ /**
3370
+ * Static version of the {@see toObject} method.
3371
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
3372
+ * instance for transitional soy proto support:
3373
+ * http://goto/soy-param-migration
3374
+ * @param {!proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest} msg The msg instance to transform.
3375
+ * @return {!Object}
3376
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3377
+ */
3378
+ proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.toObject = function(includeInstance, msg) {
3379
+ var f, obj = {
3380
+ data: (f = msg.getData()) && proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest.toObject(includeInstance, f)
3381
+ };
3382
+
3383
+ if (includeInstance) {
3384
+ obj.$jspbMessageInstance = msg;
3385
+ }
3386
+ return obj;
3387
+ };
3388
+ }
3389
+
3390
+
3391
+ /**
3392
+ * Deserializes binary data (in protobuf wire format).
3393
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3394
+ * @return {!proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest}
3395
+ */
3396
+ proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.deserializeBinary = function(bytes) {
3397
+ var reader = new jspb.BinaryReader(bytes);
3398
+ var msg = new proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest;
3399
+ return proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.deserializeBinaryFromReader(msg, reader);
3400
+ };
3401
+
3402
+
3403
+ /**
3404
+ * Deserializes binary data (in protobuf wire format) from the
3405
+ * given reader into the given message object.
3406
+ * @param {!proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest} msg The message object to deserialize into.
3407
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3408
+ * @return {!proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest}
3409
+ */
3410
+ proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.deserializeBinaryFromReader = function(msg, reader) {
3411
+ while (reader.nextField()) {
3412
+ if (reader.isEndGroup()) {
3413
+ break;
3414
+ }
3415
+ var field = reader.getFieldNumber();
3416
+ switch (field) {
3417
+ case 1:
3418
+ var value = new proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest;
3419
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest.deserializeBinaryFromReader);
3177
3420
  msg.setData(value);
3178
3421
  break;
3179
3422
  default:
@@ -3189,9 +3432,9 @@ proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.deserialize
3189
3432
  * Serializes the message to binary data (in protobuf wire format).
3190
3433
  * @return {!Uint8Array}
3191
3434
  */
3192
- proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.prototype.serializeBinary = function() {
3435
+ proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.prototype.serializeBinary = function() {
3193
3436
  var writer = new jspb.BinaryWriter();
3194
- proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.serializeBinaryToWriter(this, writer);
3437
+ proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.serializeBinaryToWriter(this, writer);
3195
3438
  return writer.getResultBuffer();
3196
3439
  };
3197
3440
 
@@ -3199,40 +3442,40 @@ proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.prototype.s
3199
3442
  /**
3200
3443
  * Serializes the given message to binary data (in protobuf wire
3201
3444
  * format), writing to the given BinaryWriter.
3202
- * @param {!proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest} message
3445
+ * @param {!proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest} message
3203
3446
  * @param {!jspb.BinaryWriter} writer
3204
3447
  * @suppress {unusedLocalVariables} f is only used for nested messages
3205
3448
  */
3206
- proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.serializeBinaryToWriter = function(message, writer) {
3449
+ proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.serializeBinaryToWriter = function(message, writer) {
3207
3450
  var f = undefined;
3208
3451
  f = message.getData();
3209
3452
  if (f != null) {
3210
3453
  writer.writeMessage(
3211
3454
  1,
3212
3455
  f,
3213
- proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.serializeBinaryToWriter
3456
+ proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest.serializeBinaryToWriter
3214
3457
  );
3215
3458
  }
3216
3459
  };
3217
3460
 
3218
3461
 
3219
3462
  /**
3220
- * optional GetPaymentMethodRequest data = 1;
3221
- * @return {?proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest}
3463
+ * optional CreditCardDeleteRequest data = 1;
3464
+ * @return {?proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest}
3222
3465
  */
3223
- proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.prototype.getData = function() {
3224
- return /** @type{?proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest} */ (
3225
- jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest, 1));
3466
+ proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.prototype.getData = function() {
3467
+ return /** @type{?proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest} */ (
3468
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest, 1));
3226
3469
  };
3227
3470
 
3228
3471
 
3229
- /** @param {?proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest|undefined} value */
3230
- proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.prototype.setData = function(value) {
3472
+ /** @param {?proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest|undefined} value */
3473
+ proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.prototype.setData = function(value) {
3231
3474
  jspb.Message.setWrapperField(this, 1, value);
3232
3475
  };
3233
3476
 
3234
3477
 
3235
- proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.prototype.clearData = function() {
3478
+ proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.prototype.clearData = function() {
3236
3479
  this.setData(undefined);
3237
3480
  };
3238
3481
 
@@ -3241,7 +3484,7 @@ proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.prototype.c
3241
3484
  * Returns whether this field is set.
3242
3485
  * @return {!boolean}
3243
3486
  */
3244
- proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.prototype.hasData = function() {
3487
+ proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.prototype.hasData = function() {
3245
3488
  return jspb.Message.getField(this, 1) != null;
3246
3489
  };
3247
3490
 
@@ -3257,12 +3500,12 @@ proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.prototype.h
3257
3500
  * @extends {jspb.Message}
3258
3501
  * @constructor
3259
3502
  */
3260
- proto.sniippaymentmethodsserviceapi.GetCreditCardRequest = function(opt_data) {
3503
+ proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest = function(opt_data) {
3261
3504
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3262
3505
  };
3263
- goog.inherits(proto.sniippaymentmethodsserviceapi.GetCreditCardRequest, jspb.Message);
3506
+ goog.inherits(proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest, jspb.Message);
3264
3507
  if (goog.DEBUG && !COMPILED) {
3265
- proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.displayName = 'proto.sniippaymentmethodsserviceapi.GetCreditCardRequest';
3508
+ proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.displayName = 'proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest';
3266
3509
  }
3267
3510
 
3268
3511
 
@@ -3277,8 +3520,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
3277
3520
  * for transitional soy proto support: http://goto/soy-param-migration
3278
3521
  * @return {!Object}
3279
3522
  */
3280
- proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.prototype.toObject = function(opt_includeInstance) {
3281
- return proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.toObject(opt_includeInstance, this);
3523
+ proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.prototype.toObject = function(opt_includeInstance) {
3524
+ return proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.toObject(opt_includeInstance, this);
3282
3525
  };
3283
3526
 
3284
3527
 
@@ -3287,14 +3530,13 @@ proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.prototype.toObject = fu
3287
3530
  * @param {boolean|undefined} includeInstance Whether to include the JSPB
3288
3531
  * instance for transitional soy proto support:
3289
3532
  * http://goto/soy-param-migration
3290
- * @param {!proto.sniippaymentmethodsserviceapi.GetCreditCardRequest} msg The msg instance to transform.
3533
+ * @param {!proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest} msg The msg instance to transform.
3291
3534
  * @return {!Object}
3292
3535
  * @suppress {unusedLocalVariables} f is only used for nested messages
3293
3536
  */
3294
- proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.toObject = function(includeInstance, msg) {
3537
+ proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.toObject = function(includeInstance, msg) {
3295
3538
  var f, obj = {
3296
- accesstoken: jspb.Message.getFieldWithDefault(msg, 1, ""),
3297
- creditcardid: jspb.Message.getFieldWithDefault(msg, 2, 0)
3539
+ data: (f = msg.getData()) && proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.toObject(includeInstance, f)
3298
3540
  };
3299
3541
 
3300
3542
  if (includeInstance) {
@@ -3308,23 +3550,23 @@ proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.toObject = function(inc
3308
3550
  /**
3309
3551
  * Deserializes binary data (in protobuf wire format).
3310
3552
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
3311
- * @return {!proto.sniippaymentmethodsserviceapi.GetCreditCardRequest}
3553
+ * @return {!proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest}
3312
3554
  */
3313
- proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.deserializeBinary = function(bytes) {
3555
+ proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.deserializeBinary = function(bytes) {
3314
3556
  var reader = new jspb.BinaryReader(bytes);
3315
- var msg = new proto.sniippaymentmethodsserviceapi.GetCreditCardRequest;
3316
- return proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.deserializeBinaryFromReader(msg, reader);
3557
+ var msg = new proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest;
3558
+ return proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.deserializeBinaryFromReader(msg, reader);
3317
3559
  };
3318
3560
 
3319
3561
 
3320
3562
  /**
3321
3563
  * Deserializes binary data (in protobuf wire format) from the
3322
3564
  * given reader into the given message object.
3323
- * @param {!proto.sniippaymentmethodsserviceapi.GetCreditCardRequest} msg The message object to deserialize into.
3565
+ * @param {!proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest} msg The message object to deserialize into.
3324
3566
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3325
- * @return {!proto.sniippaymentmethodsserviceapi.GetCreditCardRequest}
3567
+ * @return {!proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest}
3326
3568
  */
3327
- proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.deserializeBinaryFromReader = function(msg, reader) {
3569
+ proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.deserializeBinaryFromReader = function(msg, reader) {
3328
3570
  while (reader.nextField()) {
3329
3571
  if (reader.isEndGroup()) {
3330
3572
  break;
@@ -3332,12 +3574,9 @@ proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.deserializeBinaryFromRe
3332
3574
  var field = reader.getFieldNumber();
3333
3575
  switch (field) {
3334
3576
  case 1:
3335
- var value = /** @type {string} */ (reader.readString());
3336
- msg.setAccesstoken(value);
3337
- break;
3338
- case 2:
3339
- var value = /** @type {number} */ (reader.readInt64());
3340
- msg.setCreditcardid(value);
3577
+ var value = new proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest;
3578
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.deserializeBinaryFromReader);
3579
+ msg.setData(value);
3341
3580
  break;
3342
3581
  default:
3343
3582
  reader.skipField();
@@ -3352,9 +3591,9 @@ proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.deserializeBinaryFromRe
3352
3591
  * Serializes the message to binary data (in protobuf wire format).
3353
3592
  * @return {!Uint8Array}
3354
3593
  */
3355
- proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.prototype.serializeBinary = function() {
3594
+ proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.prototype.serializeBinary = function() {
3356
3595
  var writer = new jspb.BinaryWriter();
3357
- proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.serializeBinaryToWriter(this, writer);
3596
+ proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.serializeBinaryToWriter(this, writer);
3358
3597
  return writer.getResultBuffer();
3359
3598
  };
3360
3599
 
@@ -3362,56 +3601,50 @@ proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.prototype.serializeBina
3362
3601
  /**
3363
3602
  * Serializes the given message to binary data (in protobuf wire
3364
3603
  * format), writing to the given BinaryWriter.
3365
- * @param {!proto.sniippaymentmethodsserviceapi.GetCreditCardRequest} message
3604
+ * @param {!proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest} message
3366
3605
  * @param {!jspb.BinaryWriter} writer
3367
3606
  * @suppress {unusedLocalVariables} f is only used for nested messages
3368
3607
  */
3369
- proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.serializeBinaryToWriter = function(message, writer) {
3608
+ proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.serializeBinaryToWriter = function(message, writer) {
3370
3609
  var f = undefined;
3371
- f = message.getAccesstoken();
3372
- if (f.length > 0) {
3373
- writer.writeString(
3610
+ f = message.getData();
3611
+ if (f != null) {
3612
+ writer.writeMessage(
3374
3613
  1,
3375
- f
3376
- );
3377
- }
3378
- f = message.getCreditcardid();
3379
- if (f !== 0) {
3380
- writer.writeInt64(
3381
- 2,
3382
- f
3614
+ f,
3615
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest.serializeBinaryToWriter
3383
3616
  );
3384
3617
  }
3385
3618
  };
3386
3619
 
3387
3620
 
3388
3621
  /**
3389
- * optional string accessToken = 1;
3390
- * @return {string}
3622
+ * optional GetPaymentMethodRequest data = 1;
3623
+ * @return {?proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest}
3391
3624
  */
3392
- proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.prototype.getAccesstoken = function() {
3393
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3625
+ proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.prototype.getData = function() {
3626
+ return /** @type{?proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest} */ (
3627
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest, 1));
3394
3628
  };
3395
3629
 
3396
3630
 
3397
- /** @param {string} value */
3398
- proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.prototype.setAccesstoken = function(value) {
3399
- jspb.Message.setProto3StringField(this, 1, value);
3631
+ /** @param {?proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest|undefined} value */
3632
+ proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.prototype.setData = function(value) {
3633
+ jspb.Message.setWrapperField(this, 1, value);
3400
3634
  };
3401
3635
 
3402
3636
 
3403
- /**
3404
- * optional int64 creditCardId = 2;
3405
- * @return {number}
3406
- */
3407
- proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.prototype.getCreditcardid = function() {
3408
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
3637
+ proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.prototype.clearData = function() {
3638
+ this.setData(undefined);
3409
3639
  };
3410
3640
 
3411
3641
 
3412
- /** @param {number} value */
3413
- proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.prototype.setCreditcardid = function(value) {
3414
- jspb.Message.setProto3IntField(this, 2, value);
3642
+ /**
3643
+ * Returns whether this field is set.
3644
+ * @return {!boolean}
3645
+ */
3646
+ proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest.prototype.hasData = function() {
3647
+ return jspb.Message.getField(this, 1) != null;
3415
3648
  };
3416
3649
 
3417
3650
 
@@ -3426,12 +3659,12 @@ proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.prototype.setCreditcard
3426
3659
  * @extends {jspb.Message}
3427
3660
  * @constructor
3428
3661
  */
3429
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse = function(opt_data) {
3662
+ proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest = function(opt_data) {
3430
3663
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3431
3664
  };
3432
- goog.inherits(proto.sniippaymentmethodsserviceapi.GetCreditCardResponse, jspb.Message);
3665
+ goog.inherits(proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest, jspb.Message);
3433
3666
  if (goog.DEBUG && !COMPILED) {
3434
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.displayName = 'proto.sniippaymentmethodsserviceapi.GetCreditCardResponse';
3667
+ proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest.displayName = 'proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest';
3435
3668
  }
3436
3669
 
3437
3670
 
@@ -3446,8 +3679,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
3446
3679
  * for transitional soy proto support: http://goto/soy-param-migration
3447
3680
  * @return {!Object}
3448
3681
  */
3449
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.toObject = function(opt_includeInstance) {
3450
- return proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.toObject(opt_includeInstance, this);
3682
+ proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest.prototype.toObject = function(opt_includeInstance) {
3683
+ return proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest.toObject(opt_includeInstance, this);
3451
3684
  };
3452
3685
 
3453
3686
 
@@ -3456,22 +3689,13 @@ proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.toObject = f
3456
3689
  * @param {boolean|undefined} includeInstance Whether to include the JSPB
3457
3690
  * instance for transitional soy proto support:
3458
3691
  * http://goto/soy-param-migration
3459
- * @param {!proto.sniippaymentmethodsserviceapi.GetCreditCardResponse} msg The msg instance to transform.
3692
+ * @param {!proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest} msg The msg instance to transform.
3460
3693
  * @return {!Object}
3461
3694
  * @suppress {unusedLocalVariables} f is only used for nested messages
3462
3695
  */
3463
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.toObject = function(includeInstance, msg) {
3696
+ proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest.toObject = function(includeInstance, msg) {
3464
3697
  var f, obj = {
3465
- creditcardid: jspb.Message.getFieldWithDefault(msg, 1, 0),
3466
- cardnumber: jspb.Message.getFieldWithDefault(msg, 2, ""),
3467
- maskedcardnumber: jspb.Message.getFieldWithDefault(msg, 3, ""),
3468
- nameoncard: jspb.Message.getFieldWithDefault(msg, 4, ""),
3469
- cardtype: jspb.Message.getFieldWithDefault(msg, 5, ""),
3470
- cvv: jspb.Message.getFieldWithDefault(msg, 6, ""),
3471
- monthexpiry: jspb.Message.getFieldWithDefault(msg, 7, 0),
3472
- yearexpiry: jspb.Message.getFieldWithDefault(msg, 8, 0),
3473
- nickname: jspb.Message.getFieldWithDefault(msg, 9, ""),
3474
- responsecode: (f = msg.getResponsecode()) && proto.sniippaymentmethodsserviceapi.ResponseCode.toObject(includeInstance, f)
3698
+ data: (f = msg.getData()) && proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.toObject(includeInstance, f)
3475
3699
  };
3476
3700
 
3477
3701
  if (includeInstance) {
@@ -3485,23 +3709,23 @@ proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.toObject = function(in
3485
3709
  /**
3486
3710
  * Deserializes binary data (in protobuf wire format).
3487
3711
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
3488
- * @return {!proto.sniippaymentmethodsserviceapi.GetCreditCardResponse}
3712
+ * @return {!proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest}
3489
3713
  */
3490
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.deserializeBinary = function(bytes) {
3714
+ proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest.deserializeBinary = function(bytes) {
3491
3715
  var reader = new jspb.BinaryReader(bytes);
3492
- var msg = new proto.sniippaymentmethodsserviceapi.GetCreditCardResponse;
3493
- return proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.deserializeBinaryFromReader(msg, reader);
3716
+ var msg = new proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest;
3717
+ return proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest.deserializeBinaryFromReader(msg, reader);
3494
3718
  };
3495
3719
 
3496
3720
 
3497
3721
  /**
3498
3722
  * Deserializes binary data (in protobuf wire format) from the
3499
3723
  * given reader into the given message object.
3500
- * @param {!proto.sniippaymentmethodsserviceapi.GetCreditCardResponse} msg The message object to deserialize into.
3724
+ * @param {!proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest} msg The message object to deserialize into.
3501
3725
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3502
- * @return {!proto.sniippaymentmethodsserviceapi.GetCreditCardResponse}
3726
+ * @return {!proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest}
3503
3727
  */
3504
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.deserializeBinaryFromReader = function(msg, reader) {
3728
+ proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest.deserializeBinaryFromReader = function(msg, reader) {
3505
3729
  while (reader.nextField()) {
3506
3730
  if (reader.isEndGroup()) {
3507
3731
  break;
@@ -3509,45 +3733,9 @@ proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.deserializeBinaryFromR
3509
3733
  var field = reader.getFieldNumber();
3510
3734
  switch (field) {
3511
3735
  case 1:
3512
- var value = /** @type {number} */ (reader.readInt64());
3513
- msg.setCreditcardid(value);
3514
- break;
3515
- case 2:
3516
- var value = /** @type {string} */ (reader.readString());
3517
- msg.setCardnumber(value);
3518
- break;
3519
- case 3:
3520
- var value = /** @type {string} */ (reader.readString());
3521
- msg.setMaskedcardnumber(value);
3522
- break;
3523
- case 4:
3524
- var value = /** @type {string} */ (reader.readString());
3525
- msg.setNameoncard(value);
3526
- break;
3527
- case 5:
3528
- var value = /** @type {string} */ (reader.readString());
3529
- msg.setCardtype(value);
3530
- break;
3531
- case 6:
3532
- var value = /** @type {string} */ (reader.readString());
3533
- msg.setCvv(value);
3534
- break;
3535
- case 7:
3536
- var value = /** @type {number} */ (reader.readInt32());
3537
- msg.setMonthexpiry(value);
3538
- break;
3539
- case 8:
3540
- var value = /** @type {number} */ (reader.readInt32());
3541
- msg.setYearexpiry(value);
3542
- break;
3543
- case 9:
3544
- var value = /** @type {string} */ (reader.readString());
3545
- msg.setNickname(value);
3546
- break;
3547
- case 10:
3548
- var value = new proto.sniippaymentmethodsserviceapi.ResponseCode;
3549
- reader.readMessage(value,proto.sniippaymentmethodsserviceapi.ResponseCode.deserializeBinaryFromReader);
3550
- msg.setResponsecode(value);
3736
+ var value = new proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest;
3737
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.deserializeBinaryFromReader);
3738
+ msg.setData(value);
3551
3739
  break;
3552
3740
  default:
3553
3741
  reader.skipField();
@@ -3562,9 +3750,9 @@ proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.deserializeBinaryFromR
3562
3750
  * Serializes the message to binary data (in protobuf wire format).
3563
3751
  * @return {!Uint8Array}
3564
3752
  */
3565
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.serializeBinary = function() {
3753
+ proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest.prototype.serializeBinary = function() {
3566
3754
  var writer = new jspb.BinaryWriter();
3567
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.serializeBinaryToWriter(this, writer);
3755
+ proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest.serializeBinaryToWriter(this, writer);
3568
3756
  return writer.getResultBuffer();
3569
3757
  };
3570
3758
 
@@ -3572,239 +3760,200 @@ proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.serializeBin
3572
3760
  /**
3573
3761
  * Serializes the given message to binary data (in protobuf wire
3574
3762
  * format), writing to the given BinaryWriter.
3575
- * @param {!proto.sniippaymentmethodsserviceapi.GetCreditCardResponse} message
3763
+ * @param {!proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest} message
3576
3764
  * @param {!jspb.BinaryWriter} writer
3577
3765
  * @suppress {unusedLocalVariables} f is only used for nested messages
3578
3766
  */
3579
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.serializeBinaryToWriter = function(message, writer) {
3767
+ proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest.serializeBinaryToWriter = function(message, writer) {
3580
3768
  var f = undefined;
3581
- f = message.getCreditcardid();
3582
- if (f !== 0) {
3583
- writer.writeInt64(
3584
- 1,
3585
- f
3586
- );
3587
- }
3588
- f = message.getCardnumber();
3589
- if (f.length > 0) {
3590
- writer.writeString(
3591
- 2,
3592
- f
3593
- );
3594
- }
3595
- f = message.getMaskedcardnumber();
3596
- if (f.length > 0) {
3597
- writer.writeString(
3598
- 3,
3599
- f
3600
- );
3601
- }
3602
- f = message.getNameoncard();
3603
- if (f.length > 0) {
3604
- writer.writeString(
3605
- 4,
3606
- f
3607
- );
3608
- }
3609
- f = message.getCardtype();
3610
- if (f.length > 0) {
3611
- writer.writeString(
3612
- 5,
3613
- f
3614
- );
3615
- }
3616
- f = message.getCvv();
3617
- if (f.length > 0) {
3618
- writer.writeString(
3619
- 6,
3620
- f
3621
- );
3622
- }
3623
- f = message.getMonthexpiry();
3624
- if (f !== 0) {
3625
- writer.writeInt32(
3626
- 7,
3627
- f
3628
- );
3629
- }
3630
- f = message.getYearexpiry();
3631
- if (f !== 0) {
3632
- writer.writeInt32(
3633
- 8,
3634
- f
3635
- );
3636
- }
3637
- f = message.getNickname();
3638
- if (f.length > 0) {
3639
- writer.writeString(
3640
- 9,
3641
- f
3642
- );
3643
- }
3644
- f = message.getResponsecode();
3769
+ f = message.getData();
3645
3770
  if (f != null) {
3646
3771
  writer.writeMessage(
3647
- 10,
3772
+ 1,
3648
3773
  f,
3649
- proto.sniippaymentmethodsserviceapi.ResponseCode.serializeBinaryToWriter
3774
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.serializeBinaryToWriter
3650
3775
  );
3651
3776
  }
3652
3777
  };
3653
3778
 
3654
3779
 
3655
3780
  /**
3656
- * optional int64 creditCardId = 1;
3657
- * @return {number}
3658
- */
3659
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.getCreditcardid = function() {
3660
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3661
- };
3662
-
3663
-
3664
- /** @param {number} value */
3665
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.setCreditcardid = function(value) {
3666
- jspb.Message.setProto3IntField(this, 1, value);
3667
- };
3668
-
3669
-
3670
- /**
3671
- * optional string cardNumber = 2;
3672
- * @return {string}
3781
+ * optional CreditCardForPaymentRequest data = 1;
3782
+ * @return {?proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest}
3673
3783
  */
3674
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.getCardnumber = function() {
3675
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3784
+ proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest.prototype.getData = function() {
3785
+ return /** @type{?proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest} */ (
3786
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest, 1));
3676
3787
  };
3677
3788
 
3678
3789
 
3679
- /** @param {string} value */
3680
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.setCardnumber = function(value) {
3681
- jspb.Message.setProto3StringField(this, 2, value);
3682
- };
3683
-
3684
-
3685
- /**
3686
- * optional string maskedCardNumber = 3;
3687
- * @return {string}
3688
- */
3689
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.getMaskedcardnumber = function() {
3690
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3790
+ /** @param {?proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest|undefined} value */
3791
+ proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest.prototype.setData = function(value) {
3792
+ jspb.Message.setWrapperField(this, 1, value);
3691
3793
  };
3692
3794
 
3693
3795
 
3694
- /** @param {string} value */
3695
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.setMaskedcardnumber = function(value) {
3696
- jspb.Message.setProto3StringField(this, 3, value);
3796
+ proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest.prototype.clearData = function() {
3797
+ this.setData(undefined);
3697
3798
  };
3698
3799
 
3699
3800
 
3700
3801
  /**
3701
- * optional string nameOnCard = 4;
3702
- * @return {string}
3802
+ * Returns whether this field is set.
3803
+ * @return {!boolean}
3703
3804
  */
3704
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.getNameoncard = function() {
3705
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3805
+ proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest.prototype.hasData = function() {
3806
+ return jspb.Message.getField(this, 1) != null;
3706
3807
  };
3707
3808
 
3708
3809
 
3709
- /** @param {string} value */
3710
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.setNameoncard = function(value) {
3711
- jspb.Message.setProto3StringField(this, 4, value);
3712
- };
3713
-
3714
3810
 
3715
3811
  /**
3716
- * optional string cardType = 5;
3717
- * @return {string}
3812
+ * Generated by JsPbCodeGenerator.
3813
+ * @param {Array=} opt_data Optional initial data array, typically from a
3814
+ * server response, or constructed directly in Javascript. The array is used
3815
+ * in place and becomes part of the constructed object. It is not cloned.
3816
+ * If no data is provided, the constructed object will be empty, but still
3817
+ * valid.
3818
+ * @extends {jspb.Message}
3819
+ * @constructor
3718
3820
  */
3719
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.getCardtype = function() {
3720
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3721
- };
3722
-
3723
-
3724
- /** @param {string} value */
3725
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.setCardtype = function(value) {
3726
- jspb.Message.setProto3StringField(this, 5, value);
3821
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest = function(opt_data) {
3822
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3727
3823
  };
3824
+ goog.inherits(proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest, jspb.Message);
3825
+ if (goog.DEBUG && !COMPILED) {
3826
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest.displayName = 'proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest';
3827
+ }
3728
3828
 
3729
3829
 
3830
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3730
3831
  /**
3731
- * optional string cvv = 6;
3732
- * @return {string}
3733
- */
3734
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.getCvv = function() {
3735
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
3736
- };
3737
-
3738
-
3739
- /** @param {string} value */
3740
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.setCvv = function(value) {
3741
- jspb.Message.setProto3StringField(this, 6, value);
3832
+ * Creates an object representation of this proto suitable for use in Soy templates.
3833
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3834
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3835
+ * For the list of reserved names please see:
3836
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
3837
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
3838
+ * for transitional soy proto support: http://goto/soy-param-migration
3839
+ * @return {!Object}
3840
+ */
3841
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest.prototype.toObject = function(opt_includeInstance) {
3842
+ return proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest.toObject(opt_includeInstance, this);
3742
3843
  };
3743
3844
 
3744
3845
 
3745
3846
  /**
3746
- * optional int32 monthExpiry = 7;
3747
- * @return {number}
3847
+ * Static version of the {@see toObject} method.
3848
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
3849
+ * instance for transitional soy proto support:
3850
+ * http://goto/soy-param-migration
3851
+ * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest} msg The msg instance to transform.
3852
+ * @return {!Object}
3853
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3748
3854
  */
3749
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.getMonthexpiry = function() {
3750
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
3751
- };
3752
-
3855
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest.toObject = function(includeInstance, msg) {
3856
+ var f, obj = {
3857
+ data: (f = msg.getData()) && proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.toObject(includeInstance, f)
3858
+ };
3753
3859
 
3754
- /** @param {number} value */
3755
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.setMonthexpiry = function(value) {
3756
- jspb.Message.setProto3IntField(this, 7, value);
3860
+ if (includeInstance) {
3861
+ obj.$jspbMessageInstance = msg;
3862
+ }
3863
+ return obj;
3757
3864
  };
3865
+ }
3758
3866
 
3759
3867
 
3760
3868
  /**
3761
- * optional int32 yearExpiry = 8;
3762
- * @return {number}
3869
+ * Deserializes binary data (in protobuf wire format).
3870
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3871
+ * @return {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest}
3763
3872
  */
3764
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.getYearexpiry = function() {
3765
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
3873
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest.deserializeBinary = function(bytes) {
3874
+ var reader = new jspb.BinaryReader(bytes);
3875
+ var msg = new proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest;
3876
+ return proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest.deserializeBinaryFromReader(msg, reader);
3766
3877
  };
3767
3878
 
3768
3879
 
3769
- /** @param {number} value */
3770
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.setYearexpiry = function(value) {
3771
- jspb.Message.setProto3IntField(this, 8, value);
3880
+ /**
3881
+ * Deserializes binary data (in protobuf wire format) from the
3882
+ * given reader into the given message object.
3883
+ * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest} msg The message object to deserialize into.
3884
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3885
+ * @return {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest}
3886
+ */
3887
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest.deserializeBinaryFromReader = function(msg, reader) {
3888
+ while (reader.nextField()) {
3889
+ if (reader.isEndGroup()) {
3890
+ break;
3891
+ }
3892
+ var field = reader.getFieldNumber();
3893
+ switch (field) {
3894
+ case 1:
3895
+ var value = new proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest;
3896
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.deserializeBinaryFromReader);
3897
+ msg.setData(value);
3898
+ break;
3899
+ default:
3900
+ reader.skipField();
3901
+ break;
3902
+ }
3903
+ }
3904
+ return msg;
3772
3905
  };
3773
3906
 
3774
3907
 
3775
3908
  /**
3776
- * optional string nickname = 9;
3777
- * @return {string}
3909
+ * Serializes the message to binary data (in protobuf wire format).
3910
+ * @return {!Uint8Array}
3778
3911
  */
3779
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.getNickname = function() {
3780
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
3912
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest.prototype.serializeBinary = function() {
3913
+ var writer = new jspb.BinaryWriter();
3914
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest.serializeBinaryToWriter(this, writer);
3915
+ return writer.getResultBuffer();
3781
3916
  };
3782
3917
 
3783
3918
 
3784
- /** @param {string} value */
3785
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.setNickname = function(value) {
3786
- jspb.Message.setProto3StringField(this, 9, value);
3919
+ /**
3920
+ * Serializes the given message to binary data (in protobuf wire
3921
+ * format), writing to the given BinaryWriter.
3922
+ * @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest} message
3923
+ * @param {!jspb.BinaryWriter} writer
3924
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3925
+ */
3926
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest.serializeBinaryToWriter = function(message, writer) {
3927
+ var f = undefined;
3928
+ f = message.getData();
3929
+ if (f != null) {
3930
+ writer.writeMessage(
3931
+ 1,
3932
+ f,
3933
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.serializeBinaryToWriter
3934
+ );
3935
+ }
3787
3936
  };
3788
3937
 
3789
3938
 
3790
3939
  /**
3791
- * optional ResponseCode responseCode = 10;
3792
- * @return {?proto.sniippaymentmethodsserviceapi.ResponseCode}
3940
+ * optional PaymentMethodForPaymentRequest data = 1;
3941
+ * @return {?proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest}
3793
3942
  */
3794
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.getResponsecode = function() {
3795
- return /** @type{?proto.sniippaymentmethodsserviceapi.ResponseCode} */ (
3796
- jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.ResponseCode, 10));
3943
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest.prototype.getData = function() {
3944
+ return /** @type{?proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest} */ (
3945
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest, 1));
3797
3946
  };
3798
3947
 
3799
3948
 
3800
- /** @param {?proto.sniippaymentmethodsserviceapi.ResponseCode|undefined} value */
3801
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.setResponsecode = function(value) {
3802
- jspb.Message.setWrapperField(this, 10, value);
3949
+ /** @param {?proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest|undefined} value */
3950
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest.prototype.setData = function(value) {
3951
+ jspb.Message.setWrapperField(this, 1, value);
3803
3952
  };
3804
3953
 
3805
3954
 
3806
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.clearResponsecode = function() {
3807
- this.setResponsecode(undefined);
3955
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest.prototype.clearData = function() {
3956
+ this.setData(undefined);
3808
3957
  };
3809
3958
 
3810
3959
 
@@ -3812,8 +3961,8 @@ proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.clearRespons
3812
3961
  * Returns whether this field is set.
3813
3962
  * @return {!boolean}
3814
3963
  */
3815
- proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.prototype.hasResponsecode = function() {
3816
- return jspb.Message.getField(this, 10) != null;
3964
+ proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymentRequest.prototype.hasData = function() {
3965
+ return jspb.Message.getField(this, 1) != null;
3817
3966
  };
3818
3967
 
3819
3968
 
@@ -4413,12 +4562,12 @@ proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest.prototype.hasData =
4413
4562
  * @extends {jspb.Message}
4414
4563
  * @constructor
4415
4564
  */
4416
- proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest = function(opt_data) {
4565
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard = function(opt_data) {
4417
4566
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4418
4567
  };
4419
- goog.inherits(proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest, jspb.Message);
4568
+ goog.inherits(proto.sniippaymentmethodsserviceapi.MaskedCreditCard, jspb.Message);
4420
4569
  if (goog.DEBUG && !COMPILED) {
4421
- proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest.displayName = 'proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest';
4570
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.displayName = 'proto.sniippaymentmethodsserviceapi.MaskedCreditCard';
4422
4571
  }
4423
4572
 
4424
4573
 
@@ -4433,8 +4582,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
4433
4582
  * for transitional soy proto support: http://goto/soy-param-migration
4434
4583
  * @return {!Object}
4435
4584
  */
4436
- proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest.prototype.toObject = function(opt_includeInstance) {
4437
- return proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest.toObject(opt_includeInstance, this);
4585
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.toObject = function(opt_includeInstance) {
4586
+ return proto.sniippaymentmethodsserviceapi.MaskedCreditCard.toObject(opt_includeInstance, this);
4438
4587
  };
4439
4588
 
4440
4589
 
@@ -4443,13 +4592,20 @@ proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest.prototype.toObj
4443
4592
  * @param {boolean|undefined} includeInstance Whether to include the JSPB
4444
4593
  * instance for transitional soy proto support:
4445
4594
  * http://goto/soy-param-migration
4446
- * @param {!proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest} msg The msg instance to transform.
4595
+ * @param {!proto.sniippaymentmethodsserviceapi.MaskedCreditCard} msg The msg instance to transform.
4447
4596
  * @return {!Object}
4448
4597
  * @suppress {unusedLocalVariables} f is only used for nested messages
4449
4598
  */
4450
- proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest.toObject = function(includeInstance, msg) {
4599
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.toObject = function(includeInstance, msg) {
4451
4600
  var f, obj = {
4452
- data: (f = msg.getData()) && proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.toObject(includeInstance, f)
4601
+ creditcardid: jspb.Message.getFieldWithDefault(msg, 1, 0),
4602
+ nameoncard: jspb.Message.getFieldWithDefault(msg, 2, ""),
4603
+ creditcardnumber: jspb.Message.getFieldWithDefault(msg, 3, ""),
4604
+ cardtype: jspb.Message.getFieldWithDefault(msg, 4, ""),
4605
+ monthexpiry: jspb.Message.getFieldWithDefault(msg, 5, 0),
4606
+ yearexpiry: jspb.Message.getFieldWithDefault(msg, 6, 0),
4607
+ nickname: jspb.Message.getFieldWithDefault(msg, 7, ""),
4608
+ createddatetime: jspb.Message.getFieldWithDefault(msg, 8, "")
4453
4609
  };
4454
4610
 
4455
4611
  if (includeInstance) {
@@ -4463,23 +4619,23 @@ proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest.toObject = func
4463
4619
  /**
4464
4620
  * Deserializes binary data (in protobuf wire format).
4465
4621
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
4466
- * @return {!proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest}
4622
+ * @return {!proto.sniippaymentmethodsserviceapi.MaskedCreditCard}
4467
4623
  */
4468
- proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest.deserializeBinary = function(bytes) {
4624
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.deserializeBinary = function(bytes) {
4469
4625
  var reader = new jspb.BinaryReader(bytes);
4470
- var msg = new proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest;
4471
- return proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest.deserializeBinaryFromReader(msg, reader);
4626
+ var msg = new proto.sniippaymentmethodsserviceapi.MaskedCreditCard;
4627
+ return proto.sniippaymentmethodsserviceapi.MaskedCreditCard.deserializeBinaryFromReader(msg, reader);
4472
4628
  };
4473
4629
 
4474
4630
 
4475
4631
  /**
4476
4632
  * Deserializes binary data (in protobuf wire format) from the
4477
4633
  * given reader into the given message object.
4478
- * @param {!proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest} msg The message object to deserialize into.
4634
+ * @param {!proto.sniippaymentmethodsserviceapi.MaskedCreditCard} msg The message object to deserialize into.
4479
4635
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4480
- * @return {!proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest}
4636
+ * @return {!proto.sniippaymentmethodsserviceapi.MaskedCreditCard}
4481
4637
  */
4482
- proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest.deserializeBinaryFromReader = function(msg, reader) {
4638
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.deserializeBinaryFromReader = function(msg, reader) {
4483
4639
  while (reader.nextField()) {
4484
4640
  if (reader.isEndGroup()) {
4485
4641
  break;
@@ -4487,9 +4643,36 @@ proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest.deserializeBina
4487
4643
  var field = reader.getFieldNumber();
4488
4644
  switch (field) {
4489
4645
  case 1:
4490
- var value = new proto.sniippaymentmethodsserviceapi.GetCreditCardRequest;
4491
- reader.readMessage(value,proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.deserializeBinaryFromReader);
4492
- msg.setData(value);
4646
+ var value = /** @type {number} */ (reader.readInt64());
4647
+ msg.setCreditcardid(value);
4648
+ break;
4649
+ case 2:
4650
+ var value = /** @type {string} */ (reader.readString());
4651
+ msg.setNameoncard(value);
4652
+ break;
4653
+ case 3:
4654
+ var value = /** @type {string} */ (reader.readString());
4655
+ msg.setCreditcardnumber(value);
4656
+ break;
4657
+ case 4:
4658
+ var value = /** @type {string} */ (reader.readString());
4659
+ msg.setCardtype(value);
4660
+ break;
4661
+ case 5:
4662
+ var value = /** @type {number} */ (reader.readInt32());
4663
+ msg.setMonthexpiry(value);
4664
+ break;
4665
+ case 6:
4666
+ var value = /** @type {number} */ (reader.readInt32());
4667
+ msg.setYearexpiry(value);
4668
+ break;
4669
+ case 7:
4670
+ var value = /** @type {string} */ (reader.readString());
4671
+ msg.setNickname(value);
4672
+ break;
4673
+ case 8:
4674
+ var value = /** @type {string} */ (reader.readString());
4675
+ msg.setCreateddatetime(value);
4493
4676
  break;
4494
4677
  default:
4495
4678
  reader.skipField();
@@ -4500,64 +4683,202 @@ proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest.deserializeBina
4500
4683
  };
4501
4684
 
4502
4685
 
4503
- /**
4504
- * Serializes the message to binary data (in protobuf wire format).
4505
- * @return {!Uint8Array}
4506
- */
4507
- proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest.prototype.serializeBinary = function() {
4508
- var writer = new jspb.BinaryWriter();
4509
- proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest.serializeBinaryToWriter(this, writer);
4510
- return writer.getResultBuffer();
4686
+ /**
4687
+ * Serializes the message to binary data (in protobuf wire format).
4688
+ * @return {!Uint8Array}
4689
+ */
4690
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.serializeBinary = function() {
4691
+ var writer = new jspb.BinaryWriter();
4692
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.serializeBinaryToWriter(this, writer);
4693
+ return writer.getResultBuffer();
4694
+ };
4695
+
4696
+
4697
+ /**
4698
+ * Serializes the given message to binary data (in protobuf wire
4699
+ * format), writing to the given BinaryWriter.
4700
+ * @param {!proto.sniippaymentmethodsserviceapi.MaskedCreditCard} message
4701
+ * @param {!jspb.BinaryWriter} writer
4702
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4703
+ */
4704
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.serializeBinaryToWriter = function(message, writer) {
4705
+ var f = undefined;
4706
+ f = message.getCreditcardid();
4707
+ if (f !== 0) {
4708
+ writer.writeInt64(
4709
+ 1,
4710
+ f
4711
+ );
4712
+ }
4713
+ f = message.getNameoncard();
4714
+ if (f.length > 0) {
4715
+ writer.writeString(
4716
+ 2,
4717
+ f
4718
+ );
4719
+ }
4720
+ f = message.getCreditcardnumber();
4721
+ if (f.length > 0) {
4722
+ writer.writeString(
4723
+ 3,
4724
+ f
4725
+ );
4726
+ }
4727
+ f = message.getCardtype();
4728
+ if (f.length > 0) {
4729
+ writer.writeString(
4730
+ 4,
4731
+ f
4732
+ );
4733
+ }
4734
+ f = message.getMonthexpiry();
4735
+ if (f !== 0) {
4736
+ writer.writeInt32(
4737
+ 5,
4738
+ f
4739
+ );
4740
+ }
4741
+ f = message.getYearexpiry();
4742
+ if (f !== 0) {
4743
+ writer.writeInt32(
4744
+ 6,
4745
+ f
4746
+ );
4747
+ }
4748
+ f = message.getNickname();
4749
+ if (f.length > 0) {
4750
+ writer.writeString(
4751
+ 7,
4752
+ f
4753
+ );
4754
+ }
4755
+ f = message.getCreateddatetime();
4756
+ if (f.length > 0) {
4757
+ writer.writeString(
4758
+ 8,
4759
+ f
4760
+ );
4761
+ }
4762
+ };
4763
+
4764
+
4765
+ /**
4766
+ * optional int64 creditCardId = 1;
4767
+ * @return {number}
4768
+ */
4769
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.getCreditcardid = function() {
4770
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
4771
+ };
4772
+
4773
+
4774
+ /** @param {number} value */
4775
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.setCreditcardid = function(value) {
4776
+ jspb.Message.setProto3IntField(this, 1, value);
4777
+ };
4778
+
4779
+
4780
+ /**
4781
+ * optional string nameOnCard = 2;
4782
+ * @return {string}
4783
+ */
4784
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.getNameoncard = function() {
4785
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4786
+ };
4787
+
4788
+
4789
+ /** @param {string} value */
4790
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.setNameoncard = function(value) {
4791
+ jspb.Message.setProto3StringField(this, 2, value);
4792
+ };
4793
+
4794
+
4795
+ /**
4796
+ * optional string creditCardNumber = 3;
4797
+ * @return {string}
4798
+ */
4799
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.getCreditcardnumber = function() {
4800
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
4801
+ };
4802
+
4803
+
4804
+ /** @param {string} value */
4805
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.setCreditcardnumber = function(value) {
4806
+ jspb.Message.setProto3StringField(this, 3, value);
4807
+ };
4808
+
4809
+
4810
+ /**
4811
+ * optional string cardType = 4;
4812
+ * @return {string}
4813
+ */
4814
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.getCardtype = function() {
4815
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
4816
+ };
4817
+
4818
+
4819
+ /** @param {string} value */
4820
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.setCardtype = function(value) {
4821
+ jspb.Message.setProto3StringField(this, 4, value);
4511
4822
  };
4512
4823
 
4513
4824
 
4514
4825
  /**
4515
- * Serializes the given message to binary data (in protobuf wire
4516
- * format), writing to the given BinaryWriter.
4517
- * @param {!proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest} message
4518
- * @param {!jspb.BinaryWriter} writer
4519
- * @suppress {unusedLocalVariables} f is only used for nested messages
4826
+ * optional int32 monthExpiry = 5;
4827
+ * @return {number}
4520
4828
  */
4521
- proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest.serializeBinaryToWriter = function(message, writer) {
4522
- var f = undefined;
4523
- f = message.getData();
4524
- if (f != null) {
4525
- writer.writeMessage(
4526
- 1,
4527
- f,
4528
- proto.sniippaymentmethodsserviceapi.GetCreditCardRequest.serializeBinaryToWriter
4529
- );
4530
- }
4829
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.getMonthexpiry = function() {
4830
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
4831
+ };
4832
+
4833
+
4834
+ /** @param {number} value */
4835
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.setMonthexpiry = function(value) {
4836
+ jspb.Message.setProto3IntField(this, 5, value);
4531
4837
  };
4532
4838
 
4533
4839
 
4534
4840
  /**
4535
- * optional GetCreditCardRequest data = 1;
4536
- * @return {?proto.sniippaymentmethodsserviceapi.GetCreditCardRequest}
4841
+ * optional int32 yearExpiry = 6;
4842
+ * @return {number}
4537
4843
  */
4538
- proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest.prototype.getData = function() {
4539
- return /** @type{?proto.sniippaymentmethodsserviceapi.GetCreditCardRequest} */ (
4540
- jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.GetCreditCardRequest, 1));
4844
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.getYearexpiry = function() {
4845
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
4541
4846
  };
4542
4847
 
4543
4848
 
4544
- /** @param {?proto.sniippaymentmethodsserviceapi.GetCreditCardRequest|undefined} value */
4545
- proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest.prototype.setData = function(value) {
4546
- jspb.Message.setWrapperField(this, 1, value);
4849
+ /** @param {number} value */
4850
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.setYearexpiry = function(value) {
4851
+ jspb.Message.setProto3IntField(this, 6, value);
4547
4852
  };
4548
4853
 
4549
4854
 
4550
- proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest.prototype.clearData = function() {
4551
- this.setData(undefined);
4855
+ /**
4856
+ * optional string nickname = 7;
4857
+ * @return {string}
4858
+ */
4859
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.getNickname = function() {
4860
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
4861
+ };
4862
+
4863
+
4864
+ /** @param {string} value */
4865
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.setNickname = function(value) {
4866
+ jspb.Message.setProto3StringField(this, 7, value);
4552
4867
  };
4553
4868
 
4554
4869
 
4555
4870
  /**
4556
- * Returns whether this field is set.
4557
- * @return {!boolean}
4871
+ * optional string createdDateTime = 8;
4872
+ * @return {string}
4558
4873
  */
4559
- proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest.prototype.hasData = function() {
4560
- return jspb.Message.getField(this, 1) != null;
4874
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.getCreateddatetime = function() {
4875
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
4876
+ };
4877
+
4878
+
4879
+ /** @param {string} value */
4880
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.setCreateddatetime = function(value) {
4881
+ jspb.Message.setProto3StringField(this, 8, value);
4561
4882
  };
4562
4883
 
4563
4884
 
@@ -4572,13 +4893,20 @@ proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest.prototype.hasDa
4572
4893
  * @extends {jspb.Message}
4573
4894
  * @constructor
4574
4895
  */
4575
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard = function(opt_data) {
4576
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4896
+ proto.sniippaymentmethodsserviceapi.PaymentMethod = function(opt_data) {
4897
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.sniippaymentmethodsserviceapi.PaymentMethod.repeatedFields_, null);
4577
4898
  };
4578
- goog.inherits(proto.sniippaymentmethodsserviceapi.MaskedCreditCard, jspb.Message);
4899
+ goog.inherits(proto.sniippaymentmethodsserviceapi.PaymentMethod, jspb.Message);
4579
4900
  if (goog.DEBUG && !COMPILED) {
4580
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.displayName = 'proto.sniippaymentmethodsserviceapi.MaskedCreditCard';
4901
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.displayName = 'proto.sniippaymentmethodsserviceapi.PaymentMethod';
4581
4902
  }
4903
+ /**
4904
+ * List of repeated fields within this message type.
4905
+ * @private {!Array<number>}
4906
+ * @const
4907
+ */
4908
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.repeatedFields_ = [7];
4909
+
4582
4910
 
4583
4911
 
4584
4912
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -4592,8 +4920,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
4592
4920
  * for transitional soy proto support: http://goto/soy-param-migration
4593
4921
  * @return {!Object}
4594
4922
  */
4595
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.toObject = function(opt_includeInstance) {
4596
- return proto.sniippaymentmethodsserviceapi.MaskedCreditCard.toObject(opt_includeInstance, this);
4923
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.toObject = function(opt_includeInstance) {
4924
+ return proto.sniippaymentmethodsserviceapi.PaymentMethod.toObject(opt_includeInstance, this);
4597
4925
  };
4598
4926
 
4599
4927
 
@@ -4602,20 +4930,18 @@ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.toObject = functi
4602
4930
  * @param {boolean|undefined} includeInstance Whether to include the JSPB
4603
4931
  * instance for transitional soy proto support:
4604
4932
  * http://goto/soy-param-migration
4605
- * @param {!proto.sniippaymentmethodsserviceapi.MaskedCreditCard} msg The msg instance to transform.
4933
+ * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethod} msg The msg instance to transform.
4606
4934
  * @return {!Object}
4607
4935
  * @suppress {unusedLocalVariables} f is only used for nested messages
4608
4936
  */
4609
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.toObject = function(includeInstance, msg) {
4937
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.toObject = function(includeInstance, msg) {
4610
4938
  var f, obj = {
4611
- creditcardid: jspb.Message.getFieldWithDefault(msg, 1, 0),
4612
- nameoncard: jspb.Message.getFieldWithDefault(msg, 2, ""),
4613
- creditcardnumber: jspb.Message.getFieldWithDefault(msg, 3, ""),
4614
- cardtype: jspb.Message.getFieldWithDefault(msg, 4, ""),
4615
- monthexpiry: jspb.Message.getFieldWithDefault(msg, 5, 0),
4616
- yearexpiry: jspb.Message.getFieldWithDefault(msg, 6, 0),
4617
- nickname: jspb.Message.getFieldWithDefault(msg, 7, ""),
4618
- createddatetime: jspb.Message.getFieldWithDefault(msg, 8, "")
4939
+ paymentdetailid: jspb.Message.getFieldWithDefault(msg, 1, 0),
4940
+ paymenttype: jspb.Message.getFieldWithDefault(msg, 2, ""),
4941
+ maskedcreditcard: (f = msg.getMaskedcreditcard()) && proto.sniippaymentmethodsserviceapi.MaskedCreditCard.toObject(includeInstance, f),
4942
+ bankaccount: (f = msg.getBankaccount()) && proto.sniippaymentmethodsserviceapi.BankAccount.toObject(includeInstance, f),
4943
+ activationsList: jspb.Message.toObjectList(msg.getActivationsList(),
4944
+ proto.sniippaymentmethodsserviceapi.Activation.toObject, includeInstance)
4619
4945
  };
4620
4946
 
4621
4947
  if (includeInstance) {
@@ -4629,23 +4955,23 @@ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.toObject = function(include
4629
4955
  /**
4630
4956
  * Deserializes binary data (in protobuf wire format).
4631
4957
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
4632
- * @return {!proto.sniippaymentmethodsserviceapi.MaskedCreditCard}
4958
+ * @return {!proto.sniippaymentmethodsserviceapi.PaymentMethod}
4633
4959
  */
4634
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.deserializeBinary = function(bytes) {
4960
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.deserializeBinary = function(bytes) {
4635
4961
  var reader = new jspb.BinaryReader(bytes);
4636
- var msg = new proto.sniippaymentmethodsserviceapi.MaskedCreditCard;
4637
- return proto.sniippaymentmethodsserviceapi.MaskedCreditCard.deserializeBinaryFromReader(msg, reader);
4962
+ var msg = new proto.sniippaymentmethodsserviceapi.PaymentMethod;
4963
+ return proto.sniippaymentmethodsserviceapi.PaymentMethod.deserializeBinaryFromReader(msg, reader);
4638
4964
  };
4639
4965
 
4640
4966
 
4641
4967
  /**
4642
4968
  * Deserializes binary data (in protobuf wire format) from the
4643
4969
  * given reader into the given message object.
4644
- * @param {!proto.sniippaymentmethodsserviceapi.MaskedCreditCard} msg The message object to deserialize into.
4970
+ * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethod} msg The message object to deserialize into.
4645
4971
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4646
- * @return {!proto.sniippaymentmethodsserviceapi.MaskedCreditCard}
4972
+ * @return {!proto.sniippaymentmethodsserviceapi.PaymentMethod}
4647
4973
  */
4648
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.deserializeBinaryFromReader = function(msg, reader) {
4974
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.deserializeBinaryFromReader = function(msg, reader) {
4649
4975
  while (reader.nextField()) {
4650
4976
  if (reader.isEndGroup()) {
4651
4977
  break;
@@ -4654,35 +4980,26 @@ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.deserializeBinaryFromReader
4654
4980
  switch (field) {
4655
4981
  case 1:
4656
4982
  var value = /** @type {number} */ (reader.readInt64());
4657
- msg.setCreditcardid(value);
4983
+ msg.setPaymentdetailid(value);
4658
4984
  break;
4659
4985
  case 2:
4660
4986
  var value = /** @type {string} */ (reader.readString());
4661
- msg.setNameoncard(value);
4987
+ msg.setPaymenttype(value);
4662
4988
  break;
4663
4989
  case 3:
4664
- var value = /** @type {string} */ (reader.readString());
4665
- msg.setCreditcardnumber(value);
4990
+ var value = new proto.sniippaymentmethodsserviceapi.MaskedCreditCard;
4991
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.MaskedCreditCard.deserializeBinaryFromReader);
4992
+ msg.setMaskedcreditcard(value);
4666
4993
  break;
4667
4994
  case 4:
4668
- var value = /** @type {string} */ (reader.readString());
4669
- msg.setCardtype(value);
4670
- break;
4671
- case 5:
4672
- var value = /** @type {number} */ (reader.readInt32());
4673
- msg.setMonthexpiry(value);
4674
- break;
4675
- case 6:
4676
- var value = /** @type {number} */ (reader.readInt32());
4677
- msg.setYearexpiry(value);
4995
+ var value = new proto.sniippaymentmethodsserviceapi.BankAccount;
4996
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.BankAccount.deserializeBinaryFromReader);
4997
+ msg.setBankaccount(value);
4678
4998
  break;
4679
4999
  case 7:
4680
- var value = /** @type {string} */ (reader.readString());
4681
- msg.setNickname(value);
4682
- break;
4683
- case 8:
4684
- var value = /** @type {string} */ (reader.readString());
4685
- msg.setCreateddatetime(value);
5000
+ var value = new proto.sniippaymentmethodsserviceapi.Activation;
5001
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.Activation.deserializeBinaryFromReader);
5002
+ msg.addActivations(value);
4686
5003
  break;
4687
5004
  default:
4688
5005
  reader.skipField();
@@ -4697,9 +5014,9 @@ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.deserializeBinaryFromReader
4697
5014
  * Serializes the message to binary data (in protobuf wire format).
4698
5015
  * @return {!Uint8Array}
4699
5016
  */
4700
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.serializeBinary = function() {
5017
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.serializeBinary = function() {
4701
5018
  var writer = new jspb.BinaryWriter();
4702
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.serializeBinaryToWriter(this, writer);
5019
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.serializeBinaryToWriter(this, writer);
4703
5020
  return writer.getResultBuffer();
4704
5021
  };
4705
5022
 
@@ -4707,188 +5024,171 @@ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.serializeBinary =
4707
5024
  /**
4708
5025
  * Serializes the given message to binary data (in protobuf wire
4709
5026
  * format), writing to the given BinaryWriter.
4710
- * @param {!proto.sniippaymentmethodsserviceapi.MaskedCreditCard} message
5027
+ * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethod} message
4711
5028
  * @param {!jspb.BinaryWriter} writer
4712
5029
  * @suppress {unusedLocalVariables} f is only used for nested messages
4713
5030
  */
4714
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.serializeBinaryToWriter = function(message, writer) {
5031
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.serializeBinaryToWriter = function(message, writer) {
4715
5032
  var f = undefined;
4716
- f = message.getCreditcardid();
5033
+ f = message.getPaymentdetailid();
4717
5034
  if (f !== 0) {
4718
5035
  writer.writeInt64(
4719
5036
  1,
4720
5037
  f
4721
5038
  );
4722
5039
  }
4723
- f = message.getNameoncard();
5040
+ f = message.getPaymenttype();
4724
5041
  if (f.length > 0) {
4725
5042
  writer.writeString(
4726
5043
  2,
4727
5044
  f
4728
5045
  );
4729
5046
  }
4730
- f = message.getCreditcardnumber();
4731
- if (f.length > 0) {
4732
- writer.writeString(
5047
+ f = message.getMaskedcreditcard();
5048
+ if (f != null) {
5049
+ writer.writeMessage(
4733
5050
  3,
4734
- f
5051
+ f,
5052
+ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.serializeBinaryToWriter
4735
5053
  );
4736
5054
  }
4737
- f = message.getCardtype();
4738
- if (f.length > 0) {
4739
- writer.writeString(
5055
+ f = message.getBankaccount();
5056
+ if (f != null) {
5057
+ writer.writeMessage(
4740
5058
  4,
4741
- f
4742
- );
4743
- }
4744
- f = message.getMonthexpiry();
4745
- if (f !== 0) {
4746
- writer.writeInt32(
4747
- 5,
4748
- f
4749
- );
4750
- }
4751
- f = message.getYearexpiry();
4752
- if (f !== 0) {
4753
- writer.writeInt32(
4754
- 6,
4755
- f
5059
+ f,
5060
+ proto.sniippaymentmethodsserviceapi.BankAccount.serializeBinaryToWriter
4756
5061
  );
4757
5062
  }
4758
- f = message.getNickname();
5063
+ f = message.getActivationsList();
4759
5064
  if (f.length > 0) {
4760
- writer.writeString(
5065
+ writer.writeRepeatedMessage(
4761
5066
  7,
4762
- f
4763
- );
4764
- }
4765
- f = message.getCreateddatetime();
4766
- if (f.length > 0) {
4767
- writer.writeString(
4768
- 8,
4769
- f
5067
+ f,
5068
+ proto.sniippaymentmethodsserviceapi.Activation.serializeBinaryToWriter
4770
5069
  );
4771
5070
  }
4772
5071
  };
4773
5072
 
4774
5073
 
4775
5074
  /**
4776
- * optional int64 creditCardId = 1;
5075
+ * optional int64 paymentDetailId = 1;
4777
5076
  * @return {number}
4778
5077
  */
4779
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.getCreditcardid = function() {
5078
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.getPaymentdetailid = function() {
4780
5079
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
4781
5080
  };
4782
5081
 
4783
5082
 
4784
5083
  /** @param {number} value */
4785
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.setCreditcardid = function(value) {
5084
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.setPaymentdetailid = function(value) {
4786
5085
  jspb.Message.setProto3IntField(this, 1, value);
4787
5086
  };
4788
5087
 
4789
5088
 
4790
5089
  /**
4791
- * optional string nameOnCard = 2;
5090
+ * optional string paymentType = 2;
4792
5091
  * @return {string}
4793
5092
  */
4794
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.getNameoncard = function() {
5093
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.getPaymenttype = function() {
4795
5094
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4796
5095
  };
4797
5096
 
4798
5097
 
4799
5098
  /** @param {string} value */
4800
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.setNameoncard = function(value) {
5099
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.setPaymenttype = function(value) {
4801
5100
  jspb.Message.setProto3StringField(this, 2, value);
4802
5101
  };
4803
5102
 
4804
5103
 
4805
5104
  /**
4806
- * optional string creditCardNumber = 3;
4807
- * @return {string}
5105
+ * optional MaskedCreditCard maskedCreditCard = 3;
5106
+ * @return {?proto.sniippaymentmethodsserviceapi.MaskedCreditCard}
4808
5107
  */
4809
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.getCreditcardnumber = function() {
4810
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
5108
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.getMaskedcreditcard = function() {
5109
+ return /** @type{?proto.sniippaymentmethodsserviceapi.MaskedCreditCard} */ (
5110
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.MaskedCreditCard, 3));
4811
5111
  };
4812
5112
 
4813
5113
 
4814
- /** @param {string} value */
4815
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.setCreditcardnumber = function(value) {
4816
- jspb.Message.setProto3StringField(this, 3, value);
5114
+ /** @param {?proto.sniippaymentmethodsserviceapi.MaskedCreditCard|undefined} value */
5115
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.setMaskedcreditcard = function(value) {
5116
+ jspb.Message.setWrapperField(this, 3, value);
5117
+ };
5118
+
5119
+
5120
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.clearMaskedcreditcard = function() {
5121
+ this.setMaskedcreditcard(undefined);
4817
5122
  };
4818
5123
 
4819
5124
 
4820
5125
  /**
4821
- * optional string cardType = 4;
4822
- * @return {string}
5126
+ * Returns whether this field is set.
5127
+ * @return {!boolean}
4823
5128
  */
4824
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.getCardtype = function() {
4825
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
5129
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.hasMaskedcreditcard = function() {
5130
+ return jspb.Message.getField(this, 3) != null;
4826
5131
  };
4827
5132
 
4828
5133
 
4829
- /** @param {string} value */
4830
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.setCardtype = function(value) {
4831
- jspb.Message.setProto3StringField(this, 4, value);
5134
+ /**
5135
+ * optional BankAccount bankAccount = 4;
5136
+ * @return {?proto.sniippaymentmethodsserviceapi.BankAccount}
5137
+ */
5138
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.getBankaccount = function() {
5139
+ return /** @type{?proto.sniippaymentmethodsserviceapi.BankAccount} */ (
5140
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.BankAccount, 4));
4832
5141
  };
4833
5142
 
4834
5143
 
4835
- /**
4836
- * optional int32 monthExpiry = 5;
4837
- * @return {number}
4838
- */
4839
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.getMonthexpiry = function() {
4840
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
5144
+ /** @param {?proto.sniippaymentmethodsserviceapi.BankAccount|undefined} value */
5145
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.setBankaccount = function(value) {
5146
+ jspb.Message.setWrapperField(this, 4, value);
4841
5147
  };
4842
5148
 
4843
5149
 
4844
- /** @param {number} value */
4845
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.setMonthexpiry = function(value) {
4846
- jspb.Message.setProto3IntField(this, 5, value);
5150
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.clearBankaccount = function() {
5151
+ this.setBankaccount(undefined);
4847
5152
  };
4848
5153
 
4849
5154
 
4850
5155
  /**
4851
- * optional int32 yearExpiry = 6;
4852
- * @return {number}
5156
+ * Returns whether this field is set.
5157
+ * @return {!boolean}
4853
5158
  */
4854
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.getYearexpiry = function() {
4855
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
4856
- };
4857
-
4858
-
4859
- /** @param {number} value */
4860
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.setYearexpiry = function(value) {
4861
- jspb.Message.setProto3IntField(this, 6, value);
5159
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.hasBankaccount = function() {
5160
+ return jspb.Message.getField(this, 4) != null;
4862
5161
  };
4863
5162
 
4864
5163
 
4865
5164
  /**
4866
- * optional string nickname = 7;
4867
- * @return {string}
5165
+ * repeated Activation activations = 7;
5166
+ * @return {!Array<!proto.sniippaymentmethodsserviceapi.Activation>}
4868
5167
  */
4869
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.getNickname = function() {
4870
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
5168
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.getActivationsList = function() {
5169
+ return /** @type{!Array<!proto.sniippaymentmethodsserviceapi.Activation>} */ (
5170
+ jspb.Message.getRepeatedWrapperField(this, proto.sniippaymentmethodsserviceapi.Activation, 7));
4871
5171
  };
4872
5172
 
4873
5173
 
4874
- /** @param {string} value */
4875
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.setNickname = function(value) {
4876
- jspb.Message.setProto3StringField(this, 7, value);
5174
+ /** @param {!Array<!proto.sniippaymentmethodsserviceapi.Activation>} value */
5175
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.setActivationsList = function(value) {
5176
+ jspb.Message.setRepeatedWrapperField(this, 7, value);
4877
5177
  };
4878
5178
 
4879
5179
 
4880
5180
  /**
4881
- * optional string createdDateTime = 8;
4882
- * @return {string}
5181
+ * @param {!proto.sniippaymentmethodsserviceapi.Activation=} opt_value
5182
+ * @param {number=} opt_index
5183
+ * @return {!proto.sniippaymentmethodsserviceapi.Activation}
4883
5184
  */
4884
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.getCreateddatetime = function() {
4885
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
5185
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.addActivations = function(opt_value, opt_index) {
5186
+ return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.sniippaymentmethodsserviceapi.Activation, opt_index);
4886
5187
  };
4887
5188
 
4888
5189
 
4889
- /** @param {string} value */
4890
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.setCreateddatetime = function(value) {
4891
- jspb.Message.setProto3StringField(this, 8, value);
5190
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.clearActivationsList = function() {
5191
+ this.setActivationsList([]);
4892
5192
  };
4893
5193
 
4894
5194
 
@@ -4903,20 +5203,13 @@ proto.sniippaymentmethodsserviceapi.MaskedCreditCard.prototype.setCreateddatetim
4903
5203
  * @extends {jspb.Message}
4904
5204
  * @constructor
4905
5205
  */
4906
- proto.sniippaymentmethodsserviceapi.PaymentMethod = function(opt_data) {
4907
- jspb.Message.initialize(this, opt_data, 0, -1, proto.sniippaymentmethodsserviceapi.PaymentMethod.repeatedFields_, null);
5206
+ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest = function(opt_data) {
5207
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4908
5208
  };
4909
- goog.inherits(proto.sniippaymentmethodsserviceapi.PaymentMethod, jspb.Message);
5209
+ goog.inherits(proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest, jspb.Message);
4910
5210
  if (goog.DEBUG && !COMPILED) {
4911
- proto.sniippaymentmethodsserviceapi.PaymentMethod.displayName = 'proto.sniippaymentmethodsserviceapi.PaymentMethod';
5211
+ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.displayName = 'proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest';
4912
5212
  }
4913
- /**
4914
- * List of repeated fields within this message type.
4915
- * @private {!Array<number>}
4916
- * @const
4917
- */
4918
- proto.sniippaymentmethodsserviceapi.PaymentMethod.repeatedFields_ = [7];
4919
-
4920
5213
 
4921
5214
 
4922
5215
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -4930,8 +5223,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
4930
5223
  * for transitional soy proto support: http://goto/soy-param-migration
4931
5224
  * @return {!Object}
4932
5225
  */
4933
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.toObject = function(opt_includeInstance) {
4934
- return proto.sniippaymentmethodsserviceapi.PaymentMethod.toObject(opt_includeInstance, this);
5226
+ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.toObject = function(opt_includeInstance) {
5227
+ return proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.toObject(opt_includeInstance, this);
4935
5228
  };
4936
5229
 
4937
5230
 
@@ -4940,18 +5233,15 @@ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.toObject = function(
4940
5233
  * @param {boolean|undefined} includeInstance Whether to include the JSPB
4941
5234
  * instance for transitional soy proto support:
4942
5235
  * http://goto/soy-param-migration
4943
- * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethod} msg The msg instance to transform.
5236
+ * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest} msg The msg instance to transform.
4944
5237
  * @return {!Object}
4945
5238
  * @suppress {unusedLocalVariables} f is only used for nested messages
4946
5239
  */
4947
- proto.sniippaymentmethodsserviceapi.PaymentMethod.toObject = function(includeInstance, msg) {
5240
+ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.toObject = function(includeInstance, msg) {
4948
5241
  var f, obj = {
4949
5242
  paymentdetailid: jspb.Message.getFieldWithDefault(msg, 1, 0),
4950
- paymenttype: jspb.Message.getFieldWithDefault(msg, 2, ""),
4951
- maskedcreditcard: (f = msg.getMaskedcreditcard()) && proto.sniippaymentmethodsserviceapi.MaskedCreditCard.toObject(includeInstance, f),
4952
- bankaccount: (f = msg.getBankaccount()) && proto.sniippaymentmethodsserviceapi.BankAccount.toObject(includeInstance, f),
4953
- activationsList: jspb.Message.toObjectList(msg.getActivationsList(),
4954
- proto.sniippaymentmethodsserviceapi.Activation.toObject, includeInstance)
5243
+ accesstoken: jspb.Message.getFieldWithDefault(msg, 2, ""),
5244
+ isconfirmeddelete: jspb.Message.getFieldWithDefault(msg, 3, false)
4955
5245
  };
4956
5246
 
4957
5247
  if (includeInstance) {
@@ -4965,23 +5255,23 @@ proto.sniippaymentmethodsserviceapi.PaymentMethod.toObject = function(includeIns
4965
5255
  /**
4966
5256
  * Deserializes binary data (in protobuf wire format).
4967
5257
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
4968
- * @return {!proto.sniippaymentmethodsserviceapi.PaymentMethod}
5258
+ * @return {!proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest}
4969
5259
  */
4970
- proto.sniippaymentmethodsserviceapi.PaymentMethod.deserializeBinary = function(bytes) {
5260
+ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.deserializeBinary = function(bytes) {
4971
5261
  var reader = new jspb.BinaryReader(bytes);
4972
- var msg = new proto.sniippaymentmethodsserviceapi.PaymentMethod;
4973
- return proto.sniippaymentmethodsserviceapi.PaymentMethod.deserializeBinaryFromReader(msg, reader);
5262
+ var msg = new proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest;
5263
+ return proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.deserializeBinaryFromReader(msg, reader);
4974
5264
  };
4975
5265
 
4976
5266
 
4977
5267
  /**
4978
5268
  * Deserializes binary data (in protobuf wire format) from the
4979
5269
  * given reader into the given message object.
4980
- * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethod} msg The message object to deserialize into.
5270
+ * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest} msg The message object to deserialize into.
4981
5271
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4982
- * @return {!proto.sniippaymentmethodsserviceapi.PaymentMethod}
5272
+ * @return {!proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest}
4983
5273
  */
4984
- proto.sniippaymentmethodsserviceapi.PaymentMethod.deserializeBinaryFromReader = function(msg, reader) {
5274
+ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.deserializeBinaryFromReader = function(msg, reader) {
4985
5275
  while (reader.nextField()) {
4986
5276
  if (reader.isEndGroup()) {
4987
5277
  break;
@@ -4994,22 +5284,11 @@ proto.sniippaymentmethodsserviceapi.PaymentMethod.deserializeBinaryFromReader =
4994
5284
  break;
4995
5285
  case 2:
4996
5286
  var value = /** @type {string} */ (reader.readString());
4997
- msg.setPaymenttype(value);
5287
+ msg.setAccesstoken(value);
4998
5288
  break;
4999
5289
  case 3:
5000
- var value = new proto.sniippaymentmethodsserviceapi.MaskedCreditCard;
5001
- reader.readMessage(value,proto.sniippaymentmethodsserviceapi.MaskedCreditCard.deserializeBinaryFromReader);
5002
- msg.setMaskedcreditcard(value);
5003
- break;
5004
- case 4:
5005
- var value = new proto.sniippaymentmethodsserviceapi.BankAccount;
5006
- reader.readMessage(value,proto.sniippaymentmethodsserviceapi.BankAccount.deserializeBinaryFromReader);
5007
- msg.setBankaccount(value);
5008
- break;
5009
- case 7:
5010
- var value = new proto.sniippaymentmethodsserviceapi.Activation;
5011
- reader.readMessage(value,proto.sniippaymentmethodsserviceapi.Activation.deserializeBinaryFromReader);
5012
- msg.addActivations(value);
5290
+ var value = /** @type {boolean} */ (reader.readBool());
5291
+ msg.setIsconfirmeddelete(value);
5013
5292
  break;
5014
5293
  default:
5015
5294
  reader.skipField();
@@ -5024,9 +5303,9 @@ proto.sniippaymentmethodsserviceapi.PaymentMethod.deserializeBinaryFromReader =
5024
5303
  * Serializes the message to binary data (in protobuf wire format).
5025
5304
  * @return {!Uint8Array}
5026
5305
  */
5027
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.serializeBinary = function() {
5306
+ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.serializeBinary = function() {
5028
5307
  var writer = new jspb.BinaryWriter();
5029
- proto.sniippaymentmethodsserviceapi.PaymentMethod.serializeBinaryToWriter(this, writer);
5308
+ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.serializeBinaryToWriter(this, writer);
5030
5309
  return writer.getResultBuffer();
5031
5310
  };
5032
5311
 
@@ -5034,11 +5313,11 @@ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.serializeBinary = fu
5034
5313
  /**
5035
5314
  * Serializes the given message to binary data (in protobuf wire
5036
5315
  * format), writing to the given BinaryWriter.
5037
- * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethod} message
5316
+ * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest} message
5038
5317
  * @param {!jspb.BinaryWriter} writer
5039
5318
  * @suppress {unusedLocalVariables} f is only used for nested messages
5040
5319
  */
5041
- proto.sniippaymentmethodsserviceapi.PaymentMethod.serializeBinaryToWriter = function(message, writer) {
5320
+ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.serializeBinaryToWriter = function(message, writer) {
5042
5321
  var f = undefined;
5043
5322
  f = message.getPaymentdetailid();
5044
5323
  if (f !== 0) {
@@ -5047,35 +5326,18 @@ proto.sniippaymentmethodsserviceapi.PaymentMethod.serializeBinaryToWriter = func
5047
5326
  f
5048
5327
  );
5049
5328
  }
5050
- f = message.getPaymenttype();
5329
+ f = message.getAccesstoken();
5051
5330
  if (f.length > 0) {
5052
5331
  writer.writeString(
5053
5332
  2,
5054
5333
  f
5055
5334
  );
5056
5335
  }
5057
- f = message.getMaskedcreditcard();
5058
- if (f != null) {
5059
- writer.writeMessage(
5336
+ f = message.getIsconfirmeddelete();
5337
+ if (f) {
5338
+ writer.writeBool(
5060
5339
  3,
5061
- f,
5062
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.serializeBinaryToWriter
5063
- );
5064
- }
5065
- f = message.getBankaccount();
5066
- if (f != null) {
5067
- writer.writeMessage(
5068
- 4,
5069
- f,
5070
- proto.sniippaymentmethodsserviceapi.BankAccount.serializeBinaryToWriter
5071
- );
5072
- }
5073
- f = message.getActivationsList();
5074
- if (f.length > 0) {
5075
- writer.writeRepeatedMessage(
5076
- 7,
5077
- f,
5078
- proto.sniippaymentmethodsserviceapi.Activation.serializeBinaryToWriter
5340
+ f
5079
5341
  );
5080
5342
  }
5081
5343
  };
@@ -5085,120 +5347,242 @@ proto.sniippaymentmethodsserviceapi.PaymentMethod.serializeBinaryToWriter = func
5085
5347
  * optional int64 paymentDetailId = 1;
5086
5348
  * @return {number}
5087
5349
  */
5088
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.getPaymentdetailid = function() {
5350
+ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.getPaymentdetailid = function() {
5089
5351
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
5090
5352
  };
5091
5353
 
5092
5354
 
5093
5355
  /** @param {number} value */
5094
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.setPaymentdetailid = function(value) {
5356
+ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.setPaymentdetailid = function(value) {
5095
5357
  jspb.Message.setProto3IntField(this, 1, value);
5096
5358
  };
5097
5359
 
5098
5360
 
5099
5361
  /**
5100
- * optional string paymentType = 2;
5362
+ * optional string accessToken = 2;
5101
5363
  * @return {string}
5102
5364
  */
5103
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.getPaymenttype = function() {
5365
+ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.getAccesstoken = function() {
5104
5366
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
5105
5367
  };
5106
5368
 
5107
5369
 
5108
5370
  /** @param {string} value */
5109
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.setPaymenttype = function(value) {
5371
+ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.setAccesstoken = function(value) {
5110
5372
  jspb.Message.setProto3StringField(this, 2, value);
5111
5373
  };
5112
5374
 
5113
5375
 
5114
5376
  /**
5115
- * optional MaskedCreditCard maskedCreditCard = 3;
5116
- * @return {?proto.sniippaymentmethodsserviceapi.MaskedCreditCard}
5377
+ * optional bool isConfirmedDelete = 3;
5378
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
5379
+ * You should avoid comparisons like {@code val === true/false} in those cases.
5380
+ * @return {boolean}
5117
5381
  */
5118
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.getMaskedcreditcard = function() {
5119
- return /** @type{?proto.sniippaymentmethodsserviceapi.MaskedCreditCard} */ (
5120
- jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.MaskedCreditCard, 3));
5382
+ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.getIsconfirmeddelete = function() {
5383
+ return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false));
5121
5384
  };
5122
5385
 
5123
5386
 
5124
- /** @param {?proto.sniippaymentmethodsserviceapi.MaskedCreditCard|undefined} value */
5125
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.setMaskedcreditcard = function(value) {
5126
- jspb.Message.setWrapperField(this, 3, value);
5387
+ /** @param {boolean} value */
5388
+ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.setIsconfirmeddelete = function(value) {
5389
+ jspb.Message.setProto3BooleanField(this, 3, value);
5127
5390
  };
5128
5391
 
5129
5392
 
5130
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.clearMaskedcreditcard = function() {
5131
- this.setMaskedcreditcard(undefined);
5393
+
5394
+ /**
5395
+ * Generated by JsPbCodeGenerator.
5396
+ * @param {Array=} opt_data Optional initial data array, typically from a
5397
+ * server response, or constructed directly in Javascript. The array is used
5398
+ * in place and becomes part of the constructed object. It is not cloned.
5399
+ * If no data is provided, the constructed object will be empty, but still
5400
+ * valid.
5401
+ * @extends {jspb.Message}
5402
+ * @constructor
5403
+ */
5404
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest = function(opt_data) {
5405
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5406
+ };
5407
+ goog.inherits(proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest, jspb.Message);
5408
+ if (goog.DEBUG && !COMPILED) {
5409
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.displayName = 'proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest';
5410
+ }
5411
+
5412
+
5413
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5414
+ /**
5415
+ * Creates an object representation of this proto suitable for use in Soy templates.
5416
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5417
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5418
+ * For the list of reserved names please see:
5419
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
5420
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
5421
+ * for transitional soy proto support: http://goto/soy-param-migration
5422
+ * @return {!Object}
5423
+ */
5424
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.prototype.toObject = function(opt_includeInstance) {
5425
+ return proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.toObject(opt_includeInstance, this);
5426
+ };
5427
+
5428
+
5429
+ /**
5430
+ * Static version of the {@see toObject} method.
5431
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
5432
+ * instance for transitional soy proto support:
5433
+ * http://goto/soy-param-migration
5434
+ * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest} msg The msg instance to transform.
5435
+ * @return {!Object}
5436
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5437
+ */
5438
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.toObject = function(includeInstance, msg) {
5439
+ var f, obj = {
5440
+ paymentmethodid: jspb.Message.getFieldWithDefault(msg, 1, 0),
5441
+ accesstoken: jspb.Message.getFieldWithDefault(msg, 2, ""),
5442
+ userid: jspb.Message.getFieldWithDefault(msg, 3, 0)
5443
+ };
5444
+
5445
+ if (includeInstance) {
5446
+ obj.$jspbMessageInstance = msg;
5447
+ }
5448
+ return obj;
5449
+ };
5450
+ }
5451
+
5452
+
5453
+ /**
5454
+ * Deserializes binary data (in protobuf wire format).
5455
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5456
+ * @return {!proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest}
5457
+ */
5458
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.deserializeBinary = function(bytes) {
5459
+ var reader = new jspb.BinaryReader(bytes);
5460
+ var msg = new proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest;
5461
+ return proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.deserializeBinaryFromReader(msg, reader);
5462
+ };
5463
+
5464
+
5465
+ /**
5466
+ * Deserializes binary data (in protobuf wire format) from the
5467
+ * given reader into the given message object.
5468
+ * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest} msg The message object to deserialize into.
5469
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5470
+ * @return {!proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest}
5471
+ */
5472
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.deserializeBinaryFromReader = function(msg, reader) {
5473
+ while (reader.nextField()) {
5474
+ if (reader.isEndGroup()) {
5475
+ break;
5476
+ }
5477
+ var field = reader.getFieldNumber();
5478
+ switch (field) {
5479
+ case 1:
5480
+ var value = /** @type {number} */ (reader.readInt64());
5481
+ msg.setPaymentmethodid(value);
5482
+ break;
5483
+ case 2:
5484
+ var value = /** @type {string} */ (reader.readString());
5485
+ msg.setAccesstoken(value);
5486
+ break;
5487
+ case 3:
5488
+ var value = /** @type {number} */ (reader.readInt64());
5489
+ msg.setUserid(value);
5490
+ break;
5491
+ default:
5492
+ reader.skipField();
5493
+ break;
5494
+ }
5495
+ }
5496
+ return msg;
5132
5497
  };
5133
5498
 
5134
5499
 
5135
5500
  /**
5136
- * Returns whether this field is set.
5137
- * @return {!boolean}
5501
+ * Serializes the message to binary data (in protobuf wire format).
5502
+ * @return {!Uint8Array}
5138
5503
  */
5139
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.hasMaskedcreditcard = function() {
5140
- return jspb.Message.getField(this, 3) != null;
5504
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.prototype.serializeBinary = function() {
5505
+ var writer = new jspb.BinaryWriter();
5506
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.serializeBinaryToWriter(this, writer);
5507
+ return writer.getResultBuffer();
5141
5508
  };
5142
5509
 
5143
5510
 
5144
5511
  /**
5145
- * optional BankAccount bankAccount = 4;
5146
- * @return {?proto.sniippaymentmethodsserviceapi.BankAccount}
5512
+ * Serializes the given message to binary data (in protobuf wire
5513
+ * format), writing to the given BinaryWriter.
5514
+ * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest} message
5515
+ * @param {!jspb.BinaryWriter} writer
5516
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5147
5517
  */
5148
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.getBankaccount = function() {
5149
- return /** @type{?proto.sniippaymentmethodsserviceapi.BankAccount} */ (
5150
- jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.BankAccount, 4));
5151
- };
5152
-
5153
-
5154
- /** @param {?proto.sniippaymentmethodsserviceapi.BankAccount|undefined} value */
5155
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.setBankaccount = function(value) {
5156
- jspb.Message.setWrapperField(this, 4, value);
5518
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.serializeBinaryToWriter = function(message, writer) {
5519
+ var f = undefined;
5520
+ f = message.getPaymentmethodid();
5521
+ if (f !== 0) {
5522
+ writer.writeInt64(
5523
+ 1,
5524
+ f
5525
+ );
5526
+ }
5527
+ f = message.getAccesstoken();
5528
+ if (f.length > 0) {
5529
+ writer.writeString(
5530
+ 2,
5531
+ f
5532
+ );
5533
+ }
5534
+ f = message.getUserid();
5535
+ if (f !== 0) {
5536
+ writer.writeInt64(
5537
+ 3,
5538
+ f
5539
+ );
5540
+ }
5157
5541
  };
5158
5542
 
5159
5543
 
5160
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.clearBankaccount = function() {
5161
- this.setBankaccount(undefined);
5544
+ /**
5545
+ * optional int64 paymentMethodId = 1;
5546
+ * @return {number}
5547
+ */
5548
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.prototype.getPaymentmethodid = function() {
5549
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
5162
5550
  };
5163
5551
 
5164
5552
 
5165
- /**
5166
- * Returns whether this field is set.
5167
- * @return {!boolean}
5168
- */
5169
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.hasBankaccount = function() {
5170
- return jspb.Message.getField(this, 4) != null;
5553
+ /** @param {number} value */
5554
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.prototype.setPaymentmethodid = function(value) {
5555
+ jspb.Message.setProto3IntField(this, 1, value);
5171
5556
  };
5172
5557
 
5173
5558
 
5174
5559
  /**
5175
- * repeated Activation activations = 7;
5176
- * @return {!Array<!proto.sniippaymentmethodsserviceapi.Activation>}
5560
+ * optional string accessToken = 2;
5561
+ * @return {string}
5177
5562
  */
5178
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.getActivationsList = function() {
5179
- return /** @type{!Array<!proto.sniippaymentmethodsserviceapi.Activation>} */ (
5180
- jspb.Message.getRepeatedWrapperField(this, proto.sniippaymentmethodsserviceapi.Activation, 7));
5563
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.prototype.getAccesstoken = function() {
5564
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
5181
5565
  };
5182
5566
 
5183
5567
 
5184
- /** @param {!Array<!proto.sniippaymentmethodsserviceapi.Activation>} value */
5185
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.setActivationsList = function(value) {
5186
- jspb.Message.setRepeatedWrapperField(this, 7, value);
5568
+ /** @param {string} value */
5569
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.prototype.setAccesstoken = function(value) {
5570
+ jspb.Message.setProto3StringField(this, 2, value);
5187
5571
  };
5188
5572
 
5189
5573
 
5190
5574
  /**
5191
- * @param {!proto.sniippaymentmethodsserviceapi.Activation=} opt_value
5192
- * @param {number=} opt_index
5193
- * @return {!proto.sniippaymentmethodsserviceapi.Activation}
5575
+ * optional int64 userId = 3;
5576
+ * @return {number}
5194
5577
  */
5195
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.addActivations = function(opt_value, opt_index) {
5196
- return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.sniippaymentmethodsserviceapi.Activation, opt_index);
5578
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.prototype.getUserid = function() {
5579
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
5197
5580
  };
5198
5581
 
5199
5582
 
5200
- proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.clearActivationsList = function() {
5201
- this.setActivationsList([]);
5583
+ /** @param {number} value */
5584
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentRequest.prototype.setUserid = function(value) {
5585
+ jspb.Message.setProto3IntField(this, 3, value);
5202
5586
  };
5203
5587
 
5204
5588
 
@@ -5213,12 +5597,12 @@ proto.sniippaymentmethodsserviceapi.PaymentMethod.prototype.clearActivationsList
5213
5597
  * @extends {jspb.Message}
5214
5598
  * @constructor
5215
5599
  */
5216
- proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest = function(opt_data) {
5600
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse = function(opt_data) {
5217
5601
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5218
5602
  };
5219
- goog.inherits(proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest, jspb.Message);
5603
+ goog.inherits(proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse, jspb.Message);
5220
5604
  if (goog.DEBUG && !COMPILED) {
5221
- proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.displayName = 'proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest';
5605
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.displayName = 'proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse';
5222
5606
  }
5223
5607
 
5224
5608
 
@@ -5233,8 +5617,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
5233
5617
  * for transitional soy proto support: http://goto/soy-param-migration
5234
5618
  * @return {!Object}
5235
5619
  */
5236
- proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.toObject = function(opt_includeInstance) {
5237
- return proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.toObject(opt_includeInstance, this);
5620
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.toObject = function(opt_includeInstance) {
5621
+ return proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.toObject(opt_includeInstance, this);
5238
5622
  };
5239
5623
 
5240
5624
 
@@ -5243,15 +5627,17 @@ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.toObjec
5243
5627
  * @param {boolean|undefined} includeInstance Whether to include the JSPB
5244
5628
  * instance for transitional soy proto support:
5245
5629
  * http://goto/soy-param-migration
5246
- * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest} msg The msg instance to transform.
5630
+ * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse} msg The msg instance to transform.
5247
5631
  * @return {!Object}
5248
5632
  * @suppress {unusedLocalVariables} f is only used for nested messages
5249
5633
  */
5250
- proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.toObject = function(includeInstance, msg) {
5634
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.toObject = function(includeInstance, msg) {
5251
5635
  var f, obj = {
5252
- paymentdetailid: jspb.Message.getFieldWithDefault(msg, 1, 0),
5253
- accesstoken: jspb.Message.getFieldWithDefault(msg, 2, ""),
5254
- isconfirmeddelete: jspb.Message.getFieldWithDefault(msg, 3, false)
5636
+ responsecode: (f = msg.getResponsecode()) && proto.sniippaymentmethodsserviceapi.ResponseCode.toObject(includeInstance, f),
5637
+ paymentmethodid: jspb.Message.getFieldWithDefault(msg, 2, 0),
5638
+ paymenttype: jspb.Message.getFieldWithDefault(msg, 3, ""),
5639
+ creditcard: (f = msg.getCreditcard()) && proto.sniippaymentmethodsserviceapi.CreditCard.toObject(includeInstance, f),
5640
+ bankaccount: (f = msg.getBankaccount()) && proto.sniippaymentmethodsserviceapi.BankAccount.toObject(includeInstance, f)
5255
5641
  };
5256
5642
 
5257
5643
  if (includeInstance) {
@@ -5265,23 +5651,23 @@ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.toObject = functi
5265
5651
  /**
5266
5652
  * Deserializes binary data (in protobuf wire format).
5267
5653
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
5268
- * @return {!proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest}
5654
+ * @return {!proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse}
5269
5655
  */
5270
- proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.deserializeBinary = function(bytes) {
5656
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.deserializeBinary = function(bytes) {
5271
5657
  var reader = new jspb.BinaryReader(bytes);
5272
- var msg = new proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest;
5273
- return proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.deserializeBinaryFromReader(msg, reader);
5658
+ var msg = new proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse;
5659
+ return proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.deserializeBinaryFromReader(msg, reader);
5274
5660
  };
5275
5661
 
5276
5662
 
5277
5663
  /**
5278
5664
  * Deserializes binary data (in protobuf wire format) from the
5279
5665
  * given reader into the given message object.
5280
- * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest} msg The message object to deserialize into.
5666
+ * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse} msg The message object to deserialize into.
5281
5667
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5282
- * @return {!proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest}
5668
+ * @return {!proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse}
5283
5669
  */
5284
- proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.deserializeBinaryFromReader = function(msg, reader) {
5670
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.deserializeBinaryFromReader = function(msg, reader) {
5285
5671
  while (reader.nextField()) {
5286
5672
  if (reader.isEndGroup()) {
5287
5673
  break;
@@ -5289,16 +5675,27 @@ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.deserializeBinary
5289
5675
  var field = reader.getFieldNumber();
5290
5676
  switch (field) {
5291
5677
  case 1:
5292
- var value = /** @type {number} */ (reader.readInt64());
5293
- msg.setPaymentdetailid(value);
5678
+ var value = new proto.sniippaymentmethodsserviceapi.ResponseCode;
5679
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.ResponseCode.deserializeBinaryFromReader);
5680
+ msg.setResponsecode(value);
5294
5681
  break;
5295
5682
  case 2:
5296
- var value = /** @type {string} */ (reader.readString());
5297
- msg.setAccesstoken(value);
5683
+ var value = /** @type {number} */ (reader.readInt64());
5684
+ msg.setPaymentmethodid(value);
5298
5685
  break;
5299
5686
  case 3:
5300
- var value = /** @type {boolean} */ (reader.readBool());
5301
- msg.setIsconfirmeddelete(value);
5687
+ var value = /** @type {string} */ (reader.readString());
5688
+ msg.setPaymenttype(value);
5689
+ break;
5690
+ case 4:
5691
+ var value = new proto.sniippaymentmethodsserviceapi.CreditCard;
5692
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.CreditCard.deserializeBinaryFromReader);
5693
+ msg.setCreditcard(value);
5694
+ break;
5695
+ case 5:
5696
+ var value = new proto.sniippaymentmethodsserviceapi.BankAccount;
5697
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.BankAccount.deserializeBinaryFromReader);
5698
+ msg.setBankaccount(value);
5302
5699
  break;
5303
5700
  default:
5304
5701
  reader.skipField();
@@ -5313,9 +5710,9 @@ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.deserializeBinary
5313
5710
  * Serializes the message to binary data (in protobuf wire format).
5314
5711
  * @return {!Uint8Array}
5315
5712
  */
5316
- proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.serializeBinary = function() {
5713
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.serializeBinary = function() {
5317
5714
  var writer = new jspb.BinaryWriter();
5318
- proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.serializeBinaryToWriter(this, writer);
5715
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.serializeBinaryToWriter(this, writer);
5319
5716
  return writer.getResultBuffer();
5320
5717
  };
5321
5718
 
@@ -5323,80 +5720,170 @@ proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.seriali
5323
5720
  /**
5324
5721
  * Serializes the given message to binary data (in protobuf wire
5325
5722
  * format), writing to the given BinaryWriter.
5326
- * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest} message
5723
+ * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse} message
5327
5724
  * @param {!jspb.BinaryWriter} writer
5328
5725
  * @suppress {unusedLocalVariables} f is only used for nested messages
5329
5726
  */
5330
- proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.serializeBinaryToWriter = function(message, writer) {
5727
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.serializeBinaryToWriter = function(message, writer) {
5331
5728
  var f = undefined;
5332
- f = message.getPaymentdetailid();
5729
+ f = message.getResponsecode();
5730
+ if (f != null) {
5731
+ writer.writeMessage(
5732
+ 1,
5733
+ f,
5734
+ proto.sniippaymentmethodsserviceapi.ResponseCode.serializeBinaryToWriter
5735
+ );
5736
+ }
5737
+ f = message.getPaymentmethodid();
5333
5738
  if (f !== 0) {
5334
5739
  writer.writeInt64(
5335
- 1,
5740
+ 2,
5336
5741
  f
5337
5742
  );
5338
5743
  }
5339
- f = message.getAccesstoken();
5744
+ f = message.getPaymenttype();
5340
5745
  if (f.length > 0) {
5341
5746
  writer.writeString(
5342
- 2,
5747
+ 3,
5343
5748
  f
5344
5749
  );
5345
5750
  }
5346
- f = message.getIsconfirmeddelete();
5347
- if (f) {
5348
- writer.writeBool(
5349
- 3,
5350
- f
5751
+ f = message.getCreditcard();
5752
+ if (f != null) {
5753
+ writer.writeMessage(
5754
+ 4,
5755
+ f,
5756
+ proto.sniippaymentmethodsserviceapi.CreditCard.serializeBinaryToWriter
5757
+ );
5758
+ }
5759
+ f = message.getBankaccount();
5760
+ if (f != null) {
5761
+ writer.writeMessage(
5762
+ 5,
5763
+ f,
5764
+ proto.sniippaymentmethodsserviceapi.BankAccount.serializeBinaryToWriter
5351
5765
  );
5352
5766
  }
5353
5767
  };
5354
5768
 
5355
5769
 
5356
5770
  /**
5357
- * optional int64 paymentDetailId = 1;
5771
+ * optional ResponseCode responseCode = 1;
5772
+ * @return {?proto.sniippaymentmethodsserviceapi.ResponseCode}
5773
+ */
5774
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.getResponsecode = function() {
5775
+ return /** @type{?proto.sniippaymentmethodsserviceapi.ResponseCode} */ (
5776
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.ResponseCode, 1));
5777
+ };
5778
+
5779
+
5780
+ /** @param {?proto.sniippaymentmethodsserviceapi.ResponseCode|undefined} value */
5781
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.setResponsecode = function(value) {
5782
+ jspb.Message.setWrapperField(this, 1, value);
5783
+ };
5784
+
5785
+
5786
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.clearResponsecode = function() {
5787
+ this.setResponsecode(undefined);
5788
+ };
5789
+
5790
+
5791
+ /**
5792
+ * Returns whether this field is set.
5793
+ * @return {!boolean}
5794
+ */
5795
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.hasResponsecode = function() {
5796
+ return jspb.Message.getField(this, 1) != null;
5797
+ };
5798
+
5799
+
5800
+ /**
5801
+ * optional int64 paymentMethodId = 2;
5358
5802
  * @return {number}
5359
5803
  */
5360
- proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.getPaymentdetailid = function() {
5361
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
5804
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.getPaymentmethodid = function() {
5805
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
5362
5806
  };
5363
5807
 
5364
5808
 
5365
5809
  /** @param {number} value */
5366
- proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.setPaymentdetailid = function(value) {
5367
- jspb.Message.setProto3IntField(this, 1, value);
5810
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.setPaymentmethodid = function(value) {
5811
+ jspb.Message.setProto3IntField(this, 2, value);
5368
5812
  };
5369
5813
 
5370
5814
 
5371
5815
  /**
5372
- * optional string accessToken = 2;
5816
+ * optional string paymentType = 3;
5373
5817
  * @return {string}
5374
5818
  */
5375
- proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.getAccesstoken = function() {
5376
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
5819
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.getPaymenttype = function() {
5820
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
5377
5821
  };
5378
5822
 
5379
5823
 
5380
5824
  /** @param {string} value */
5381
- proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.setAccesstoken = function(value) {
5382
- jspb.Message.setProto3StringField(this, 2, value);
5825
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.setPaymenttype = function(value) {
5826
+ jspb.Message.setProto3StringField(this, 3, value);
5383
5827
  };
5384
5828
 
5385
5829
 
5386
5830
  /**
5387
- * optional bool isConfirmedDelete = 3;
5388
- * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
5389
- * You should avoid comparisons like {@code val === true/false} in those cases.
5390
- * @return {boolean}
5831
+ * optional CreditCard creditCard = 4;
5832
+ * @return {?proto.sniippaymentmethodsserviceapi.CreditCard}
5391
5833
  */
5392
- proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.getIsconfirmeddelete = function() {
5393
- return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false));
5834
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.getCreditcard = function() {
5835
+ return /** @type{?proto.sniippaymentmethodsserviceapi.CreditCard} */ (
5836
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.CreditCard, 4));
5394
5837
  };
5395
5838
 
5396
5839
 
5397
- /** @param {boolean} value */
5398
- proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest.prototype.setIsconfirmeddelete = function(value) {
5399
- jspb.Message.setProto3BooleanField(this, 3, value);
5840
+ /** @param {?proto.sniippaymentmethodsserviceapi.CreditCard|undefined} value */
5841
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.setCreditcard = function(value) {
5842
+ jspb.Message.setWrapperField(this, 4, value);
5843
+ };
5844
+
5845
+
5846
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.clearCreditcard = function() {
5847
+ this.setCreditcard(undefined);
5848
+ };
5849
+
5850
+
5851
+ /**
5852
+ * Returns whether this field is set.
5853
+ * @return {!boolean}
5854
+ */
5855
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.hasCreditcard = function() {
5856
+ return jspb.Message.getField(this, 4) != null;
5857
+ };
5858
+
5859
+
5860
+ /**
5861
+ * optional BankAccount bankAccount = 5;
5862
+ * @return {?proto.sniippaymentmethodsserviceapi.BankAccount}
5863
+ */
5864
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.getBankaccount = function() {
5865
+ return /** @type{?proto.sniippaymentmethodsserviceapi.BankAccount} */ (
5866
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.BankAccount, 5));
5867
+ };
5868
+
5869
+
5870
+ /** @param {?proto.sniippaymentmethodsserviceapi.BankAccount|undefined} value */
5871
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.setBankaccount = function(value) {
5872
+ jspb.Message.setWrapperField(this, 5, value);
5873
+ };
5874
+
5875
+
5876
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.clearBankaccount = function() {
5877
+ this.setBankaccount(undefined);
5878
+ };
5879
+
5880
+
5881
+ /**
5882
+ * Returns whether this field is set.
5883
+ * @return {!boolean}
5884
+ */
5885
+ proto.sniippaymentmethodsserviceapi.PaymentMethodForPaymentResponse.prototype.hasBankaccount = function() {
5886
+ return jspb.Message.getField(this, 5) != null;
5400
5887
  };
5401
5888
 
5402
5889