@sniipwebmaster/bill-service-client-grpcweb 0.2.5950 → 0.2.5999

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.
@@ -11,6 +11,7 @@ var global = Function('return this')();
11
11
 
12
12
  var google_api_annotations_pb = require('./google/api/annotations_pb.js');
13
13
  var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
14
+ goog.exportSymbol('proto.sniipbillapi.AcceptedPaymentMethod', null, global);
14
15
  goog.exportSymbol('proto.sniipbillapi.AddBillInfo', null, global);
15
16
  goog.exportSymbol('proto.sniipbillapi.ArchiveBillInternalRequest', null, global);
16
17
  goog.exportSymbol('proto.sniipbillapi.ArchiveBillRequest', null, global);
@@ -113,6 +114,281 @@ goog.exportSymbol('proto.sniipbillapi.ValidateBillOwnerRequest', null, global);
113
114
  goog.exportSymbol('proto.sniipbillapi.XeroCreateOrUpdateBillFromInvoiceRequest', null, global);
114
115
  goog.exportSymbol('proto.sniipbillapi.XeroCreateOrUpdateBillFromInvoiceResponse', null, global);
115
116
 
117
+ /**
118
+ * Generated by JsPbCodeGenerator.
119
+ * @param {Array=} opt_data Optional initial data array, typically from a
120
+ * server response, or constructed directly in Javascript. The array is used
121
+ * in place and becomes part of the constructed object. It is not cloned.
122
+ * If no data is provided, the constructed object will be empty, but still
123
+ * valid.
124
+ * @extends {jspb.Message}
125
+ * @constructor
126
+ */
127
+ proto.sniipbillapi.AcceptedPaymentMethod = function(opt_data) {
128
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
129
+ };
130
+ goog.inherits(proto.sniipbillapi.AcceptedPaymentMethod, jspb.Message);
131
+ if (goog.DEBUG && !COMPILED) {
132
+ proto.sniipbillapi.AcceptedPaymentMethod.displayName = 'proto.sniipbillapi.AcceptedPaymentMethod';
133
+ }
134
+
135
+
136
+ if (jspb.Message.GENERATE_TO_OBJECT) {
137
+ /**
138
+ * Creates an object representation of this proto suitable for use in Soy templates.
139
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
140
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
141
+ * For the list of reserved names please see:
142
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
143
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
144
+ * for transitional soy proto support: http://goto/soy-param-migration
145
+ * @return {!Object}
146
+ */
147
+ proto.sniipbillapi.AcceptedPaymentMethod.prototype.toObject = function(opt_includeInstance) {
148
+ return proto.sniipbillapi.AcceptedPaymentMethod.toObject(opt_includeInstance, this);
149
+ };
150
+
151
+
152
+ /**
153
+ * Static version of the {@see toObject} method.
154
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
155
+ * instance for transitional soy proto support:
156
+ * http://goto/soy-param-migration
157
+ * @param {!proto.sniipbillapi.AcceptedPaymentMethod} msg The msg instance to transform.
158
+ * @return {!Object}
159
+ */
160
+ proto.sniipbillapi.AcceptedPaymentMethod.toObject = function(includeInstance, msg) {
161
+ var f, obj = {
162
+ paymenttype: msg.getPaymenttype(),
163
+ allowdebit: msg.getAllowdebit(),
164
+ allowcredit: msg.getAllowcredit(),
165
+ eftposonly: msg.getEftposonly(),
166
+ internationalonly: msg.getInternationalonly()
167
+ };
168
+
169
+ if (includeInstance) {
170
+ obj.$jspbMessageInstance = msg;
171
+ }
172
+ return obj;
173
+ };
174
+ }
175
+
176
+
177
+ /**
178
+ * Deserializes binary data (in protobuf wire format).
179
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
180
+ * @return {!proto.sniipbillapi.AcceptedPaymentMethod}
181
+ */
182
+ proto.sniipbillapi.AcceptedPaymentMethod.deserializeBinary = function(bytes) {
183
+ var reader = new jspb.BinaryReader(bytes);
184
+ var msg = new proto.sniipbillapi.AcceptedPaymentMethod;
185
+ return proto.sniipbillapi.AcceptedPaymentMethod.deserializeBinaryFromReader(msg, reader);
186
+ };
187
+
188
+
189
+ /**
190
+ * Deserializes binary data (in protobuf wire format) from the
191
+ * given reader into the given message object.
192
+ * @param {!proto.sniipbillapi.AcceptedPaymentMethod} msg The message object to deserialize into.
193
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
194
+ * @return {!proto.sniipbillapi.AcceptedPaymentMethod}
195
+ */
196
+ proto.sniipbillapi.AcceptedPaymentMethod.deserializeBinaryFromReader = function(msg, reader) {
197
+ while (reader.nextField()) {
198
+ if (reader.isEndGroup()) {
199
+ break;
200
+ }
201
+ var field = reader.getFieldNumber();
202
+ switch (field) {
203
+ case 1:
204
+ var value = /** @type {string} */ (reader.readString());
205
+ msg.setPaymenttype(value);
206
+ break;
207
+ case 2:
208
+ var value = /** @type {boolean} */ (reader.readBool());
209
+ msg.setAllowdebit(value);
210
+ break;
211
+ case 3:
212
+ var value = /** @type {boolean} */ (reader.readBool());
213
+ msg.setAllowcredit(value);
214
+ break;
215
+ case 4:
216
+ var value = /** @type {boolean} */ (reader.readBool());
217
+ msg.setEftposonly(value);
218
+ break;
219
+ case 5:
220
+ var value = /** @type {boolean} */ (reader.readBool());
221
+ msg.setInternationalonly(value);
222
+ break;
223
+ default:
224
+ reader.skipField();
225
+ break;
226
+ }
227
+ }
228
+ return msg;
229
+ };
230
+
231
+
232
+ /**
233
+ * Class method variant: serializes the given message to binary data
234
+ * (in protobuf wire format), writing to the given BinaryWriter.
235
+ * @param {!proto.sniipbillapi.AcceptedPaymentMethod} message
236
+ * @param {!jspb.BinaryWriter} writer
237
+ */
238
+ proto.sniipbillapi.AcceptedPaymentMethod.serializeBinaryToWriter = function(message, writer) {
239
+ message.serializeBinaryToWriter(writer);
240
+ };
241
+
242
+
243
+ /**
244
+ * Serializes the message to binary data (in protobuf wire format).
245
+ * @return {!Uint8Array}
246
+ */
247
+ proto.sniipbillapi.AcceptedPaymentMethod.prototype.serializeBinary = function() {
248
+ var writer = new jspb.BinaryWriter();
249
+ this.serializeBinaryToWriter(writer);
250
+ return writer.getResultBuffer();
251
+ };
252
+
253
+
254
+ /**
255
+ * Serializes the message to binary data (in protobuf wire format),
256
+ * writing to the given BinaryWriter.
257
+ * @param {!jspb.BinaryWriter} writer
258
+ */
259
+ proto.sniipbillapi.AcceptedPaymentMethod.prototype.serializeBinaryToWriter = function (writer) {
260
+ var f = undefined;
261
+ f = this.getPaymenttype();
262
+ if (f.length > 0) {
263
+ writer.writeString(
264
+ 1,
265
+ f
266
+ );
267
+ }
268
+ f = this.getAllowdebit();
269
+ if (f) {
270
+ writer.writeBool(
271
+ 2,
272
+ f
273
+ );
274
+ }
275
+ f = this.getAllowcredit();
276
+ if (f) {
277
+ writer.writeBool(
278
+ 3,
279
+ f
280
+ );
281
+ }
282
+ f = this.getEftposonly();
283
+ if (f) {
284
+ writer.writeBool(
285
+ 4,
286
+ f
287
+ );
288
+ }
289
+ f = this.getInternationalonly();
290
+ if (f) {
291
+ writer.writeBool(
292
+ 5,
293
+ f
294
+ );
295
+ }
296
+ };
297
+
298
+
299
+ /**
300
+ * Creates a deep clone of this proto. No data is shared with the original.
301
+ * @return {!proto.sniipbillapi.AcceptedPaymentMethod} The clone.
302
+ */
303
+ proto.sniipbillapi.AcceptedPaymentMethod.prototype.cloneMessage = function() {
304
+ return /** @type {!proto.sniipbillapi.AcceptedPaymentMethod} */ (jspb.Message.cloneMessage(this));
305
+ };
306
+
307
+
308
+ /**
309
+ * optional string paymentType = 1;
310
+ * @return {string}
311
+ */
312
+ proto.sniipbillapi.AcceptedPaymentMethod.prototype.getPaymenttype = function() {
313
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
314
+ };
315
+
316
+
317
+ /** @param {string} value */
318
+ proto.sniipbillapi.AcceptedPaymentMethod.prototype.setPaymenttype = function(value) {
319
+ jspb.Message.setField(this, 1, value);
320
+ };
321
+
322
+
323
+ /**
324
+ * optional bool allowDebit = 2;
325
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
326
+ * You should avoid comparisons like {@code val === true/false} in those cases.
327
+ * @return {boolean}
328
+ */
329
+ proto.sniipbillapi.AcceptedPaymentMethod.prototype.getAllowdebit = function() {
330
+ return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 2, false));
331
+ };
332
+
333
+
334
+ /** @param {boolean} value */
335
+ proto.sniipbillapi.AcceptedPaymentMethod.prototype.setAllowdebit = function(value) {
336
+ jspb.Message.setField(this, 2, value);
337
+ };
338
+
339
+
340
+ /**
341
+ * optional bool allowCredit = 3;
342
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
343
+ * You should avoid comparisons like {@code val === true/false} in those cases.
344
+ * @return {boolean}
345
+ */
346
+ proto.sniipbillapi.AcceptedPaymentMethod.prototype.getAllowcredit = function() {
347
+ return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 3, false));
348
+ };
349
+
350
+
351
+ /** @param {boolean} value */
352
+ proto.sniipbillapi.AcceptedPaymentMethod.prototype.setAllowcredit = function(value) {
353
+ jspb.Message.setField(this, 3, value);
354
+ };
355
+
356
+
357
+ /**
358
+ * optional bool eftposOnly = 4;
359
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
360
+ * You should avoid comparisons like {@code val === true/false} in those cases.
361
+ * @return {boolean}
362
+ */
363
+ proto.sniipbillapi.AcceptedPaymentMethod.prototype.getEftposonly = function() {
364
+ return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 4, false));
365
+ };
366
+
367
+
368
+ /** @param {boolean} value */
369
+ proto.sniipbillapi.AcceptedPaymentMethod.prototype.setEftposonly = function(value) {
370
+ jspb.Message.setField(this, 4, value);
371
+ };
372
+
373
+
374
+ /**
375
+ * optional bool internationalOnly = 5;
376
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
377
+ * You should avoid comparisons like {@code val === true/false} in those cases.
378
+ * @return {boolean}
379
+ */
380
+ proto.sniipbillapi.AcceptedPaymentMethod.prototype.getInternationalonly = function() {
381
+ return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 5, false));
382
+ };
383
+
384
+
385
+ /** @param {boolean} value */
386
+ proto.sniipbillapi.AcceptedPaymentMethod.prototype.setInternationalonly = function(value) {
387
+ jspb.Message.setField(this, 5, value);
388
+ };
389
+
390
+
391
+
116
392
  /**
117
393
  * Generated by JsPbCodeGenerator.
118
394
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -3015,7 +3291,8 @@ proto.sniipbillapi.BillDetail.prototype.toObject = function(opt_includeInstance)
3015
3291
  */
