@sniipwebmaster/bill-service-client-grpcweb 0.2.3954 → 0.2.3965

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.
@@ -2180,6 +2180,61 @@ proto.sniipbillapi.SniipBillAPIServicePromiseClient.prototype.updateDueAmount =
2180
2180
  };
2181
2181
 
2182
2182
 
2183
+ /**
2184
+ * @const
2185
+ * @type {!grpc.web.AbstractClientBase.MethodInfo<
2186
+ * !proto.sniipbillapi.UpdateDueDateRequest,
2187
+ * !proto.sniipbillapi.BillDetailsResponse>}
2188
+ */
2189
+ const methodInfo_SniipBillAPIService_UpdateDueDate = new grpc.web.AbstractClientBase.MethodInfo(
2190
+ proto.sniipbillapi.BillDetailsResponse,
2191
+ /** @param {!proto.sniipbillapi.UpdateDueDateRequest} request */
2192
+ function(request) {
2193
+ return request.serializeBinary();
2194
+ },
2195
+ proto.sniipbillapi.BillDetailsResponse.deserializeBinary
2196
+ );
2197
+
2198
+
2199
+ /**
2200
+ * @param {!proto.sniipbillapi.UpdateDueDateRequest} request The
2201
+ * request proto
2202
+ * @param {?Object<string, string>} metadata User defined
2203
+ * call metadata
2204
+ * @param {function(?grpc.web.Error, ?proto.sniipbillapi.BillDetailsResponse)}
2205
+ * callback The callback function(error, response)
2206
+ * @return {!grpc.web.ClientReadableStream<!proto.sniipbillapi.BillDetailsResponse>|undefined}
2207
+ * The XHR Node Readable Stream
2208
+ */
2209
+ proto.sniipbillapi.SniipBillAPIServiceClient.prototype.updateDueDate =
2210
+ function(request, metadata, callback) {
2211
+ return this.client_.rpcCall(this.hostname_ +
2212
+ '/sniipbillapi.SniipBillAPIService/UpdateDueDate',
2213
+ request,
2214
+ metadata || {},
2215
+ methodInfo_SniipBillAPIService_UpdateDueDate,
2216
+ callback);
2217
+ };
2218
+
2219
+
2220
+ /**
2221
+ * @param {!proto.sniipbillapi.UpdateDueDateRequest} request The
2222
+ * request proto
2223
+ * @param {?Object<string, string>} metadata User defined
2224
+ * call metadata
2225
+ * @return {!Promise<!proto.sniipbillapi.BillDetailsResponse>}
2226
+ * A native promise that resolves to the response
2227
+ */
2228
+ proto.sniipbillapi.SniipBillAPIServicePromiseClient.prototype.updateDueDate =
2229
+ function(request, metadata) {
2230
+ return this.client_.unaryCall(this.hostname_ +
2231
+ '/sniipbillapi.SniipBillAPIService/UpdateDueDate',
2232
+ request,
2233
+ metadata || {},
2234
+ methodInfo_SniipBillAPIService_UpdateDueDate);
2235
+ };
2236
+
2237
+
2183
2238
  /**
2184
2239
  * @const
2185
2240
  * @type {!grpc.web.AbstractClientBase.MethodInfo<
@@ -101,6 +101,7 @@ goog.exportSymbol('proto.sniipbillapi.UnarchiveBillRequest', null, global);
101
101
  goog.exportSymbol('proto.sniipbillapi.UnpaidMbill', null, global);
102
102
  goog.exportSymbol('proto.sniipbillapi.UpdateDueAmountRequest', null, global);
103
103
  goog.exportSymbol('proto.sniipbillapi.UpdateDueAmountResponse', null, global);
104
+ goog.exportSymbol('proto.sniipbillapi.UpdateDueDateRequest', null, global);
104
105
  goog.exportSymbol('proto.sniipbillapi.ValidateBillOwnerRequest', null, global);
105
106
  goog.exportSymbol('proto.sniipbillapi.XeroCreateOrUpdateBillFromInvoiceRequest', null, global);
106
107
  goog.exportSymbol('proto.sniipbillapi.XeroCreateOrUpdateBillFromInvoiceResponse', null, global);
@@ -22290,6 +22291,192 @@ proto.sniipbillapi.UpdateDueAmountResponse.prototype.setDidarchive = function(va
22290
22291
 
22291
22292
 
22292
22293
 
22294
+ /**
22295
+ * Generated by JsPbCodeGenerator.
22296
+ * @param {Array=} opt_data Optional initial data array, typically from a
22297
+ * server response, or constructed directly in Javascript. The array is used
22298
+ * in place and becomes part of the constructed object. It is not cloned.
22299
+ * If no data is provided, the constructed object will be empty, but still
22300
+ * valid.
22301
+ * @extends {jspb.Message}
22302
+ * @constructor
22303
+ */
22304
+ proto.sniipbillapi.UpdateDueDateRequest = function(opt_data) {
22305
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
22306
+ };
22307
+ goog.inherits(proto.sniipbillapi.UpdateDueDateRequest, jspb.Message);
22308
+ if (goog.DEBUG && !COMPILED) {
22309
+ proto.sniipbillapi.UpdateDueDateRequest.displayName = 'proto.sniipbillapi.UpdateDueDateRequest';
22310
+ }
22311
+
22312
+
22313
+ if (jspb.Message.GENERATE_TO_OBJECT) {
22314
+ /**
22315
+ * Creates an object representation of this proto suitable for use in Soy templates.
22316
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
22317
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
22318
+ * For the list of reserved names please see:
22319
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
22320
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
22321
+ * for transitional soy proto support: http://goto/soy-param-migration
22322
+ * @return {!Object}
22323
+ */
22324
+ proto.sniipbillapi.UpdateDueDateRequest.prototype.toObject = function(opt_includeInstance) {
22325
+ return proto.sniipbillapi.UpdateDueDateRequest.toObject(opt_includeInstance, this);
22326
+ };
22327
+
22328
+
22329
+ /**
22330
+ * Static version of the {@see toObject} method.
22331
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
22332
+ * instance for transitional soy proto support:
22333
+ * http://goto/soy-param-migration
22334
+ * @param {!proto.sniipbillapi.UpdateDueDateRequest} msg The msg instance to transform.
22335
+ * @return {!Object}
22336
+ */
22337
+ proto.sniipbillapi.UpdateDueDateRequest.toObject = function(includeInstance, msg) {
22338
+ var f, obj = {
22339
+ billid: msg.getBillid(),
22340
+ duedate: msg.getDuedate()
22341
+ };
22342
+
22343
+ if (includeInstance) {
22344
+ obj.$jspbMessageInstance = msg;
22345
+ }
22346
+ return obj;
22347
+ };
22348
+ }
22349
+
22350
+
22351
+ /**
22352
+ * Deserializes binary data (in protobuf wire format).
22353
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
22354
+ * @return {!proto.sniipbillapi.UpdateDueDateRequest}
22355
+ */
22356
+ proto.sniipbillapi.UpdateDueDateRequest.deserializeBinary = function(bytes) {
22357
+ var reader = new jspb.BinaryReader(bytes);
22358
+ var msg = new proto.sniipbillapi.UpdateDueDateRequest;
22359
+ return proto.sniipbillapi.UpdateDueDateRequest.deserializeBinaryFromReader(msg, reader);
22360
+ };
22361
+
22362
+
22363
+ /**
22364
+ * Deserializes binary data (in protobuf wire format) from the
22365
+ * given reader into the given message object.
22366
+ * @param {!proto.sniipbillapi.UpdateDueDateRequest} msg The message object to deserialize into.
22367
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
22368
+ * @return {!proto.sniipbillapi.UpdateDueDateRequest}
22369
+ */
22370
+ proto.sniipbillapi.UpdateDueDateRequest.deserializeBinaryFromReader = function(msg, reader) {
22371
+ while (reader.nextField()) {
22372
+ if (reader.isEndGroup()) {
22373
+ break;
22374
+ }
22375
+ var field = reader.getFieldNumber();
22376
+ switch (field) {
22377
+ case 1:
22378
+ var value = /** @type {number} */ (reader.readInt64());
22379
+ msg.setBillid(value);
22380
+ break;
22381
+ case 2:
22382
+ var value = /** @type {string} */ (reader.readString());
22383
+ msg.setDuedate(value);
22384
+ break;
22385
+ default:
22386
+ reader.skipField();
22387
+ break;
22388
+ }
22389
+ }
22390
+ return msg;
22391
+ };
22392
+
22393
+
22394
+ /**
22395
+ * Class method variant: serializes the given message to binary data
22396
+ * (in protobuf wire format), writing to the given BinaryWriter.
22397
+ * @param {!proto.sniipbillapi.UpdateDueDateRequest} message
22398
+ * @param {!jspb.BinaryWriter} writer
22399
+ */
22400
+ proto.sniipbillapi.UpdateDueDateRequest.serializeBinaryToWriter = function(message, writer) {
22401
+ message.serializeBinaryToWriter(writer);
22402
+ };
22403
+
22404
+
22405
+ /**
22406
+ * Serializes the message to binary data (in protobuf wire format).
22407
+ * @return {!Uint8Array}
22408
+ */
22409
+ proto.sniipbillapi.UpdateDueDateRequest.prototype.serializeBinary = function() {
22410
+ var writer = new jspb.BinaryWriter();
22411
+ this.serializeBinaryToWriter(writer);
22412
+ return writer.getResultBuffer();
22413
+ };
22414
+
22415
+
22416
+ /**
22417
+ * Serializes the message to binary data (in protobuf wire format),
22418
+ * writing to the given BinaryWriter.
22419
+ * @param {!jspb.BinaryWriter} writer
22420
+ */
22421
+ proto.sniipbillapi.UpdateDueDateRequest.prototype.serializeBinaryToWriter = function (writer) {
22422
+ var f = undefined;
22423
+ f = this.getBillid();
22424
+ if (f !== 0) {
22425
+ writer.writeInt64(
22426
+ 1,
22427
+ f
22428
+ );
22429
+ }
22430
+ f = this.getDuedate();
22431
+ if (f.length > 0) {
22432
+ writer.writeString(
22433
+ 2,
22434
+ f
22435
+ );
22436
+ }
22437
+ };
22438
+
22439
+
22440
+ /**
22441
+ * Creates a deep clone of this proto. No data is shared with the original.
22442
+ * @return {!proto.sniipbillapi.UpdateDueDateRequest} The clone.
22443
+ */
22444
+ proto.sniipbillapi.UpdateDueDateRequest.prototype.cloneMessage = function() {
22445
+ return /** @type {!proto.sniipbillapi.UpdateDueDateRequest} */ (jspb.Message.cloneMessage(this));
22446
+ };
22447
+
22448
+
22449
+ /**
22450
+ * optional int64 billId = 1;
22451
+ * @return {number}
22452
+ */
22453
+ proto.sniipbillapi.UpdateDueDateRequest.prototype.getBillid = function() {
22454
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
22455
+ };
22456
+
22457
+
22458
+ /** @param {number} value */
22459
+ proto.sniipbillapi.UpdateDueDateRequest.prototype.setBillid = function(value) {
22460
+ jspb.Message.setField(this, 1, value);
22461
+ };
22462
+
22463
+
22464
+ /**
22465
+ * optional string dueDate = 2;
22466
+ * @return {string}
22467
+ */
22468
+ proto.sniipbillapi.UpdateDueDateRequest.prototype.getDuedate = function() {
22469
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
22470
+ };
22471
+
22472
+
22473
+ /** @param {string} value */
22474
+ proto.sniipbillapi.UpdateDueDateRequest.prototype.setDuedate = function(value) {
22475
+ jspb.Message.setField(this, 2, value);
22476
+ };
22477
+
22478
+
22479
+
22293
22480
  /**
22294
22481
  * Generated by JsPbCodeGenerator.
22295
22482
  * @param {Array=} opt_data Optional initial data array, typically from a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/bill-service-client-grpcweb",
3
- "version": "0.2.3954",
3
+ "version": "0.2.3965",
4
4
  "description": "bill-service-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",