@sniipwebmaster/payment-methods-client-grpcweb 0.2.624 → 0.2.632

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.
@@ -244,6 +244,62 @@ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseC
244
244
  };
245
245
 
246
246
 
247
+ /**
248
+ * @const
249
+ * @type {!grpc.web.AbstractClientBase.MethodInfo<
250
+ * !proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest,
251
+ * !proto.sniippaymentmethodsserviceapi.ZenithTokenAddResponse>}
252
+ */
253
+ const methodInfo_SniipPaymentMethodsServiceAPIService_AddZenithToken = new grpc.web.AbstractClientBase.MethodInfo(
254
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddResponse,
255
+ /** @param {!proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest} request */
256
+ function(request) {
257
+ return request.serializeBinary();
258
+ },
259
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddResponse.deserializeBinary
260
+ );
261
+
262
+
263
+ /**
264
+ * @param {!proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest} request The
265
+ * request proto
266
+ * @param {!Object<string, string>} metadata User defined
267
+ * call metadata
268
+ * @param {function(?grpc.web.Error, ?proto.sniippaymentmethodsserviceapi.ZenithTokenAddResponse)}
269
+ * callback The callback function(error, response)
270
+ * @return {!grpc.web.ClientReadableStream<!proto.sniippaymentmethodsserviceapi.ZenithTokenAddResponse>|undefined}
271
+ * The XHR Node Readable Stream
272
+ */
273
+ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServiceClient.prototype.addZenithToken =
274
+ function(request, metadata, callback) {
275
+ return this.client_.rpcCall(this.hostname_ +
276
+ '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/AddZenithToken',
277
+ request,
278
+ metadata,
279
+ methodInfo_SniipPaymentMethodsServiceAPIService_AddZenithToken,
280
+ callback);
281
+ };
282
+
283
+
284
+ /**
285
+ * @param {!proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest} request The
286
+ * request proto
287
+ * @param {!Object<string, string>} metadata User defined
288
+ * call metadata
289
+ * @return {!Promise<!proto.sniippaymentmethodsserviceapi.ZenithTokenAddResponse>}
290
+ * The XHR Node Readable Stream
291
+ */
292
+ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseClient.prototype.addZenithToken =
293
+ function(request, metadata) {
294
+ return new Promise((resolve, reject) => {
295
+ this.delegateClient_.addZenithToken(
296
+ request, metadata, (error, response) => {
297
+ error ? reject(error) : resolve(response);
298
+ });
299
+ });
300
+ };
301
+
302
+
247
303
  /**
248
304
  * @const
249
305
  * @type {!grpc.web.AbstractClientBase.MethodInfo<
@@ -21,6 +21,7 @@ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.AddCreditCardRequest', nu
21
21
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.AddCreditCardResponse', null, global);
22
22
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.AddPaymentMethod', null, global);
23
23
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest', null, global);
24
+ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest', null, global);
24
25
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.BankAccount', null, global);
25
26
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.CreditCard', null, global);
26
27
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.CreditCardDeleteRequest', null, global);
@@ -50,6 +51,8 @@ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRe
50
51
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest', null, global);
51
52
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest', null, global);
52
53
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse', null, global);
54
+ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest', null, global);
55
+ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.ZenithTokenAddResponse', null, global);
53
56
 
54
57
  /**
55
58
  * Generated by JsPbCodeGenerator.
@@ -1576,6 +1579,165 @@ proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.prototype.hasData =
1576
1579
 
1577
1580
 
1578
1581
 
1582
+ /**
1583
+ * Generated by JsPbCodeGenerator.
1584
+ * @param {Array=} opt_data Optional initial data array, typically from a
1585
+ * server response, or constructed directly in Javascript. The array is used
1586
+ * in place and becomes part of the constructed object. It is not cloned.
1587
+ * If no data is provided, the constructed object will be empty, but still
1588
+ * valid.
1589
+ * @extends {jspb.Message}
1590
+ * @constructor
1591
+ */
1592
+ proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest = function(opt_data) {
1593
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1594
+ };
1595
+ goog.inherits(proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest, jspb.Message);
1596
+ if (goog.DEBUG && !COMPILED) {
1597
+ proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.displayName = 'proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest';
1598
+ }
1599
+
1600
+
1601
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1602
+ /**
1603
+ * Creates an object representation of this proto suitable for use in Soy templates.
1604
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1605
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1606
+ * For the list of reserved names please see:
1607
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
1608
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
1609
+ * for transitional soy proto support: http://goto/soy-param-migration
1610
+ * @return {!Object}
1611
+ */
1612
+ proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.prototype.toObject = function(opt_includeInstance) {
1613
+ return proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.toObject(opt_includeInstance, this);
1614
+ };
1615
+
1616
+
1617
+ /**
1618
+ * Static version of the {@see toObject} method.
1619
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
1620
+ * instance for transitional soy proto support:
1621
+ * http://goto/soy-param-migration
1622
+ * @param {!proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest} msg The msg instance to transform.
1623
+ * @return {!Object}
1624
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1625
+ */
1626
+ proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.toObject = function(includeInstance, msg) {
1627
+ var f, obj = {
1628
+ data: (f = msg.getData()) && proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest.toObject(includeInstance, f)
1629
+ };
1630
+
1631
+ if (includeInstance) {
1632
+ obj.$jspbMessageInstance = msg;
1633
+ }
1634
+ return obj;
1635
+ };
1636
+ }
1637
+
1638
+
1639
+ /**
1640
+ * Deserializes binary data (in protobuf wire format).
1641
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1642
+ * @return {!proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest}
1643
+ */
1644
+ proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.deserializeBinary = function(bytes) {
1645
+ var reader = new jspb.BinaryReader(bytes);
1646
+ var msg = new proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest;
1647
+ return proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.deserializeBinaryFromReader(msg, reader);
1648
+ };
1649
+
1650
+
1651
+ /**
1652
+ * Deserializes binary data (in protobuf wire format) from the
1653
+ * given reader into the given message object.
1654
+ * @param {!proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest} msg The message object to deserialize into.
1655
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1656
+ * @return {!proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest}
1657
+ */
1658
+ proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.deserializeBinaryFromReader = function(msg, reader) {
1659
+ while (reader.nextField()) {
1660
+ if (reader.isEndGroup()) {
1661
+ break;
1662
+ }
1663
+ var field = reader.getFieldNumber();
1664
+ switch (field) {
1665
+ case 1:
1666
+ var value = new proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest;
1667
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest.deserializeBinaryFromReader);
1668
+ msg.setData(value);
1669
+ break;
1670
+ default:
1671
+ reader.skipField();
1672
+ break;
1673
+ }
1674
+ }
1675
+ return msg;
1676
+ };
1677
+
1678
+
1679
+ /**
1680
+ * Serializes the message to binary data (in protobuf wire format).
1681
+ * @return {!Uint8Array}
1682
+ */
1683
+ proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.prototype.serializeBinary = function() {
1684
+ var writer = new jspb.BinaryWriter();
1685
+ proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.serializeBinaryToWriter(this, writer);
1686
+ return writer.getResultBuffer();
1687
+ };
1688
+
1689
+
1690
+ /**
1691
+ * Serializes the given message to binary data (in protobuf wire
1692
+ * format), writing to the given BinaryWriter.
1693
+ * @param {!proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest} message
1694
+ * @param {!jspb.BinaryWriter} writer
1695
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1696
+ */
1697
+ proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.serializeBinaryToWriter = function(message, writer) {
1698
+ var f = undefined;
1699
+ f = message.getData();
1700
+ if (f != null) {
1701
+ writer.writeMessage(
1702
+ 1,
1703
+ f,
1704
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest.serializeBinaryToWriter
1705
+ );
1706
+ }
1707
+ };
1708
+
1709
+
1710
+ /**
1711
+ * optional ZenithTokenAddRequest data = 1;
1712
+ * @return {?proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest}
1713
+ */
1714
+ proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.prototype.getData = function() {
1715
+ return /** @type{?proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest} */ (
1716
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest, 1));
1717
+ };
1718
+
1719
+
1720
+ /** @param {?proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest|undefined} value */
1721
+ proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.prototype.setData = function(value) {
1722
+ jspb.Message.setWrapperField(this, 1, value);
1723
+ };
1724
+
1725
+
1726
+ proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.prototype.clearData = function() {
1727
+ this.setData(undefined);
1728
+ };
1729
+
1730
+
1731
+ /**
1732
+ * Returns whether this field is set.
1733
+ * @return {!boolean}
1734
+ */
1735
+ proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest.prototype.hasData = function() {
1736
+ return jspb.Message.getField(this, 1) != null;
1737
+ };
1738
+
1739
+
1740
+
1579
1741
  /**
1580
1742
  * Generated by JsPbCodeGenerator.
1581
1743
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -7899,4 +8061,413 @@ proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse.prototype.hasCr
7899
8061
  };
7900
8062
 
7901
8063
 
8064
+
8065
+ /**
8066
+ * Generated by JsPbCodeGenerator.
8067
+ * @param {Array=} opt_data Optional initial data array, typically from a
8068
+ * server response, or constructed directly in Javascript. The array is used
8069
+ * in place and becomes part of the constructed object. It is not cloned.
8070
+ * If no data is provided, the constructed object will be empty, but still
8071
+ * valid.
8072
+ * @extends {jspb.Message}
8073
+ * @constructor
8074
+ */
8075
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest = function(opt_data) {
8076
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
8077
+ };
8078
+ goog.inherits(proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest, jspb.Message);
8079
+ if (goog.DEBUG && !COMPILED) {
8080
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest.displayName = 'proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest';
8081
+ }
8082
+
8083
+
8084
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8085
+ /**
8086
+ * Creates an object representation of this proto suitable for use in Soy templates.
8087
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8088
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8089
+ * For the list of reserved names please see:
8090
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
8091
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
8092
+ * for transitional soy proto support: http://goto/soy-param-migration
8093
+ * @return {!Object}
8094
+ */
8095
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest.prototype.toObject = function(opt_includeInstance) {
8096
+ return proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest.toObject(opt_includeInstance, this);
8097
+ };
8098
+
8099
+
8100
+ /**
8101
+ * Static version of the {@see toObject} method.
8102
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
8103
+ * instance for transitional soy proto support:
8104
+ * http://goto/soy-param-migration
8105
+ * @param {!proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest} msg The msg instance to transform.
8106
+ * @return {!Object}
8107
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8108
+ */
8109
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest.toObject = function(includeInstance, msg) {
8110
+ var f, obj = {
8111
+ userid: jspb.Message.getFieldWithDefault(msg, 1, 0),
8112
+ creditcardid: jspb.Message.getFieldWithDefault(msg, 2, 0),
8113
+ zenithtoken: jspb.Message.getFieldWithDefault(msg, 3, ""),
8114
+ accesstoken: jspb.Message.getFieldWithDefault(msg, 4, "")
8115
+ };
8116
+
8117
+ if (includeInstance) {
8118
+ obj.$jspbMessageInstance = msg;
8119
+ }
8120
+ return obj;
8121
+ };
8122
+ }
8123
+
8124
+
8125
+ /**
8126
+ * Deserializes binary data (in protobuf wire format).
8127
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8128
+ * @return {!proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest}
8129
+ */
8130
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest.deserializeBinary = function(bytes) {
8131
+ var reader = new jspb.BinaryReader(bytes);
8132
+ var msg = new proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest;
8133
+ return proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest.deserializeBinaryFromReader(msg, reader);
8134
+ };
8135
+
8136
+
8137
+ /**
8138
+ * Deserializes binary data (in protobuf wire format) from the
8139
+ * given reader into the given message object.
8140
+ * @param {!proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest} msg The message object to deserialize into.
8141
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8142
+ * @return {!proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest}
8143
+ */
8144
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest.deserializeBinaryFromReader = function(msg, reader) {
8145
+ while (reader.nextField()) {
8146
+ if (reader.isEndGroup()) {
8147
+ break;
8148
+ }
8149
+ var field = reader.getFieldNumber();
8150
+ switch (field) {
8151
+ case 1:
8152
+ var value = /** @type {number} */ (reader.readInt64());
8153
+ msg.setUserid(value);
8154
+ break;
8155
+ case 2:
8156
+ var value = /** @type {number} */ (reader.readInt64());
8157
+ msg.setCreditcardid(value);
8158
+ break;
8159
+ case 3:
8160
+ var value = /** @type {string} */ (reader.readString());
8161
+ msg.setZenithtoken(value);
8162
+ break;
8163
+ case 4:
8164
+ var value = /** @type {string} */ (reader.readString());
8165
+ msg.setAccesstoken(value);
8166
+ break;
8167
+ default:
8168
+ reader.skipField();
8169
+ break;
8170
+ }
8171
+ }
8172
+ return msg;
8173
+ };
8174
+
8175
+
8176
+ /**
8177
+ * Serializes the message to binary data (in protobuf wire format).
8178
+ * @return {!Uint8Array}
8179
+ */
8180
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest.prototype.serializeBinary = function() {
8181
+ var writer = new jspb.BinaryWriter();
8182
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest.serializeBinaryToWriter(this, writer);
8183
+ return writer.getResultBuffer();
8184
+ };
8185
+
8186
+
8187
+ /**
8188
+ * Serializes the given message to binary data (in protobuf wire
8189
+ * format), writing to the given BinaryWriter.
8190
+ * @param {!proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest} message
8191
+ * @param {!jspb.BinaryWriter} writer
8192
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8193
+ */
8194
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest.serializeBinaryToWriter = function(message, writer) {
8195
+ var f = undefined;
8196
+ f = message.getUserid();
8197
+ if (f !== 0) {
8198
+ writer.writeInt64(
8199
+ 1,
8200
+ f
8201
+ );
8202
+ }
8203
+ f = message.getCreditcardid();
8204
+ if (f !== 0) {
8205
+ writer.writeInt64(
8206
+ 2,
8207
+ f
8208
+ );
8209
+ }
8210
+ f = message.getZenithtoken();
8211
+ if (f.length > 0) {
8212
+ writer.writeString(
8213
+ 3,
8214
+ f
8215
+ );
8216
+ }
8217
+ f = message.getAccesstoken();
8218
+ if (f.length > 0) {
8219
+ writer.writeString(
8220
+ 4,
8221
+ f
8222
+ );
8223
+ }
8224
+ };
8225
+
8226
+
8227
+ /**
8228
+ * optional int64 userId = 1;
8229
+ * @return {number}
8230
+ */
8231
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest.prototype.getUserid = function() {
8232
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
8233
+ };
8234
+
8235
+
8236
+ /** @param {number} value */
8237
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest.prototype.setUserid = function(value) {
8238
+ jspb.Message.setProto3IntField(this, 1, value);
8239
+ };
8240
+
8241
+
8242
+ /**
8243
+ * optional int64 creditCardId = 2;
8244
+ * @return {number}
8245
+ */
8246
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest.prototype.getCreditcardid = function() {
8247
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
8248
+ };
8249
+
8250
+
8251
+ /** @param {number} value */
8252
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest.prototype.setCreditcardid = function(value) {
8253
+ jspb.Message.setProto3IntField(this, 2, value);
8254
+ };
8255
+
8256
+
8257
+ /**
8258
+ * optional string zenithToken = 3;
8259
+ * @return {string}
8260
+ */
8261
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest.prototype.getZenithtoken = function() {
8262
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
8263
+ };
8264
+
8265
+
8266
+ /** @param {string} value */
8267
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest.prototype.setZenithtoken = function(value) {
8268
+ jspb.Message.setProto3StringField(this, 3, value);
8269
+ };
8270
+
8271
+
8272
+ /**
8273
+ * optional string accessToken = 4;
8274
+ * @return {string}
8275
+ */
8276
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest.prototype.getAccesstoken = function() {
8277
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
8278
+ };
8279
+
8280
+
8281
+ /** @param {string} value */
8282
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest.prototype.setAccesstoken = function(value) {
8283
+ jspb.Message.setProto3StringField(this, 4, value);
8284
+ };
8285
+
8286
+
8287
+
8288
+ /**
8289
+ * Generated by JsPbCodeGenerator.
8290
+ * @param {Array=} opt_data Optional initial data array, typically from a
8291
+ * server response, or constructed directly in Javascript. The array is used
8292
+ * in place and becomes part of the constructed object. It is not cloned.
8293
+ * If no data is provided, the constructed object will be empty, but still
8294
+ * valid.
8295
+ * @extends {jspb.Message}
8296
+ * @constructor
8297
+ */
8298
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddResponse = function(opt_data) {
8299
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
8300
+ };
8301
+ goog.inherits(proto.sniippaymentmethodsserviceapi.ZenithTokenAddResponse, jspb.Message);
8302
+ if (goog.DEBUG && !COMPILED) {
8303
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddResponse.displayName = 'proto.sniippaymentmethodsserviceapi.ZenithTokenAddResponse';
8304
+ }
8305
+
8306
+
8307
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8308
+ /**
8309
+ * Creates an object representation of this proto suitable for use in Soy templates.
8310
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8311
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8312
+ * For the list of reserved names please see:
8313
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
8314
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
8315
+ * for transitional soy proto support: http://goto/soy-param-migration
8316
+ * @return {!Object}
8317
+ */
8318
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddResponse.prototype.toObject = function(opt_includeInstance) {
8319
+ return proto.sniippaymentmethodsserviceapi.ZenithTokenAddResponse.toObject(opt_includeInstance, this);
8320
+ };
8321
+
8322
+
8323
+ /**
8324
+ * Static version of the {@see toObject} method.
8325
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
8326
+ * instance for transitional soy proto support:
8327
+ * http://goto/soy-param-migration
8328
+ * @param {!proto.sniippaymentmethodsserviceapi.ZenithTokenAddResponse} msg The msg instance to transform.
8329
+ * @return {!Object}
8330
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8331
+ */
8332
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddResponse.toObject = function(includeInstance, msg) {
8333
+ var f, obj = {
8334
+ responsecode: (f = msg.getResponsecode()) && proto.sniippaymentmethodsserviceapi.ResponseCode.toObject(includeInstance, f),
8335
+ zenithtokenid: jspb.Message.getFieldWithDefault(msg, 2, 0)
8336
+ };
8337
+
8338
+ if (includeInstance) {
8339
+ obj.$jspbMessageInstance = msg;
8340
+ }
8341
+ return obj;
8342
+ };
8343
+ }
8344
+
8345
+
8346
+ /**
8347
+ * Deserializes binary data (in protobuf wire format).
8348
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8349
+ * @return {!proto.sniippaymentmethodsserviceapi.ZenithTokenAddResponse}
8350
+ */
8351
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddResponse.deserializeBinary = function(bytes) {
8352
+ var reader = new jspb.BinaryReader(bytes);
8353
+ var msg = new proto.sniippaymentmethodsserviceapi.ZenithTokenAddResponse;
8354
+ return proto.sniippaymentmethodsserviceapi.ZenithTokenAddResponse.deserializeBinaryFromReader(msg, reader);
8355
+ };
8356
+
8357
+
8358
+ /**
8359
+ * Deserializes binary data (in protobuf wire format) from the
8360
+ * given reader into the given message object.
8361
+ * @param {!proto.sniippaymentmethodsserviceapi.ZenithTokenAddResponse} msg The message object to deserialize into.
8362
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8363
+ * @return {!proto.sniippaymentmethodsserviceapi.ZenithTokenAddResponse}
8364
+ */
8365
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddResponse.deserializeBinaryFromReader = function(msg, reader) {
8366
+ while (reader.nextField()) {
8367
+ if (reader.isEndGroup()) {
8368
+ break;
8369
+ }
8370
+ var field = reader.getFieldNumber();
8371
+ switch (field) {
8372
+ case 1:
8373
+ var value = new proto.sniippaymentmethodsserviceapi.ResponseCode;
8374
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.ResponseCode.deserializeBinaryFromReader);
8375
+ msg.setResponsecode(value);
8376
+ break;
8377
+ case 2:
8378
+ var value = /** @type {number} */ (reader.readInt64());
8379
+ msg.setZenithtokenid(value);
8380
+ break;
8381
+ default:
8382
+ reader.skipField();
8383
+ break;
8384
+ }
8385
+ }
8386
+ return msg;
8387
+ };
8388
+
8389
+
8390
+ /**
8391
+ * Serializes the message to binary data (in protobuf wire format).
8392
+ * @return {!Uint8Array}
8393
+ */
8394
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddResponse.prototype.serializeBinary = function() {
8395
+ var writer = new jspb.BinaryWriter();
8396
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddResponse.serializeBinaryToWriter(this, writer);
8397
+ return writer.getResultBuffer();
8398
+ };
8399
+
8400
+
8401
+ /**
8402
+ * Serializes the given message to binary data (in protobuf wire
8403
+ * format), writing to the given BinaryWriter.
8404
+ * @param {!proto.sniippaymentmethodsserviceapi.ZenithTokenAddResponse} message
8405
+ * @param {!jspb.BinaryWriter} writer
8406
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8407
+ */
8408
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddResponse.serializeBinaryToWriter = function(message, writer) {
8409
+ var f = undefined;
8410
+ f = message.getResponsecode();
8411
+ if (f != null) {
8412
+ writer.writeMessage(
8413
+ 1,
8414
+ f,
8415
+ proto.sniippaymentmethodsserviceapi.ResponseCode.serializeBinaryToWriter
8416
+ );
8417
+ }
8418
+ f = message.getZenithtokenid();
8419
+ if (f !== 0) {
8420
+ writer.writeInt64(
8421
+ 2,
8422
+ f
8423
+ );
8424
+ }
8425
+ };
8426
+
8427
+
8428
+ /**
8429
+ * optional ResponseCode responseCode = 1;
8430
+ * @return {?proto.sniippaymentmethodsserviceapi.ResponseCode}
8431
+ */
8432
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddResponse.prototype.getResponsecode = function() {
8433
+ return /** @type{?proto.sniippaymentmethodsserviceapi.ResponseCode} */ (
8434
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.ResponseCode, 1));
8435
+ };
8436
+
8437
+
8438
+ /** @param {?proto.sniippaymentmethodsserviceapi.ResponseCode|undefined} value */
8439
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddResponse.prototype.setResponsecode = function(value) {
8440
+ jspb.Message.setWrapperField(this, 1, value);
8441
+ };
8442
+
8443
+
8444
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddResponse.prototype.clearResponsecode = function() {
8445
+ this.setResponsecode(undefined);
8446
+ };
8447
+
8448
+
8449
+ /**
8450
+ * Returns whether this field is set.
8451
+ * @return {!boolean}
8452
+ */
8453
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddResponse.prototype.hasResponsecode = function() {
8454
+ return jspb.Message.getField(this, 1) != null;
8455
+ };
8456
+
8457
+
8458
+ /**
8459
+ * optional int64 zenithTokenId = 2;
8460
+ * @return {number}
8461
+ */
8462
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddResponse.prototype.getZenithtokenid = function() {
8463
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
8464
+ };
8465
+
8466
+
8467
+ /** @param {number} value */
8468
+ proto.sniippaymentmethodsserviceapi.ZenithTokenAddResponse.prototype.setZenithtokenid = function(value) {
8469
+ jspb.Message.setProto3IntField(this, 2, value);
8470
+ };
8471
+
8472
+
7902
8473
  goog.object.extend(exports, proto.sniippaymentmethodsserviceapi);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/payment-methods-client-grpcweb",
3
- "version": "0.2.624",
3
+ "version": "0.2.632",
4
4
  "description": "payment-methods-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",