3016
3292
  proto.sniipbillapi.BillDetail.toObject = function(includeInstance, msg) {
3017
3293
  var f, obj = {
3018
- acceptedpaymentmethodsList: jspb.Message.getField(msg, 1),
3294
+ acceptedpaymentmethodsList: jspb.Message.toObjectList(msg.getAcceptedpaymentmethodsList(),
3295
+ proto.sniipbillapi.AcceptedPaymentMethod.toObject, includeInstance),
3019
3296
  billid: msg.getBillid(),
3020
3297
  billarchived: msg.getBillarchived(),
3021
3298
  billpaid: msg.getBillpaid(),
@@ -3105,7 +3382,8 @@ proto.sniipbillapi.BillDetail.deserializeBinaryFromReader = function(msg, reader
3105
3382
  var field = reader.getFieldNumber();
3106
3383
  switch (field) {
3107
3384
  case 1:
3108
- var value = /** @type {string} */ (reader.readString());
3385
+ var value = new proto.sniipbillapi.AcceptedPaymentMethod;
3386
+ reader.readMessage(value,proto.sniipbillapi.AcceptedPaymentMethod.deserializeBinaryFromReader);
3109
3387
  msg.getAcceptedpaymentmethodsList().push(value);
3110
3388
  msg.setAcceptedpaymentmethodsList(msg.getAcceptedpaymentmethodsList());
3111
3389
  break;
@@ -3355,9 +3633,10 @@ proto.sniipbillapi.BillDetail.prototype.serializeBinaryToWriter = function (writ
3355
3633
  var f = undefined;
3356
3634
  f = this.getAcceptedpaymentmethodsList();
3357
3635
  if (f.length > 0) {
3358
- writer.writeRepeatedString(
3636
+ writer.writeRepeatedMessage(
3359
3637
  1,
3360
- f
3638
+ f,
3639
+ proto.sniipbillapi.AcceptedPaymentMethod.serializeBinaryToWriter
3361
3640
  );
3362
3641
  }
3363
3642
  f = this.getBillid();
@@ -3731,24 +4010,25 @@ proto.sniipbillapi.BillDetail.prototype.cloneMessage = function() {
3731
4010
 
3732
4011
 
3733
4012
  /**
3734
- * repeated string acceptedPaymentMethods = 1;
4013
+ * repeated AcceptedPaymentMethod acceptedPaymentMethods = 1;
3735
4014
  * If you change this array by adding, removing or replacing elements, or if you
3736
4015
  * replace the array itself, then you must call the setter to update it.
3737
- * @return {!Array.<string>}
4016
+ * @return {!Array.<!proto.sniipbillapi.AcceptedPaymentMethod>}
3738
4017
  */
3739
4018
  proto.sniipbillapi.BillDetail.prototype.getAcceptedpaymentmethodsList = function() {
3740
- return /** @type {!Array.<string>} */ (jspb.Message.getField(this, 1));
4019
+ return /** @type{!Array.<!proto.sniipbillapi.AcceptedPaymentMethod>} */ (
4020
+ jspb.Message.getRepeatedWrapperField(this, proto.sniipbillapi.AcceptedPaymentMethod, 1));
3741
4021
  };
3742
4022
 
3743
4023
 
3744
- /** @param {Array.<string>} value */
4024
+ /** @param {Array.<!proto.sniipbillapi.AcceptedPaymentMethod>} value */
3745
4025
  proto.sniipbillapi.BillDetail.prototype.setAcceptedpaymentmethodsList = function(value) {
3746
- jspb.Message.setField(this, 1, value || []);
4026
+ jspb.Message.setRepeatedWrapperField(this, 1, value);
3747
4027
  };
3748
4028
 
3749
4029
 
3750
4030
  proto.sniipbillapi.BillDetail.prototype.clearAcceptedpaymentmethodsList = function() {
3751
- jspb.Message.setField(this, 1, []);
4031
+ this.setAcceptedpaymentmethodsList([]);
3752
4032
  };
3753
4033
 
3754
4034
 
@@ -15694,7 +15974,8 @@ proto.sniipbillapi.ItemPaymentDetailsInternalResponse.toObject = function(includ
15694
15974
  billername: msg.getBillername(),
15695
15975
  maxamountpermitted: msg.getMaxamountpermitted(),
15696
15976
  minamountpermitted: msg.getMinamountpermitted(),
15697
- acceptedpaymentmethodsList: jspb.Message.getField(msg, 10),
15977
+ acceptedpaymentmethodsList: jspb.Message.toObjectList(msg.getAcceptedpaymentmethodsList(),
15978
+ proto.sniipbillapi.AcceptedPaymentMethod.toObject, includeInstance),
15698
15979
  platform: msg.getPlatform(),
15699
15980
  version: msg.getVersion(),
15700
15981
  latitude: msg.getLatitude(),
@@ -15783,7 +16064,8 @@ proto.sniipbillapi.ItemPaymentDetailsInternalResponse.deserializeBinaryFromReade
15783
16064
  msg.setMinamountpermitted(value);
15784
16065
  break;
15785
16066
  case 10:
15786
- var value = /** @type {string} */ (reader.readString());
16067
+ var value = new proto.sniipbillapi.AcceptedPaymentMethod;
16068
+ reader.readMessage(value,proto.sniipbillapi.AcceptedPaymentMethod.deserializeBinaryFromReader);
15787
16069
  msg.getAcceptedpaymentmethodsList().push(value);
15788
16070
  msg.setAcceptedpaymentmethodsList(msg.getAcceptedpaymentmethodsList());
15789
16071
  break;
@@ -15947,9 +16229,10 @@ proto.sniipbillapi.ItemPaymentDetailsInternalResponse.prototype.serializeBinaryT
15947
16229
  }
15948
16230
  f = this.getAcceptedpaymentmethodsList();
15949
16231
  if (f.length > 0) {
15950
- writer.writeRepeatedString(
16232
+ writer.writeRepeatedMessage(
15951
16233
  10,
15952
- f
16234
+ f,
16235
+ proto.sniipbillapi.AcceptedPaymentMethod.serializeBinaryToWriter
15953
16236
  );
15954
16237
  }
15955
16238
  f = this.getPlatform();
@@ -16213,24 +16496,25 @@ proto.sniipbillapi.ItemPaymentDetailsInternalResponse.prototype.setMinamountperm
16213
16496
 
16214
16497
 
16215
16498
  /**
16216
- * repeated string acceptedPaymentMethods = 10;
16499
+ * repeated AcceptedPaymentMethod acceptedPaymentMethods = 10;
16217
16500
  * If you change this array by adding, removing or replacing elements, or if you
16218
16501
  * replace the array itself, then you must call the setter to update it.
16219
- * @return {!Array.<string>}
16502
+ * @return {!Array.<!proto.sniipbillapi.AcceptedPaymentMethod>}
16220
16503
  */
16221
16504
  proto.sniipbillapi.ItemPaymentDetailsInternalResponse.prototype.getAcceptedpaymentmethodsList = function() {
16222
- return /** @type {!Array.<string>} */ (jspb.Message.getField(this, 10));
16505
+ return /** @type{!Array.<!proto.sniipbillapi.AcceptedPaymentMethod>} */ (
16506
+ jspb.Message.getRepeatedWrapperField(this, proto.sniipbillapi.AcceptedPaymentMethod, 10));
16223
16507
  };
16224
16508
 
16225
16509
 
16226
- /** @param {Array.<string>} value */
16510
+ /** @param {Array.<!proto.sniipbillapi.AcceptedPaymentMethod>} value */
16227
16511
  proto.sniipbillapi.ItemPaymentDetailsInternalResponse.prototype.setAcceptedpaymentmethodsList = function(value) {
16228
- jspb.Message.setField(this, 10, value || []);
16512
+ jspb.Message.setRepeatedWrapperField(this, 10, value);
16229
16513
  };
16230
16514
 
16231
16515
 
16232
16516
  proto.sniipbillapi.ItemPaymentDetailsInternalResponse.prototype.clearAcceptedpaymentmethodsList = function() {
16233
- jspb.Message.setField(this, 10, []);
16517
+ this.setAcceptedpaymentmethodsList([]);
16234
16518
  };
16235
16519
 
16236
16520
 
@@ -16506,7 +16790,8 @@ proto.sniipbillapi.ItemPaymentDetailsResponse.toObject = function(includeInstanc
16506
16790
  billername: msg.getBillername(),
16507
16791
  maxamountpermitted: msg.getMaxamountpermitted(),
16508
16792
  minamountpermitted: msg.getMinamountpermitted(),
16509
- acceptedpaymentmethodsList: jspb.Message.getField(msg, 10),
16793
+ acceptedpaymentmethodsList: jspb.Message.toObjectList(msg.getAcceptedpaymentmethodsList(),
16794
+ proto.sniipbillapi.AcceptedPaymentMethod.toObject, includeInstance),
16510
16795
  itemcategory: msg.getItemcategory(),
16511
16796
  billerdescription: msg.getBillerdescription(),
16512
16797
  remainingamount: msg.getRemainingamount(),
@@ -16585,7 +16870,8 @@ proto.sniipbillapi.ItemPaymentDetailsResponse.deserializeBinaryFromReader = func
16585
16870
  msg.setMinamountpermitted(value);
16586
16871
  break;
16587
16872
  case 10:
16588
- var value = /** @type {string} */ (reader.readString());
16873
+ var value = new proto.sniipbillapi.AcceptedPaymentMethod;
16874
+ reader.readMessage(value,proto.sniipbillapi.AcceptedPaymentMethod.deserializeBinaryFromReader);
16589
16875
  msg.getAcceptedpaymentmethodsList().push(value);
16590
16876
  msg.setAcceptedpaymentmethodsList(msg.getAcceptedpaymentmethodsList());
16591
16877
  break;
@@ -16709,9 +16995,10 @@ proto.sniipbillapi.ItemPaymentDetailsResponse.prototype.serializeBinaryToWriter
16709
16995
  }
16710
16996
  f = this.getAcceptedpaymentmethodsList();
16711
16997
  if (f.length > 0) {
16712
- writer.writeRepeatedString(
16998
+ writer.writeRepeatedMessage(
16713
16999
  10,
16714
- f
17000
+ f,
17001
+ proto.sniipbillapi.AcceptedPaymentMethod.serializeBinaryToWriter
16715
17002
  );
16716
17003
  }
16717
17004
  f = this.getItemcategory();
@@ -16905,24 +17192,25 @@ proto.sniipbillapi.ItemPaymentDetailsResponse.prototype.setMinamountpermitted =
16905
17192
 
16906
17193
 
16907
17194
  /**
16908
- * repeated string acceptedPaymentMethods = 10;
17195
+ * repeated AcceptedPaymentMethod acceptedPaymentMethods = 10;
16909
17196
  * If you change this array by adding, removing or replacing elements, or if you
16910
17197
  * replace the array itself, then you must call the setter to update it.
16911
- * @return {!Array.<string>}
17198
+ * @return {!Array.<!proto.sniipbillapi.AcceptedPaymentMethod>}
16912
17199
  */
16913
17200
  proto.sniipbillapi.ItemPaymentDetailsResponse.prototype.getAcceptedpaymentmethodsList = function() {
16914
- return /** @type {!Array.<string>} */ (jspb.Message.getField(this, 10));
17201
+ return /** @type{!Array.<!proto.sniipbillapi.AcceptedPaymentMethod>} */ (
17202
+ jspb.Message.getRepeatedWrapperField(this, proto.sniipbillapi.AcceptedPaymentMethod, 10));
16915
17203
  };
16916
17204
 
16917
17205
 
16918
- /** @param {Array.<string>} value */
17206
+ /** @param {Array.<!proto.sniipbillapi.AcceptedPaymentMethod>} value */
16919
17207
  proto.sniipbillapi.ItemPaymentDetailsResponse.prototype.setAcceptedpaymentmethodsList = function(value) {
16920
- jspb.Message.setField(this, 10, value || []);
17208
+ jspb.Message.setRepeatedWrapperField(this, 10, value);
16921
17209
  };
16922
17210
 
16923
17211
 
16924
17212
  proto.sniipbillapi.ItemPaymentDetailsResponse.prototype.clearAcceptedpaymentmethodsList = function() {
16925
- jspb.Message.setField(this, 10, []);
17213
+ this.setAcceptedpaymentmethodsList([]);
16926
17214
  };
16927
17215
 
16928
17216
 
@@ -20476,7 +20764,8 @@ proto.sniipbillapi.SimpleBillDetail.toObject = function(includeInstance, msg) {
20476
20764
  maxamountpermitted: msg.getMaxamountpermitted(),
20477
20765
  minamountpermitted: msg.getMinamountpermitted(),
20478
20766
  partialpaymentpermitted: msg.getPartialpaymentpermitted(),
20479
- acceptedpaymentmethodsList: jspb.Message.getField(msg, 21),
20767
+ acceptedpaymentmethodsList: jspb.Message.toObjectList(msg.getAcceptedpaymentmethodsList(),
20768
+ proto.sniipbillapi.AcceptedPaymentMethod.toObject, includeInstance),
20480
20769
  mbillid: msg.getMbillid(),
20481
20770
  paidamountexcludingsurcharges: msg.getPaidamountexcludingsurcharges(),
20482
20771
  scheduledamountexcludingsurcharges: msg.getScheduledamountexcludingsurcharges(),
@@ -20616,7 +20905,8 @@ proto.sniipbillapi.SimpleBillDetail.deserializeBinaryFromReader = function(msg,
20616
20905
  msg.setPartialpaymentpermitted(value);
20617
20906
  break;
20618
20907
  case 21:
20619
- var value = /** @type {string} */ (reader.readString());
20908
+ var value = new proto.sniipbillapi.AcceptedPaymentMethod;
20909
+ reader.readMessage(value,proto.sniipbillapi.AcceptedPaymentMethod.deserializeBinaryFromReader);
20620
20910
  msg.getAcceptedpaymentmethodsList().push(value);
20621
20911
  msg.setAcceptedpaymentmethodsList(msg.getAcceptedpaymentmethodsList());
20622
20912
  break;
@@ -20915,9 +21205,10 @@ proto.sniipbillapi.SimpleBillDetail.prototype.serializeBinaryToWriter = function
20915
21205
  }
20916
21206
  f = this.getAcceptedpaymentmethodsList();
20917
21207
  if (f.length > 0) {
20918
- writer.writeRepeatedString(
21208
+ writer.writeRepeatedMessage(
20919
21209
  21,
20920
- f
21210
+ f,
21211
+ proto.sniipbillapi.AcceptedPaymentMethod.serializeBinaryToWriter
20921
21212
  );
20922
21213
  }
20923
21214
  f = this.getMbillid();
@@ -21434,24 +21725,25 @@ proto.sniipbillapi.SimpleBillDetail.prototype.setPartialpaymentpermitted = funct
21434
21725
 
21435
21726
 
21436
21727
  /**
21437
- * repeated string acceptedPaymentMethods = 21;
21728
+ * repeated AcceptedPaymentMethod acceptedPaymentMethods = 21;
21438
21729
  * If you change this array by adding, removing or replacing elements, or if you
21439
21730
  * replace the array itself, then you must call the setter to update it.
21440
- * @return {!Array.<string>}
21731
+ * @return {!Array.<!proto.sniipbillapi.AcceptedPaymentMethod>}
21441
21732
  */
21442
21733
  proto.sniipbillapi.SimpleBillDetail.prototype.getAcceptedpaymentmethodsList = function() {
21443
- return /** @type {!Array.<string>} */ (jspb.Message.getField(this, 21));
21734
+ return /** @type{!Array.<!proto.sniipbillapi.AcceptedPaymentMethod>} */ (
21735
+ jspb.Message.getRepeatedWrapperField(this, proto.sniipbillapi.AcceptedPaymentMethod, 21));
21444
21736
  };
21445
21737
 
21446
21738
 
21447
- /** @param {Array.<string>} value */
21739
+ /** @param {Array.<!proto.sniipbillapi.AcceptedPaymentMethod>} value */
21448
21740
  proto.sniipbillapi.SimpleBillDetail.prototype.setAcceptedpaymentmethodsList = function(value) {
21449
- jspb.Message.setField(this, 21, value || []);
21741
+ jspb.Message.setRepeatedWrapperField(this, 21, value);
21450
21742
  };
21451
21743
 
21452
21744
 
21453
21745
  proto.sniipbillapi.SimpleBillDetail.prototype.clearAcceptedpaymentmethodsList = function() {
21454
- jspb.Message.setField(this, 21, []);
21746
+ this.setAcceptedpaymentmethodsList([]);
21455
21747
  };
21456
21748
 
21457
21749
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/bill-service-client-grpcweb",
3
- "version": "0.2.5950",
3
+ "version": "0.2.5999",
4
4
  "description": "bill-service-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",