@sniipwebmaster/bill-service-client-grpcweb 0.2.3943 → 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);
|
|
@@ -18621,7 +18622,8 @@ proto.sniipbillapi.SimpleBillDetail.toObject = function(includeInstance, msg) {
|
|
|
18621
18622
|
category: msg.getCategory(),
|
|
18622
18623
|
isdraft: msg.getIsdraft(),
|
|
18623
18624
|
billtype: msg.getBilltype(),
|
|
18624
|
-
scancontent: msg.getScancontent()
|
|
18625
|
+
scancontent: msg.getScancontent(),
|
|
18626
|
+
isduedateeditable: msg.getIsduedateeditable()
|
|
18625
18627
|
};
|
|
18626
18628
|
|
|
18627
18629
|
if (includeInstance) {
|
|
@@ -18851,6 +18853,10 @@ proto.sniipbillapi.SimpleBillDetail.deserializeBinaryFromReader = function(msg,
|
|
|
18851
18853
|
var value = /** @type {string} */ (reader.readString());
|
|
18852
18854
|
msg.setScancontent(value);
|
|
18853
18855
|
break;
|
|
18856
|
+
case 50:
|
|
18857
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
18858
|
+
msg.setIsduedateeditable(value);
|
|
18859
|
+
break;
|
|
18854
18860
|
default:
|
|
18855
18861
|
reader.skipField();
|
|
18856
18862
|
break;
|
|
@@ -19225,6 +19231,13 @@ proto.sniipbillapi.SimpleBillDetail.prototype.serializeBinaryToWriter = function
|
|
|
19225
19231
|
f
|
|
19226
19232
|
);
|
|
19227
19233
|
}
|
|
19234
|
+
f = this.getIsduedateeditable();
|
|
19235
|
+
if (f) {
|
|
19236
|
+
writer.writeBool(
|
|
19237
|
+
50,
|
|
19238
|
+
f
|
|
19239
|
+
);
|
|
19240
|
+
}
|
|
19228
19241
|
};
|
|
19229
19242
|
|
|
19230
19243
|
|
|
@@ -19984,6 +19997,23 @@ proto.sniipbillapi.SimpleBillDetail.prototype.setScancontent = function(value) {
|
|
|
19984
19997
|
};
|
|
19985
19998
|
|
|
19986
19999
|
|
|
20000
|
+
/**
|
|
20001
|
+
* optional bool isDueDateEditable = 50;
|
|
20002
|
+
* Note that Boolean fields may be set to 0/1 when serialized from a Java server.
|
|
20003
|
+
* You should avoid comparisons like {@code val === true/false} in those cases.
|
|
20004
|
+
* @return {boolean}
|
|
20005
|
+
*/
|
|
20006
|
+
proto.sniipbillapi.SimpleBillDetail.prototype.getIsduedateeditable = function() {
|
|
20007
|
+
return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 50, false));
|
|
20008
|
+
};
|
|
20009
|
+
|
|
20010
|
+
|
|
20011
|
+
/** @param {boolean} value */
|
|
20012
|
+
proto.sniipbillapi.SimpleBillDetail.prototype.setIsduedateeditable = function(value) {
|
|
20013
|
+
jspb.Message.setField(this, 50, value);
|
|
20014
|
+
};
|
|
20015
|
+
|
|
20016
|
+
|
|
19987
20017
|
|
|
19988
20018
|
/**
|
|
19989
20019
|
* Generated by JsPbCodeGenerator.
|
|
@@ -22261,6 +22291,192 @@ proto.sniipbillapi.UpdateDueAmountResponse.prototype.setDidarchive = function(va
|
|
|
22261
22291
|
|
|
22262
22292
|
|
|
22263
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
|
+
|
|
22264
22480
|
/**
|
|
22265
22481
|
* Generated by JsPbCodeGenerator.
|
|
22266
22482
|
* @param {Array=} opt_data Optional initial data array, typically from a
|