@sniipwebmaster/payment-methods-client-grpcweb 0.2.1860 → 0.2.1887

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.
@@ -15,8 +15,6 @@ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.AccessToken', null, globa
15
15
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.ActivatePaymentDetailRequest', null, global);
16
16
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.ActivateRequest', null, global);
17
17
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.Activation', null, global);
18
- goog.exportSymbol('proto.sniippaymentmethodsserviceapi.AddCreditCardRequest', null, global);
19
- goog.exportSymbol('proto.sniippaymentmethodsserviceapi.AddCreditCardResponse', null, global);
20
18
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.AddPaymentMethod', null, global);
21
19
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest', null, global);
22
20
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest', null, global);
@@ -25,11 +23,7 @@ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.CardHashRequest', null, g
25
23
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.CardHashResponse', null, global);
26
24
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.ColourScheme', null, global);
27
25
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.CreditCard', null, global);
28
- goog.exportSymbol('proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest', null, global);
29
- goog.exportSymbol('proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest', null, global);
30
26
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest', null, global);
31
- goog.exportSymbol('proto.sniippaymentmethodsserviceapi.CreditCardRequest', null, global);
32
- goog.exportSymbol('proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest', null, global);
33
27
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest', null, global);
34
28
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetCardHashRequest', null, global);
35
29
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetCreditCardForPaymentRequest', null, global);
@@ -53,7 +47,6 @@ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethodsResponse',
53
47
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.RemovePaymentMethodRequest', null, global);
54
48
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.ResponseCode', null, global);
55
49
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.UpdateCreditCard', null, global);
56
- goog.exportSymbol('proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest', null, global);
57
50
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest', null, global);
58
51
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest', null, global);
59
52
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse', null, global);
@@ -885,12 +878,12 @@ proto.sniippaymentmethodsserviceapi.Activation.prototype.setSourceid = function(
885
878
  * @extends {jspb.Message}
886
879
  * @constructor
887
880
  */
888
- proto.sniippaymentmethodsserviceapi.AddCreditCardRequest = function(opt_data) {
881
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethod = function(opt_data) {
889
882
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
890
883
  };
891
- goog.inherits(proto.sniippaymentmethodsserviceapi.AddCreditCardRequest, jspb.Message);
884
+ goog.inherits(proto.sniippaymentmethodsserviceapi.AddPaymentMethod, jspb.Message);
892
885
  if (goog.DEBUG && !COMPILED) {
893
- proto.sniippaymentmethodsserviceapi.AddCreditCardRequest.displayName = 'proto.sniippaymentmethodsserviceapi.AddCreditCardRequest';
886
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethod.displayName = 'proto.sniippaymentmethodsserviceapi.AddPaymentMethod';
894
887
  }
895
888
 
896
889
 
@@ -905,8 +898,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
905
898
  * for transitional soy proto support: http://goto/soy-param-migration
906
899
  * @return {!Object}
907
900
  */
908
- proto.sniippaymentmethodsserviceapi.AddCreditCardRequest.prototype.toObject = function(opt_includeInstance) {
909
- return proto.sniippaymentmethodsserviceapi.AddCreditCardRequest.toObject(opt_includeInstance, this);
901
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.toObject = function(opt_includeInstance) {
902
+ return proto.sniippaymentmethodsserviceapi.AddPaymentMethod.toObject(opt_includeInstance, this);
910
903
  };
911
904
 
912
905
 
@@ -915,12 +908,15 @@ proto.sniippaymentmethodsserviceapi.AddCreditCardRequest.prototype.toObject = fu
915
908
  * @param {boolean|undefined} includeInstance Whether to include the JSPB
916
909
  * instance for transitional soy proto support:
917
910
  * http://goto/soy-param-migration
918
- * @param {!proto.sniippaymentmethodsserviceapi.AddCreditCardRequest} msg The msg instance to transform.
911
+ * @param {!proto.sniippaymentmethodsserviceapi.AddPaymentMethod} msg The msg instance to transform.
919
912
  * @return {!Object}
920
913
  */
921
- proto.sniippaymentmethodsserviceapi.AddCreditCardRequest.toObject = function(includeInstance, msg) {
914
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethod.toObject = function(includeInstance, msg) {
922
915
  var f, obj = {
923
- data: (f = msg.getData()) && proto.sniippaymentmethodsserviceapi.CreditCardRequest.toObject(includeInstance, f)
916
+ paymenttype: msg.getPaymenttype(),
917
+ creditcard: (f = msg.getCreditcard()) && proto.sniippaymentmethodsserviceapi.CreditCard.toObject(includeInstance, f),
918
+ bankaccount: (f = msg.getBankaccount()) && proto.sniippaymentmethodsserviceapi.BankAccount.toObject(includeInstance, f),
919
+ accesstoken: msg.getAccesstoken()
924
920
  };
925
921
 
926
922
  if (includeInstance) {
@@ -934,23 +930,23 @@ proto.sniippaymentmethodsserviceapi.AddCreditCardRequest.toObject = function(inc
934
930
  /**
935
931
  * Deserializes binary data (in protobuf wire format).
936
932
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
937
- * @return {!proto.sniippaymentmethodsserviceapi.AddCreditCardRequest}
933
+ * @return {!proto.sniippaymentmethodsserviceapi.AddPaymentMethod}
938
934
  */
939
- proto.sniippaymentmethodsserviceapi.AddCreditCardRequest.deserializeBinary = function(bytes) {
935
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethod.deserializeBinary = function(bytes) {
940
936
  var reader = new jspb.BinaryReader(bytes);
941
- var msg = new proto.sniippaymentmethodsserviceapi.AddCreditCardRequest;
942
- return proto.sniippaymentmethodsserviceapi.AddCreditCardRequest.deserializeBinaryFromReader(msg, reader);
937
+ var msg = new proto.sniippaymentmethodsserviceapi.AddPaymentMethod;
938
+ return proto.sniippaymentmethodsserviceapi.AddPaymentMethod.deserializeBinaryFromReader(msg, reader);
943
939
  };
944
940
 
945
941
 
946
942
  /**
947
943
  * Deserializes binary data (in protobuf wire format) from the
948
944
  * given reader into the given message object.
949
- * @param {!proto.sniippaymentmethodsserviceapi.AddCreditCardRequest} msg The message object to deserialize into.
945
+ * @param {!proto.sniippaymentmethodsserviceapi.AddPaymentMethod} msg The message object to deserialize into.
950
946
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
951
- * @return {!proto.sniippaymentmethodsserviceapi.AddCreditCardRequest}
947
+ * @return {!proto.sniippaymentmethodsserviceapi.AddPaymentMethod}
952
948
  */
953
- proto.sniippaymentmethodsserviceapi.AddCreditCardRequest.deserializeBinaryFromReader = function(msg, reader) {
949
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethod.deserializeBinaryFromReader = function(msg, reader) {
954
950
  while (reader.nextField()) {
955
951
  if (reader.isEndGroup()) {
956
952
  break;
@@ -958,9 +954,22 @@ proto.sniippaymentmethodsserviceapi.AddCreditCardRequest.deserializeBinaryFromRe
958
954
  var field = reader.getFieldNumber();
959
955
  switch (field) {
960
956
  case 1:
961
- var value = new proto.sniippaymentmethodsserviceapi.CreditCardRequest;
962
- reader.readMessage(value,proto.sniippaymentmethodsserviceapi.CreditCardRequest.deserializeBinaryFromReader);
963
- msg.setData(value);
957
+ var value = /** @type {string} */ (reader.readString());
958
+ msg.setPaymenttype(value);
959
+ break;
960
+ case 2:
961
+ var value = new proto.sniippaymentmethodsserviceapi.CreditCard;
962
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.CreditCard.deserializeBinaryFromReader);
963
+ msg.setCreditcard(value);
964
+ break;
965
+ case 3:
966
+ var value = new proto.sniippaymentmethodsserviceapi.BankAccount;
967
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.BankAccount.deserializeBinaryFromReader);
968
+ msg.setBankaccount(value);
969
+ break;
970
+ case 4:
971
+ var value = /** @type {string} */ (reader.readString());
972
+ msg.setAccesstoken(value);
964
973
  break;
965
974
  default:
966
975
  reader.skipField();
@@ -974,10 +983,10 @@ proto.sniippaymentmethodsserviceapi.AddCreditCardRequest.deserializeBinaryFromRe
974
983
  /**
975
984
  * Class method variant: serializes the given message to binary data
976
985
  * (in protobuf wire format), writing to the given BinaryWriter.
977
- * @param {!proto.sniippaymentmethodsserviceapi.AddCreditCardRequest} message
986
+ * @param {!proto.sniippaymentmethodsserviceapi.AddPaymentMethod} message
978
987
  * @param {!jspb.BinaryWriter} writer
979
988
  */
980
- proto.sniippaymentmethodsserviceapi.AddCreditCardRequest.serializeBinaryToWriter = function(message, writer) {
989
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethod.serializeBinaryToWriter = function(message, writer) {
981
990
  message.serializeBinaryToWriter(writer);
982
991
  };
983
992
 
@@ -986,7 +995,7 @@ proto.sniippaymentmethodsserviceapi.AddCreditCardRequest.serializeBinaryToWriter
986
995
  * Serializes the message to binary data (in protobuf wire format).
987
996
  * @return {!Uint8Array}
988
997
  */
989
- proto.sniippaymentmethodsserviceapi.AddCreditCardRequest.prototype.serializeBinary = function() {
998
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.serializeBinary = function() {
990
999
  var writer = new jspb.BinaryWriter();
991
1000
  this.serializeBinaryToWriter(writer);
992
1001
  return writer.getResultBuffer();
@@ -998,14 +1007,36 @@ proto.sniippaymentmethodsserviceapi.AddCreditCardRequest.prototype.serializeBina
998
1007
  * writing to the given BinaryWriter.
999
1008
  * @param {!jspb.BinaryWriter} writer
1000
1009
  */
1001
- proto.sniippaymentmethodsserviceapi.AddCreditCardRequest.prototype.serializeBinaryToWriter = function (writer) {
1010
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.serializeBinaryToWriter = function (writer) {
1002
1011
  var f = undefined;
1003
- f = this.getData();
1012
+ f = this.getPaymenttype();
1013
+ if (f.length > 0) {
1014
+ writer.writeString(
1015
+ 1,
1016
+ f
1017
+ );
1018
+ }
1019
+ f = this.getCreditcard();
1004
1020
  if (f != null) {
1005
1021
  writer.writeMessage(
1006
- 1,
1022
+ 2,
1023
+ f,
1024
+ proto.sniippaymentmethodsserviceapi.CreditCard.serializeBinaryToWriter
1025
+ );
1026
+ }
1027
+ f = this.getBankaccount();
1028
+ if (f != null) {
1029
+ writer.writeMessage(
1030
+ 3,
1007
1031
  f,
1008
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.serializeBinaryToWriter
1032
+ proto.sniippaymentmethodsserviceapi.BankAccount.serializeBinaryToWriter
1033
+ );
1034
+ }
1035
+ f = this.getAccesstoken();
1036
+ if (f.length > 0) {
1037
+ writer.writeString(
1038
+ 4,
1039
+ f
1009
1040
  );
1010
1041
  }
1011
1042
  };
@@ -1013,31 +1044,46 @@ proto.sniippaymentmethodsserviceapi.AddCreditCardRequest.prototype.serializeBina
1013
1044
 
1014
1045
  /**
1015
1046
  * Creates a deep clone of this proto. No data is shared with the original.
1016
- * @return {!proto.sniippaymentmethodsserviceapi.AddCreditCardRequest} The clone.
1047
+ * @return {!proto.sniippaymentmethodsserviceapi.AddPaymentMethod} The clone.
1017
1048
  */
1018
- proto.sniippaymentmethodsserviceapi.AddCreditCardRequest.prototype.cloneMessage = function() {
1019
- return /** @type {!proto.sniippaymentmethodsserviceapi.AddCreditCardRequest} */ (jspb.Message.cloneMessage(this));
1049
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.cloneMessage = function() {
1050
+ return /** @type {!proto.sniippaymentmethodsserviceapi.AddPaymentMethod} */ (jspb.Message.cloneMessage(this));
1020
1051
  };
1021
1052
 
1022
1053
 
1023
1054
  /**
1024
- * optional CreditCardRequest data = 1;
1025
- * @return {proto.sniippaymentmethodsserviceapi.CreditCardRequest}
1055
+ * optional string paymentType = 1;
1056
+ * @return {string}
1026
1057
  */
1027
- proto.sniippaymentmethodsserviceapi.AddCreditCardRequest.prototype.getData = function() {
1028
- return /** @type{proto.sniippaymentmethodsserviceapi.CreditCardRequest} */ (
1029
- jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.CreditCardRequest, 1));
1058
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.getPaymenttype = function() {
1059
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
1030
1060
  };
1031
1061
 
1032
1062
 
1033
- /** @param {proto.sniippaymentmethodsserviceapi.CreditCardRequest|undefined} value */
1034
- proto.sniippaymentmethodsserviceapi.AddCreditCardRequest.prototype.setData = function(value) {
1035
- jspb.Message.setWrapperField(this, 1, value);
1063
+ /** @param {string} value */
1064
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.setPaymenttype = function(value) {
1065
+ jspb.Message.setField(this, 1, value);
1036
1066
  };
1037
1067
 
1038
1068
 
1039
- proto.sniippaymentmethodsserviceapi.AddCreditCardRequest.prototype.clearData = function() {
1040
- this.setData(undefined);
1069
+ /**
1070
+ * optional CreditCard creditCard = 2;
1071
+ * @return {proto.sniippaymentmethodsserviceapi.CreditCard}
1072
+ */
1073
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.getCreditcard = function() {
1074
+ return /** @type{proto.sniippaymentmethodsserviceapi.CreditCard} */ (
1075
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.CreditCard, 2));
1076
+ };
1077
+
1078
+
1079
+ /** @param {proto.sniippaymentmethodsserviceapi.CreditCard|undefined} value */
1080
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.setCreditcard = function(value) {
1081
+ jspb.Message.setWrapperField(this, 2, value);
1082
+ };
1083
+
1084
+
1085
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.clearCreditcard = function() {
1086
+ this.setCreditcard(undefined);
1041
1087
  };
1042
1088
 
1043
1089
 
@@ -1045,8 +1091,53 @@ proto.sniippaymentmethodsserviceapi.AddCreditCardRequest.prototype.clearData = f
1045
1091
  * Returns whether this field is set.
1046
1092
  * @return{!boolean}
1047
1093
  */
1048
- proto.sniippaymentmethodsserviceapi.AddCreditCardRequest.prototype.hasData = function() {
1049
- return jspb.Message.getField(this, 1) != null;
1094
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.hasCreditcard = function() {
1095
+ return jspb.Message.getField(this, 2) != null;
1096
+ };
1097
+
1098
+
1099
+ /**
1100
+ * optional BankAccount bankAccount = 3;
1101
+ * @return {proto.sniippaymentmethodsserviceapi.BankAccount}
1102
+ */
1103
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.getBankaccount = function() {
1104
+ return /** @type{proto.sniippaymentmethodsserviceapi.BankAccount} */ (
1105
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.BankAccount, 3));
1106
+ };
1107
+
1108
+
1109
+ /** @param {proto.sniippaymentmethodsserviceapi.BankAccount|undefined} value */
1110
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.setBankaccount = function(value) {
1111
+ jspb.Message.setWrapperField(this, 3, value);
1112
+ };
1113
+
1114
+
1115
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.clearBankaccount = function() {
1116
+ this.setBankaccount(undefined);
1117
+ };
1118
+
1119
+
1120
+ /**
1121
+ * Returns whether this field is set.
1122
+ * @return{!boolean}
1123
+ */
1124
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.hasBankaccount = function() {
1125
+ return jspb.Message.getField(this, 3) != null;
1126
+ };
1127
+
1128
+
1129
+ /**
1130
+ * optional string accessToken = 4;
1131
+ * @return {string}
1132
+ */
1133
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.getAccesstoken = function() {
1134
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 4, ""));
1135
+ };
1136
+
1137
+
1138
+ /** @param {string} value */
1139
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.setAccesstoken = function(value) {
1140
+ jspb.Message.setField(this, 4, value);
1050
1141
  };
1051
1142
 
1052
1143
 
@@ -1061,12 +1152,12 @@ proto.sniippaymentmethodsserviceapi.AddCreditCardRequest.prototype.hasData = fun
1061
1152
  * @extends {jspb.Message}
1062
1153
  * @constructor
1063
1154
  */
1064
- proto.sniippaymentmethodsserviceapi.AddCreditCardResponse = function(opt_data) {
1155
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest = function(opt_data) {
1065
1156
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1066
1157
  };
1067
- goog.inherits(proto.sniippaymentmethodsserviceapi.AddCreditCardResponse, jspb.Message);
1158
+ goog.inherits(proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest, jspb.Message);
1068
1159
  if (goog.DEBUG && !COMPILED) {
1069
- proto.sniippaymentmethodsserviceapi.AddCreditCardResponse.displayName = 'proto.sniippaymentmethodsserviceapi.AddCreditCardResponse';
1160
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.displayName = 'proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest';
1070
1161
  }
1071
1162
 
1072
1163
 
@@ -1081,8 +1172,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
1081
1172
  * for transitional soy proto support: http://goto/soy-param-migration
1082
1173
  * @return {!Object}
1083
1174
  */
1084
- proto.sniippaymentmethodsserviceapi.AddCreditCardResponse.prototype.toObject = function(opt_includeInstance) {
1085
- return proto.sniippaymentmethodsserviceapi.AddCreditCardResponse.toObject(opt_includeInstance, this);
1175
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.prototype.toObject = function(opt_includeInstance) {
1176
+ return proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.toObject(opt_includeInstance, this);
1086
1177
  };
1087
1178
 
1088
1179
 
@@ -1091,13 +1182,12 @@ proto.sniippaymentmethodsserviceapi.AddCreditCardResponse.prototype.toObject = f
1091
1182
  * @param {boolean|undefined} includeInstance Whether to include the JSPB
1092
1183
  * instance for transitional soy proto support:
1093
1184
  * http://goto/soy-param-migration
1094
- * @param {!proto.sniippaymentmethodsserviceapi.AddCreditCardResponse} msg The msg instance to transform.
1185
+ * @param {!proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest} msg The msg instance to transform.
1095
1186
  * @return {!Object}
1096
1187
  */
1097
- proto.sniippaymentmethodsserviceapi.AddCreditCardResponse.toObject = function(includeInstance, msg) {
1188
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.toObject = function(includeInstance, msg) {
1098
1189
  var f, obj = {
1099
- maskedcreditcard: (f = msg.getMaskedcreditcard()) && proto.sniippaymentmethodsserviceapi.MaskedCreditCard.toObject(includeInstance, f),
1100
- responsecode: (f = msg.getResponsecode()) && proto.sniippaymentmethodsserviceapi.ResponseCode.toObject(includeInstance, f)
1190
+ data: (f = msg.getData()) && proto.sniippaymentmethodsserviceapi.AddPaymentMethod.toObject(includeInstance, f)
1101
1191
  };
1102
1192
 
1103
1193
  if (includeInstance) {
@@ -1111,23 +1201,23 @@ proto.sniippaymentmethodsserviceapi.AddCreditCardResponse.toObject = function(in
1111
1201
  /**
1112
1202
  * Deserializes binary data (in protobuf wire format).
1113
1203
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
1114
- * @return {!proto.sniippaymentmethodsserviceapi.AddCreditCardResponse}
1204
+ * @return {!proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest}
1115
1205
  */
1116
- proto.sniippaymentmethodsserviceapi.AddCreditCardResponse.deserializeBinary = function(bytes) {
1206
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.deserializeBinary = function(bytes) {
1117
1207
  var reader = new jspb.BinaryReader(bytes);
1118
- var msg = new proto.sniippaymentmethodsserviceapi.AddCreditCardResponse;
1119
- return proto.sniippaymentmethodsserviceapi.AddCreditCardResponse.deserializeBinaryFromReader(msg, reader);
1208
+ var msg = new proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest;
1209
+ return proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.deserializeBinaryFromReader(msg, reader);
1120
1210
  };
1121
1211
 
1122
1212
 
1123
1213
  /**
1124
1214
  * Deserializes binary data (in protobuf wire format) from the
1125
1215
  * given reader into the given message object.
1126
- * @param {!proto.sniippaymentmethodsserviceapi.AddCreditCardResponse} msg The message object to deserialize into.
1216
+ * @param {!proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest} msg The message object to deserialize into.
1127
1217
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1128
- * @return {!proto.sniippaymentmethodsserviceapi.AddCreditCardResponse}
1218
+ * @return {!proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest}
1129
1219
  */
1130
- proto.sniippaymentmethodsserviceapi.AddCreditCardResponse.deserializeBinaryFromReader = function(msg, reader) {
1220
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.deserializeBinaryFromReader = function(msg, reader) {
1131
1221
  while (reader.nextField()) {
1132
1222
  if (reader.isEndGroup()) {
1133
1223
  break;
@@ -1135,14 +1225,9 @@ proto.sniippaymentmethodsserviceapi.AddCreditCardResponse.deserializeBinaryFromR
1135
1225
  var field = reader.getFieldNumber();
1136
1226
  switch (field) {
1137
1227
  case 1:
1138
- var value = new proto.sniippaymentmethodsserviceapi.MaskedCreditCard;
1139
- reader.readMessage(value,proto.sniippaymentmethodsserviceapi.MaskedCreditCard.deserializeBinaryFromReader);
1140
- msg.setMaskedcreditcard(value);
1141
- break;
1142
- case 2:
1143
- var value = new proto.sniippaymentmethodsserviceapi.ResponseCode;
1144
- reader.readMessage(value,proto.sniippaymentmethodsserviceapi.ResponseCode.deserializeBinaryFromReader);
1145
- msg.setResponsecode(value);
1228
+ var value = new proto.sniippaymentmethodsserviceapi.AddPaymentMethod;
1229
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.AddPaymentMethod.deserializeBinaryFromReader);
1230
+ msg.setData(value);
1146
1231
  break;
1147
1232
  default:
1148
1233
  reader.skipField();
@@ -1156,10 +1241,10 @@ proto.sniippaymentmethodsserviceapi.AddCreditCardResponse.deserializeBinaryFromR
1156
1241
  /**
1157
1242
  * Class method variant: serializes the given message to binary data
1158
1243
  * (in protobuf wire format), writing to the given BinaryWriter.
1159
- * @param {!proto.sniippaymentmethodsserviceapi.AddCreditCardResponse} message
1244
+ * @param {!proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest} message
1160
1245
  * @param {!jspb.BinaryWriter} writer
1161
1246
  */
1162
- proto.sniippaymentmethodsserviceapi.AddCreditCardResponse.serializeBinaryToWriter = function(message, writer) {
1247
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.serializeBinaryToWriter = function(message, writer) {
1163
1248
  message.serializeBinaryToWriter(writer);
1164
1249
  };
1165
1250
 
@@ -1168,7 +1253,7 @@ proto.sniippaymentmethodsserviceapi.AddCreditCardResponse.serializeBinaryToWrite
1168
1253
  * Serializes the message to binary data (in protobuf wire format).
1169
1254
  * @return {!Uint8Array}
1170
1255
  */
1171
- proto.sniippaymentmethodsserviceapi.AddCreditCardResponse.prototype.serializeBinary = function() {
1256
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.prototype.serializeBinary = function() {
1172
1257
  var writer = new jspb.BinaryWriter();
1173
1258
  this.serializeBinaryToWriter(writer);
1174
1259
  return writer.getResultBuffer();
@@ -1180,22 +1265,14 @@ proto.sniippaymentmethodsserviceapi.AddCreditCardResponse.prototype.serializeBin
1180
1265
  * writing to the given BinaryWriter.
1181
1266
  * @param {!jspb.BinaryWriter} writer
1182
1267
  */
1183
- proto.sniippaymentmethodsserviceapi.AddCreditCardResponse.prototype.serializeBinaryToWriter = function (writer) {
1268
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.prototype.serializeBinaryToWriter = function (writer) {
1184
1269
  var f = undefined;
1185
- f = this.getMaskedcreditcard();
1270
+ f = this.getData();
1186
1271
  if (f != null) {
1187
1272
  writer.writeMessage(
1188
1273
  1,
1189
1274
  f,
1190
- proto.sniippaymentmethodsserviceapi.MaskedCreditCard.serializeBinaryToWriter
1191
- );
1192
- }
1193
- f = this.getResponsecode();
1194
- if (f != null) {
1195
- writer.writeMessage(
1196
- 2,
1197
- f,
1198
- proto.sniippaymentmethodsserviceapi.ResponseCode.serializeBinaryToWriter
1275
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethod.serializeBinaryToWriter
1199
1276
  );
1200
1277
  }
1201
1278
  };
@@ -1203,31 +1280,31 @@ proto.sniippaymentmethodsserviceapi.AddCreditCardResponse.prototype.serializeBin
1203
1280
 
1204
1281
  /**
1205
1282
  * Creates a deep clone of this proto. No data is shared with the original.
1206
- * @return {!proto.sniippaymentmethodsserviceapi.AddCreditCardResponse} The clone.
1283
+ * @return {!proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest} The clone.
1207
1284
  */
1208
- proto.sniippaymentmethodsserviceapi.AddCreditCardResponse.prototype.cloneMessage = function() {
1209
- return /** @type {!proto.sniippaymentmethodsserviceapi.AddCreditCardResponse} */ (jspb.Message.cloneMessage(this));
1285
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.prototype.cloneMessage = function() {
1286
+ return /** @type {!proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest} */ (jspb.Message.cloneMessage(this));
1210
1287
  };
1211
1288
 
1212
1289
 
1213
1290
  /**
1214
- * optional MaskedCreditCard maskedCreditCard = 1;
1215
- * @return {proto.sniippaymentmethodsserviceapi.MaskedCreditCard}
1291
+ * optional AddPaymentMethod data = 1;
1292
+ * @return {proto.sniippaymentmethodsserviceapi.AddPaymentMethod}
1216
1293
  */
1217
- proto.sniippaymentmethodsserviceapi.AddCreditCardResponse.prototype.getMaskedcreditcard = function() {
1218
- return /** @type{proto.sniippaymentmethodsserviceapi.MaskedCreditCard} */ (
1219
- jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.MaskedCreditCard, 1));
1294
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.prototype.getData = function() {
1295
+ return /** @type{proto.sniippaymentmethodsserviceapi.AddPaymentMethod} */ (
1296
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.AddPaymentMethod, 1));
1220
1297
  };
1221
1298
 
1222
1299
 
1223
- /** @param {proto.sniippaymentmethodsserviceapi.MaskedCreditCard|undefined} value */
1224
- proto.sniippaymentmethodsserviceapi.AddCreditCardResponse.prototype.setMaskedcreditcard = function(value) {
1300
+ /** @param {proto.sniippaymentmethodsserviceapi.AddPaymentMethod|undefined} value */
1301
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.prototype.setData = function(value) {
1225
1302
  jspb.Message.setWrapperField(this, 1, value);
1226
1303
  };
1227
1304
 
1228
1305
 
1229
- proto.sniippaymentmethodsserviceapi.AddCreditCardResponse.prototype.clearMaskedcreditcard = function() {
1230
- this.setMaskedcreditcard(undefined);
1306
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.prototype.clearData = function() {
1307
+ this.setData(undefined);
1231
1308
  };
1232
1309
 
1233
1310
 
@@ -1235,41 +1312,11 @@ proto.sniippaymentmethodsserviceapi.AddCreditCardResponse.prototype.clearMaskedc
1235
1312
  * Returns whether this field is set.
1236
1313
  * @return{!boolean}
1237
1314
  */
1238
- proto.sniippaymentmethodsserviceapi.AddCreditCardResponse.prototype.hasMaskedcreditcard = function() {
1315
+ proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.prototype.hasData = function() {
1239
1316
  return jspb.Message.getField(this, 1) != null;
1240
1317
  };
1241
1318
 
1242
1319
 
1243
- /**
1244
- * optional ResponseCode responseCode = 2;
1245
- * @return {proto.sniippaymentmethodsserviceapi.ResponseCode}
1246
- */
1247
- proto.sniippaymentmethodsserviceapi.AddCreditCardResponse.prototype.getResponsecode = function() {
1248
- return /** @type{proto.sniippaymentmethodsserviceapi.ResponseCode} */ (
1249
- jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.ResponseCode, 2));
1250
- };
1251
-
1252
-
1253
- /** @param {proto.sniippaymentmethodsserviceapi.ResponseCode|undefined} value */
1254
- proto.sniippaymentmethodsserviceapi.AddCreditCardResponse.prototype.setResponsecode = function(value) {
1255
- jspb.Message.setWrapperField(this, 2, value);
1256
- };
1257
-
1258
-
1259
- proto.sniippaymentmethodsserviceapi.AddCreditCardResponse.prototype.clearResponsecode = function() {
1260
- this.setResponsecode(undefined);
1261
- };
1262
-
1263
-
1264
- /**
1265
- * Returns whether this field is set.
1266
- * @return{!boolean}
1267
- */
1268
- proto.sniippaymentmethodsserviceapi.AddCreditCardResponse.prototype.hasResponsecode = function() {
1269
- return jspb.Message.getField(this, 2) != null;
1270
- };
1271
-
1272
-
1273
1320
 
1274
1321
  /**
1275
1322
  * Generated by JsPbCodeGenerator.
@@ -1281,12 +1328,12 @@ proto.sniippaymentmethodsserviceapi.AddCreditCardResponse.prototype.hasResponsec
1281
1328
  * @extends {jspb.Message}
1282
1329
  * @constructor
1283
1330
  */
1284
- proto.sniippaymentmethodsserviceapi.AddPaymentMethod = function(opt_data) {
1331
+ proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest = function(opt_data) {
1285
1332
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1286
1333
  };
1287
- goog.inherits(proto.sniippaymentmethodsserviceapi.AddPaymentMethod, jspb.Message);
1334
+ goog.inherits(proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest, jspb.Message);
1288
1335
  if (goog.DEBUG && !COMPILED) {
1289
- proto.sniippaymentmethodsserviceapi.AddPaymentMethod.displayName = 'proto.sniippaymentmethodsserviceapi.AddPaymentMethod';
1336
+ proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.displayName = 'proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest';
1290
1337
  }
1291
1338
 
1292
1339
 
@@ -1301,8 +1348,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
1301
1348
  * for transitional soy proto support: http://goto/soy-param-migration
1302
1349
  * @return {!Object}
1303
1350
  */
1304
- proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.toObject = function(opt_includeInstance) {
1305
- return proto.sniippaymentmethodsserviceapi.AddPaymentMethod.toObject(opt_includeInstance, this);
1351
+ proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.prototype.toObject = function(opt_includeInstance) {
1352
+ return proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.toObject(opt_includeInstance, this);
1306
1353
  };
1307
1354
 
1308
1355
 
@@ -1311,15 +1358,12 @@ proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.toObject = functi
1311
1358
  * @param {boolean|undefined} includeInstance Whether to include the JSPB
1312
1359
  * instance for transitional soy proto support:
1313
1360
  * http://goto/soy-param-migration
1314
- * @param {!proto.sniippaymentmethodsserviceapi.AddPaymentMethod} msg The msg instance to transform.
1361
+ * @param {!proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest} msg The msg instance to transform.
1315
1362
  * @return {!Object}
1316
1363
  */
1317
- proto.sniippaymentmethodsserviceapi.AddPaymentMethod.toObject = function(includeInstance, msg) {
1364
+ proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.toObject = function(includeInstance, msg) {
1318
1365
  var f, obj = {
1319
- paymenttype: msg.getPaymenttype(),
1320
- creditcard: (f = msg.getCreditcard()) && proto.sniippaymentmethodsserviceapi.CreditCard.toObject(includeInstance, f),
1321
- bankaccount: (f = msg.getBankaccount()) && proto.sniippaymentmethodsserviceapi.BankAccount.toObject(includeInstance, f),
1322
- accesstoken: msg.getAccesstoken()
1366
+ data: (f = msg.getData()) && proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest.toObject(includeInstance, f)
1323
1367
  };
1324
1368
 
1325
1369
  if (includeInstance) {
@@ -1333,23 +1377,23 @@ proto.sniippaymentmethodsserviceapi.AddPaymentMethod.toObject = function(include
1333
1377
  /**
1334
1378
  * Deserializes binary data (in protobuf wire format).
1335
1379
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
1336
- * @return {!proto.sniippaymentmethodsserviceapi.AddPaymentMethod}
1380
+ * @return {!proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest}
1337
1381
  */
1338
- proto.sniippaymentmethodsserviceapi.AddPaymentMethod.deserializeBinary = function(bytes) {
1382
+ proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.deserializeBinary = function(bytes) {
1339
1383
  var reader = new jspb.BinaryReader(bytes);
1340
- var msg = new proto.sniippaymentmethodsserviceapi.AddPaymentMethod;
1341
- return proto.sniippaymentmethodsserviceapi.AddPaymentMethod.deserializeBinaryFromReader(msg, reader);
1384
+ var msg = new proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest;
1385
+ return proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.deserializeBinaryFromReader(msg, reader);
1342
1386
  };
1343
1387
 
1344
1388
 
1345
1389
  /**
1346
1390
  * Deserializes binary data (in protobuf wire format) from the
1347
1391
  * given reader into the given message object.
1348
- * @param {!proto.sniippaymentmethodsserviceapi.AddPaymentMethod} msg The message object to deserialize into.
1392
+ * @param {!proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest} msg The message object to deserialize into.
1349
1393
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1350
- * @return {!proto.sniippaymentmethodsserviceapi.AddPaymentMethod}
1394
+ * @return {!proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest}
1351
1395
  */
1352
- proto.sniippaymentmethodsserviceapi.AddPaymentMethod.deserializeBinaryFromReader = function(msg, reader) {
1396
+ proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.deserializeBinaryFromReader = function(msg, reader) {
1353
1397
  while (reader.nextField()) {
1354
1398
  if (reader.isEndGroup()) {
1355
1399
  break;
@@ -1357,22 +1401,9 @@ proto.sniippaymentmethodsserviceapi.AddPaymentMethod.deserializeBinaryFromReader
1357
1401
  var field = reader.getFieldNumber();
1358
1402
  switch (field) {
1359
1403
  case 1:
1360
- var value = /** @type {string} */ (reader.readString());
1361
- msg.setPaymenttype(value);
1362
- break;
1363
- case 2:
1364
- var value = new proto.sniippaymentmethodsserviceapi.CreditCard;
1365
- reader.readMessage(value,proto.sniippaymentmethodsserviceapi.CreditCard.deserializeBinaryFromReader);
1366
- msg.setCreditcard(value);
1367
- break;
1368
- case 3:
1369
- var value = new proto.sniippaymentmethodsserviceapi.BankAccount;
1370
- reader.readMessage(value,proto.sniippaymentmethodsserviceapi.BankAccount.deserializeBinaryFromReader);
1371
- msg.setBankaccount(value);
1372
- break;
1373
- case 4:
1374
- var value = /** @type {string} */ (reader.readString());
1375
- msg.setAccesstoken(value);
1404
+ var value = new proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest;
1405
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest.deserializeBinaryFromReader);
1406
+ msg.setData(value);
1376
1407
  break;
1377
1408
  default:
1378
1409
  reader.skipField();
@@ -1386,10 +1417,10 @@ proto.sniippaymentmethodsserviceapi.AddPaymentMethod.deserializeBinaryFromReader
1386
1417
  /**
1387
1418
  * Class method variant: serializes the given message to binary data
1388
1419
  * (in protobuf wire format), writing to the given BinaryWriter.
1389
- * @param {!proto.sniippaymentmethodsserviceapi.AddPaymentMethod} message
1420
+ * @param {!proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest} message
1390
1421
  * @param {!jspb.BinaryWriter} writer
1391
1422
  */
1392
- proto.sniippaymentmethodsserviceapi.AddPaymentMethod.serializeBinaryToWriter = function(message, writer) {
1423
+ proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.serializeBinaryToWriter = function(message, writer) {
1393
1424
  message.serializeBinaryToWriter(writer);
1394
1425
  };
1395
1426
 
@@ -1398,7 +1429,7 @@ proto.sniippaymentmethodsserviceapi.AddPaymentMethod.serializeBinaryToWriter = f
1398
1429
  * Serializes the message to binary data (in protobuf wire format).
1399
1430
  * @return {!Uint8Array}
1400
1431
  */
1401
- proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.serializeBinary = function() {
1432
+ proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.prototype.serializeBinary = function() {
1402
1433
  var writer = new jspb.BinaryWriter();
1403
1434
  this.serializeBinaryToWriter(writer);
1404
1435
  return writer.getResultBuffer();
@@ -1410,36 +1441,14 @@ proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.serializeBinary =
1410
1441
  * writing to the given BinaryWriter.
1411
1442
  * @param {!jspb.BinaryWriter} writer
1412
1443
  */
1413
- proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.serializeBinaryToWriter = function (writer) {
1444
+ proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.prototype.serializeBinaryToWriter = function (writer) {
1414
1445
  var f = undefined;
1415
- f = this.getPaymenttype();
1416
- if (f.length > 0) {
1417
- writer.writeString(
1418
- 1,
1419
- f
1420
- );
1421
- }
1422
- f = this.getCreditcard();
1423
- if (f != null) {
1424
- writer.writeMessage(
1425
- 2,
1426
- f,
1427
- proto.sniippaymentmethodsserviceapi.CreditCard.serializeBinaryToWriter
1428
- );
1429
- }
1430
- f = this.getBankaccount();
1446
+ f = this.getData();
1431
1447
  if (f != null) {
1432
1448
  writer.writeMessage(
1433
- 3,
1449
+ 1,
1434
1450
  f,
1435
- proto.sniippaymentmethodsserviceapi.BankAccount.serializeBinaryToWriter
1436
- );
1437
- }
1438
- f = this.getAccesstoken();
1439
- if (f.length > 0) {
1440
- writer.writeString(
1441
- 4,
1442
- f
1451
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest.serializeBinaryToWriter
1443
1452
  );
1444
1453
  }
1445
1454
  };
@@ -1447,76 +1456,31 @@ proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.serializeBinaryTo
1447
1456
 
1448
1457
  /**
1449
1458
  * Creates a deep clone of this proto. No data is shared with the original.
1450
- * @return {!proto.sniippaymentmethodsserviceapi.AddPaymentMethod} The clone.
1451
- */
1452
- proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.cloneMessage = function() {
1453
- return /** @type {!proto.sniippaymentmethodsserviceapi.AddPaymentMethod} */ (jspb.Message.cloneMessage(this));
1454
- };
1455
-
1456
-
1457
- /**
1458
- * optional string paymentType = 1;
1459
- * @return {string}
1460
- */
1461
- proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.getPaymenttype = function() {
1462
- return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
1463
- };
1464
-
1465
-
1466
- /** @param {string} value */
1467
- proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.setPaymenttype = function(value) {
1468
- jspb.Message.setField(this, 1, value);
1469
- };
1470
-
1471
-
1472
- /**
1473
- * optional CreditCard creditCard = 2;
1474
- * @return {proto.sniippaymentmethodsserviceapi.CreditCard}
1475
- */
1476
- proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.getCreditcard = function() {
1477
- return /** @type{proto.sniippaymentmethodsserviceapi.CreditCard} */ (
1478
- jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.CreditCard, 2));
1479
- };
1480
-
1481
-
1482
- /** @param {proto.sniippaymentmethodsserviceapi.CreditCard|undefined} value */
1483
- proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.setCreditcard = function(value) {
1484
- jspb.Message.setWrapperField(this, 2, value);
1485
- };
1486
-
1487
-
1488
- proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.clearCreditcard = function() {
1489
- this.setCreditcard(undefined);
1490
- };
1491
-
1492
-
1493
- /**
1494
- * Returns whether this field is set.
1495
- * @return{!boolean}
1459
+ * @return {!proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest} The clone.
1496
1460
  */
1497
- proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.hasCreditcard = function() {
1498
- return jspb.Message.getField(this, 2) != null;
1461
+ proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.prototype.cloneMessage = function() {
1462
+ return /** @type {!proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest} */ (jspb.Message.cloneMessage(this));
1499
1463
  };
1500
1464
 
1501
1465
 
1502
1466
  /**
1503
- * optional BankAccount bankAccount = 3;
1504
- * @return {proto.sniippaymentmethodsserviceapi.BankAccount}
1467
+ * optional ZenithTokenAddRequest data = 1;
1468
+ * @return {proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest}
1505
1469
  */
1506
- proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.getBankaccount = function() {
1507
- return /** @type{proto.sniippaymentmethodsserviceapi.BankAccount} */ (
1508
- jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.BankAccount, 3));
1470
+ proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.prototype.getData = function() {
1471
+ return /** @type{proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest} */ (
1472
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest, 1));
1509
1473
  };
1510
1474
 
1511
1475
 
1512
- /** @param {proto.sniippaymentmethodsserviceapi.BankAccount|undefined} value */
1513
- proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.setBankaccount = function(value) {
1514
- jspb.Message.setWrapperField(this, 3, value);
1476
+ /** @param {proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest|undefined} value */
1477
+ proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.prototype.setData = function(value) {
1478
+ jspb.Message.setWrapperField(this, 1, value);
1515
1479
  };
1516
1480
 
1517
1481
 
1518
- proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.clearBankaccount = function() {
1519
- this.setBankaccount(undefined);
1482
+ proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.prototype.clearData = function() {
1483
+ this.setData(undefined);
1520
1484
  };
1521
1485
 
1522
1486
 
@@ -1524,23 +1488,8 @@ proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.clearBankaccount
1524
1488
  * Returns whether this field is set.
1525
1489
  * @return{!boolean}
1526
1490
  */
1527
- proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.hasBankaccount = function() {
1528
- return jspb.Message.getField(this, 3) != null;
1529
- };
1530
-
1531
-
1532
- /**
1533
- * optional string accessToken = 4;
1534
- * @return {string}
1535
- */
1536
- proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.getAccesstoken = function() {
1537
- return /** @type {string} */ (jspb.Message.getFieldProto3(this, 4, ""));
1538
- };
1539
-
1540
-
1541
- /** @param {string} value */
1542
- proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.setAccesstoken = function(value) {
1543
- jspb.Message.setField(this, 4, value);
1491
+ proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.prototype.hasData = function() {
1492
+ return jspb.Message.getField(this, 1) != null;
1544
1493
  };
1545
1494
 
1546
1495
 
@@ -1555,12 +1504,12 @@ proto.sniippaymentmethodsserviceapi.AddPaymentMethod.prototype.setAccesstoken =
1555
1504
  * @extends {jspb.Message}
1556
1505
  * @constructor
1557
1506
  */
1558
- proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest = function(opt_data) {
1507
+ proto.sniippaymentmethodsserviceapi.BankAccount = function(opt_data) {
1559
1508
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1560
1509
  };
1561
- goog.inherits(proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest, jspb.Message);
1510
+ goog.inherits(proto.sniippaymentmethodsserviceapi.BankAccount, jspb.Message);
1562
1511
  if (goog.DEBUG && !COMPILED) {
1563
- proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.displayName = 'proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest';
1512
+ proto.sniippaymentmethodsserviceapi.BankAccount.displayName = 'proto.sniippaymentmethodsserviceapi.BankAccount';
1564
1513
  }
1565
1514
 
1566
1515
 
@@ -1575,8 +1524,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
1575
1524
  * for transitional soy proto support: http://goto/soy-param-migration
1576
1525
  * @return {!Object}
1577
1526
  */
1578
- proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.prototype.toObject = function(opt_includeInstance) {
1579
- return proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.toObject(opt_includeInstance, this);
1527
+ proto.sniippaymentmethodsserviceapi.BankAccount.prototype.toObject = function(opt_includeInstance) {
1528
+ return proto.sniippaymentmethodsserviceapi.BankAccount.toObject(opt_includeInstance, this);
1580
1529
  };
1581
1530
 
1582
1531
 
@@ -1585,12 +1534,16 @@ proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.prototype.toObject =
1585
1534
  * @param {boolean|undefined} includeInstance Whether to include the JSPB
1586
1535
  * instance for transitional soy proto support:
1587
1536
  * http://goto/soy-param-migration
1588
- * @param {!proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest} msg The msg instance to transform.
1537
+ * @param {!proto.sniippaymentmethodsserviceapi.BankAccount} msg The msg instance to transform.
1589
1538
  * @return {!Object}
1590
1539
  */
1591
- proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.toObject = function(includeInstance, msg) {
1540
+ proto.sniippaymentmethodsserviceapi.BankAccount.toObject = function(includeInstance, msg) {
1592
1541
  var f, obj = {
1593
- data: (f = msg.getData()) && proto.sniippaymentmethodsserviceapi.AddPaymentMethod.toObject(includeInstance, f)
1542
+ bsb: msg.getBsb(),
1543
+ accountno: msg.getAccountno(),
1544
+ accountname: msg.getAccountname(),
1545
+ nickname: msg.getNickname(),
1546
+ createddatetime: msg.getCreateddatetime()
1594
1547
  };
1595
1548
 
1596
1549
  if (includeInstance) {
@@ -1604,33 +1557,48 @@ proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.toObject = function(
1604
1557
  /**
1605
1558
  * Deserializes binary data (in protobuf wire format).
1606
1559
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
1607
- * @return {!proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest}
1560
+ * @return {!proto.sniippaymentmethodsserviceapi.BankAccount}
1608
1561
  */
1609
- proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.deserializeBinary = function(bytes) {
1562
+ proto.sniippaymentmethodsserviceapi.BankAccount.deserializeBinary = function(bytes) {
1610
1563
  var reader = new jspb.BinaryReader(bytes);
1611
- var msg = new proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest;
1612
- return proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.deserializeBinaryFromReader(msg, reader);
1564
+ var msg = new proto.sniippaymentmethodsserviceapi.BankAccount;
1565
+ return proto.sniippaymentmethodsserviceapi.BankAccount.deserializeBinaryFromReader(msg, reader);
1613
1566
  };
1614
1567
 
1615
1568
 
1616
1569
  /**
1617
1570
  * Deserializes binary data (in protobuf wire format) from the
1618
1571
  * given reader into the given message object.
1619
- * @param {!proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest} msg The message object to deserialize into.
1572
+ * @param {!proto.sniippaymentmethodsserviceapi.BankAccount} msg The message object to deserialize into.
1620
1573
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1621
- * @return {!proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest}
1574
+ * @return {!proto.sniippaymentmethodsserviceapi.BankAccount}
1622
1575
  */
1623
- proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.deserializeBinaryFromReader = function(msg, reader) {
1576
+ proto.sniippaymentmethodsserviceapi.BankAccount.deserializeBinaryFromReader = function(msg, reader) {
1624
1577
  while (reader.nextField()) {
1625
1578
  if (reader.isEndGroup()) {
1626
1579
  break;
1627
1580
  }
1628
1581
  var field = reader.getFieldNumber();
1629
1582
  switch (field) {
1630
- case 1:
1631
- var value = new proto.sniippaymentmethodsserviceapi.AddPaymentMethod;
1632
- reader.readMessage(value,proto.sniippaymentmethodsserviceapi.AddPaymentMethod.deserializeBinaryFromReader);
1633
- msg.setData(value);
1583
+ case 2:
1584
+ var value = /** @type {string} */ (reader.readString());
1585
+ msg.setBsb(value);
1586
+ break;
1587
+ case 3:
1588
+ var value = /** @type {string} */ (reader.readString());
1589
+ msg.setAccountno(value);
1590
+ break;
1591
+ case 4:
1592
+ var value = /** @type {string} */ (reader.readString());
1593
+ msg.setAccountname(value);
1594
+ break;
1595
+ case 5:
1596
+ var value = /** @type {string} */ (reader.readString());
1597
+ msg.setNickname(value);
1598
+ break;
1599
+ case 6:
1600
+ var value = /** @type {string} */ (reader.readString());
1601
+ msg.setCreateddatetime(value);
1634
1602
  break;
1635
1603
  default:
1636
1604
  reader.skipField();
@@ -1644,10 +1612,10 @@ proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.deserializeBinaryFro
1644
1612
  /**
1645
1613
  * Class method variant: serializes the given message to binary data
1646
1614
  * (in protobuf wire format), writing to the given BinaryWriter.
1647
- * @param {!proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest} message
1615
+ * @param {!proto.sniippaymentmethodsserviceapi.BankAccount} message
1648
1616
  * @param {!jspb.BinaryWriter} writer
1649
1617
  */
1650
- proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.serializeBinaryToWriter = function(message, writer) {
1618
+ proto.sniippaymentmethodsserviceapi.BankAccount.serializeBinaryToWriter = function(message, writer) {
1651
1619
  message.serializeBinaryToWriter(writer);
1652
1620
  };
1653
1621
 
@@ -1656,7 +1624,7 @@ proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.serializeBinaryToWri
1656
1624
  * Serializes the message to binary data (in protobuf wire format).
1657
1625
  * @return {!Uint8Array}
1658
1626
  */
1659
- proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.prototype.serializeBinary = function() {
1627
+ proto.sniippaymentmethodsserviceapi.BankAccount.prototype.serializeBinary = function() {
1660
1628
  var writer = new jspb.BinaryWriter();
1661
1629
  this.serializeBinaryToWriter(writer);
1662
1630
  return writer.getResultBuffer();
@@ -1668,1458 +1636,40 @@ proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.prototype.serializeB
1668
1636
  * writing to the given BinaryWriter.
1669
1637
  * @param {!jspb.BinaryWriter} writer
1670
1638
  */
1671
- proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.prototype.serializeBinaryToWriter = function (writer) {
1639
+ proto.sniippaymentmethodsserviceapi.BankAccount.prototype.serializeBinaryToWriter = function (writer) {
1672
1640
  var f = undefined;
1673
- f = this.getData();
1674
- if (f != null) {
1675
- writer.writeMessage(
1676
- 1,
1677
- f,
1678
- proto.sniippaymentmethodsserviceapi.AddPaymentMethod.serializeBinaryToWriter
1641
+ f = this.getBsb();
1642
+ if (f.length > 0) {
1643
+ writer.writeString(
1644
+ 2,
1645
+ f
1679
1646
  );
1680
1647
  }
1681
- };
1682
-
1683
-
1684
- /**
1685
- * Creates a deep clone of this proto. No data is shared with the original.
1686
- * @return {!proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest} The clone.
1687
- */
1688
- proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.prototype.cloneMessage = function() {
1689
- return /** @type {!proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest} */ (jspb.Message.cloneMessage(this));
1690
- };
1691
-
1692
-
1693
- /**
1694
- * optional AddPaymentMethod data = 1;
1695
- * @return {proto.sniippaymentmethodsserviceapi.AddPaymentMethod}
1696
- */
1697
- proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.prototype.getData = function() {
1698
- return /** @type{proto.sniippaymentmethodsserviceapi.AddPaymentMethod} */ (
1699
- jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.AddPaymentMethod, 1));
1700
- };
1701
-
1702
-
1703
- /** @param {proto.sniippaymentmethodsserviceapi.AddPaymentMethod|undefined} value */
1704
- proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.prototype.setData = function(value) {
1705
- jspb.Message.setWrapperField(this, 1, value);
1706
- };
1707
-
1708
-
1709
- proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.prototype.clearData = function() {
1710
- this.setData(undefined);
1711
- };
1712
-
1713
-
1714
- /**
1715
- * Returns whether this field is set.
1716
- * @return{!boolean}
1717
- */
1718
- proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.prototype.hasData = function() {
1719
- return jspb.Message.getField(this, 1) != null;
1720
- };
1721
-
1722
-
1723
-
1724
- /**
1725
- * Generated by JsPbCodeGenerator.
1726
- * @param {Array=} opt_data Optional initial data array, typically from a
1727
- * server response, or constructed directly in Javascript. The array is used
1728
- * in place and becomes part of the constructed object. It is not cloned.
1729
- * If no data is provided, the constructed object will be empty, but still
1730
- * valid.
1731
- * @extends {jspb.Message}
1732
- * @constructor
1733
- */
1734
- proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest = function(opt_data) {
1735
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1736
- };
1737
- goog.inherits(proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest, jspb.Message);
1738
- if (goog.DEBUG && !COMPILED) {
1739
- proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.displayName = 'proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest';
1740
- }
1741
-
1742
-
1743
- if (jspb.Message.GENERATE_TO_OBJECT) {
1744
- /**
1745
- * Creates an object representation of this proto suitable for use in Soy templates.
1746
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1747
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1748
- * For the list of reserved names please see:
1749
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1750
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1751
- * for transitional soy proto support: http://goto/soy-param-migration
1752
- * @return {!Object}
1753
- */
1754
- proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.prototype.toObject = function(opt_includeInstance) {
1755
- return proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.toObject(opt_includeInstance, this);
1756
- };
1757
-
1758
-
1759
- /**
1760
- * Static version of the {@see toObject} method.
1761
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
1762
- * instance for transitional soy proto support:
1763
- * http://goto/soy-param-migration
1764
- * @param {!proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest} msg The msg instance to transform.
1765
- * @return {!Object}
1766
- */
1767
- proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.toObject = function(includeInstance, msg) {
1768
- var f, obj = {
1769
- data: (f = msg.getData()) && proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest.toObject(includeInstance, f)
1770
- };
1771
-
1772
- if (includeInstance) {
1773
- obj.$jspbMessageInstance = msg;
1774
- }
1775
- return obj;
1776
- };
1777
- }
1778
-
1779
-
1780
- /**
1781
- * Deserializes binary data (in protobuf wire format).
1782
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1783
- * @return {!proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest}
1784
- */
1785
- proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.deserializeBinary = function(bytes) {
1786
- var reader = new jspb.BinaryReader(bytes);
1787
- var msg = new proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest;
1788
- return proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.deserializeBinaryFromReader(msg, reader);
1789
- };
1790
-
1791
-
1792
- /**
1793
- * Deserializes binary data (in protobuf wire format) from the
1794
- * given reader into the given message object.
1795
- * @param {!proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest} msg The message object to deserialize into.
1796
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1797
- * @return {!proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest}
1798
- */
1799
- proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.deserializeBinaryFromReader = function(msg, reader) {
1800
- while (reader.nextField()) {
1801
- if (reader.isEndGroup()) {
1802
- break;
1803
- }
1804
- var field = reader.getFieldNumber();
1805
- switch (field) {
1806
- case 1:
1807
- var value = new proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest;
1808
- reader.readMessage(value,proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest.deserializeBinaryFromReader);
1809
- msg.setData(value);
1810
- break;
1811
- default:
1812
- reader.skipField();
1813
- break;
1814
- }
1815
- }
1816
- return msg;
1817
- };
1818
-
1819
-
1820
- /**
1821
- * Class method variant: serializes the given message to binary data
1822
- * (in protobuf wire format), writing to the given BinaryWriter.
1823
- * @param {!proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest} message
1824
- * @param {!jspb.BinaryWriter} writer
1825
- */
1826
- proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.serializeBinaryToWriter = function(message, writer) {
1827
- message.serializeBinaryToWriter(writer);
1828
- };
1829
-
1830
-
1831
- /**
1832
- * Serializes the message to binary data (in protobuf wire format).
1833
- * @return {!Uint8Array}
1834
- */
1835
- proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.prototype.serializeBinary = function() {
1836
- var writer = new jspb.BinaryWriter();
1837
- this.serializeBinaryToWriter(writer);
1838
- return writer.getResultBuffer();
1839
- };
1840
-
1841
-
1842
- /**
1843
- * Serializes the message to binary data (in protobuf wire format),
1844
- * writing to the given BinaryWriter.
1845
- * @param {!jspb.BinaryWriter} writer
1846
- */
1847
- proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.prototype.serializeBinaryToWriter = function (writer) {
1848
- var f = undefined;
1849
- f = this.getData();
1850
- if (f != null) {
1851
- writer.writeMessage(
1852
- 1,
1853
- f,
1854
- proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest.serializeBinaryToWriter
1855
- );
1856
- }
1857
- };
1858
-
1859
-
1860
- /**
1861
- * Creates a deep clone of this proto. No data is shared with the original.
1862
- * @return {!proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest} The clone.
1863
- */
1864
- proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.prototype.cloneMessage = function() {
1865
- return /** @type {!proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest} */ (jspb.Message.cloneMessage(this));
1866
- };
1867
-
1868
-
1869
- /**
1870
- * optional ZenithTokenAddRequest data = 1;
1871
- * @return {proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest}
1872
- */
1873
- proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.prototype.getData = function() {
1874
- return /** @type{proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest} */ (
1875
- jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest, 1));
1876
- };
1877
-
1878
-
1879
- /** @param {proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest|undefined} value */
1880
- proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.prototype.setData = function(value) {
1881
- jspb.Message.setWrapperField(this, 1, value);
1882
- };
1883
-
1884
-
1885
- proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.prototype.clearData = function() {
1886
- this.setData(undefined);
1887
- };
1888
-
1889
-
1890
- /**
1891
- * Returns whether this field is set.
1892
- * @return{!boolean}
1893
- */
1894
- proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.prototype.hasData = function() {
1895
- return jspb.Message.getField(this, 1) != null;
1896
- };
1897
-
1898
-
1899
-
1900
- /**
1901
- * Generated by JsPbCodeGenerator.
1902
- * @param {Array=} opt_data Optional initial data array, typically from a
1903
- * server response, or constructed directly in Javascript. The array is used
1904
- * in place and becomes part of the constructed object. It is not cloned.
1905
- * If no data is provided, the constructed object will be empty, but still
1906
- * valid.
1907
- * @extends {jspb.Message}
1908
- * @constructor
1909
- */
1910
- proto.sniippaymentmethodsserviceapi.BankAccount = function(opt_data) {
1911
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1912
- };
1913
- goog.inherits(proto.sniippaymentmethodsserviceapi.BankAccount, jspb.Message);
1914
- if (goog.DEBUG && !COMPILED) {
1915
- proto.sniippaymentmethodsserviceapi.BankAccount.displayName = 'proto.sniippaymentmethodsserviceapi.BankAccount';
1916
- }
1917
-
1918
-
1919
- if (jspb.Message.GENERATE_TO_OBJECT) {
1920
- /**
1921
- * Creates an object representation of this proto suitable for use in Soy templates.
1922
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1923
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1924
- * For the list of reserved names please see:
1925
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1926
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1927
- * for transitional soy proto support: http://goto/soy-param-migration
1928
- * @return {!Object}
1929
- */
1930
- proto.sniippaymentmethodsserviceapi.BankAccount.prototype.toObject = function(opt_includeInstance) {
1931
- return proto.sniippaymentmethodsserviceapi.BankAccount.toObject(opt_includeInstance, this);
1932
- };
1933
-
1934
-
1935
- /**
1936
- * Static version of the {@see toObject} method.
1937
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
1938
- * instance for transitional soy proto support:
1939
- * http://goto/soy-param-migration
1940
- * @param {!proto.sniippaymentmethodsserviceapi.BankAccount} msg The msg instance to transform.
1941
- * @return {!Object}
1942
- */
1943
- proto.sniippaymentmethodsserviceapi.BankAccount.toObject = function(includeInstance, msg) {
1944
- var f, obj = {
1945
- bsb: msg.getBsb(),
1946
- accountno: msg.getAccountno(),
1947
- accountname: msg.getAccountname(),
1948
- nickname: msg.getNickname(),
1949
- createddatetime: msg.getCreateddatetime()
1950
- };
1951
-
1952
- if (includeInstance) {
1953
- obj.$jspbMessageInstance = msg;
1954
- }
1955
- return obj;
1956
- };
1957
- }
1958
-
1959
-
1960
- /**
1961
- * Deserializes binary data (in protobuf wire format).
1962
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1963
- * @return {!proto.sniippaymentmethodsserviceapi.BankAccount}
1964
- */
1965
- proto.sniippaymentmethodsserviceapi.BankAccount.deserializeBinary = function(bytes) {
1966
- var reader = new jspb.BinaryReader(bytes);
1967
- var msg = new proto.sniippaymentmethodsserviceapi.BankAccount;
1968
- return proto.sniippaymentmethodsserviceapi.BankAccount.deserializeBinaryFromReader(msg, reader);
1969
- };
1970
-
1971
-
1972
- /**
1973
- * Deserializes binary data (in protobuf wire format) from the
1974
- * given reader into the given message object.
1975
- * @param {!proto.sniippaymentmethodsserviceapi.BankAccount} msg The message object to deserialize into.
1976
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1977
- * @return {!proto.sniippaymentmethodsserviceapi.BankAccount}
1978
- */
1979
- proto.sniippaymentmethodsserviceapi.BankAccount.deserializeBinaryFromReader = function(msg, reader) {
1980
- while (reader.nextField()) {
1981
- if (reader.isEndGroup()) {
1982
- break;
1983
- }
1984
- var field = reader.getFieldNumber();
1985
- switch (field) {
1986
- case 2:
1987
- var value = /** @type {string} */ (reader.readString());
1988
- msg.setBsb(value);
1989
- break;
1990
- case 3:
1991
- var value = /** @type {string} */ (reader.readString());
1992
- msg.setAccountno(value);
1993
- break;
1994
- case 4:
1995
- var value = /** @type {string} */ (reader.readString());
1996
- msg.setAccountname(value);
1997
- break;
1998
- case 5:
1999
- var value = /** @type {string} */ (reader.readString());
2000
- msg.setNickname(value);
2001
- break;
2002
- case 6:
2003
- var value = /** @type {string} */ (reader.readString());
2004
- msg.setCreateddatetime(value);
2005
- break;
2006
- default:
2007
- reader.skipField();
2008
- break;
2009
- }
2010
- }
2011
- return msg;
2012
- };
2013
-
2014
-
2015
- /**
2016
- * Class method variant: serializes the given message to binary data
2017
- * (in protobuf wire format), writing to the given BinaryWriter.
2018
- * @param {!proto.sniippaymentmethodsserviceapi.BankAccount} message
2019
- * @param {!jspb.BinaryWriter} writer
2020
- */
2021
- proto.sniippaymentmethodsserviceapi.BankAccount.serializeBinaryToWriter = function(message, writer) {
2022
- message.serializeBinaryToWriter(writer);
2023
- };
2024
-
2025
-
2026
- /**
2027
- * Serializes the message to binary data (in protobuf wire format).
2028
- * @return {!Uint8Array}
2029
- */
2030
- proto.sniippaymentmethodsserviceapi.BankAccount.prototype.serializeBinary = function() {
2031
- var writer = new jspb.BinaryWriter();
2032
- this.serializeBinaryToWriter(writer);
2033
- return writer.getResultBuffer();
2034
- };
2035
-
2036
-
2037
- /**
2038
- * Serializes the message to binary data (in protobuf wire format),
2039
- * writing to the given BinaryWriter.
2040
- * @param {!jspb.BinaryWriter} writer
2041
- */
2042
- proto.sniippaymentmethodsserviceapi.BankAccount.prototype.serializeBinaryToWriter = function (writer) {
2043
- var f = undefined;
2044
- f = this.getBsb();
2045
- if (f.length > 0) {
2046
- writer.writeString(
2047
- 2,
2048
- f
2049
- );
2050
- }
2051
- f = this.getAccountno();
2052
- if (f.length > 0) {
2053
- writer.writeString(
2054
- 3,
2055
- f
2056
- );
2057
- }
2058
- f = this.getAccountname();
2059
- if (f.length > 0) {
2060
- writer.writeString(
2061
- 4,
2062
- f
2063
- );
2064
- }
2065
- f = this.getNickname();
2066
- if (f.length > 0) {
2067
- writer.writeString(
2068
- 5,
2069
- f
2070
- );
2071
- }
2072
- f = this.getCreateddatetime();
2073
- if (f.length > 0) {
2074
- writer.writeString(
2075
- 6,
2076
- f
2077
- );
2078
- }
2079
- };
2080
-
2081
-
2082
- /**
2083
- * Creates a deep clone of this proto. No data is shared with the original.
2084
- * @return {!proto.sniippaymentmethodsserviceapi.BankAccount} The clone.
2085
- */
2086
- proto.sniippaymentmethodsserviceapi.BankAccount.prototype.cloneMessage = function() {
2087
- return /** @type {!proto.sniippaymentmethodsserviceapi.BankAccount} */ (jspb.Message.cloneMessage(this));
2088
- };
2089
-
2090
-
2091
- /**
2092
- * optional string bsb = 2;
2093
- * @return {string}
2094
- */
2095
- proto.sniippaymentmethodsserviceapi.BankAccount.prototype.getBsb = function() {
2096
- return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
2097
- };
2098
-
2099
-
2100
- /** @param {string} value */
2101
- proto.sniippaymentmethodsserviceapi.BankAccount.prototype.setBsb = function(value) {
2102
- jspb.Message.setField(this, 2, value);
2103
- };
2104
-
2105
-
2106
- /**
2107
- * optional string accountNo = 3;
2108
- * @return {string}
2109
- */
2110
- proto.sniippaymentmethodsserviceapi.BankAccount.prototype.getAccountno = function() {
2111
- return /** @type {string} */ (jspb.Message.getFieldProto3(this, 3, ""));
2112
- };
2113
-
2114
-
2115
- /** @param {string} value */
2116
- proto.sniippaymentmethodsserviceapi.BankAccount.prototype.setAccountno = function(value) {
2117
- jspb.Message.setField(this, 3, value);
2118
- };
2119
-
2120
-
2121
- /**
2122
- * optional string accountName = 4;
2123
- * @return {string}
2124
- */
2125
- proto.sniippaymentmethodsserviceapi.BankAccount.prototype.getAccountname = function() {
2126
- return /** @type {string} */ (jspb.Message.getFieldProto3(this, 4, ""));
2127
- };
2128
-
2129
-
2130
- /** @param {string} value */
2131
- proto.sniippaymentmethodsserviceapi.BankAccount.prototype.setAccountname = function(value) {
2132
- jspb.Message.setField(this, 4, value);
2133
- };
2134
-
2135
-
2136
- /**
2137
- * optional string nickname = 5;
2138
- * @return {string}
2139
- */
2140
- proto.sniippaymentmethodsserviceapi.BankAccount.prototype.getNickname = function() {
2141
- return /** @type {string} */ (jspb.Message.getFieldProto3(this, 5, ""));
2142
- };
2143
-
2144
-
2145
- /** @param {string} value */
2146
- proto.sniippaymentmethodsserviceapi.BankAccount.prototype.setNickname = function(value) {
2147
- jspb.Message.setField(this, 5, value);
2148
- };
2149
-
2150
-
2151
- /**
2152
- * optional string createdDateTime = 6;
2153
- * @return {string}
2154
- */
2155
- proto.sniippaymentmethodsserviceapi.BankAccount.prototype.getCreateddatetime = function() {
2156
- return /** @type {string} */ (jspb.Message.getFieldProto3(this, 6, ""));
2157
- };
2158
-
2159
-
2160
- /** @param {string} value */
2161
- proto.sniippaymentmethodsserviceapi.BankAccount.prototype.setCreateddatetime = function(value) {
2162
- jspb.Message.setField(this, 6, value);
2163
- };
2164
-
2165
-
2166
-
2167
- /**
2168
- * Generated by JsPbCodeGenerator.
2169
- * @param {Array=} opt_data Optional initial data array, typically from a
2170
- * server response, or constructed directly in Javascript. The array is used
2171
- * in place and becomes part of the constructed object. It is not cloned.
2172
- * If no data is provided, the constructed object will be empty, but still
2173
- * valid.
2174
- * @extends {jspb.Message}
2175
- * @constructor
2176
- */
2177
- proto.sniippaymentmethodsserviceapi.CardHashRequest = function(opt_data) {
2178
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2179
- };
2180
- goog.inherits(proto.sniippaymentmethodsserviceapi.CardHashRequest, jspb.Message);
2181
- if (goog.DEBUG && !COMPILED) {
2182
- proto.sniippaymentmethodsserviceapi.CardHashRequest.displayName = 'proto.sniippaymentmethodsserviceapi.CardHashRequest';
2183
- }
2184
-
2185
-
2186
- if (jspb.Message.GENERATE_TO_OBJECT) {
2187
- /**
2188
- * Creates an object representation of this proto suitable for use in Soy templates.
2189
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2190
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2191
- * For the list of reserved names please see:
2192
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
2193
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
2194
- * for transitional soy proto support: http://goto/soy-param-migration
2195
- * @return {!Object}
2196
- */
2197
- proto.sniippaymentmethodsserviceapi.CardHashRequest.prototype.toObject = function(opt_includeInstance) {
2198
- return proto.sniippaymentmethodsserviceapi.CardHashRequest.toObject(opt_includeInstance, this);
2199
- };
2200
-
2201
-
2202
- /**
2203
- * Static version of the {@see toObject} method.
2204
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
2205
- * instance for transitional soy proto support:
2206
- * http://goto/soy-param-migration
2207
- * @param {!proto.sniippaymentmethodsserviceapi.CardHashRequest} msg The msg instance to transform.
2208
- * @return {!Object}
2209
- */
2210
- proto.sniippaymentmethodsserviceapi.CardHashRequest.toObject = function(includeInstance, msg) {
2211
- var f, obj = {
2212
- paymentmethodid: msg.getPaymentmethodid(),
2213
- userid: msg.getUserid()
2214
- };
2215
-
2216
- if (includeInstance) {
2217
- obj.$jspbMessageInstance = msg;
2218
- }
2219
- return obj;
2220
- };
2221
- }
2222
-
2223
-
2224
- /**
2225
- * Deserializes binary data (in protobuf wire format).
2226
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2227
- * @return {!proto.sniippaymentmethodsserviceapi.CardHashRequest}
2228
- */
2229
- proto.sniippaymentmethodsserviceapi.CardHashRequest.deserializeBinary = function(bytes) {
2230
- var reader = new jspb.BinaryReader(bytes);
2231
- var msg = new proto.sniippaymentmethodsserviceapi.CardHashRequest;
2232
- return proto.sniippaymentmethodsserviceapi.CardHashRequest.deserializeBinaryFromReader(msg, reader);
2233
- };
2234
-
2235
-
2236
- /**
2237
- * Deserializes binary data (in protobuf wire format) from the
2238
- * given reader into the given message object.
2239
- * @param {!proto.sniippaymentmethodsserviceapi.CardHashRequest} msg The message object to deserialize into.
2240
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2241
- * @return {!proto.sniippaymentmethodsserviceapi.CardHashRequest}
2242
- */
2243
- proto.sniippaymentmethodsserviceapi.CardHashRequest.deserializeBinaryFromReader = function(msg, reader) {
2244
- while (reader.nextField()) {
2245
- if (reader.isEndGroup()) {
2246
- break;
2247
- }
2248
- var field = reader.getFieldNumber();
2249
- switch (field) {
2250
- case 1:
2251
- var value = /** @type {number} */ (reader.readInt64());
2252
- msg.setPaymentmethodid(value);
2253
- break;
2254
- case 2:
2255
- var value = /** @type {number} */ (reader.readInt64());
2256
- msg.setUserid(value);
2257
- break;
2258
- default:
2259
- reader.skipField();
2260
- break;
2261
- }
2262
- }
2263
- return msg;
2264
- };
2265
-
2266
-
2267
- /**
2268
- * Class method variant: serializes the given message to binary data
2269
- * (in protobuf wire format), writing to the given BinaryWriter.
2270
- * @param {!proto.sniippaymentmethodsserviceapi.CardHashRequest} message
2271
- * @param {!jspb.BinaryWriter} writer
2272
- */
2273
- proto.sniippaymentmethodsserviceapi.CardHashRequest.serializeBinaryToWriter = function(message, writer) {
2274
- message.serializeBinaryToWriter(writer);
2275
- };
2276
-
2277
-
2278
- /**
2279
- * Serializes the message to binary data (in protobuf wire format).
2280
- * @return {!Uint8Array}
2281
- */
2282
- proto.sniippaymentmethodsserviceapi.CardHashRequest.prototype.serializeBinary = function() {
2283
- var writer = new jspb.BinaryWriter();
2284
- this.serializeBinaryToWriter(writer);
2285
- return writer.getResultBuffer();
2286
- };
2287
-
2288
-
2289
- /**
2290
- * Serializes the message to binary data (in protobuf wire format),
2291
- * writing to the given BinaryWriter.
2292
- * @param {!jspb.BinaryWriter} writer
2293
- */
2294
- proto.sniippaymentmethodsserviceapi.CardHashRequest.prototype.serializeBinaryToWriter = function (writer) {
2295
- var f = undefined;
2296
- f = this.getPaymentmethodid();
2297
- if (f !== 0) {
2298
- writer.writeInt64(
2299
- 1,
2300
- f
2301
- );
2302
- }
2303
- f = this.getUserid();
2304
- if (f !== 0) {
2305
- writer.writeInt64(
2306
- 2,
2307
- f
2308
- );
2309
- }
2310
- };
2311
-
2312
-
2313
- /**
2314
- * Creates a deep clone of this proto. No data is shared with the original.
2315
- * @return {!proto.sniippaymentmethodsserviceapi.CardHashRequest} The clone.
2316
- */
2317
- proto.sniippaymentmethodsserviceapi.CardHashRequest.prototype.cloneMessage = function() {
2318
- return /** @type {!proto.sniippaymentmethodsserviceapi.CardHashRequest} */ (jspb.Message.cloneMessage(this));
2319
- };
2320
-
2321
-
2322
- /**
2323
- * optional int64 paymentMethodId = 1;
2324
- * @return {number}
2325
- */
2326
- proto.sniippaymentmethodsserviceapi.CardHashRequest.prototype.getPaymentmethodid = function() {
2327
- return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
2328
- };
2329
-
2330
-
2331
- /** @param {number} value */
2332
- proto.sniippaymentmethodsserviceapi.CardHashRequest.prototype.setPaymentmethodid = function(value) {
2333
- jspb.Message.setField(this, 1, value);
2334
- };
2335
-
2336
-
2337
- /**
2338
- * optional int64 userId = 2;
2339
- * @return {number}
2340
- */
2341
- proto.sniippaymentmethodsserviceapi.CardHashRequest.prototype.getUserid = function() {
2342
- return /** @type {number} */ (jspb.Message.getFieldProto3(this, 2, 0));
2343
- };
2344
-
2345
-
2346
- /** @param {number} value */
2347
- proto.sniippaymentmethodsserviceapi.CardHashRequest.prototype.setUserid = function(value) {
2348
- jspb.Message.setField(this, 2, value);
2349
- };
2350
-
2351
-
2352
-
2353
- /**
2354
- * Generated by JsPbCodeGenerator.
2355
- * @param {Array=} opt_data Optional initial data array, typically from a
2356
- * server response, or constructed directly in Javascript. The array is used
2357
- * in place and becomes part of the constructed object. It is not cloned.
2358
- * If no data is provided, the constructed object will be empty, but still
2359
- * valid.
2360
- * @extends {jspb.Message}
2361
- * @constructor
2362
- */
2363
- proto.sniippaymentmethodsserviceapi.CardHashResponse = function(opt_data) {
2364
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2365
- };
2366
- goog.inherits(proto.sniippaymentmethodsserviceapi.CardHashResponse, jspb.Message);
2367
- if (goog.DEBUG && !COMPILED) {
2368
- proto.sniippaymentmethodsserviceapi.CardHashResponse.displayName = 'proto.sniippaymentmethodsserviceapi.CardHashResponse';
2369
- }
2370
-
2371
-
2372
- if (jspb.Message.GENERATE_TO_OBJECT) {
2373
- /**
2374
- * Creates an object representation of this proto suitable for use in Soy templates.
2375
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2376
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2377
- * For the list of reserved names please see:
2378
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
2379
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
2380
- * for transitional soy proto support: http://goto/soy-param-migration
2381
- * @return {!Object}
2382
- */
2383
- proto.sniippaymentmethodsserviceapi.CardHashResponse.prototype.toObject = function(opt_includeInstance) {
2384
- return proto.sniippaymentmethodsserviceapi.CardHashResponse.toObject(opt_includeInstance, this);
2385
- };
2386
-
2387
-
2388
- /**
2389
- * Static version of the {@see toObject} method.
2390
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
2391
- * instance for transitional soy proto support:
2392
- * http://goto/soy-param-migration
2393
- * @param {!proto.sniippaymentmethodsserviceapi.CardHashResponse} msg The msg instance to transform.
2394
- * @return {!Object}
2395
- */
2396
- proto.sniippaymentmethodsserviceapi.CardHashResponse.toObject = function(includeInstance, msg) {
2397
- var f, obj = {
2398
- responsecode: (f = msg.getResponsecode()) && proto.sniippaymentmethodsserviceapi.ResponseCode.toObject(includeInstance, f),
2399
- cardhash: msg.getCardhash()
2400
- };
2401
-
2402
- if (includeInstance) {
2403
- obj.$jspbMessageInstance = msg;
2404
- }
2405
- return obj;
2406
- };
2407
- }
2408
-
2409
-
2410
- /**
2411
- * Deserializes binary data (in protobuf wire format).
2412
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2413
- * @return {!proto.sniippaymentmethodsserviceapi.CardHashResponse}
2414
- */
2415
- proto.sniippaymentmethodsserviceapi.CardHashResponse.deserializeBinary = function(bytes) {
2416
- var reader = new jspb.BinaryReader(bytes);
2417
- var msg = new proto.sniippaymentmethodsserviceapi.CardHashResponse;
2418
- return proto.sniippaymentmethodsserviceapi.CardHashResponse.deserializeBinaryFromReader(msg, reader);
2419
- };
2420
-
2421
-
2422
- /**
2423
- * Deserializes binary data (in protobuf wire format) from the
2424
- * given reader into the given message object.
2425
- * @param {!proto.sniippaymentmethodsserviceapi.CardHashResponse} msg The message object to deserialize into.
2426
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2427
- * @return {!proto.sniippaymentmethodsserviceapi.CardHashResponse}
2428
- */
2429
- proto.sniippaymentmethodsserviceapi.CardHashResponse.deserializeBinaryFromReader = function(msg, reader) {
2430
- while (reader.nextField()) {
2431
- if (reader.isEndGroup()) {
2432
- break;
2433
- }
2434
- var field = reader.getFieldNumber();
2435
- switch (field) {
2436
- case 1:
2437
- var value = new proto.sniippaymentmethodsserviceapi.ResponseCode;
2438
- reader.readMessage(value,proto.sniippaymentmethodsserviceapi.ResponseCode.deserializeBinaryFromReader);
2439
- msg.setResponsecode(value);
2440
- break;
2441
- case 2:
2442
- var value = /** @type {string} */ (reader.readString());
2443
- msg.setCardhash(value);
2444
- break;
2445
- default:
2446
- reader.skipField();
2447
- break;
2448
- }
2449
- }
2450
- return msg;
2451
- };
2452
-
2453
-
2454
- /**
2455
- * Class method variant: serializes the given message to binary data
2456
- * (in protobuf wire format), writing to the given BinaryWriter.
2457
- * @param {!proto.sniippaymentmethodsserviceapi.CardHashResponse} message
2458
- * @param {!jspb.BinaryWriter} writer
2459
- */
2460
- proto.sniippaymentmethodsserviceapi.CardHashResponse.serializeBinaryToWriter = function(message, writer) {
2461
- message.serializeBinaryToWriter(writer);
2462
- };
2463
-
2464
-
2465
- /**
2466
- * Serializes the message to binary data (in protobuf wire format).
2467
- * @return {!Uint8Array}
2468
- */
2469
- proto.sniippaymentmethodsserviceapi.CardHashResponse.prototype.serializeBinary = function() {
2470
- var writer = new jspb.BinaryWriter();
2471
- this.serializeBinaryToWriter(writer);
2472
- return writer.getResultBuffer();
2473
- };
2474
-
2475
-
2476
- /**
2477
- * Serializes the message to binary data (in protobuf wire format),
2478
- * writing to the given BinaryWriter.
2479
- * @param {!jspb.BinaryWriter} writer
2480
- */
2481
- proto.sniippaymentmethodsserviceapi.CardHashResponse.prototype.serializeBinaryToWriter = function (writer) {
2482
- var f = undefined;
2483
- f = this.getResponsecode();
2484
- if (f != null) {
2485
- writer.writeMessage(
2486
- 1,
2487
- f,
2488
- proto.sniippaymentmethodsserviceapi.ResponseCode.serializeBinaryToWriter
2489
- );
2490
- }
2491
- f = this.getCardhash();
2492
- if (f.length > 0) {
2493
- writer.writeString(
2494
- 2,
2495
- f
2496
- );
2497
- }
2498
- };
2499
-
2500
-
2501
- /**
2502
- * Creates a deep clone of this proto. No data is shared with the original.
2503
- * @return {!proto.sniippaymentmethodsserviceapi.CardHashResponse} The clone.
2504
- */
2505
- proto.sniippaymentmethodsserviceapi.CardHashResponse.prototype.cloneMessage = function() {
2506
- return /** @type {!proto.sniippaymentmethodsserviceapi.CardHashResponse} */ (jspb.Message.cloneMessage(this));
2507
- };
2508
-
2509
-
2510
- /**
2511
- * optional ResponseCode responseCode = 1;
2512
- * @return {proto.sniippaymentmethodsserviceapi.ResponseCode}
2513
- */
2514
- proto.sniippaymentmethodsserviceapi.CardHashResponse.prototype.getResponsecode = function() {
2515
- return /** @type{proto.sniippaymentmethodsserviceapi.ResponseCode} */ (
2516
- jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.ResponseCode, 1));
2517
- };
2518
-
2519
-
2520
- /** @param {proto.sniippaymentmethodsserviceapi.ResponseCode|undefined} value */
2521
- proto.sniippaymentmethodsserviceapi.CardHashResponse.prototype.setResponsecode = function(value) {
2522
- jspb.Message.setWrapperField(this, 1, value);
2523
- };
2524
-
2525
-
2526
- proto.sniippaymentmethodsserviceapi.CardHashResponse.prototype.clearResponsecode = function() {
2527
- this.setResponsecode(undefined);
2528
- };
2529
-
2530
-
2531
- /**
2532
- * Returns whether this field is set.
2533
- * @return{!boolean}
2534
- */
2535
- proto.sniippaymentmethodsserviceapi.CardHashResponse.prototype.hasResponsecode = function() {
2536
- return jspb.Message.getField(this, 1) != null;
2537
- };
2538
-
2539
-
2540
- /**
2541
- * optional string cardHash = 2;
2542
- * @return {string}
2543
- */
2544
- proto.sniippaymentmethodsserviceapi.CardHashResponse.prototype.getCardhash = function() {
2545
- return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
2546
- };
2547
-
2548
-
2549
- /** @param {string} value */
2550
- proto.sniippaymentmethodsserviceapi.CardHashResponse.prototype.setCardhash = function(value) {
2551
- jspb.Message.setField(this, 2, value);
2552
- };
2553
-
2554
-
2555
-
2556
- /**
2557
- * Generated by JsPbCodeGenerator.
2558
- * @param {Array=} opt_data Optional initial data array, typically from a
2559
- * server response, or constructed directly in Javascript. The array is used
2560
- * in place and becomes part of the constructed object. It is not cloned.
2561
- * If no data is provided, the constructed object will be empty, but still
2562
- * valid.
2563
- * @extends {jspb.Message}
2564
- * @constructor
2565
- */
2566
- proto.sniippaymentmethodsserviceapi.ColourScheme = function(opt_data) {
2567
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2568
- };
2569
- goog.inherits(proto.sniippaymentmethodsserviceapi.ColourScheme, jspb.Message);
2570
- if (goog.DEBUG && !COMPILED) {
2571
- proto.sniippaymentmethodsserviceapi.ColourScheme.displayName = 'proto.sniippaymentmethodsserviceapi.ColourScheme';
2572
- }
2573
-
2574
-
2575
- if (jspb.Message.GENERATE_TO_OBJECT) {
2576
- /**
2577
- * Creates an object representation of this proto suitable for use in Soy templates.
2578
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2579
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2580
- * For the list of reserved names please see:
2581
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
2582
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
2583
- * for transitional soy proto support: http://goto/soy-param-migration
2584
- * @return {!Object}
2585
- */
2586
- proto.sniippaymentmethodsserviceapi.ColourScheme.prototype.toObject = function(opt_includeInstance) {
2587
- return proto.sniippaymentmethodsserviceapi.ColourScheme.toObject(opt_includeInstance, this);
2588
- };
2589
-
2590
-
2591
- /**
2592
- * Static version of the {@see toObject} method.
2593
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
2594
- * instance for transitional soy proto support:
2595
- * http://goto/soy-param-migration
2596
- * @param {!proto.sniippaymentmethodsserviceapi.ColourScheme} msg The msg instance to transform.
2597
- * @return {!Object}
2598
- */
2599
- proto.sniippaymentmethodsserviceapi.ColourScheme.toObject = function(includeInstance, msg) {
2600
- var f, obj = {
2601
- colourschemeid: msg.getColourschemeid(),
2602
- name: msg.getName(),
2603
- cardcolour: msg.getCardcolour(),
2604
- textcolour: msg.getTextcolour(),
2605
- isdefaultcolour: msg.getIsdefaultcolour()
2606
- };
2607
-
2608
- if (includeInstance) {
2609
- obj.$jspbMessageInstance = msg;
2610
- }
2611
- return obj;
2612
- };
2613
- }
2614
-
2615
-
2616
- /**
2617
- * Deserializes binary data (in protobuf wire format).
2618
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2619
- * @return {!proto.sniippaymentmethodsserviceapi.ColourScheme}
2620
- */
2621
- proto.sniippaymentmethodsserviceapi.ColourScheme.deserializeBinary = function(bytes) {
2622
- var reader = new jspb.BinaryReader(bytes);
2623
- var msg = new proto.sniippaymentmethodsserviceapi.ColourScheme;
2624
- return proto.sniippaymentmethodsserviceapi.ColourScheme.deserializeBinaryFromReader(msg, reader);
2625
- };
2626
-
2627
-
2628
- /**
2629
- * Deserializes binary data (in protobuf wire format) from the
2630
- * given reader into the given message object.
2631
- * @param {!proto.sniippaymentmethodsserviceapi.ColourScheme} msg The message object to deserialize into.
2632
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2633
- * @return {!proto.sniippaymentmethodsserviceapi.ColourScheme}
2634
- */
2635
- proto.sniippaymentmethodsserviceapi.ColourScheme.deserializeBinaryFromReader = function(msg, reader) {
2636
- while (reader.nextField()) {
2637
- if (reader.isEndGroup()) {
2638
- break;
2639
- }
2640
- var field = reader.getFieldNumber();
2641
- switch (field) {
2642
- case 1:
2643
- var value = /** @type {number} */ (reader.readInt64());
2644
- msg.setColourschemeid(value);
2645
- break;
2646
- case 2:
2647
- var value = /** @type {string} */ (reader.readString());
2648
- msg.setName(value);
2649
- break;
2650
- case 3:
2651
- var value = /** @type {string} */ (reader.readString());
2652
- msg.setCardcolour(value);
2653
- break;
2654
- case 4:
2655
- var value = /** @type {string} */ (reader.readString());
2656
- msg.setTextcolour(value);
2657
- break;
2658
- case 5:
2659
- var value = /** @type {boolean} */ (reader.readBool());
2660
- msg.setIsdefaultcolour(value);
2661
- break;
2662
- default:
2663
- reader.skipField();
2664
- break;
2665
- }
2666
- }
2667
- return msg;
2668
- };
2669
-
2670
-
2671
- /**
2672
- * Class method variant: serializes the given message to binary data
2673
- * (in protobuf wire format), writing to the given BinaryWriter.
2674
- * @param {!proto.sniippaymentmethodsserviceapi.ColourScheme} message
2675
- * @param {!jspb.BinaryWriter} writer
2676
- */
2677
- proto.sniippaymentmethodsserviceapi.ColourScheme.serializeBinaryToWriter = function(message, writer) {
2678
- message.serializeBinaryToWriter(writer);
2679
- };
2680
-
2681
-
2682
- /**
2683
- * Serializes the message to binary data (in protobuf wire format).
2684
- * @return {!Uint8Array}
2685
- */
2686
- proto.sniippaymentmethodsserviceapi.ColourScheme.prototype.serializeBinary = function() {
2687
- var writer = new jspb.BinaryWriter();
2688
- this.serializeBinaryToWriter(writer);
2689
- return writer.getResultBuffer();
2690
- };
2691
-
2692
-
2693
- /**
2694
- * Serializes the message to binary data (in protobuf wire format),
2695
- * writing to the given BinaryWriter.
2696
- * @param {!jspb.BinaryWriter} writer
2697
- */
2698
- proto.sniippaymentmethodsserviceapi.ColourScheme.prototype.serializeBinaryToWriter = function (writer) {
2699
- var f = undefined;
2700
- f = this.getColourschemeid();
2701
- if (f !== 0) {
2702
- writer.writeInt64(
2703
- 1,
2704
- f
2705
- );
2706
- }
2707
- f = this.getName();
2708
- if (f.length > 0) {
2709
- writer.writeString(
2710
- 2,
2711
- f
2712
- );
2713
- }
2714
- f = this.getCardcolour();
2715
- if (f.length > 0) {
2716
- writer.writeString(
2717
- 3,
2718
- f
2719
- );
2720
- }
2721
- f = this.getTextcolour();
2722
- if (f.length > 0) {
2723
- writer.writeString(
2724
- 4,
2725
- f
2726
- );
2727
- }
2728
- f = this.getIsdefaultcolour();
2729
- if (f) {
2730
- writer.writeBool(
2731
- 5,
2732
- f
2733
- );
2734
- }
2735
- };
2736
-
2737
-
2738
- /**
2739
- * Creates a deep clone of this proto. No data is shared with the original.
2740
- * @return {!proto.sniippaymentmethodsserviceapi.ColourScheme} The clone.
2741
- */
2742
- proto.sniippaymentmethodsserviceapi.ColourScheme.prototype.cloneMessage = function() {
2743
- return /** @type {!proto.sniippaymentmethodsserviceapi.ColourScheme} */ (jspb.Message.cloneMessage(this));
2744
- };
2745
-
2746
-
2747
- /**
2748
- * optional int64 colourSchemeId = 1;
2749
- * @return {number}
2750
- */
2751
- proto.sniippaymentmethodsserviceapi.ColourScheme.prototype.getColourschemeid = function() {
2752
- return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
2753
- };
2754
-
2755
-
2756
- /** @param {number} value */
2757
- proto.sniippaymentmethodsserviceapi.ColourScheme.prototype.setColourschemeid = function(value) {
2758
- jspb.Message.setField(this, 1, value);
2759
- };
2760
-
2761
-
2762
- /**
2763
- * optional string name = 2;
2764
- * @return {string}
2765
- */
2766
- proto.sniippaymentmethodsserviceapi.ColourScheme.prototype.getName = function() {
2767
- return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
2768
- };
2769
-
2770
-
2771
- /** @param {string} value */
2772
- proto.sniippaymentmethodsserviceapi.ColourScheme.prototype.setName = function(value) {
2773
- jspb.Message.setField(this, 2, value);
2774
- };
2775
-
2776
-
2777
- /**
2778
- * optional string cardColour = 3;
2779
- * @return {string}
2780
- */
2781
- proto.sniippaymentmethodsserviceapi.ColourScheme.prototype.getCardcolour = function() {
2782
- return /** @type {string} */ (jspb.Message.getFieldProto3(this, 3, ""));
2783
- };
2784
-
2785
-
2786
- /** @param {string} value */
2787
- proto.sniippaymentmethodsserviceapi.ColourScheme.prototype.setCardcolour = function(value) {
2788
- jspb.Message.setField(this, 3, value);
2789
- };
2790
-
2791
-
2792
- /**
2793
- * optional string textColour = 4;
2794
- * @return {string}
2795
- */
2796
- proto.sniippaymentmethodsserviceapi.ColourScheme.prototype.getTextcolour = function() {
2797
- return /** @type {string} */ (jspb.Message.getFieldProto3(this, 4, ""));
2798
- };
2799
-
2800
-
2801
- /** @param {string} value */
2802
- proto.sniippaymentmethodsserviceapi.ColourScheme.prototype.setTextcolour = function(value) {
2803
- jspb.Message.setField(this, 4, value);
2804
- };
2805
-
2806
-
2807
- /**
2808
- * optional bool isDefaultColour = 5;
2809
- * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
2810
- * You should avoid comparisons like {@code val === true/false} in those cases.
2811
- * @return {boolean}
2812
- */
2813
- proto.sniippaymentmethodsserviceapi.ColourScheme.prototype.getIsdefaultcolour = function() {
2814
- return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 5, false));
2815
- };
2816
-
2817
-
2818
- /** @param {boolean} value */
2819
- proto.sniippaymentmethodsserviceapi.ColourScheme.prototype.setIsdefaultcolour = function(value) {
2820
- jspb.Message.setField(this, 5, value);
2821
- };
2822
-
2823
-
2824
-
2825
- /**
2826
- * Generated by JsPbCodeGenerator.
2827
- * @param {Array=} opt_data Optional initial data array, typically from a
2828
- * server response, or constructed directly in Javascript. The array is used
2829
- * in place and becomes part of the constructed object. It is not cloned.
2830
- * If no data is provided, the constructed object will be empty, but still
2831
- * valid.
2832
- * @extends {jspb.Message}
2833
- * @constructor
2834
- */
2835
- proto.sniippaymentmethodsserviceapi.CreditCard = function(opt_data) {
2836
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2837
- };
2838
- goog.inherits(proto.sniippaymentmethodsserviceapi.CreditCard, jspb.Message);
2839
- if (goog.DEBUG && !COMPILED) {
2840
- proto.sniippaymentmethodsserviceapi.CreditCard.displayName = 'proto.sniippaymentmethodsserviceapi.CreditCard';
2841
- }
2842
-
2843
-
2844
- if (jspb.Message.GENERATE_TO_OBJECT) {
2845
- /**
2846
- * Creates an object representation of this proto suitable for use in Soy templates.
2847
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2848
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2849
- * For the list of reserved names please see:
2850
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
2851
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
2852
- * for transitional soy proto support: http://goto/soy-param-migration
2853
- * @return {!Object}
2854
- */
2855
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.toObject = function(opt_includeInstance) {
2856
- return proto.sniippaymentmethodsserviceapi.CreditCard.toObject(opt_includeInstance, this);
2857
- };
2858
-
2859
-
2860
- /**
2861
- * Static version of the {@see toObject} method.
2862
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
2863
- * instance for transitional soy proto support:
2864
- * http://goto/soy-param-migration
2865
- * @param {!proto.sniippaymentmethodsserviceapi.CreditCard} msg The msg instance to transform.
2866
- * @return {!Object}
2867
- */
2868
- proto.sniippaymentmethodsserviceapi.CreditCard.toObject = function(includeInstance, msg) {
2869
- var f, obj = {
2870
- nameoncard: msg.getNameoncard(),
2871
- cardnumber: msg.getCardnumber(),
2872
- cvv: msg.getCvv(),
2873
- cardtype: msg.getCardtype(),
2874
- monthexpiry: msg.getMonthexpiry(),
2875
- yearexpiry: msg.getYearexpiry(),
2876
- nickname: msg.getNickname(),
2877
- tokenisedcreditcardid: msg.getTokenisedcreditcardid(),
2878
- bankname: msg.getBankname(),
2879
- banklogoname: msg.getBanklogoname(),
2880
- colourscheme: (f = msg.getColourscheme()) && proto.sniippaymentmethodsserviceapi.ColourScheme.toObject(includeInstance, f),
2881
- iscreditcard: msg.getIscreditcard(),
2882
- isdebitcard: msg.getIsdebitcard(),
2883
- isverified: msg.getIsverified(),
2884
- attemptedverification: msg.getAttemptedverification()
2885
- };
2886
-
2887
- if (includeInstance) {
2888
- obj.$jspbMessageInstance = msg;
2889
- }
2890
- return obj;
2891
- };
2892
- }
2893
-
2894
-
2895
- /**
2896
- * Deserializes binary data (in protobuf wire format).
2897
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2898
- * @return {!proto.sniippaymentmethodsserviceapi.CreditCard}
2899
- */
2900
- proto.sniippaymentmethodsserviceapi.CreditCard.deserializeBinary = function(bytes) {
2901
- var reader = new jspb.BinaryReader(bytes);
2902
- var msg = new proto.sniippaymentmethodsserviceapi.CreditCard;
2903
- return proto.sniippaymentmethodsserviceapi.CreditCard.deserializeBinaryFromReader(msg, reader);
2904
- };
2905
-
2906
-
2907
- /**
2908
- * Deserializes binary data (in protobuf wire format) from the
2909
- * given reader into the given message object.
2910
- * @param {!proto.sniippaymentmethodsserviceapi.CreditCard} msg The message object to deserialize into.
2911
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2912
- * @return {!proto.sniippaymentmethodsserviceapi.CreditCard}
2913
- */
2914
- proto.sniippaymentmethodsserviceapi.CreditCard.deserializeBinaryFromReader = function(msg, reader) {
2915
- while (reader.nextField()) {
2916
- if (reader.isEndGroup()) {
2917
- break;
2918
- }
2919
- var field = reader.getFieldNumber();
2920
- switch (field) {
2921
- case 1:
2922
- var value = /** @type {string} */ (reader.readString());
2923
- msg.setNameoncard(value);
2924
- break;
2925
- case 2:
2926
- var value = /** @type {string} */ (reader.readString());
2927
- msg.setCardnumber(value);
2928
- break;
2929
- case 3:
2930
- var value = /** @type {string} */ (reader.readString());
2931
- msg.setCvv(value);
2932
- break;
2933
- case 4:
2934
- var value = /** @type {string} */ (reader.readString());
2935
- msg.setCardtype(value);
2936
- break;
2937
- case 5:
2938
- var value = /** @type {number} */ (reader.readInt32());
2939
- msg.setMonthexpiry(value);
2940
- break;
2941
- case 6:
2942
- var value = /** @type {number} */ (reader.readInt32());
2943
- msg.setYearexpiry(value);
2944
- break;
2945
- case 7:
2946
- var value = /** @type {string} */ (reader.readString());
2947
- msg.setNickname(value);
2948
- break;
2949
- case 8:
2950
- var value = /** @type {number} */ (reader.readInt64());
2951
- msg.setTokenisedcreditcardid(value);
2952
- break;
2953
- case 9:
2954
- var value = /** @type {string} */ (reader.readString());
2955
- msg.setBankname(value);
2956
- break;
2957
- case 10:
2958
- var value = /** @type {string} */ (reader.readString());
2959
- msg.setBanklogoname(value);
2960
- break;
2961
- case 11:
2962
- var value = new proto.sniippaymentmethodsserviceapi.ColourScheme;
2963
- reader.readMessage(value,proto.sniippaymentmethodsserviceapi.ColourScheme.deserializeBinaryFromReader);
2964
- msg.setColourscheme(value);
2965
- break;
2966
- case 12:
2967
- var value = /** @type {boolean} */ (reader.readBool());
2968
- msg.setIscreditcard(value);
2969
- break;
2970
- case 13:
2971
- var value = /** @type {boolean} */ (reader.readBool());
2972
- msg.setIsdebitcard(value);
2973
- break;
2974
- case 14:
2975
- var value = /** @type {boolean} */ (reader.readBool());
2976
- msg.setIsverified(value);
2977
- break;
2978
- case 15:
2979
- var value = /** @type {boolean} */ (reader.readBool());
2980
- msg.setAttemptedverification(value);
2981
- break;
2982
- default:
2983
- reader.skipField();
2984
- break;
2985
- }
2986
- }
2987
- return msg;
2988
- };
2989
-
2990
-
2991
- /**
2992
- * Class method variant: serializes the given message to binary data
2993
- * (in protobuf wire format), writing to the given BinaryWriter.
2994
- * @param {!proto.sniippaymentmethodsserviceapi.CreditCard} message
2995
- * @param {!jspb.BinaryWriter} writer
2996
- */
2997
- proto.sniippaymentmethodsserviceapi.CreditCard.serializeBinaryToWriter = function(message, writer) {
2998
- message.serializeBinaryToWriter(writer);
2999
- };
3000
-
3001
-
3002
- /**
3003
- * Serializes the message to binary data (in protobuf wire format).
3004
- * @return {!Uint8Array}
3005
- */
3006
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.serializeBinary = function() {
3007
- var writer = new jspb.BinaryWriter();
3008
- this.serializeBinaryToWriter(writer);
3009
- return writer.getResultBuffer();
3010
- };
3011
-
3012
-
3013
- /**
3014
- * Serializes the message to binary data (in protobuf wire format),
3015
- * writing to the given BinaryWriter.
3016
- * @param {!jspb.BinaryWriter} writer
3017
- */
3018
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.serializeBinaryToWriter = function (writer) {
3019
- var f = undefined;
3020
- f = this.getNameoncard();
3021
- if (f.length > 0) {
3022
- writer.writeString(
3023
- 1,
3024
- f
3025
- );
3026
- }
3027
- f = this.getCardnumber();
3028
- if (f.length > 0) {
3029
- writer.writeString(
3030
- 2,
3031
- f
3032
- );
3033
- }
3034
- f = this.getCvv();
3035
- if (f.length > 0) {
3036
- writer.writeString(
3037
- 3,
3038
- f
3039
- );
3040
- }
3041
- f = this.getCardtype();
3042
- if (f.length > 0) {
3043
- writer.writeString(
3044
- 4,
3045
- f
3046
- );
3047
- }
3048
- f = this.getMonthexpiry();
3049
- if (f !== 0) {
3050
- writer.writeInt32(
3051
- 5,
3052
- f
3053
- );
3054
- }
3055
- f = this.getYearexpiry();
3056
- if (f !== 0) {
3057
- writer.writeInt32(
3058
- 6,
3059
- f
3060
- );
3061
- }
3062
- f = this.getNickname();
1648
+ f = this.getAccountno();
3063
1649
  if (f.length > 0) {
3064
1650
  writer.writeString(
3065
- 7,
3066
- f
3067
- );
3068
- }
3069
- f = this.getTokenisedcreditcardid();
3070
- if (f !== 0) {
3071
- writer.writeInt64(
3072
- 8,
1651
+ 3,
3073
1652
  f
3074
1653
  );
3075
1654
  }
3076
- f = this.getBankname();
1655
+ f = this.getAccountname();
3077
1656
  if (f.length > 0) {
3078
1657
  writer.writeString(
3079
- 9,
1658
+ 4,
3080
1659
  f
3081
1660
  );
3082
1661
  }
3083
- f = this.getBanklogoname();
1662
+ f = this.getNickname();
3084
1663
  if (f.length > 0) {
3085
1664
  writer.writeString(
3086
- 10,
3087
- f
3088
- );
3089
- }
3090
- f = this.getColourscheme();
3091
- if (f != null) {
3092
- writer.writeMessage(
3093
- 11,
3094
- f,
3095
- proto.sniippaymentmethodsserviceapi.ColourScheme.serializeBinaryToWriter
3096
- );
3097
- }
3098
- f = this.getIscreditcard();
3099
- if (f) {
3100
- writer.writeBool(
3101
- 12,
3102
- f
3103
- );
3104
- }
3105
- f = this.getIsdebitcard();
3106
- if (f) {
3107
- writer.writeBool(
3108
- 13,
3109
- f
3110
- );
3111
- }
3112
- f = this.getIsverified();
3113
- if (f) {
3114
- writer.writeBool(
3115
- 14,
1665
+ 5,
3116
1666
  f
3117
1667
  );
3118
1668
  }
3119
- f = this.getAttemptedverification();
3120
- if (f) {
3121
- writer.writeBool(
3122
- 15,
1669
+ f = this.getCreateddatetime();
1670
+ if (f.length > 0) {
1671
+ writer.writeString(
1672
+ 6,
3123
1673
  f
3124
1674
  );
3125
1675
  }
@@ -3128,258 +1678,85 @@ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.serializeBinaryToWriter
3128
1678
 
3129
1679
  /**
3130
1680
  * Creates a deep clone of this proto. No data is shared with the original.
3131
- * @return {!proto.sniippaymentmethodsserviceapi.CreditCard} The clone.
3132
- */
3133
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.cloneMessage = function() {
3134
- return /** @type {!proto.sniippaymentmethodsserviceapi.CreditCard} */ (jspb.Message.cloneMessage(this));
3135
- };
3136
-
3137
-
3138
- /**
3139
- * optional string nameOnCard = 1;
3140
- * @return {string}
1681
+ * @return {!proto.sniippaymentmethodsserviceapi.BankAccount} The clone.
3141
1682
  */
3142
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.getNameoncard = function() {
3143
- return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
3144
- };
3145
-
3146
-
3147
- /** @param {string} value */
3148
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.setNameoncard = function(value) {
3149
- jspb.Message.setField(this, 1, value);
1683
+ proto.sniippaymentmethodsserviceapi.BankAccount.prototype.cloneMessage = function() {
1684
+ return /** @type {!proto.sniippaymentmethodsserviceapi.BankAccount} */ (jspb.Message.cloneMessage(this));
3150
1685
  };
3151
1686
 
3152
1687
 
3153
1688
  /**
3154
- * optional string cardNumber = 2;
1689
+ * optional string bsb = 2;
3155
1690
  * @return {string}
3156
1691
  */
3157
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.getCardnumber = function() {
1692
+ proto.sniippaymentmethodsserviceapi.BankAccount.prototype.getBsb = function() {
3158
1693
  return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
3159
1694
  };
3160
1695
 
3161
1696
 
3162
1697
  /** @param {string} value */
3163
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.setCardnumber = function(value) {
1698
+ proto.sniippaymentmethodsserviceapi.BankAccount.prototype.setBsb = function(value) {
3164
1699
  jspb.Message.setField(this, 2, value);
3165
1700
  };
3166
1701
 
3167
1702
 
3168
1703
  /**
3169
- * optional string cvv = 3;
1704
+ * optional string accountNo = 3;
3170
1705
  * @return {string}
3171
1706
  */
3172
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.getCvv = function() {
1707
+ proto.sniippaymentmethodsserviceapi.BankAccount.prototype.getAccountno = function() {
3173
1708
  return /** @type {string} */ (jspb.Message.getFieldProto3(this, 3, ""));
3174
1709
  };
3175
1710
 
3176
1711
 
3177
1712
  /** @param {string} value */
3178
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.setCvv = function(value) {
1713
+ proto.sniippaymentmethodsserviceapi.BankAccount.prototype.setAccountno = function(value) {
3179
1714
  jspb.Message.setField(this, 3, value);
3180
1715
  };
3181
1716
 
3182
1717
 
3183
- /**
3184
- * optional string cardType = 4;
3185
- * @return {string}
3186
- */
3187
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.getCardtype = function() {
3188
- return /** @type {string} */ (jspb.Message.getFieldProto3(this, 4, ""));
3189
- };
3190
-
3191
-
3192
- /** @param {string} value */
3193
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.setCardtype = function(value) {
3194
- jspb.Message.setField(this, 4, value);
3195
- };
3196
-
3197
-
3198
- /**
3199
- * optional int32 monthExpiry = 5;
3200
- * @return {number}
3201
- */
3202
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.getMonthexpiry = function() {
3203
- return /** @type {number} */ (jspb.Message.getFieldProto3(this, 5, 0));
3204
- };
3205
-
3206
-
3207
- /** @param {number} value */
3208
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.setMonthexpiry = function(value) {
3209
- jspb.Message.setField(this, 5, value);
3210
- };
3211
-
3212
-
3213
- /**
3214
- * optional int32 yearExpiry = 6;
3215
- * @return {number}
3216
- */
3217
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.getYearexpiry = function() {
3218
- return /** @type {number} */ (jspb.Message.getFieldProto3(this, 6, 0));
3219
- };
3220
-
3221
-
3222
- /** @param {number} value */
3223
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.setYearexpiry = function(value) {
3224
- jspb.Message.setField(this, 6, value);
3225
- };
3226
-
3227
-
3228
- /**
3229
- * optional string nickname = 7;
3230
- * @return {string}
3231
- */
3232
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.getNickname = function() {
3233
- return /** @type {string} */ (jspb.Message.getFieldProto3(this, 7, ""));
3234
- };
3235
-
3236
-
3237
- /** @param {string} value */
3238
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.setNickname = function(value) {
3239
- jspb.Message.setField(this, 7, value);
3240
- };
3241
-
3242
-
3243
- /**
3244
- * optional int64 tokenisedCreditCardId = 8;
3245
- * @return {number}
3246
- */
3247
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.getTokenisedcreditcardid = function() {
3248
- return /** @type {number} */ (jspb.Message.getFieldProto3(this, 8, 0));
3249
- };
3250
-
3251
-
3252
- /** @param {number} value */
3253
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.setTokenisedcreditcardid = function(value) {
3254
- jspb.Message.setField(this, 8, value);
3255
- };
3256
-
3257
-
3258
- /**
3259
- * optional string bankName = 9;
3260
- * @return {string}
3261
- */
3262
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.getBankname = function() {
3263
- return /** @type {string} */ (jspb.Message.getFieldProto3(this, 9, ""));
3264
- };
3265
-
3266
-
3267
- /** @param {string} value */
3268
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.setBankname = function(value) {
3269
- jspb.Message.setField(this, 9, value);
3270
- };
3271
-
3272
-
3273
- /**
3274
- * optional string bankLogoName = 10;
3275
- * @return {string}
3276
- */
3277
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.getBanklogoname = function() {
3278
- return /** @type {string} */ (jspb.Message.getFieldProto3(this, 10, ""));
3279
- };
3280
-
3281
-
3282
- /** @param {string} value */
3283
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.setBanklogoname = function(value) {
3284
- jspb.Message.setField(this, 10, value);
3285
- };
3286
-
3287
-
3288
- /**
3289
- * optional ColourScheme colourScheme = 11;
3290
- * @return {proto.sniippaymentmethodsserviceapi.ColourScheme}
3291
- */
3292
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.getColourscheme = function() {
3293
- return /** @type{proto.sniippaymentmethodsserviceapi.ColourScheme} */ (
3294
- jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.ColourScheme, 11));
3295
- };
3296
-
3297
-
3298
- /** @param {proto.sniippaymentmethodsserviceapi.ColourScheme|undefined} value */
3299
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.setColourscheme = function(value) {
3300
- jspb.Message.setWrapperField(this, 11, value);
3301
- };
3302
-
3303
-
3304
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.clearColourscheme = function() {
3305
- this.setColourscheme(undefined);
3306
- };
3307
-
3308
-
3309
- /**
3310
- * Returns whether this field is set.
3311
- * @return{!boolean}
3312
- */
3313
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.hasColourscheme = function() {
3314
- return jspb.Message.getField(this, 11) != null;
3315
- };
3316
-
3317
-
3318
- /**
3319
- * optional bool isCreditCard = 12;
3320
- * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
3321
- * You should avoid comparisons like {@code val === true/false} in those cases.
3322
- * @return {boolean}
3323
- */
3324
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.getIscreditcard = function() {
3325
- return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 12, false));
3326
- };
3327
-
3328
-
3329
- /** @param {boolean} value */
3330
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.setIscreditcard = function(value) {
3331
- jspb.Message.setField(this, 12, value);
3332
- };
3333
-
3334
-
3335
- /**
3336
- * optional bool isDebitCard = 13;
3337
- * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
3338
- * You should avoid comparisons like {@code val === true/false} in those cases.
3339
- * @return {boolean}
1718
+ /**
1719
+ * optional string accountName = 4;
1720
+ * @return {string}
3340
1721
  */
3341
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.getIsdebitcard = function() {
3342
- return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 13, false));
1722
+ proto.sniippaymentmethodsserviceapi.BankAccount.prototype.getAccountname = function() {
1723
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 4, ""));
3343
1724
  };
3344
1725
 
3345
1726
 
3346
- /** @param {boolean} value */
3347
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.setIsdebitcard = function(value) {
3348
- jspb.Message.setField(this, 13, value);
1727
+ /** @param {string} value */
1728
+ proto.sniippaymentmethodsserviceapi.BankAccount.prototype.setAccountname = function(value) {
1729
+ jspb.Message.setField(this, 4, value);
3349
1730
  };
3350
1731
 
3351
1732
 
3352
1733
  /**
3353
- * optional bool isVerified = 14;
3354
- * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
3355
- * You should avoid comparisons like {@code val === true/false} in those cases.
3356
- * @return {boolean}
1734
+ * optional string nickname = 5;
1735
+ * @return {string}
3357
1736
  */
3358
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.getIsverified = function() {
3359
- return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 14, false));
1737
+ proto.sniippaymentmethodsserviceapi.BankAccount.prototype.getNickname = function() {
1738
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 5, ""));
3360
1739
  };
3361
1740
 
3362
1741
 
3363
- /** @param {boolean} value */
3364
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.setIsverified = function(value) {
3365
- jspb.Message.setField(this, 14, value);
1742
+ /** @param {string} value */
1743
+ proto.sniippaymentmethodsserviceapi.BankAccount.prototype.setNickname = function(value) {
1744
+ jspb.Message.setField(this, 5, value);
3366
1745
  };
3367
1746
 
3368
1747
 
3369
1748
  /**
3370
- * optional bool attemptedVerification = 15;
3371
- * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
3372
- * You should avoid comparisons like {@code val === true/false} in those cases.
3373
- * @return {boolean}
1749
+ * optional string createdDateTime = 6;
1750
+ * @return {string}
3374
1751
  */
3375
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.getAttemptedverification = function() {
3376
- return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 15, false));
1752
+ proto.sniippaymentmethodsserviceapi.BankAccount.prototype.getCreateddatetime = function() {
1753
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 6, ""));
3377
1754
  };
3378
1755
 
3379
1756
 
3380
- /** @param {boolean} value */
3381
- proto.sniippaymentmethodsserviceapi.CreditCard.prototype.setAttemptedverification = function(value) {
3382
- jspb.Message.setField(this, 15, value);
1757
+ /** @param {string} value */
1758
+ proto.sniippaymentmethodsserviceapi.BankAccount.prototype.setCreateddatetime = function(value) {
1759
+ jspb.Message.setField(this, 6, value);
3383
1760
  };
3384
1761
 
3385
1762
 
@@ -3394,12 +1771,12 @@ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.setAttemptedverificatio
3394
1771
  * @extends {jspb.Message}
3395
1772
  * @constructor
3396
1773
  */
3397
- proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest = function(opt_data) {
1774
+ proto.sniippaymentmethodsserviceapi.CardHashRequest = function(opt_data) {
3398
1775
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3399
1776
  };
3400
- goog.inherits(proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest, jspb.Message);
1777
+ goog.inherits(proto.sniippaymentmethodsserviceapi.CardHashRequest, jspb.Message);
3401
1778
  if (goog.DEBUG && !COMPILED) {
3402
- proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest.displayName = 'proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest';
1779
+ proto.sniippaymentmethodsserviceapi.CardHashRequest.displayName = 'proto.sniippaymentmethodsserviceapi.CardHashRequest';
3403
1780
  }
3404
1781
 
3405
1782
 
@@ -3414,8 +1791,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
3414
1791
  * for transitional soy proto support: http://goto/soy-param-migration
3415
1792
  * @return {!Object}
3416
1793
  */
3417
- proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest.prototype.toObject = function(opt_includeInstance) {
3418
- return proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest.toObject(opt_includeInstance, this);
1794
+ proto.sniippaymentmethodsserviceapi.CardHashRequest.prototype.toObject = function(opt_includeInstance) {
1795
+ return proto.sniippaymentmethodsserviceapi.CardHashRequest.toObject(opt_includeInstance, this);
3419
1796
  };
3420
1797
 
3421
1798
 
@@ -3424,14 +1801,13 @@ proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest.prototype.toObject =
3424
1801
  * @param {boolean|undefined} includeInstance Whether to include the JSPB
3425
1802
  * instance for transitional soy proto support:
3426
1803
  * http://goto/soy-param-migration
3427
- * @param {!proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest} msg The msg instance to transform.
1804
+ * @param {!proto.sniippaymentmethodsserviceapi.CardHashRequest} msg The msg instance to transform.
3428
1805
  * @return {!Object}
3429
1806
  */
3430
- proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest.toObject = function(includeInstance, msg) {
1807
+ proto.sniippaymentmethodsserviceapi.CardHashRequest.toObject = function(includeInstance, msg) {
3431
1808
  var f, obj = {
3432
- accesstoken: msg.getAccesstoken(),
3433
- creditcardid: msg.getCreditcardid(),
3434
- isconfirmeddelete: msg.getIsconfirmeddelete()
1809
+ paymentmethodid: msg.getPaymentmethodid(),
1810
+ userid: msg.getUserid()
3435
1811
  };
3436
1812
 
3437
1813
  if (includeInstance) {
@@ -3445,23 +1821,23 @@ proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest.toObject = function(
3445
1821
  /**
3446
1822
  * Deserializes binary data (in protobuf wire format).
3447
1823
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
3448
- * @return {!proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest}
1824
+ * @return {!proto.sniippaymentmethodsserviceapi.CardHashRequest}
3449
1825
  */
3450
- proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest.deserializeBinary = function(bytes) {
1826
+ proto.sniippaymentmethodsserviceapi.CardHashRequest.deserializeBinary = function(bytes) {
3451
1827
  var reader = new jspb.BinaryReader(bytes);
3452
- var msg = new proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest;
3453
- return proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest.deserializeBinaryFromReader(msg, reader);
1828
+ var msg = new proto.sniippaymentmethodsserviceapi.CardHashRequest;
1829
+ return proto.sniippaymentmethodsserviceapi.CardHashRequest.deserializeBinaryFromReader(msg, reader);
3454
1830
  };
3455
1831
 
3456
1832
 
3457
1833
  /**
3458
1834
  * Deserializes binary data (in protobuf wire format) from the
3459
1835
  * given reader into the given message object.
3460
- * @param {!proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest} msg The message object to deserialize into.
1836
+ * @param {!proto.sniippaymentmethodsserviceapi.CardHashRequest} msg The message object to deserialize into.
3461
1837
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3462
- * @return {!proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest}
1838
+ * @return {!proto.sniippaymentmethodsserviceapi.CardHashRequest}
3463
1839
  */
3464
- proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest.deserializeBinaryFromReader = function(msg, reader) {
1840
+ proto.sniippaymentmethodsserviceapi.CardHashRequest.deserializeBinaryFromReader = function(msg, reader) {
3465
1841
  while (reader.nextField()) {
3466
1842
  if (reader.isEndGroup()) {
3467
1843
  break;
@@ -3469,16 +1845,12 @@ proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest.deserializeBinaryFro
3469
1845
  var field = reader.getFieldNumber();
3470
1846
  switch (field) {
3471
1847
  case 1:
3472
- var value = /** @type {string} */ (reader.readString());
3473
- msg.setAccesstoken(value);
1848
+ var value = /** @type {number} */ (reader.readInt64());
1849
+ msg.setPaymentmethodid(value);
3474
1850
  break;
3475
1851
  case 2:
3476
1852
  var value = /** @type {number} */ (reader.readInt64());
3477
- msg.setCreditcardid(value);
3478
- break;
3479
- case 3:
3480
- var value = /** @type {boolean} */ (reader.readBool());
3481
- msg.setIsconfirmeddelete(value);
1853
+ msg.setUserid(value);
3482
1854
  break;
3483
1855
  default:
3484
1856
  reader.skipField();
@@ -3492,10 +1864,10 @@ proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest.deserializeBinaryFro
3492
1864
  /**
3493
1865
  * Class method variant: serializes the given message to binary data
3494
1866
  * (in protobuf wire format), writing to the given BinaryWriter.
3495
- * @param {!proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest} message
1867
+ * @param {!proto.sniippaymentmethodsserviceapi.CardHashRequest} message
3496
1868
  * @param {!jspb.BinaryWriter} writer
3497
1869
  */
3498
- proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest.serializeBinaryToWriter = function(message, writer) {
1870
+ proto.sniippaymentmethodsserviceapi.CardHashRequest.serializeBinaryToWriter = function(message, writer) {
3499
1871
  message.serializeBinaryToWriter(writer);
3500
1872
  };
3501
1873
 
@@ -3504,7 +1876,7 @@ proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest.serializeBinaryToWri
3504
1876
  * Serializes the message to binary data (in protobuf wire format).
3505
1877
  * @return {!Uint8Array}
3506
1878
  */
3507
- proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest.prototype.serializeBinary = function() {
1879
+ proto.sniippaymentmethodsserviceapi.CardHashRequest.prototype.serializeBinary = function() {
3508
1880
  var writer = new jspb.BinaryWriter();
3509
1881
  this.serializeBinaryToWriter(writer);
3510
1882
  return writer.getResultBuffer();
@@ -3516,88 +1888,64 @@ proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest.prototype.serializeB
3516
1888
  * writing to the given BinaryWriter.
3517
1889
  * @param {!jspb.BinaryWriter} writer
3518
1890
  */
3519
- proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest.prototype.serializeBinaryToWriter = function (writer) {
1891
+ proto.sniippaymentmethodsserviceapi.CardHashRequest.prototype.serializeBinaryToWriter = function (writer) {
3520
1892
  var f = undefined;
3521
- f = this.getAccesstoken();
3522
- if (f.length > 0) {
3523
- writer.writeString(
1893
+ f = this.getPaymentmethodid();
1894
+ if (f !== 0) {
1895
+ writer.writeInt64(
3524
1896
  1,
3525
1897
  f
3526
1898
  );
3527
1899
  }
3528
- f = this.getCreditcardid();
1900
+ f = this.getUserid();
3529
1901
  if (f !== 0) {
3530
1902
  writer.writeInt64(
3531
1903
  2,
3532
1904
  f
3533
1905
  );
3534
1906
  }
3535
- f = this.getIsconfirmeddelete();
3536
- if (f) {
3537
- writer.writeBool(
3538
- 3,
3539
- f
3540
- );
3541
- }
3542
1907
  };
3543
1908
 
3544
1909
 
3545
1910
  /**
3546
1911
  * Creates a deep clone of this proto. No data is shared with the original.
3547
- * @return {!proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest} The clone.
1912
+ * @return {!proto.sniippaymentmethodsserviceapi.CardHashRequest} The clone.
3548
1913
  */
3549
- proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest.prototype.cloneMessage = function() {
3550
- return /** @type {!proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest} */ (jspb.Message.cloneMessage(this));
1914
+ proto.sniippaymentmethodsserviceapi.CardHashRequest.prototype.cloneMessage = function() {
1915
+ return /** @type {!proto.sniippaymentmethodsserviceapi.CardHashRequest} */ (jspb.Message.cloneMessage(this));
3551
1916
  };
3552
1917
 
3553
1918
 
3554
1919
  /**
3555
- * optional string accessToken = 1;
3556
- * @return {string}
1920
+ * optional int64 paymentMethodId = 1;
1921
+ * @return {number}
3557
1922
  */
3558
- proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest.prototype.getAccesstoken = function() {
3559
- return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
1923
+ proto.sniippaymentmethodsserviceapi.CardHashRequest.prototype.getPaymentmethodid = function() {
1924
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
3560
1925
  };
3561
1926
 
3562
1927
 
3563
- /** @param {string} value */
3564
- proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest.prototype.setAccesstoken = function(value) {
1928
+ /** @param {number} value */
1929
+ proto.sniippaymentmethodsserviceapi.CardHashRequest.prototype.setPaymentmethodid = function(value) {
3565
1930
  jspb.Message.setField(this, 1, value);
3566
1931
  };
3567
1932
 
3568
1933
 
3569
1934
  /**
3570
- * optional int64 creditCardId = 2;
1935
+ * optional int64 userId = 2;
3571
1936
  * @return {number}
3572
1937
  */
3573
- proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest.prototype.getCreditcardid = function() {
1938
+ proto.sniippaymentmethodsserviceapi.CardHashRequest.prototype.getUserid = function() {
3574
1939
  return /** @type {number} */ (jspb.Message.getFieldProto3(this, 2, 0));
3575
1940
  };
3576
1941
 
3577
1942
 
3578
1943
  /** @param {number} value */
3579
- proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest.prototype.setCreditcardid = function(value) {
1944
+ proto.sniippaymentmethodsserviceapi.CardHashRequest.prototype.setUserid = function(value) {
3580
1945
  jspb.Message.setField(this, 2, value);
3581
1946
  };
3582
1947
 
3583
1948
 
3584
- /**
3585
- * optional bool isConfirmedDelete = 3;
3586
- * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
3587
- * You should avoid comparisons like {@code val === true/false} in those cases.
3588
- * @return {boolean}
3589
- */
3590
- proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest.prototype.getIsconfirmeddelete = function() {
3591
- return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 3, false));
3592
- };
3593
-
3594
-
3595
- /** @param {boolean} value */
3596
- proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest.prototype.setIsconfirmeddelete = function(value) {
3597
- jspb.Message.setField(this, 3, value);
3598
- };
3599
-
3600
-
3601
1949
 
3602
1950
  /**
3603
1951
  * Generated by JsPbCodeGenerator.
@@ -3609,12 +1957,12 @@ proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest.prototype.setIsconfi
3609
1957
  * @extends {jspb.Message}
3610
1958
  * @constructor
3611
1959
  */
3612
- proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest = function(opt_data) {
1960
+ proto.sniippaymentmethodsserviceapi.CardHashResponse = function(opt_data) {
3613
1961
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3614
1962
  };
3615
- goog.inherits(proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest, jspb.Message);
1963
+ goog.inherits(proto.sniippaymentmethodsserviceapi.CardHashResponse, jspb.Message);
3616
1964
  if (goog.DEBUG && !COMPILED) {
3617
- proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.displayName = 'proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest';
1965
+ proto.sniippaymentmethodsserviceapi.CardHashResponse.displayName = 'proto.sniippaymentmethodsserviceapi.CardHashResponse';
3618
1966
  }
3619
1967
 
3620
1968
 
@@ -3629,8 +1977,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
3629
1977
  * for transitional soy proto support: http://goto/soy-param-migration
3630
1978
  * @return {!Object}
3631
1979
  */
3632
- proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.prototype.toObject = function(opt_includeInstance) {
3633
- return proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.toObject(opt_includeInstance, this);
1980
+ proto.sniippaymentmethodsserviceapi.CardHashResponse.prototype.toObject = function(opt_includeInstance) {
1981
+ return proto.sniippaymentmethodsserviceapi.CardHashResponse.toObject(opt_includeInstance, this);
3634
1982
  };
3635
1983
 
3636
1984
 
@@ -3639,18 +1987,13 @@ proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.prototype.toO
3639
1987
  * @param {boolean|undefined} includeInstance Whether to include the JSPB
3640
1988
  * instance for transitional soy proto support:
3641
1989
  * http://goto/soy-param-migration
3642
- * @param {!proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest} msg The msg instance to transform.
1990
+ * @param {!proto.sniippaymentmethodsserviceapi.CardHashResponse} msg The msg instance to transform.
3643
1991
  * @return {!Object}
3644
1992
  */
3645
- proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.toObject = function(includeInstance, msg) {
1993
+ proto.sniippaymentmethodsserviceapi.CardHashResponse.toObject = function(includeInstance, msg) {
3646
1994
  var f, obj = {
3647
- nameoncard: msg.getNameoncard(),
3648
- monthexpiry: msg.getMonthexpiry(),
3649
- yearexpiry: msg.getYearexpiry(),
3650
- nickname: msg.getNickname(),
3651
- creditcardid: msg.getCreditcardid(),
3652
- accesstoken: msg.getAccesstoken(),
3653
- cvv: msg.getCvv()
1995
+ responsecode: (f = msg.getResponsecode()) && proto.sniippaymentmethodsserviceapi.ResponseCode.toObject(includeInstance, f),
1996
+ cardhash: msg.getCardhash()
3654
1997
  };
3655
1998
 
3656
1999
  if (includeInstance) {
@@ -3664,23 +2007,23 @@ proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.toObject = fu
3664
2007
  /**
3665
2008
  * Deserializes binary data (in protobuf wire format).
3666
2009
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
3667
- * @return {!proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest}
2010
+ * @return {!proto.sniippaymentmethodsserviceapi.CardHashResponse}
3668
2011
  */
3669
- proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.deserializeBinary = function(bytes) {
2012
+ proto.sniippaymentmethodsserviceapi.CardHashResponse.deserializeBinary = function(bytes) {
3670
2013
  var reader = new jspb.BinaryReader(bytes);
3671
- var msg = new proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest;
3672
- return proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.deserializeBinaryFromReader(msg, reader);
2014
+ var msg = new proto.sniippaymentmethodsserviceapi.CardHashResponse;
2015
+ return proto.sniippaymentmethodsserviceapi.CardHashResponse.deserializeBinaryFromReader(msg, reader);
3673
2016
  };
3674
2017
 
3675
2018
 
3676
2019
  /**
3677
2020
  * Deserializes binary data (in protobuf wire format) from the
3678
2021
  * given reader into the given message object.
3679
- * @param {!proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest} msg The message object to deserialize into.
2022
+ * @param {!proto.sniippaymentmethodsserviceapi.CardHashResponse} msg The message object to deserialize into.
3680
2023
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3681
- * @return {!proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest}
2024
+ * @return {!proto.sniippaymentmethodsserviceapi.CardHashResponse}
3682
2025
  */
3683
- proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.deserializeBinaryFromReader = function(msg, reader) {
2026
+ proto.sniippaymentmethodsserviceapi.CardHashResponse.deserializeBinaryFromReader = function(msg, reader) {
3684
2027
  while (reader.nextField()) {
3685
2028
  if (reader.isEndGroup()) {
3686
2029
  break;
@@ -3688,234 +2031,121 @@ proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.deserializeBi
3688
2031
  var field = reader.getFieldNumber();
3689
2032
  switch (field) {
3690
2033
  case 1:
3691
- var value = /** @type {string} */ (reader.readString());
3692
- msg.setNameoncard(value);
2034
+ var value = new proto.sniippaymentmethodsserviceapi.ResponseCode;
2035
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.ResponseCode.deserializeBinaryFromReader);
2036
+ msg.setResponsecode(value);
3693
2037
  break;
3694
2038
  case 2:
3695
- var value = /** @type {number} */ (reader.readInt32());
3696
- msg.setMonthexpiry(value);
3697
- break;
3698
- case 3:
3699
- var value = /** @type {number} */ (reader.readInt32());
3700
- msg.setYearexpiry(value);
3701
- break;
3702
- case 4:
3703
- var value = /** @type {string} */ (reader.readString());
3704
- msg.setNickname(value);
3705
- break;
3706
- case 5:
3707
- var value = /** @type {number} */ (reader.readInt64());
3708
- msg.setCreditcardid(value);
3709
- break;
3710
- case 6:
3711
- var value = /** @type {string} */ (reader.readString());
3712
- msg.setAccesstoken(value);
3713
- break;
3714
- case 7:
3715
2039
  var value = /** @type {string} */ (reader.readString());
3716
- msg.setCvv(value);
2040
+ msg.setCardhash(value);
3717
2041
  break;
3718
2042
  default:
3719
- reader.skipField();
3720
- break;
3721
- }
3722
- }
3723
- return msg;
3724
- };
3725
-
3726
-
3727
- /**
3728
- * Class method variant: serializes the given message to binary data
3729
- * (in protobuf wire format), writing to the given BinaryWriter.
3730
- * @param {!proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest} message
3731
- * @param {!jspb.BinaryWriter} writer
3732
- */
3733
- proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.serializeBinaryToWriter = function(message, writer) {
3734
- message.serializeBinaryToWriter(writer);
3735
- };
3736
-
3737
-
3738
- /**
3739
- * Serializes the message to binary data (in protobuf wire format).
3740
- * @return {!Uint8Array}
3741
- */
3742
- proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.prototype.serializeBinary = function() {
3743
- var writer = new jspb.BinaryWriter();
3744
- this.serializeBinaryToWriter(writer);
3745
- return writer.getResultBuffer();
3746
- };
3747
-
3748
-
3749
- /**
3750
- * Serializes the message to binary data (in protobuf wire format),
3751
- * writing to the given BinaryWriter.
3752
- * @param {!jspb.BinaryWriter} writer
3753
- */
3754
- proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.prototype.serializeBinaryToWriter = function (writer) {
3755
- var f = undefined;
3756
- f = this.getNameoncard();
3757
- if (f.length > 0) {
3758
- writer.writeString(
3759
- 1,
3760
- f
3761
- );
3762
- }
3763
- f = this.getMonthexpiry();
3764
- if (f !== 0) {
3765
- writer.writeInt32(
3766
- 2,
3767
- f
3768
- );
3769
- }
3770
- f = this.getYearexpiry();
3771
- if (f !== 0) {
3772
- writer.writeInt32(
3773
- 3,
3774
- f
3775
- );
3776
- }
3777
- f = this.getNickname();
3778
- if (f.length > 0) {
3779
- writer.writeString(
3780
- 4,
3781
- f
3782
- );
3783
- }
3784
- f = this.getCreditcardid();
3785
- if (f !== 0) {
3786
- writer.writeInt64(
3787
- 5,
3788
- f
3789
- );
3790
- }
3791
- f = this.getAccesstoken();
3792
- if (f.length > 0) {
3793
- writer.writeString(
3794
- 6,
3795
- f
3796
- );
3797
- }
3798
- f = this.getCvv();
3799
- if (f.length > 0) {
3800
- writer.writeString(
3801
- 7,
3802
- f
3803
- );
2043
+ reader.skipField();
2044
+ break;
2045
+ }
3804
2046
  }
2047
+ return msg;
3805
2048
  };
3806
2049
 
3807
2050
 
3808
2051
  /**
3809
- * Creates a deep clone of this proto. No data is shared with the original.
3810
- * @return {!proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest} The clone.
2052
+ * Class method variant: serializes the given message to binary data
2053
+ * (in protobuf wire format), writing to the given BinaryWriter.
2054
+ * @param {!proto.sniippaymentmethodsserviceapi.CardHashResponse} message
2055
+ * @param {!jspb.BinaryWriter} writer
3811
2056
  */
3812
- proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.prototype.cloneMessage = function() {
3813
- return /** @type {!proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest} */ (jspb.Message.cloneMessage(this));
2057
+ proto.sniippaymentmethodsserviceapi.CardHashResponse.serializeBinaryToWriter = function(message, writer) {
2058
+ message.serializeBinaryToWriter(writer);
3814
2059
  };
3815
2060
 
3816
2061
 
3817
2062
  /**
3818
- * optional string nameOnCard = 1;
3819
- * @return {string}
2063
+ * Serializes the message to binary data (in protobuf wire format).
2064
+ * @return {!Uint8Array}
3820
2065
  */
3821
- proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.prototype.getNameoncard = function() {
3822
- return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
3823
- };
3824
-
3825
-
3826
- /** @param {string} value */
3827
- proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.prototype.setNameoncard = function(value) {
3828
- jspb.Message.setField(this, 1, value);
2066
+ proto.sniippaymentmethodsserviceapi.CardHashResponse.prototype.serializeBinary = function() {
2067
+ var writer = new jspb.BinaryWriter();
2068
+ this.serializeBinaryToWriter(writer);
2069
+ return writer.getResultBuffer();
3829
2070
  };
3830
2071
 
3831
2072
 
3832
2073
  /**
3833
- * optional int32 monthExpiry = 2;
3834
- * @return {number}
2074
+ * Serializes the message to binary data (in protobuf wire format),
2075
+ * writing to the given BinaryWriter.
2076
+ * @param {!jspb.BinaryWriter} writer
3835
2077
  */
3836
- proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.prototype.getMonthexpiry = function() {
3837
- return /** @type {number} */ (jspb.Message.getFieldProto3(this, 2, 0));
3838
- };
3839
-
3840
-
3841
- /** @param {number} value */
3842
- proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.prototype.setMonthexpiry = function(value) {
3843
- jspb.Message.setField(this, 2, value);
2078
+ proto.sniippaymentmethodsserviceapi.CardHashResponse.prototype.serializeBinaryToWriter = function (writer) {
2079
+ var f = undefined;
2080
+ f = this.getResponsecode();
2081
+ if (f != null) {
2082
+ writer.writeMessage(
2083
+ 1,
2084
+ f,
2085
+ proto.sniippaymentmethodsserviceapi.ResponseCode.serializeBinaryToWriter
2086
+ );
2087
+ }
2088
+ f = this.getCardhash();
2089
+ if (f.length > 0) {
2090
+ writer.writeString(
2091
+ 2,
2092
+ f
2093
+ );
2094
+ }
3844
2095
  };
3845
2096
 
3846
2097
 
3847
2098
  /**
3848
- * optional int32 yearExpiry = 3;
3849
- * @return {number}
2099
+ * Creates a deep clone of this proto. No data is shared with the original.
2100
+ * @return {!proto.sniippaymentmethodsserviceapi.CardHashResponse} The clone.
3850
2101
  */
3851
- proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.prototype.getYearexpiry = function() {
3852
- return /** @type {number} */ (jspb.Message.getFieldProto3(this, 3, 0));
3853
- };
3854
-
3855
-
3856
- /** @param {number} value */
3857
- proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.prototype.setYearexpiry = function(value) {
3858
- jspb.Message.setField(this, 3, value);
2102
+ proto.sniippaymentmethodsserviceapi.CardHashResponse.prototype.cloneMessage = function() {
2103
+ return /** @type {!proto.sniippaymentmethodsserviceapi.CardHashResponse} */ (jspb.Message.cloneMessage(this));
3859
2104
  };
3860
2105
 
3861
2106
 
3862
2107
  /**
3863
- * optional string nickname = 4;
3864
- * @return {string}
2108
+ * optional ResponseCode responseCode = 1;
2109
+ * @return {proto.sniippaymentmethodsserviceapi.ResponseCode}
3865
2110
  */
3866
- proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.prototype.getNickname = function() {
3867
- return /** @type {string} */ (jspb.Message.getFieldProto3(this, 4, ""));
3868
- };
3869
-
3870
-
3871
- /** @param {string} value */
3872
- proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.prototype.setNickname = function(value) {
3873
- jspb.Message.setField(this, 4, value);
2111
+ proto.sniippaymentmethodsserviceapi.CardHashResponse.prototype.getResponsecode = function() {
2112
+ return /** @type{proto.sniippaymentmethodsserviceapi.ResponseCode} */ (
2113
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.ResponseCode, 1));
3874
2114
  };
3875
2115
 
3876
2116
 
3877
- /**
3878
- * optional int64 creditCardId = 5;
3879
- * @return {number}
3880
- */
3881
- proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.prototype.getCreditcardid = function() {
3882
- return /** @type {number} */ (jspb.Message.getFieldProto3(this, 5, 0));
2117
+ /** @param {proto.sniippaymentmethodsserviceapi.ResponseCode|undefined} value */
2118
+ proto.sniippaymentmethodsserviceapi.CardHashResponse.prototype.setResponsecode = function(value) {
2119
+ jspb.Message.setWrapperField(this, 1, value);
3883
2120
  };
3884
2121
 
3885
2122
 
3886
- /** @param {number} value */
3887
- proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.prototype.setCreditcardid = function(value) {
3888
- jspb.Message.setField(this, 5, value);
2123
+ proto.sniippaymentmethodsserviceapi.CardHashResponse.prototype.clearResponsecode = function() {
2124
+ this.setResponsecode(undefined);
3889
2125
  };
3890
2126
 
3891
2127
 
3892
2128
  /**
3893
- * optional string accessToken = 6;
3894
- * @return {string}
2129
+ * Returns whether this field is set.
2130
+ * @return{!boolean}
3895
2131
  */
3896
- proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.prototype.getAccesstoken = function() {
3897
- return /** @type {string} */ (jspb.Message.getFieldProto3(this, 6, ""));
3898
- };
3899
-
3900
-
3901
- /** @param {string} value */
3902
- proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.prototype.setAccesstoken = function(value) {
3903
- jspb.Message.setField(this, 6, value);
2132
+ proto.sniippaymentmethodsserviceapi.CardHashResponse.prototype.hasResponsecode = function() {
2133
+ return jspb.Message.getField(this, 1) != null;
3904
2134
  };
3905
2135
 
3906
2136
 
3907
2137
  /**
3908
- * optional string cvv = 7;
2138
+ * optional string cardHash = 2;
3909
2139
  * @return {string}
3910
2140
  */
3911
- proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.prototype.getCvv = function() {
3912
- return /** @type {string} */ (jspb.Message.getFieldProto3(this, 7, ""));
2141
+ proto.sniippaymentmethodsserviceapi.CardHashResponse.prototype.getCardhash = function() {
2142
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
3913
2143
  };
3914
2144
 
3915
2145
 
3916
2146
  /** @param {string} value */
3917
- proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.prototype.setCvv = function(value) {
3918
- jspb.Message.setField(this, 7, value);
2147
+ proto.sniippaymentmethodsserviceapi.CardHashResponse.prototype.setCardhash = function(value) {
2148
+ jspb.Message.setField(this, 2, value);
3919
2149
  };
3920
2150
 
3921
2151
 
@@ -3930,12 +2160,12 @@ proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.prototype.set
3930
2160
  * @extends {jspb.Message}
3931
2161
  * @constructor
3932
2162
  */
3933
- proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest = function(opt_data) {
2163
+ proto.sniippaymentmethodsserviceapi.ColourScheme = function(opt_data) {
3934
2164
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3935
2165
  };
3936
- goog.inherits(proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest, jspb.Message);
2166
+ goog.inherits(proto.sniippaymentmethodsserviceapi.ColourScheme, jspb.Message);
3937
2167
  if (goog.DEBUG && !COMPILED) {
3938
- proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.displayName = 'proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest';
2168
+ proto.sniippaymentmethodsserviceapi.ColourScheme.displayName = 'proto.sniippaymentmethodsserviceapi.ColourScheme';
3939
2169
  }
3940
2170
 
3941
2171
 
@@ -3950,8 +2180,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
3950
2180
  * for transitional soy proto support: http://goto/soy-param-migration
3951
2181
  * @return {!Object}
3952
2182
  */
3953
- proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.toObject = function(opt_includeInstance) {
3954
- return proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.toObject(opt_includeInstance, this);
2183
+ proto.sniippaymentmethodsserviceapi.ColourScheme.prototype.toObject = function(opt_includeInstance) {
2184
+ return proto.sniippaymentmethodsserviceapi.ColourScheme.toObject(opt_includeInstance, this);
3955
2185
  };
3956
2186
 
3957
2187
 
@@ -3960,15 +2190,16 @@ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.toObje
3960
2190
  * @param {boolean|undefined} includeInstance Whether to include the JSPB
3961
2191
  * instance for transitional soy proto support:
3962
2192
  * http://goto/soy-param-migration
3963
- * @param {!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest} msg The msg instance to transform.
2193
+ * @param {!proto.sniippaymentmethodsserviceapi.ColourScheme} msg The msg instance to transform.
3964
2194
  * @return {!Object}
3965
2195
  */
3966
- proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.toObject = function(includeInstance, msg) {
2196
+ proto.sniippaymentmethodsserviceapi.ColourScheme.toObject = function(includeInstance, msg) {
3967
2197
  var f, obj = {
3968
- creditcardid: msg.getCreditcardid(),
3969
- accesstoken: msg.getAccesstoken(),
3970
- userid: msg.getUserid(),
3971
- ispaymentaccesskey: msg.getIspaymentaccesskey()
2198
+ colourschemeid: msg.getColourschemeid(),
2199
+ name: msg.getName(),
2200
+ cardcolour: msg.getCardcolour(),
2201
+ textcolour: msg.getTextcolour(),
2202
+ isdefaultcolour: msg.getIsdefaultcolour()
3972
2203
  };
3973
2204
 
3974
2205
  if (includeInstance) {
@@ -3982,23 +2213,23 @@ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.toObject = funct
3982
2213
  /**
3983
2214
  * Deserializes binary data (in protobuf wire format).
3984
2215
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
3985
- * @return {!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest}
2216
+ * @return {!proto.sniippaymentmethodsserviceapi.ColourScheme}
3986
2217
  */
3987
- proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.deserializeBinary = function(bytes) {
2218
+ proto.sniippaymentmethodsserviceapi.ColourScheme.deserializeBinary = function(bytes) {
3988
2219
  var reader = new jspb.BinaryReader(bytes);
3989
- var msg = new proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest;
3990
- return proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.deserializeBinaryFromReader(msg, reader);
2220
+ var msg = new proto.sniippaymentmethodsserviceapi.ColourScheme;
2221
+ return proto.sniippaymentmethodsserviceapi.ColourScheme.deserializeBinaryFromReader(msg, reader);
3991
2222
  };
3992
2223
 
3993
2224
 
3994
2225
  /**
3995
2226
  * Deserializes binary data (in protobuf wire format) from the
3996
2227
  * given reader into the given message object.
3997
- * @param {!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest} msg The message object to deserialize into.
2228
+ * @param {!proto.sniippaymentmethodsserviceapi.ColourScheme} msg The message object to deserialize into.
3998
2229
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3999
- * @return {!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest}
2230
+ * @return {!proto.sniippaymentmethodsserviceapi.ColourScheme}
4000
2231
  */
4001
- proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.deserializeBinaryFromReader = function(msg, reader) {
2232
+ proto.sniippaymentmethodsserviceapi.ColourScheme.deserializeBinaryFromReader = function(msg, reader) {
4002
2233
  while (reader.nextField()) {
4003
2234
  if (reader.isEndGroup()) {
4004
2235
  break;
@@ -4007,19 +2238,23 @@ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.deserializeBinar
4007
2238
  switch (field) {
4008
2239
  case 1:
4009
2240
  var value = /** @type {number} */ (reader.readInt64());
4010
- msg.setCreditcardid(value);
2241
+ msg.setColourschemeid(value);
4011
2242
  break;
4012
2243
  case 2:
4013
2244
  var value = /** @type {string} */ (reader.readString());
4014
- msg.setAccesstoken(value);
2245
+ msg.setName(value);
4015
2246
  break;
4016
2247
  case 3:
4017
- var value = /** @type {number} */ (reader.readInt64());
4018
- msg.setUserid(value);
2248
+ var value = /** @type {string} */ (reader.readString());
2249
+ msg.setCardcolour(value);
4019
2250
  break;
4020
2251
  case 4:
2252
+ var value = /** @type {string} */ (reader.readString());
2253
+ msg.setTextcolour(value);
2254
+ break;
2255
+ case 5:
4021
2256
  var value = /** @type {boolean} */ (reader.readBool());
4022
- msg.setIspaymentaccesskey(value);
2257
+ msg.setIsdefaultcolour(value);
4023
2258
  break;
4024
2259
  default:
4025
2260
  reader.skipField();
@@ -4033,10 +2268,10 @@ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.deserializeBinar
4033
2268
  /**
4034
2269
  * Class method variant: serializes the given message to binary data
4035
2270
  * (in protobuf wire format), writing to the given BinaryWriter.
4036
- * @param {!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest} message
2271
+ * @param {!proto.sniippaymentmethodsserviceapi.ColourScheme} message
4037
2272
  * @param {!jspb.BinaryWriter} writer
4038
2273
  */
4039
- proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.serializeBinaryToWriter = function(message, writer) {
2274
+ proto.sniippaymentmethodsserviceapi.ColourScheme.serializeBinaryToWriter = function(message, writer) {
4040
2275
  message.serializeBinaryToWriter(writer);
4041
2276
  };
4042
2277
 
@@ -4045,7 +2280,7 @@ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.serializeBinaryT
4045
2280
  * Serializes the message to binary data (in protobuf wire format).
4046
2281
  * @return {!Uint8Array}
4047
2282
  */
4048
- proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.serializeBinary = function() {
2283
+ proto.sniippaymentmethodsserviceapi.ColourScheme.prototype.serializeBinary = function() {
4049
2284
  var writer = new jspb.BinaryWriter();
4050
2285
  this.serializeBinaryToWriter(writer);
4051
2286
  return writer.getResultBuffer();
@@ -4057,33 +2292,40 @@ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.serial
4057
2292
  * writing to the given BinaryWriter.
4058
2293
  * @param {!jspb.BinaryWriter} writer
4059
2294
  */
4060
- proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.serializeBinaryToWriter = function (writer) {
2295
+ proto.sniippaymentmethodsserviceapi.ColourScheme.prototype.serializeBinaryToWriter = function (writer) {
4061
2296
  var f = undefined;
4062
- f = this.getCreditcardid();
2297
+ f = this.getColourschemeid();
4063
2298
  if (f !== 0) {
4064
2299
  writer.writeInt64(
4065
2300
  1,
4066
2301
  f
4067
2302
  );
4068
2303
  }
4069
- f = this.getAccesstoken();
2304
+ f = this.getName();
4070
2305
  if (f.length > 0) {
4071
2306
  writer.writeString(
4072
2307
  2,
4073
2308
  f
4074
2309
  );
4075
2310
  }
4076
- f = this.getUserid();
4077
- if (f !== 0) {
4078
- writer.writeInt64(
2311
+ f = this.getCardcolour();
2312
+ if (f.length > 0) {
2313
+ writer.writeString(
4079
2314
  3,
4080
2315
  f
4081
2316
  );
4082
2317
  }
4083
- f = this.getIspaymentaccesskey();
2318
+ f = this.getTextcolour();
2319
+ if (f.length > 0) {
2320
+ writer.writeString(
2321
+ 4,
2322
+ f
2323
+ );
2324
+ }
2325
+ f = this.getIsdefaultcolour();
4084
2326
  if (f) {
4085
2327
  writer.writeBool(
4086
- 4,
2328
+ 5,
4087
2329
  f
4088
2330
  );
4089
2331
  }
@@ -4092,72 +2334,87 @@ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.serial
4092
2334
 
4093
2335
  /**
4094
2336
  * Creates a deep clone of this proto. No data is shared with the original.
4095
- * @return {!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest} The clone.
2337
+ * @return {!proto.sniippaymentmethodsserviceapi.ColourScheme} The clone.
4096
2338
  */
4097
- proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.cloneMessage = function() {
4098
- return /** @type {!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest} */ (jspb.Message.cloneMessage(this));
2339
+ proto.sniippaymentmethodsserviceapi.ColourScheme.prototype.cloneMessage = function() {
2340
+ return /** @type {!proto.sniippaymentmethodsserviceapi.ColourScheme} */ (jspb.Message.cloneMessage(this));
4099
2341
  };
4100
2342
 
4101
2343
 
4102
2344
  /**
4103
- * optional int64 creditCardId = 1;
2345
+ * optional int64 colourSchemeId = 1;
4104
2346
  * @return {number}
4105
2347
  */
4106
- proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.getCreditcardid = function() {
2348
+ proto.sniippaymentmethodsserviceapi.ColourScheme.prototype.getColourschemeid = function() {
4107
2349
  return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
4108
2350
  };
4109
2351
 
4110
2352
 
4111
2353
  /** @param {number} value */
4112
- proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.setCreditcardid = function(value) {
2354
+ proto.sniippaymentmethodsserviceapi.ColourScheme.prototype.setColourschemeid = function(value) {
4113
2355
  jspb.Message.setField(this, 1, value);
4114
2356
  };
4115
2357
 
4116
2358
 
4117
2359
  /**
4118
- * optional string accessToken = 2;
2360
+ * optional string name = 2;
4119
2361
  * @return {string}
4120
2362
  */
4121
- proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.getAccesstoken = function() {
2363
+ proto.sniippaymentmethodsserviceapi.ColourScheme.prototype.getName = function() {
4122
2364
  return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
4123
2365
  };
4124
2366
 
4125
2367
 
4126
2368
  /** @param {string} value */
4127
- proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.setAccesstoken = function(value) {
2369
+ proto.sniippaymentmethodsserviceapi.ColourScheme.prototype.setName = function(value) {
4128
2370
  jspb.Message.setField(this, 2, value);
4129
2371
  };
4130
2372
 
4131
2373
 
4132
2374
  /**
4133
- * optional int64 userId = 3;
4134
- * @return {number}
2375
+ * optional string cardColour = 3;
2376
+ * @return {string}
4135
2377
  */
4136
- proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.getUserid = function() {
4137
- return /** @type {number} */ (jspb.Message.getFieldProto3(this, 3, 0));
2378
+ proto.sniippaymentmethodsserviceapi.ColourScheme.prototype.getCardcolour = function() {
2379
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 3, ""));
4138
2380
  };
4139
2381
 
4140
2382
 
4141
- /** @param {number} value */
4142
- proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.setUserid = function(value) {
2383
+ /** @param {string} value */
2384
+ proto.sniippaymentmethodsserviceapi.ColourScheme.prototype.setCardcolour = function(value) {
4143
2385
  jspb.Message.setField(this, 3, value);
4144
2386
  };
4145
2387
 
4146
2388
 
4147
2389
  /**
4148
- * optional bool isPaymentAccessKey = 4;
2390
+ * optional string textColour = 4;
2391
+ * @return {string}
2392
+ */
2393
+ proto.sniippaymentmethodsserviceapi.ColourScheme.prototype.getTextcolour = function() {
2394
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 4, ""));
2395
+ };
2396
+
2397
+
2398
+ /** @param {string} value */
2399
+ proto.sniippaymentmethodsserviceapi.ColourScheme.prototype.setTextcolour = function(value) {
2400
+ jspb.Message.setField(this, 4, value);
2401
+ };
2402
+
2403
+
2404
+ /**
2405
+ * optional bool isDefaultColour = 5;
4149
2406
  * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
4150
2407
  * You should avoid comparisons like {@code val === true/false} in those cases.
4151
2408
  * @return {boolean}
4152
2409
  */
4153
- proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.getIspaymentaccesskey = function() {
4154
- return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 4, false));
2410
+ proto.sniippaymentmethodsserviceapi.ColourScheme.prototype.getIsdefaultcolour = function() {
2411
+ return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 5, false));
4155
2412
  };
4156
2413
 
4157
2414
 
4158
2415
  /** @param {boolean} value */
4159
- proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.setIspaymentaccesskey = function(value) {
4160
- jspb.Message.setField(this, 4, value);
2416
+ proto.sniippaymentmethodsserviceapi.ColourScheme.prototype.setIsdefaultcolour = function(value) {
2417
+ jspb.Message.setField(this, 5, value);
4161
2418
  };
4162
2419
 
4163
2420
 
@@ -4172,12 +2429,12 @@ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.setIsp
4172
2429
  * @extends {jspb.Message}
4173
2430
  * @constructor
4174
2431
  */
4175
- proto.sniippaymentmethodsserviceapi.CreditCardRequest = function(opt_data) {
2432
+ proto.sniippaymentmethodsserviceapi.CreditCard = function(opt_data) {
4176
2433
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4177
2434
  };
4178
- goog.inherits(proto.sniippaymentmethodsserviceapi.CreditCardRequest, jspb.Message);
2435
+ goog.inherits(proto.sniippaymentmethodsserviceapi.CreditCard, jspb.Message);
4179
2436
  if (goog.DEBUG && !COMPILED) {
4180
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.displayName = 'proto.sniippaymentmethodsserviceapi.CreditCardRequest';
2437
+ proto.sniippaymentmethodsserviceapi.CreditCard.displayName = 'proto.sniippaymentmethodsserviceapi.CreditCard';
4181
2438
  }
4182
2439
 
4183
2440
 
@@ -4192,8 +2449,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
4192
2449
  * for transitional soy proto support: http://goto/soy-param-migration
4193
2450
  * @return {!Object}
4194
2451
  */
4195
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.toObject = function(opt_includeInstance) {
4196
- return proto.sniippaymentmethodsserviceapi.CreditCardRequest.toObject(opt_includeInstance, this);
2452
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.toObject = function(opt_includeInstance) {
2453
+ return proto.sniippaymentmethodsserviceapi.CreditCard.toObject(opt_includeInstance, this);
4197
2454
  };
4198
2455
 
4199
2456
 
@@ -4202,10 +2459,10 @@ proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.toObject = funct
4202
2459
  * @param {boolean|undefined} includeInstance Whether to include the JSPB
4203
2460
  * instance for transitional soy proto support:
4204
2461
  * http://goto/soy-param-migration
4205
- * @param {!proto.sniippaymentmethodsserviceapi.CreditCardRequest} msg The msg instance to transform.
2462
+ * @param {!proto.sniippaymentmethodsserviceapi.CreditCard} msg The msg instance to transform.
4206
2463
  * @return {!Object}
4207
2464
  */
4208
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.toObject = function(includeInstance, msg) {
2465
+ proto.sniippaymentmethodsserviceapi.CreditCard.toObject = function(includeInstance, msg) {
4209
2466
  var f, obj = {
4210
2467
  nameoncard: msg.getNameoncard(),
4211
2468
  cardnumber: msg.getCardnumber(),
@@ -4214,7 +2471,14 @@ proto.sniippaymentmethodsserviceapi.CreditCardRequest.toObject = function(includ
4214
2471
  monthexpiry: msg.getMonthexpiry(),
4215
2472
  yearexpiry: msg.getYearexpiry(),
4216
2473
  nickname: msg.getNickname(),
4217
- accesstoken: msg.getAccesstoken()
2474
+ tokenisedcreditcardid: msg.getTokenisedcreditcardid(),
2475
+ bankname: msg.getBankname(),
2476
+ banklogoname: msg.getBanklogoname(),
2477
+ colourscheme: (f = msg.getColourscheme()) && proto.sniippaymentmethodsserviceapi.ColourScheme.toObject(includeInstance, f),
2478
+ iscreditcard: msg.getIscreditcard(),
2479
+ isdebitcard: msg.getIsdebitcard(),
2480
+ isverified: msg.getIsverified(),
2481
+ attemptedverification: msg.getAttemptedverification()
4218
2482
  };
4219
2483
 
4220
2484
  if (includeInstance) {
@@ -4228,23 +2492,23 @@ proto.sniippaymentmethodsserviceapi.CreditCardRequest.toObject = function(includ
4228
2492
  /**
4229
2493
  * Deserializes binary data (in protobuf wire format).
4230
2494
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
4231
- * @return {!proto.sniippaymentmethodsserviceapi.CreditCardRequest}
2495
+ * @return {!proto.sniippaymentmethodsserviceapi.CreditCard}
4232
2496
  */
4233
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.deserializeBinary = function(bytes) {
2497
+ proto.sniippaymentmethodsserviceapi.CreditCard.deserializeBinary = function(bytes) {
4234
2498
  var reader = new jspb.BinaryReader(bytes);
4235
- var msg = new proto.sniippaymentmethodsserviceapi.CreditCardRequest;
4236
- return proto.sniippaymentmethodsserviceapi.CreditCardRequest.deserializeBinaryFromReader(msg, reader);
2499
+ var msg = new proto.sniippaymentmethodsserviceapi.CreditCard;
2500
+ return proto.sniippaymentmethodsserviceapi.CreditCard.deserializeBinaryFromReader(msg, reader);
4237
2501
  };
4238
2502
 
4239
2503
 
4240
2504
  /**
4241
2505
  * Deserializes binary data (in protobuf wire format) from the
4242
2506
  * given reader into the given message object.
4243
- * @param {!proto.sniippaymentmethodsserviceapi.CreditCardRequest} msg The message object to deserialize into.
2507
+ * @param {!proto.sniippaymentmethodsserviceapi.CreditCard} msg The message object to deserialize into.
4244
2508
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4245
- * @return {!proto.sniippaymentmethodsserviceapi.CreditCardRequest}
2509
+ * @return {!proto.sniippaymentmethodsserviceapi.CreditCard}
4246
2510
  */
4247
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.deserializeBinaryFromReader = function(msg, reader) {
2511
+ proto.sniippaymentmethodsserviceapi.CreditCard.deserializeBinaryFromReader = function(msg, reader) {
4248
2512
  while (reader.nextField()) {
4249
2513
  if (reader.isEndGroup()) {
4250
2514
  break;
@@ -4280,8 +2544,37 @@ proto.sniippaymentmethodsserviceapi.CreditCardRequest.deserializeBinaryFromReade
4280
2544
  msg.setNickname(value);
4281
2545
  break;
4282
2546
  case 8:
2547
+ var value = /** @type {number} */ (reader.readInt64());
2548
+ msg.setTokenisedcreditcardid(value);
2549
+ break;
2550
+ case 9:
4283
2551
  var value = /** @type {string} */ (reader.readString());
4284
- msg.setAccesstoken(value);
2552
+ msg.setBankname(value);
2553
+ break;
2554
+ case 10:
2555
+ var value = /** @type {string} */ (reader.readString());
2556
+ msg.setBanklogoname(value);
2557
+ break;
2558
+ case 11:
2559
+ var value = new proto.sniippaymentmethodsserviceapi.ColourScheme;
2560
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.ColourScheme.deserializeBinaryFromReader);
2561
+ msg.setColourscheme(value);
2562
+ break;
2563
+ case 12:
2564
+ var value = /** @type {boolean} */ (reader.readBool());
2565
+ msg.setIscreditcard(value);
2566
+ break;
2567
+ case 13:
2568
+ var value = /** @type {boolean} */ (reader.readBool());
2569
+ msg.setIsdebitcard(value);
2570
+ break;
2571
+ case 14:
2572
+ var value = /** @type {boolean} */ (reader.readBool());
2573
+ msg.setIsverified(value);
2574
+ break;
2575
+ case 15:
2576
+ var value = /** @type {boolean} */ (reader.readBool());
2577
+ msg.setAttemptedverification(value);
4285
2578
  break;
4286
2579
  default:
4287
2580
  reader.skipField();
@@ -4295,10 +2588,10 @@ proto.sniippaymentmethodsserviceapi.CreditCardRequest.deserializeBinaryFromReade
4295
2588
  /**
4296
2589
  * Class method variant: serializes the given message to binary data
4297
2590
  * (in protobuf wire format), writing to the given BinaryWriter.
4298
- * @param {!proto.sniippaymentmethodsserviceapi.CreditCardRequest} message
2591
+ * @param {!proto.sniippaymentmethodsserviceapi.CreditCard} message
4299
2592
  * @param {!jspb.BinaryWriter} writer
4300
2593
  */
4301
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.serializeBinaryToWriter = function(message, writer) {
2594
+ proto.sniippaymentmethodsserviceapi.CreditCard.serializeBinaryToWriter = function(message, writer) {
4302
2595
  message.serializeBinaryToWriter(writer);
4303
2596
  };
4304
2597
 
@@ -4307,7 +2600,7 @@ proto.sniippaymentmethodsserviceapi.CreditCardRequest.serializeBinaryToWriter =
4307
2600
  * Serializes the message to binary data (in protobuf wire format).
4308
2601
  * @return {!Uint8Array}
4309
2602
  */
4310
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.serializeBinary = function() {
2603
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.serializeBinary = function() {
4311
2604
  var writer = new jspb.BinaryWriter();
4312
2605
  this.serializeBinaryToWriter(writer);
4313
2606
  return writer.getResultBuffer();
@@ -4319,7 +2612,7 @@ proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.serializeBinary
4319
2612
  * writing to the given BinaryWriter.
4320
2613
  * @param {!jspb.BinaryWriter} writer
4321
2614
  */
4322
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.serializeBinaryToWriter = function (writer) {
2615
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.serializeBinaryToWriter = function (writer) {
4323
2616
  var f = undefined;
4324
2617
  f = this.getNameoncard();
4325
2618
  if (f.length > 0) {
@@ -4370,10 +2663,60 @@ proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.serializeBinaryT
4370
2663
  f
4371
2664
  );
4372
2665
  }
4373
- f = this.getAccesstoken();
2666
+ f = this.getTokenisedcreditcardid();
2667
+ if (f !== 0) {
2668
+ writer.writeInt64(
2669
+ 8,
2670
+ f
2671
+ );
2672
+ }
2673
+ f = this.getBankname();
4374
2674
  if (f.length > 0) {
4375
2675
  writer.writeString(
4376
- 8,
2676
+ 9,
2677
+ f
2678
+ );
2679
+ }
2680
+ f = this.getBanklogoname();
2681
+ if (f.length > 0) {
2682
+ writer.writeString(
2683
+ 10,
2684
+ f
2685
+ );
2686
+ }
2687
+ f = this.getColourscheme();
2688
+ if (f != null) {
2689
+ writer.writeMessage(
2690
+ 11,
2691
+ f,
2692
+ proto.sniippaymentmethodsserviceapi.ColourScheme.serializeBinaryToWriter
2693
+ );
2694
+ }
2695
+ f = this.getIscreditcard();
2696
+ if (f) {
2697
+ writer.writeBool(
2698
+ 12,
2699
+ f
2700
+ );
2701
+ }
2702
+ f = this.getIsdebitcard();
2703
+ if (f) {
2704
+ writer.writeBool(
2705
+ 13,
2706
+ f
2707
+ );
2708
+ }
2709
+ f = this.getIsverified();
2710
+ if (f) {
2711
+ writer.writeBool(
2712
+ 14,
2713
+ f
2714
+ );
2715
+ }
2716
+ f = this.getAttemptedverification();
2717
+ if (f) {
2718
+ writer.writeBool(
2719
+ 15,
4377
2720
  f
4378
2721
  );
4379
2722
  }
@@ -4382,10 +2725,10 @@ proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.serializeBinaryT
4382
2725
 
4383
2726
  /**
4384
2727
  * Creates a deep clone of this proto. No data is shared with the original.
4385
- * @return {!proto.sniippaymentmethodsserviceapi.CreditCardRequest} The clone.
2728
+ * @return {!proto.sniippaymentmethodsserviceapi.CreditCard} The clone.
4386
2729
  */
4387
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.cloneMessage = function() {
4388
- return /** @type {!proto.sniippaymentmethodsserviceapi.CreditCardRequest} */ (jspb.Message.cloneMessage(this));
2730
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.cloneMessage = function() {
2731
+ return /** @type {!proto.sniippaymentmethodsserviceapi.CreditCard} */ (jspb.Message.cloneMessage(this));
4389
2732
  };
4390
2733
 
4391
2734
 
@@ -4393,13 +2736,13 @@ proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.cloneMessage = f
4393
2736
  * optional string nameOnCard = 1;
4394
2737
  * @return {string}
4395
2738
  */
4396
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.getNameoncard = function() {
2739
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.getNameoncard = function() {
4397
2740
  return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
4398
2741
  };
4399
2742
 
4400
2743
 
4401
2744
  /** @param {string} value */
4402
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.setNameoncard = function(value) {
2745
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.setNameoncard = function(value) {
4403
2746
  jspb.Message.setField(this, 1, value);
4404
2747
  };
4405
2748
 
@@ -4408,13 +2751,13 @@ proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.setNameoncard =
4408
2751
  * optional string cardNumber = 2;
4409
2752
  * @return {string}
4410
2753
  */
4411
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.getCardnumber = function() {
2754
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.getCardnumber = function() {
4412
2755
  return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
4413
2756
  };
4414
2757
 
4415
2758
 
4416
2759
  /** @param {string} value */
4417
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.setCardnumber = function(value) {
2760
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.setCardnumber = function(value) {
4418
2761
  jspb.Message.setField(this, 2, value);
4419
2762
  };
4420
2763
 
@@ -4423,13 +2766,13 @@ proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.setCardnumber =
4423
2766
  * optional string cvv = 3;
4424
2767
  * @return {string}
4425
2768
  */
4426
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.getCvv = function() {
2769
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.getCvv = function() {
4427
2770
  return /** @type {string} */ (jspb.Message.getFieldProto3(this, 3, ""));
4428
2771
  };
4429
2772
 
4430
2773
 
4431
2774
  /** @param {string} value */
4432
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.setCvv = function(value) {
2775
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.setCvv = function(value) {
4433
2776
  jspb.Message.setField(this, 3, value);
4434
2777
  };
4435
2778
 
@@ -4438,13 +2781,13 @@ proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.setCvv = functio
4438
2781
  * optional string cardType = 4;
4439
2782
  * @return {string}
4440
2783
  */
4441
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.getCardtype = function() {
2784
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.getCardtype = function() {
4442
2785
  return /** @type {string} */ (jspb.Message.getFieldProto3(this, 4, ""));
4443
2786
  };
4444
2787
 
4445
2788
 
4446
2789
  /** @param {string} value */
4447
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.setCardtype = function(value) {
2790
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.setCardtype = function(value) {
4448
2791
  jspb.Message.setField(this, 4, value);
4449
2792
  };
4450
2793
 
@@ -4453,13 +2796,13 @@ proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.setCardtype = fu
4453
2796
  * optional int32 monthExpiry = 5;
4454
2797
  * @return {number}
4455
2798
  */
4456
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.getMonthexpiry = function() {
2799
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.getMonthexpiry = function() {
4457
2800
  return /** @type {number} */ (jspb.Message.getFieldProto3(this, 5, 0));
4458
2801
  };
4459
2802
 
4460
2803
 
4461
2804
  /** @param {number} value */
4462
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.setMonthexpiry = function(value) {
2805
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.setMonthexpiry = function(value) {
4463
2806
  jspb.Message.setField(this, 5, value);
4464
2807
  };
4465
2808
 
@@ -4468,13 +2811,13 @@ proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.setMonthexpiry =
4468
2811
  * optional int32 yearExpiry = 6;
4469
2812
  * @return {number}
4470
2813
  */
4471
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.getYearexpiry = function() {
2814
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.getYearexpiry = function() {
4472
2815
  return /** @type {number} */ (jspb.Message.getFieldProto3(this, 6, 0));
4473
2816
  };
4474
2817
 
4475
2818
 
4476
2819
  /** @param {number} value */
4477
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.setYearexpiry = function(value) {
2820
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.setYearexpiry = function(value) {
4478
2821
  jspb.Message.setField(this, 6, value);
4479
2822
  };
4480
2823
 
@@ -4483,29 +2826,157 @@ proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.setYearexpiry =
4483
2826
  * optional string nickname = 7;
4484
2827
  * @return {string}
4485
2828
  */
4486
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.getNickname = function() {
2829
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.getNickname = function() {
4487
2830
  return /** @type {string} */ (jspb.Message.getFieldProto3(this, 7, ""));
4488
2831
  };
4489
2832
 
4490
2833
 
4491
2834
  /** @param {string} value */
4492
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.setNickname = function(value) {
2835
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.setNickname = function(value) {
4493
2836
  jspb.Message.setField(this, 7, value);
4494
2837
  };
4495
2838
 
4496
2839
 
4497
2840
  /**
4498
- * optional string accessToken = 8;
2841
+ * optional int64 tokenisedCreditCardId = 8;
2842
+ * @return {number}
2843
+ */
2844
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.getTokenisedcreditcardid = function() {
2845
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 8, 0));
2846
+ };
2847
+
2848
+
2849
+ /** @param {number} value */
2850
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.setTokenisedcreditcardid = function(value) {
2851
+ jspb.Message.setField(this, 8, value);
2852
+ };
2853
+
2854
+
2855
+ /**
2856
+ * optional string bankName = 9;
4499
2857
  * @return {string}
4500
2858
  */
4501
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.getAccesstoken = function() {
4502
- return /** @type {string} */ (jspb.Message.getFieldProto3(this, 8, ""));
2859
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.getBankname = function() {
2860
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 9, ""));
4503
2861
  };
4504
2862
 
4505
2863
 
4506
2864
  /** @param {string} value */
4507
- proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.setAccesstoken = function(value) {
4508
- jspb.Message.setField(this, 8, value);
2865
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.setBankname = function(value) {
2866
+ jspb.Message.setField(this, 9, value);
2867
+ };
2868
+
2869
+
2870
+ /**
2871
+ * optional string bankLogoName = 10;
2872
+ * @return {string}
2873
+ */
2874
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.getBanklogoname = function() {
2875
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 10, ""));
2876
+ };
2877
+
2878
+
2879
+ /** @param {string} value */
2880
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.setBanklogoname = function(value) {
2881
+ jspb.Message.setField(this, 10, value);
2882
+ };
2883
+
2884
+
2885
+ /**
2886
+ * optional ColourScheme colourScheme = 11;
2887
+ * @return {proto.sniippaymentmethodsserviceapi.ColourScheme}
2888
+ */
2889
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.getColourscheme = function() {
2890
+ return /** @type{proto.sniippaymentmethodsserviceapi.ColourScheme} */ (
2891
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.ColourScheme, 11));
2892
+ };
2893
+
2894
+
2895
+ /** @param {proto.sniippaymentmethodsserviceapi.ColourScheme|undefined} value */
2896
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.setColourscheme = function(value) {
2897
+ jspb.Message.setWrapperField(this, 11, value);
2898
+ };
2899
+
2900
+
2901
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.clearColourscheme = function() {
2902
+ this.setColourscheme(undefined);
2903
+ };
2904
+
2905
+
2906
+ /**
2907
+ * Returns whether this field is set.
2908
+ * @return{!boolean}
2909
+ */
2910
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.hasColourscheme = function() {
2911
+ return jspb.Message.getField(this, 11) != null;
2912
+ };
2913
+
2914
+
2915
+ /**
2916
+ * optional bool isCreditCard = 12;
2917
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
2918
+ * You should avoid comparisons like {@code val === true/false} in those cases.
2919
+ * @return {boolean}
2920
+ */
2921
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.getIscreditcard = function() {
2922
+ return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 12, false));
2923
+ };
2924
+
2925
+
2926
+ /** @param {boolean} value */
2927
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.setIscreditcard = function(value) {
2928
+ jspb.Message.setField(this, 12, value);
2929
+ };
2930
+
2931
+
2932
+ /**
2933
+ * optional bool isDebitCard = 13;
2934
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
2935
+ * You should avoid comparisons like {@code val === true/false} in those cases.
2936
+ * @return {boolean}
2937
+ */
2938
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.getIsdebitcard = function() {
2939
+ return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 13, false));
2940
+ };
2941
+
2942
+
2943
+ /** @param {boolean} value */
2944
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.setIsdebitcard = function(value) {
2945
+ jspb.Message.setField(this, 13, value);
2946
+ };
2947
+
2948
+
2949
+ /**
2950
+ * optional bool isVerified = 14;
2951
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
2952
+ * You should avoid comparisons like {@code val === true/false} in those cases.
2953
+ * @return {boolean}
2954
+ */
2955
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.getIsverified = function() {
2956
+ return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 14, false));
2957
+ };
2958
+
2959
+
2960
+ /** @param {boolean} value */
2961
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.setIsverified = function(value) {
2962
+ jspb.Message.setField(this, 14, value);
2963
+ };
2964
+
2965
+
2966
+ /**
2967
+ * optional bool attemptedVerification = 15;
2968
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
2969
+ * You should avoid comparisons like {@code val === true/false} in those cases.
2970
+ * @return {boolean}
2971
+ */
2972
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.getAttemptedverification = function() {
2973
+ return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 15, false));
2974
+ };
2975
+
2976
+
2977
+ /** @param {boolean} value */
2978
+ proto.sniippaymentmethodsserviceapi.CreditCard.prototype.setAttemptedverification = function(value) {
2979
+ jspb.Message.setField(this, 15, value);
4509
2980
  };
4510
2981
 
4511
2982
 
@@ -4520,12 +2991,12 @@ proto.sniippaymentmethodsserviceapi.CreditCardRequest.prototype.setAccesstoken =
4520
2991
  * @extends {jspb.Message}
4521
2992
  * @constructor
4522
2993
  */
4523
- proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest = function(opt_data) {
2994
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest = function(opt_data) {
4524
2995
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4525
2996
  };
4526
- goog.inherits(proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest, jspb.Message);
2997
+ goog.inherits(proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest, jspb.Message);
4527
2998
  if (goog.DEBUG && !COMPILED) {
4528
- proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.displayName = 'proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest';
2999
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.displayName = 'proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest';
4529
3000
  }
4530
3001
 
4531
3002
 
@@ -4540,8 +3011,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
4540
3011
  * for transitional soy proto support: http://goto/soy-param-migration
4541
3012
  * @return {!Object}
4542
3013
  */
4543
- proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.prototype.toObject = function(opt_includeInstance) {
4544
- return proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.toObject(opt_includeInstance, this);
3014
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.toObject = function(opt_includeInstance) {
3015
+ return proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.toObject(opt_includeInstance, this);
4545
3016
  };
4546
3017
 
4547
3018
 
@@ -4550,12 +3021,15 @@ proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.prototype.toObject =
4550
3021
  * @param {boolean|undefined} includeInstance Whether to include the JSPB
4551
3022
  * instance for transitional soy proto support:
4552
3023
  * http://goto/soy-param-migration
4553
- * @param {!proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest} msg The msg instance to transform.
3024
+ * @param {!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest} msg The msg instance to transform.
4554
3025
  * @return {!Object}
4555
3026
  */
4556
- proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.toObject = function(includeInstance, msg) {
3027
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.toObject = function(includeInstance, msg) {
4557
3028
  var f, obj = {
4558
- data: (f = msg.getData()) && proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest.toObject(includeInstance, f)
3029
+ creditcardid: msg.getCreditcardid(),
3030
+ accesstoken: msg.getAccesstoken(),
3031
+ userid: msg.getUserid(),
3032
+ ispaymentaccesskey: msg.getIspaymentaccesskey()
4559
3033
  };
4560
3034
 
4561
3035
  if (includeInstance) {
@@ -4569,23 +3043,23 @@ proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.toObject = function(
4569
3043
  /**
4570
3044
  * Deserializes binary data (in protobuf wire format).
4571
3045
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
4572
- * @return {!proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest}
3046
+ * @return {!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest}
4573
3047
  */
4574
- proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.deserializeBinary = function(bytes) {
3048
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.deserializeBinary = function(bytes) {
4575
3049
  var reader = new jspb.BinaryReader(bytes);
4576
- var msg = new proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest;
4577
- return proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.deserializeBinaryFromReader(msg, reader);
3050
+ var msg = new proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest;
3051
+ return proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.deserializeBinaryFromReader(msg, reader);
4578
3052
  };
4579
3053
 
4580
3054
 
4581
3055
  /**
4582
3056
  * Deserializes binary data (in protobuf wire format) from the
4583
3057
  * given reader into the given message object.
4584
- * @param {!proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest} msg The message object to deserialize into.
3058
+ * @param {!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest} msg The message object to deserialize into.
4585
3059
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4586
- * @return {!proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest}
3060
+ * @return {!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest}
4587
3061
  */
4588
- proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.deserializeBinaryFromReader = function(msg, reader) {
3062
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.deserializeBinaryFromReader = function(msg, reader) {
4589
3063
  while (reader.nextField()) {
4590
3064
  if (reader.isEndGroup()) {
4591
3065
  break;
@@ -4593,9 +3067,20 @@ proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.deserializeBinaryFro
4593
3067
  var field = reader.getFieldNumber();
4594
3068
  switch (field) {
4595
3069
  case 1:
4596
- var value = new proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest;
4597
- reader.readMessage(value,proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest.deserializeBinaryFromReader);
4598
- msg.setData(value);
3070
+ var value = /** @type {number} */ (reader.readInt64());
3071
+ msg.setCreditcardid(value);
3072
+ break;
3073
+ case 2:
3074
+ var value = /** @type {string} */ (reader.readString());
3075
+ msg.setAccesstoken(value);
3076
+ break;
3077
+ case 3:
3078
+ var value = /** @type {number} */ (reader.readInt64());
3079
+ msg.setUserid(value);
3080
+ break;
3081
+ case 4:
3082
+ var value = /** @type {boolean} */ (reader.readBool());
3083
+ msg.setIspaymentaccesskey(value);
4599
3084
  break;
4600
3085
  default:
4601
3086
  reader.skipField();
@@ -4609,10 +3094,10 @@ proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.deserializeBinaryFro
4609
3094
  /**
4610
3095
  * Class method variant: serializes the given message to binary data
4611
3096
  * (in protobuf wire format), writing to the given BinaryWriter.
4612
- * @param {!proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest} message
3097
+ * @param {!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest} message
4613
3098
  * @param {!jspb.BinaryWriter} writer
4614
3099
  */
4615
- proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.serializeBinaryToWriter = function(message, writer) {
3100
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.serializeBinaryToWriter = function(message, writer) {
4616
3101
  message.serializeBinaryToWriter(writer);
4617
3102
  };
4618
3103
 
@@ -4621,7 +3106,7 @@ proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.serializeBinaryToWri
4621
3106
  * Serializes the message to binary data (in protobuf wire format).
4622
3107
  * @return {!Uint8Array}
4623
3108
  */
4624
- proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.prototype.serializeBinary = function() {
3109
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.serializeBinary = function() {
4625
3110
  var writer = new jspb.BinaryWriter();
4626
3111
  this.serializeBinaryToWriter(writer);
4627
3112
  return writer.getResultBuffer();
@@ -4633,14 +3118,34 @@ proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.prototype.serializeB
4633
3118
  * writing to the given BinaryWriter.
4634
3119
  * @param {!jspb.BinaryWriter} writer
4635
3120
  */
4636
- proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.prototype.serializeBinaryToWriter = function (writer) {
3121
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.serializeBinaryToWriter = function (writer) {
4637
3122
  var f = undefined;
4638
- f = this.getData();
4639
- if (f != null) {
4640
- writer.writeMessage(
3123
+ f = this.getCreditcardid();
3124
+ if (f !== 0) {
3125
+ writer.writeInt64(
4641
3126
  1,
4642
- f,
4643
- proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest.serializeBinaryToWriter
3127
+ f
3128
+ );
3129
+ }
3130
+ f = this.getAccesstoken();
3131
+ if (f.length > 0) {
3132
+ writer.writeString(
3133
+ 2,
3134
+ f
3135
+ );
3136
+ }
3137
+ f = this.getUserid();
3138
+ if (f !== 0) {
3139
+ writer.writeInt64(
3140
+ 3,
3141
+ f
3142
+ );
3143
+ }
3144
+ f = this.getIspaymentaccesskey();
3145
+ if (f) {
3146
+ writer.writeBool(
3147
+ 4,
3148
+ f
4644
3149
  );
4645
3150
  }
4646
3151
  };
@@ -4648,40 +3153,72 @@ proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.prototype.serializeB
4648
3153
 
4649
3154
  /**
4650
3155
  * Creates a deep clone of this proto. No data is shared with the original.
4651
- * @return {!proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest} The clone.
3156
+ * @return {!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest} The clone.
3157
+ */
3158
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.cloneMessage = function() {
3159
+ return /** @type {!proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest} */ (jspb.Message.cloneMessage(this));
3160
+ };
3161
+
3162
+
3163
+ /**
3164
+ * optional int64 creditCardId = 1;
3165
+ * @return {number}
4652
3166
  */
4653
- proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.prototype.cloneMessage = function() {
4654
- return /** @type {!proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest} */ (jspb.Message.cloneMessage(this));
3167
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.getCreditcardid = function() {
3168
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
3169
+ };
3170
+
3171
+
3172
+ /** @param {number} value */
3173
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.setCreditcardid = function(value) {
3174
+ jspb.Message.setField(this, 1, value);
4655
3175
  };
4656
3176
 
4657
3177
 
4658
3178
  /**
4659
- * optional CreditCardDeleteRequest data = 1;
4660
- * @return {proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest}
3179
+ * optional string accessToken = 2;
3180
+ * @return {string}
4661
3181
  */
4662
- proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.prototype.getData = function() {
4663
- return /** @type{proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest} */ (
4664
- jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest, 1));
3182
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.getAccesstoken = function() {
3183
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
4665
3184
  };
4666
3185
 
4667
3186
 
4668
- /** @param {proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest|undefined} value */
4669
- proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.prototype.setData = function(value) {
4670
- jspb.Message.setWrapperField(this, 1, value);
3187
+ /** @param {string} value */
3188
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.setAccesstoken = function(value) {
3189
+ jspb.Message.setField(this, 2, value);
4671
3190
  };
4672
3191
 
4673
3192
 
4674
- proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.prototype.clearData = function() {
4675
- this.setData(undefined);
3193
+ /**
3194
+ * optional int64 userId = 3;
3195
+ * @return {number}
3196
+ */
3197
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.getUserid = function() {
3198
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 3, 0));
3199
+ };
3200
+
3201
+
3202
+ /** @param {number} value */
3203
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.setUserid = function(value) {
3204
+ jspb.Message.setField(this, 3, value);
4676
3205
  };
4677
3206
 
4678
3207
 
4679
3208
  /**
4680
- * Returns whether this field is set.
4681
- * @return{!boolean}
3209
+ * optional bool isPaymentAccessKey = 4;
3210
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
3211
+ * You should avoid comparisons like {@code val === true/false} in those cases.
3212
+ * @return {boolean}
4682
3213
  */
4683
- proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest.prototype.hasData = function() {
4684
- return jspb.Message.getField(this, 1) != null;
3214
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.getIspaymentaccesskey = function() {
3215
+ return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 4, false));
3216
+ };
3217
+
3218
+
3219
+ /** @param {boolean} value */
3220
+ proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest.prototype.setIspaymentaccesskey = function(value) {
3221
+ jspb.Message.setField(this, 4, value);
4685
3222
  };
4686
3223
 
4687
3224
 
@@ -9965,182 +8502,6 @@ proto.sniippaymentmethodsserviceapi.UpdateCreditCard.prototype.setCvv = function
9965
8502
 
9966
8503
 
9967
8504
 
9968
- /**
9969
- * Generated by JsPbCodeGenerator.
9970
- * @param {Array=} opt_data Optional initial data array, typically from a
9971
- * server response, or constructed directly in Javascript. The array is used
9972
- * in place and becomes part of the constructed object. It is not cloned.
9973
- * If no data is provided, the constructed object will be empty, but still
9974
- * valid.
9975
- * @extends {jspb.Message}
9976
- * @constructor
9977
- */
9978
- proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest = function(opt_data) {
9979
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
9980
- };
9981
- goog.inherits(proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest, jspb.Message);
9982
- if (goog.DEBUG && !COMPILED) {
9983
- proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.displayName = 'proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest';
9984
- }
9985
-
9986
-
9987
- if (jspb.Message.GENERATE_TO_OBJECT) {
9988
- /**
9989
- * Creates an object representation of this proto suitable for use in Soy templates.
9990
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
9991
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9992
- * For the list of reserved names please see:
9993
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
9994
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
9995
- * for transitional soy proto support: http://goto/soy-param-migration
9996
- * @return {!Object}
9997
- */
9998
- proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.prototype.toObject = function(opt_includeInstance) {
9999
- return proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.toObject(opt_includeInstance, this);
10000
- };
10001
-
10002
-
10003
- /**
10004
- * Static version of the {@see toObject} method.
10005
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
10006
- * instance for transitional soy proto support:
10007
- * http://goto/soy-param-migration
10008
- * @param {!proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest} msg The msg instance to transform.
10009
- * @return {!Object}
10010
- */
10011
- proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.toObject = function(includeInstance, msg) {
10012
- var f, obj = {
10013
- data: (f = msg.getData()) && proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.toObject(includeInstance, f)
10014
- };
10015
-
10016
- if (includeInstance) {
10017
- obj.$jspbMessageInstance = msg;
10018
- }
10019
- return obj;
10020
- };
10021
- }
10022
-
10023
-
10024
- /**
10025
- * Deserializes binary data (in protobuf wire format).
10026
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
10027
- * @return {!proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest}
10028
- */
10029
- proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.deserializeBinary = function(bytes) {
10030
- var reader = new jspb.BinaryReader(bytes);
10031
- var msg = new proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest;
10032
- return proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.deserializeBinaryFromReader(msg, reader);
10033
- };
10034
-
10035
-
10036
- /**
10037
- * Deserializes binary data (in protobuf wire format) from the
10038
- * given reader into the given message object.
10039
- * @param {!proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest} msg The message object to deserialize into.
10040
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10041
- * @return {!proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest}
10042
- */
10043
- proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.deserializeBinaryFromReader = function(msg, reader) {
10044
- while (reader.nextField()) {
10045
- if (reader.isEndGroup()) {
10046
- break;
10047
- }
10048
- var field = reader.getFieldNumber();
10049
- switch (field) {
10050
- case 1:
10051
- var value = new proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest;
10052
- reader.readMessage(value,proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.deserializeBinaryFromReader);
10053
- msg.setData(value);
10054
- break;
10055
- default:
10056
- reader.skipField();
10057
- break;
10058
- }
10059
- }
10060
- return msg;
10061
- };
10062
-
10063
-
10064
- /**
10065
- * Class method variant: serializes the given message to binary data
10066
- * (in protobuf wire format), writing to the given BinaryWriter.
10067
- * @param {!proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest} message
10068
- * @param {!jspb.BinaryWriter} writer
10069
- */
10070
- proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.serializeBinaryToWriter = function(message, writer) {
10071
- message.serializeBinaryToWriter(writer);
10072
- };
10073
-
10074
-
10075
- /**
10076
- * Serializes the message to binary data (in protobuf wire format).
10077
- * @return {!Uint8Array}
10078
- */
10079
- proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.prototype.serializeBinary = function() {
10080
- var writer = new jspb.BinaryWriter();
10081
- this.serializeBinaryToWriter(writer);
10082
- return writer.getResultBuffer();
10083
- };
10084
-
10085
-
10086
- /**
10087
- * Serializes the message to binary data (in protobuf wire format),
10088
- * writing to the given BinaryWriter.
10089
- * @param {!jspb.BinaryWriter} writer
10090
- */
10091
- proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.prototype.serializeBinaryToWriter = function (writer) {
10092
- var f = undefined;
10093
- f = this.getData();
10094
- if (f != null) {
10095
- writer.writeMessage(
10096
- 1,
10097
- f,
10098
- proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.serializeBinaryToWriter
10099
- );
10100
- }
10101
- };
10102
-
10103
-
10104
- /**
10105
- * Creates a deep clone of this proto. No data is shared with the original.
10106
- * @return {!proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest} The clone.
10107
- */
10108
- proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.prototype.cloneMessage = function() {
10109
- return /** @type {!proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest} */ (jspb.Message.cloneMessage(this));
10110
- };
10111
-
10112
-
10113
- /**
10114
- * optional CreditCardDetailsUpdateRequest data = 1;
10115
- * @return {proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest}
10116
- */
10117
- proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.prototype.getData = function() {
10118
- return /** @type{proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest} */ (
10119
- jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest, 1));
10120
- };
10121
-
10122
-
10123
- /** @param {proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest|undefined} value */
10124
- proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.prototype.setData = function(value) {
10125
- jspb.Message.setWrapperField(this, 1, value);
10126
- };
10127
-
10128
-
10129
- proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.prototype.clearData = function() {
10130
- this.setData(undefined);
10131
- };
10132
-
10133
-
10134
- /**
10135
- * Returns whether this field is set.
10136
- * @return{!boolean}
10137
- */
10138
- proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.prototype.hasData = function() {
10139
- return jspb.Message.getField(this, 1) != null;
10140
- };
10141
-
10142
-
10143
-
10144
8505
  /**
10145
8506
  * Generated by JsPbCodeGenerator.
10146
8507
  * @param {Array=} opt_data Optional initial data array, typically from a