@aldiokta/protocgen 1.1.40 → 1.1.42
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.
- package/package.json +1 -1
- package/prisca/v1/bidding/bidding_pb.js +31 -1
- package/prisca/v1/core/access_manager/access_manager_pb.js +1367 -504
- package/prisca/v1/core/auth/auth_pb.js +18 -14
- package/prisca/v1/core/item_transaction/item_transaction_pb.js +231 -7
- package/prisca/v1/core/messaging/notification_grpc_pb.js +129 -8
- package/prisca/v1/core/messaging/notification_pb.js +1815 -197
- package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +22 -0
- package/prisca/v1/good_receipt/good_receipt_pb.js +370 -23
- package/prisca/v1/invoice/invoice_grpc_pb.js +55 -0
- package/prisca/v1/invoice/invoice_pb.js +778 -16
- package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +22 -0
- package/prisca/v1/purchase_order/purchase_order_pb.js +370 -23
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +55 -0
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +673 -1
- package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +55 -0
- package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +674 -2
- package/prisca/v1/vendor_domain/vendor_domain_pb.js +9911 -2373
|
@@ -36,6 +36,8 @@ goog.object.extend(proto, prisca_v1_core_transaction_builder_transaction_builder
|
|
|
36
36
|
goog.exportSymbol('proto.BaseInvoice', null, global);
|
|
37
37
|
goog.exportSymbol('proto.CreateInvoiceReq', null, global);
|
|
38
38
|
goog.exportSymbol('proto.CreateInvoiceRes', null, global);
|
|
39
|
+
goog.exportSymbol('proto.DeleteInvoiceRequest', null, global);
|
|
40
|
+
goog.exportSymbol('proto.DeleteInvoiceResponse', null, global);
|
|
39
41
|
goog.exportSymbol('proto.GetInvoiceByIdReq', null, global);
|
|
40
42
|
goog.exportSymbol('proto.GetInvoiceByIdRes', null, global);
|
|
41
43
|
goog.exportSymbol('proto.GetInvoiceDetailRes', null, global);
|
|
@@ -46,6 +48,7 @@ goog.exportSymbol('proto.GetListInvoiceRes', null, global);
|
|
|
46
48
|
goog.exportSymbol('proto.ItemGoodReceipt', null, global);
|
|
47
49
|
goog.exportSymbol('proto.ItemInvoiceReference', null, global);
|
|
48
50
|
goog.exportSymbol('proto.ItemPurchaseOrder', null, global);
|
|
51
|
+
goog.exportSymbol('proto.UpdateInvoiceFileReq', null, global);
|
|
49
52
|
goog.exportSymbol('proto.UpdateInvoiceForCompanyReq', null, global);
|
|
50
53
|
goog.exportSymbol('proto.UpdateInvoiceReq', null, global);
|
|
51
54
|
goog.exportSymbol('proto.UpdateInvoiceRes', null, global);
|
|
@@ -176,6 +179,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
176
179
|
*/
|
|
177
180
|
proto.UpdateInvoiceStatusReq.displayName = 'proto.UpdateInvoiceStatusReq';
|
|
178
181
|
}
|
|
182
|
+
/**
|
|
183
|
+
* Generated by JsPbCodeGenerator.
|
|
184
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
185
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
186
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
187
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
188
|
+
* valid.
|
|
189
|
+
* @extends {jspb.Message}
|
|
190
|
+
* @constructor
|
|
191
|
+
*/
|
|
192
|
+
proto.UpdateInvoiceFileReq = function(opt_data) {
|
|
193
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.UpdateInvoiceFileReq.repeatedFields_, null);
|
|
194
|
+
};
|
|
195
|
+
goog.inherits(proto.UpdateInvoiceFileReq, jspb.Message);
|
|
196
|
+
if (goog.DEBUG && !COMPILED) {
|
|
197
|
+
/**
|
|
198
|
+
* @public
|
|
199
|
+
* @override
|
|
200
|
+
*/
|
|
201
|
+
proto.UpdateInvoiceFileReq.displayName = 'proto.UpdateInvoiceFileReq';
|
|
202
|
+
}
|
|
179
203
|
/**
|
|
180
204
|
* Generated by JsPbCodeGenerator.
|
|
181
205
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -197,6 +221,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
197
221
|
*/
|
|
198
222
|
proto.UpdateInvoiceRes.displayName = 'proto.UpdateInvoiceRes';
|
|
199
223
|
}
|
|
224
|
+
/**
|
|
225
|
+
* Generated by JsPbCodeGenerator.
|
|
226
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
227
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
228
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
229
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
230
|
+
* valid.
|
|
231
|
+
* @extends {jspb.Message}
|
|
232
|
+
* @constructor
|
|
233
|
+
*/
|
|
234
|
+
proto.DeleteInvoiceRequest = function(opt_data) {
|
|
235
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteInvoiceRequest.repeatedFields_, null);
|
|
236
|
+
};
|
|
237
|
+
goog.inherits(proto.DeleteInvoiceRequest, jspb.Message);
|
|
238
|
+
if (goog.DEBUG && !COMPILED) {
|
|
239
|
+
/**
|
|
240
|
+
* @public
|
|
241
|
+
* @override
|
|
242
|
+
*/
|
|
243
|
+
proto.DeleteInvoiceRequest.displayName = 'proto.DeleteInvoiceRequest';
|
|
244
|
+
}
|
|
200
245
|
/**
|
|
201
246
|
* Generated by JsPbCodeGenerator.
|
|
202
247
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -407,6 +452,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
407
452
|
*/
|
|
408
453
|
proto.GetListInvoiceRes.displayName = 'proto.GetListInvoiceRes';
|
|
409
454
|
}
|
|
455
|
+
/**
|
|
456
|
+
* Generated by JsPbCodeGenerator.
|
|
457
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
458
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
459
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
460
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
461
|
+
* valid.
|
|
462
|
+
* @extends {jspb.Message}
|
|
463
|
+
* @constructor
|
|
464
|
+
*/
|
|
465
|
+
proto.DeleteInvoiceResponse = function(opt_data) {
|
|
466
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteInvoiceResponse.repeatedFields_, null);
|
|
467
|
+
};
|
|
468
|
+
goog.inherits(proto.DeleteInvoiceResponse, jspb.Message);
|
|
469
|
+
if (goog.DEBUG && !COMPILED) {
|
|
470
|
+
/**
|
|
471
|
+
* @public
|
|
472
|
+
* @override
|
|
473
|
+
*/
|
|
474
|
+
proto.DeleteInvoiceResponse.displayName = 'proto.DeleteInvoiceResponse';
|
|
475
|
+
}
|
|
410
476
|
|
|
411
477
|
/**
|
|
412
478
|
* List of repeated fields within this message type.
|
|
@@ -1978,6 +2044,249 @@ proto.UpdateInvoiceStatusReq.prototype.setReferencesId = function(value) {
|
|
|
1978
2044
|
|
|
1979
2045
|
|
|
1980
2046
|
|
|
2047
|
+
/**
|
|
2048
|
+
* List of repeated fields within this message type.
|
|
2049
|
+
* @private {!Array<number>}
|
|
2050
|
+
* @const
|
|
2051
|
+
*/
|
|
2052
|
+
proto.UpdateInvoiceFileReq.repeatedFields_ = [2,3];
|
|
2053
|
+
|
|
2054
|
+
|
|
2055
|
+
|
|
2056
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2057
|
+
/**
|
|
2058
|
+
* Creates an object representation of this proto.
|
|
2059
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2060
|
+
* Optional fields that are not set will be set to undefined.
|
|
2061
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2062
|
+
* For the list of reserved names please see:
|
|
2063
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2064
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2065
|
+
* JSPB instance for transitional soy proto support:
|
|
2066
|
+
* http://goto/soy-param-migration
|
|
2067
|
+
* @return {!Object}
|
|
2068
|
+
*/
|
|
2069
|
+
proto.UpdateInvoiceFileReq.prototype.toObject = function(opt_includeInstance) {
|
|
2070
|
+
return proto.UpdateInvoiceFileReq.toObject(opt_includeInstance, this);
|
|
2071
|
+
};
|
|
2072
|
+
|
|
2073
|
+
|
|
2074
|
+
/**
|
|
2075
|
+
* Static version of the {@see toObject} method.
|
|
2076
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2077
|
+
* the JSPB instance for transitional soy proto support:
|
|
2078
|
+
* http://goto/soy-param-migration
|
|
2079
|
+
* @param {!proto.UpdateInvoiceFileReq} msg The msg instance to transform.
|
|
2080
|
+
* @return {!Object}
|
|
2081
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2082
|
+
*/
|
|
2083
|
+
proto.UpdateInvoiceFileReq.toObject = function(includeInstance, msg) {
|
|
2084
|
+
var f, obj = {
|
|
2085
|
+
referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2086
|
+
filesList: jspb.Message.toObjectList(msg.getFilesList(),
|
|
2087
|
+
prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
|
|
2088
|
+
itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
|
|
2089
|
+
prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction.toObject, includeInstance)
|
|
2090
|
+
};
|
|
2091
|
+
|
|
2092
|
+
if (includeInstance) {
|
|
2093
|
+
obj.$jspbMessageInstance = msg;
|
|
2094
|
+
}
|
|
2095
|
+
return obj;
|
|
2096
|
+
};
|
|
2097
|
+
}
|
|
2098
|
+
|
|
2099
|
+
|
|
2100
|
+
/**
|
|
2101
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2102
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2103
|
+
* @return {!proto.UpdateInvoiceFileReq}
|
|
2104
|
+
*/
|
|
2105
|
+
proto.UpdateInvoiceFileReq.deserializeBinary = function(bytes) {
|
|
2106
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2107
|
+
var msg = new proto.UpdateInvoiceFileReq;
|
|
2108
|
+
return proto.UpdateInvoiceFileReq.deserializeBinaryFromReader(msg, reader);
|
|
2109
|
+
};
|
|
2110
|
+
|
|
2111
|
+
|
|
2112
|
+
/**
|
|
2113
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2114
|
+
* given reader into the given message object.
|
|
2115
|
+
* @param {!proto.UpdateInvoiceFileReq} msg The message object to deserialize into.
|
|
2116
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2117
|
+
* @return {!proto.UpdateInvoiceFileReq}
|
|
2118
|
+
*/
|
|
2119
|
+
proto.UpdateInvoiceFileReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
2120
|
+
while (reader.nextField()) {
|
|
2121
|
+
if (reader.isEndGroup()) {
|
|
2122
|
+
break;
|
|
2123
|
+
}
|
|
2124
|
+
var field = reader.getFieldNumber();
|
|
2125
|
+
switch (field) {
|
|
2126
|
+
case 1:
|
|
2127
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
2128
|
+
msg.setReferencesId(value);
|
|
2129
|
+
break;
|
|
2130
|
+
case 2:
|
|
2131
|
+
var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
|
|
2132
|
+
reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
|
|
2133
|
+
msg.addFiles(value);
|
|
2134
|
+
break;
|
|
2135
|
+
case 3:
|
|
2136
|
+
var value = new prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction;
|
|
2137
|
+
reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction.deserializeBinaryFromReader);
|
|
2138
|
+
msg.addItemTransactions(value);
|
|
2139
|
+
break;
|
|
2140
|
+
default:
|
|
2141
|
+
reader.skipField();
|
|
2142
|
+
break;
|
|
2143
|
+
}
|
|
2144
|
+
}
|
|
2145
|
+
return msg;
|
|
2146
|
+
};
|
|
2147
|
+
|
|
2148
|
+
|
|
2149
|
+
/**
|
|
2150
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2151
|
+
* @return {!Uint8Array}
|
|
2152
|
+
*/
|
|
2153
|
+
proto.UpdateInvoiceFileReq.prototype.serializeBinary = function() {
|
|
2154
|
+
var writer = new jspb.BinaryWriter();
|
|
2155
|
+
proto.UpdateInvoiceFileReq.serializeBinaryToWriter(this, writer);
|
|
2156
|
+
return writer.getResultBuffer();
|
|
2157
|
+
};
|
|
2158
|
+
|
|
2159
|
+
|
|
2160
|
+
/**
|
|
2161
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2162
|
+
* format), writing to the given BinaryWriter.
|
|
2163
|
+
* @param {!proto.UpdateInvoiceFileReq} message
|
|
2164
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2165
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2166
|
+
*/
|
|
2167
|
+
proto.UpdateInvoiceFileReq.serializeBinaryToWriter = function(message, writer) {
|
|
2168
|
+
var f = undefined;
|
|
2169
|
+
f = message.getReferencesId();
|
|
2170
|
+
if (f.length > 0) {
|
|
2171
|
+
writer.writeString(
|
|
2172
|
+
1,
|
|
2173
|
+
f
|
|
2174
|
+
);
|
|
2175
|
+
}
|
|
2176
|
+
f = message.getFilesList();
|
|
2177
|
+
if (f.length > 0) {
|
|
2178
|
+
writer.writeRepeatedMessage(
|
|
2179
|
+
2,
|
|
2180
|
+
f,
|
|
2181
|
+
prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
|
|
2182
|
+
);
|
|
2183
|
+
}
|
|
2184
|
+
f = message.getItemTransactionsList();
|
|
2185
|
+
if (f.length > 0) {
|
|
2186
|
+
writer.writeRepeatedMessage(
|
|
2187
|
+
3,
|
|
2188
|
+
f,
|
|
2189
|
+
prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction.serializeBinaryToWriter
|
|
2190
|
+
);
|
|
2191
|
+
}
|
|
2192
|
+
};
|
|
2193
|
+
|
|
2194
|
+
|
|
2195
|
+
/**
|
|
2196
|
+
* optional string references_id = 1;
|
|
2197
|
+
* @return {string}
|
|
2198
|
+
*/
|
|
2199
|
+
proto.UpdateInvoiceFileReq.prototype.getReferencesId = function() {
|
|
2200
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2201
|
+
};
|
|
2202
|
+
|
|
2203
|
+
|
|
2204
|
+
/**
|
|
2205
|
+
* @param {string} value
|
|
2206
|
+
* @return {!proto.UpdateInvoiceFileReq} returns this
|
|
2207
|
+
*/
|
|
2208
|
+
proto.UpdateInvoiceFileReq.prototype.setReferencesId = function(value) {
|
|
2209
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2210
|
+
};
|
|
2211
|
+
|
|
2212
|
+
|
|
2213
|
+
/**
|
|
2214
|
+
* repeated FileUploadReferencesReq files = 2;
|
|
2215
|
+
* @return {!Array<!proto.FileUploadReferencesReq>}
|
|
2216
|
+
*/
|
|
2217
|
+
proto.UpdateInvoiceFileReq.prototype.getFilesList = function() {
|
|
2218
|
+
return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
|
|
2219
|
+
jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 2));
|
|
2220
|
+
};
|
|
2221
|
+
|
|
2222
|
+
|
|
2223
|
+
/**
|
|
2224
|
+
* @param {!Array<!proto.FileUploadReferencesReq>} value
|
|
2225
|
+
* @return {!proto.UpdateInvoiceFileReq} returns this
|
|
2226
|
+
*/
|
|
2227
|
+
proto.UpdateInvoiceFileReq.prototype.setFilesList = function(value) {
|
|
2228
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
2229
|
+
};
|
|
2230
|
+
|
|
2231
|
+
|
|
2232
|
+
/**
|
|
2233
|
+
* @param {!proto.FileUploadReferencesReq=} opt_value
|
|
2234
|
+
* @param {number=} opt_index
|
|
2235
|
+
* @return {!proto.FileUploadReferencesReq}
|
|
2236
|
+
*/
|
|
2237
|
+
proto.UpdateInvoiceFileReq.prototype.addFiles = function(opt_value, opt_index) {
|
|
2238
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.FileUploadReferencesReq, opt_index);
|
|
2239
|
+
};
|
|
2240
|
+
|
|
2241
|
+
|
|
2242
|
+
/**
|
|
2243
|
+
* Clears the list making it empty but non-null.
|
|
2244
|
+
* @return {!proto.UpdateInvoiceFileReq} returns this
|
|
2245
|
+
*/
|
|
2246
|
+
proto.UpdateInvoiceFileReq.prototype.clearFilesList = function() {
|
|
2247
|
+
return this.setFilesList([]);
|
|
2248
|
+
};
|
|
2249
|
+
|
|
2250
|
+
|
|
2251
|
+
/**
|
|
2252
|
+
* repeated BaseItemTransaction item_transactions = 3;
|
|
2253
|
+
* @return {!Array<!proto.BaseItemTransaction>}
|
|
2254
|
+
*/
|
|
2255
|
+
proto.UpdateInvoiceFileReq.prototype.getItemTransactionsList = function() {
|
|
2256
|
+
return /** @type{!Array<!proto.BaseItemTransaction>} */ (
|
|
2257
|
+
jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction, 3));
|
|
2258
|
+
};
|
|
2259
|
+
|
|
2260
|
+
|
|
2261
|
+
/**
|
|
2262
|
+
* @param {!Array<!proto.BaseItemTransaction>} value
|
|
2263
|
+
* @return {!proto.UpdateInvoiceFileReq} returns this
|
|
2264
|
+
*/
|
|
2265
|
+
proto.UpdateInvoiceFileReq.prototype.setItemTransactionsList = function(value) {
|
|
2266
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
2267
|
+
};
|
|
2268
|
+
|
|
2269
|
+
|
|
2270
|
+
/**
|
|
2271
|
+
* @param {!proto.BaseItemTransaction=} opt_value
|
|
2272
|
+
* @param {number=} opt_index
|
|
2273
|
+
* @return {!proto.BaseItemTransaction}
|
|
2274
|
+
*/
|
|
2275
|
+
proto.UpdateInvoiceFileReq.prototype.addItemTransactions = function(opt_value, opt_index) {
|
|
2276
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.BaseItemTransaction, opt_index);
|
|
2277
|
+
};
|
|
2278
|
+
|
|
2279
|
+
|
|
2280
|
+
/**
|
|
2281
|
+
* Clears the list making it empty but non-null.
|
|
2282
|
+
* @return {!proto.UpdateInvoiceFileReq} returns this
|
|
2283
|
+
*/
|
|
2284
|
+
proto.UpdateInvoiceFileReq.prototype.clearItemTransactionsList = function() {
|
|
2285
|
+
return this.setItemTransactionsList([]);
|
|
2286
|
+
};
|
|
2287
|
+
|
|
2288
|
+
|
|
2289
|
+
|
|
1981
2290
|
|
|
1982
2291
|
|
|
1983
2292
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -2153,29 +2462,185 @@ proto.UpdateInvoiceRes.prototype.getMeta = function() {
|
|
|
2153
2462
|
|
|
2154
2463
|
|
|
2155
2464
|
/**
|
|
2156
|
-
* @param {?proto.prisca.v1.global.meta.Meta|undefined} value
|
|
2157
|
-
* @return {!proto.UpdateInvoiceRes} returns this
|
|
2158
|
-
*/
|
|
2159
|
-
proto.UpdateInvoiceRes.prototype.setMeta = function(value) {
|
|
2160
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
2465
|
+
* @param {?proto.prisca.v1.global.meta.Meta|undefined} value
|
|
2466
|
+
* @return {!proto.UpdateInvoiceRes} returns this
|
|
2467
|
+
*/
|
|
2468
|
+
proto.UpdateInvoiceRes.prototype.setMeta = function(value) {
|
|
2469
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
2470
|
+
};
|
|
2471
|
+
|
|
2472
|
+
|
|
2473
|
+
/**
|
|
2474
|
+
* Clears the message field making it undefined.
|
|
2475
|
+
* @return {!proto.UpdateInvoiceRes} returns this
|
|
2476
|
+
*/
|
|
2477
|
+
proto.UpdateInvoiceRes.prototype.clearMeta = function() {
|
|
2478
|
+
return this.setMeta(undefined);
|
|
2479
|
+
};
|
|
2480
|
+
|
|
2481
|
+
|
|
2482
|
+
/**
|
|
2483
|
+
* Returns whether this field is set.
|
|
2484
|
+
* @return {boolean}
|
|
2485
|
+
*/
|
|
2486
|
+
proto.UpdateInvoiceRes.prototype.hasMeta = function() {
|
|
2487
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2488
|
+
};
|
|
2489
|
+
|
|
2490
|
+
|
|
2491
|
+
|
|
2492
|
+
/**
|
|
2493
|
+
* List of repeated fields within this message type.
|
|
2494
|
+
* @private {!Array<number>}
|
|
2495
|
+
* @const
|
|
2496
|
+
*/
|
|
2497
|
+
proto.DeleteInvoiceRequest.repeatedFields_ = [1];
|
|
2498
|
+
|
|
2499
|
+
|
|
2500
|
+
|
|
2501
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2502
|
+
/**
|
|
2503
|
+
* Creates an object representation of this proto.
|
|
2504
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2505
|
+
* Optional fields that are not set will be set to undefined.
|
|
2506
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2507
|
+
* For the list of reserved names please see:
|
|
2508
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2509
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2510
|
+
* JSPB instance for transitional soy proto support:
|
|
2511
|
+
* http://goto/soy-param-migration
|
|
2512
|
+
* @return {!Object}
|
|
2513
|
+
*/
|
|
2514
|
+
proto.DeleteInvoiceRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2515
|
+
return proto.DeleteInvoiceRequest.toObject(opt_includeInstance, this);
|
|
2516
|
+
};
|
|
2517
|
+
|
|
2518
|
+
|
|
2519
|
+
/**
|
|
2520
|
+
* Static version of the {@see toObject} method.
|
|
2521
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2522
|
+
* the JSPB instance for transitional soy proto support:
|
|
2523
|
+
* http://goto/soy-param-migration
|
|
2524
|
+
* @param {!proto.DeleteInvoiceRequest} msg The msg instance to transform.
|
|
2525
|
+
* @return {!Object}
|
|
2526
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2527
|
+
*/
|
|
2528
|
+
proto.DeleteInvoiceRequest.toObject = function(includeInstance, msg) {
|
|
2529
|
+
var f, obj = {
|
|
2530
|
+
referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
|
2531
|
+
};
|
|
2532
|
+
|
|
2533
|
+
if (includeInstance) {
|
|
2534
|
+
obj.$jspbMessageInstance = msg;
|
|
2535
|
+
}
|
|
2536
|
+
return obj;
|
|
2537
|
+
};
|
|
2538
|
+
}
|
|
2539
|
+
|
|
2540
|
+
|
|
2541
|
+
/**
|
|
2542
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2543
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2544
|
+
* @return {!proto.DeleteInvoiceRequest}
|
|
2545
|
+
*/
|
|
2546
|
+
proto.DeleteInvoiceRequest.deserializeBinary = function(bytes) {
|
|
2547
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2548
|
+
var msg = new proto.DeleteInvoiceRequest;
|
|
2549
|
+
return proto.DeleteInvoiceRequest.deserializeBinaryFromReader(msg, reader);
|
|
2550
|
+
};
|
|
2551
|
+
|
|
2552
|
+
|
|
2553
|
+
/**
|
|
2554
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2555
|
+
* given reader into the given message object.
|
|
2556
|
+
* @param {!proto.DeleteInvoiceRequest} msg The message object to deserialize into.
|
|
2557
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2558
|
+
* @return {!proto.DeleteInvoiceRequest}
|
|
2559
|
+
*/
|
|
2560
|
+
proto.DeleteInvoiceRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2561
|
+
while (reader.nextField()) {
|
|
2562
|
+
if (reader.isEndGroup()) {
|
|
2563
|
+
break;
|
|
2564
|
+
}
|
|
2565
|
+
var field = reader.getFieldNumber();
|
|
2566
|
+
switch (field) {
|
|
2567
|
+
case 1:
|
|
2568
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
2569
|
+
msg.addReferenceIds(value);
|
|
2570
|
+
break;
|
|
2571
|
+
default:
|
|
2572
|
+
reader.skipField();
|
|
2573
|
+
break;
|
|
2574
|
+
}
|
|
2575
|
+
}
|
|
2576
|
+
return msg;
|
|
2577
|
+
};
|
|
2578
|
+
|
|
2579
|
+
|
|
2580
|
+
/**
|
|
2581
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2582
|
+
* @return {!Uint8Array}
|
|
2583
|
+
*/
|
|
2584
|
+
proto.DeleteInvoiceRequest.prototype.serializeBinary = function() {
|
|
2585
|
+
var writer = new jspb.BinaryWriter();
|
|
2586
|
+
proto.DeleteInvoiceRequest.serializeBinaryToWriter(this, writer);
|
|
2587
|
+
return writer.getResultBuffer();
|
|
2588
|
+
};
|
|
2589
|
+
|
|
2590
|
+
|
|
2591
|
+
/**
|
|
2592
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2593
|
+
* format), writing to the given BinaryWriter.
|
|
2594
|
+
* @param {!proto.DeleteInvoiceRequest} message
|
|
2595
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2596
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2597
|
+
*/
|
|
2598
|
+
proto.DeleteInvoiceRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2599
|
+
var f = undefined;
|
|
2600
|
+
f = message.getReferenceIdsList();
|
|
2601
|
+
if (f.length > 0) {
|
|
2602
|
+
writer.writeRepeatedString(
|
|
2603
|
+
1,
|
|
2604
|
+
f
|
|
2605
|
+
);
|
|
2606
|
+
}
|
|
2607
|
+
};
|
|
2608
|
+
|
|
2609
|
+
|
|
2610
|
+
/**
|
|
2611
|
+
* repeated string reference_ids = 1;
|
|
2612
|
+
* @return {!Array<string>}
|
|
2613
|
+
*/
|
|
2614
|
+
proto.DeleteInvoiceRequest.prototype.getReferenceIdsList = function() {
|
|
2615
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
2616
|
+
};
|
|
2617
|
+
|
|
2618
|
+
|
|
2619
|
+
/**
|
|
2620
|
+
* @param {!Array<string>} value
|
|
2621
|
+
* @return {!proto.DeleteInvoiceRequest} returns this
|
|
2622
|
+
*/
|
|
2623
|
+
proto.DeleteInvoiceRequest.prototype.setReferenceIdsList = function(value) {
|
|
2624
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
2161
2625
|
};
|
|
2162
2626
|
|
|
2163
2627
|
|
|
2164
2628
|
/**
|
|
2165
|
-
*
|
|
2166
|
-
* @
|
|
2629
|
+
* @param {string} value
|
|
2630
|
+
* @param {number=} opt_index
|
|
2631
|
+
* @return {!proto.DeleteInvoiceRequest} returns this
|
|
2167
2632
|
*/
|
|
2168
|
-
proto.
|
|
2169
|
-
return
|
|
2633
|
+
proto.DeleteInvoiceRequest.prototype.addReferenceIds = function(value, opt_index) {
|
|
2634
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
2170
2635
|
};
|
|
2171
2636
|
|
|
2172
2637
|
|
|
2173
2638
|
/**
|
|
2174
|
-
*
|
|
2175
|
-
* @return {
|
|
2639
|
+
* Clears the list making it empty but non-null.
|
|
2640
|
+
* @return {!proto.DeleteInvoiceRequest} returns this
|
|
2176
2641
|
*/
|
|
2177
|
-
proto.
|
|
2178
|
-
return
|
|
2642
|
+
proto.DeleteInvoiceRequest.prototype.clearReferenceIdsList = function() {
|
|
2643
|
+
return this.setReferenceIdsList([]);
|
|
2179
2644
|
};
|
|
2180
2645
|
|
|
2181
2646
|
|
|
@@ -2934,7 +3399,8 @@ includeVat: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
|
|
|
2934
3399
|
incomeTax: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0),
|
|
2935
3400
|
quantity: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
2936
3401
|
priceConditionList: jspb.Message.toObjectList(msg.getPriceConditionList(),
|
|
2937
|
-
prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition.toObject, includeInstance)
|
|
3402
|
+
prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition.toObject, includeInstance),
|
|
3403
|
+
priceBeforeTax: jspb.Message.getFieldWithDefault(msg, 13, "")
|
|
2938
3404
|
};
|
|
2939
3405
|
|
|
2940
3406
|
if (includeInstance) {
|
|
@@ -3020,6 +3486,10 @@ proto.ItemInvoiceReference.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
3020
3486
|
reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition.deserializeBinaryFromReader);
|
|
3021
3487
|
msg.addPriceCondition(value);
|
|
3022
3488
|
break;
|
|
3489
|
+
case 13:
|
|
3490
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
3491
|
+
msg.setPriceBeforeTax(value);
|
|
3492
|
+
break;
|
|
3023
3493
|
default:
|
|
3024
3494
|
reader.skipField();
|
|
3025
3495
|
break;
|
|
@@ -3134,6 +3604,13 @@ proto.ItemInvoiceReference.serializeBinaryToWriter = function(message, writer) {
|
|
|
3134
3604
|
prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition.serializeBinaryToWriter
|
|
3135
3605
|
);
|
|
3136
3606
|
}
|
|
3607
|
+
f = message.getPriceBeforeTax();
|
|
3608
|
+
if (f.length > 0) {
|
|
3609
|
+
writer.writeString(
|
|
3610
|
+
13,
|
|
3611
|
+
f
|
|
3612
|
+
);
|
|
3613
|
+
}
|
|
3137
3614
|
};
|
|
3138
3615
|
|
|
3139
3616
|
|
|
@@ -3373,6 +3850,24 @@ proto.ItemInvoiceReference.prototype.clearPriceConditionList = function() {
|
|
|
3373
3850
|
};
|
|
3374
3851
|
|
|
3375
3852
|
|
|
3853
|
+
/**
|
|
3854
|
+
* optional string price_before_tax = 13;
|
|
3855
|
+
* @return {string}
|
|
3856
|
+
*/
|
|
3857
|
+
proto.ItemInvoiceReference.prototype.getPriceBeforeTax = function() {
|
|
3858
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
|
|
3859
|
+
};
|
|
3860
|
+
|
|
3861
|
+
|
|
3862
|
+
/**
|
|
3863
|
+
* @param {string} value
|
|
3864
|
+
* @return {!proto.ItemInvoiceReference} returns this
|
|
3865
|
+
*/
|
|
3866
|
+
proto.ItemInvoiceReference.prototype.setPriceBeforeTax = function(value) {
|
|
3867
|
+
return jspb.Message.setProto3StringField(this, 13, value);
|
|
3868
|
+
};
|
|
3869
|
+
|
|
3870
|
+
|
|
3376
3871
|
|
|
3377
3872
|
/**
|
|
3378
3873
|
* List of repeated fields within this message type.
|
|
@@ -3420,7 +3915,8 @@ detailDescription: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
|
3420
3915
|
quantity: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
3421
3916
|
unitOfMeasure: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
3422
3917
|
priceConditionList: jspb.Message.toObjectList(msg.getPriceConditionList(),
|
|
3423
|
-
prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition.toObject, includeInstance)
|
|
3918
|
+
prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition.toObject, includeInstance),
|
|
3919
|
+
priceBeforeTax: jspb.Message.getFieldWithDefault(msg, 9, "")
|
|
3424
3920
|
};
|
|
3425
3921
|
|
|
3426
3922
|
if (includeInstance) {
|
|
@@ -3490,6 +3986,10 @@ proto.ItemPurchaseOrder.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
3490
3986
|
reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition.deserializeBinaryFromReader);
|
|
3491
3987
|
msg.addPriceCondition(value);
|
|
3492
3988
|
break;
|
|
3989
|
+
case 9:
|
|
3990
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
3991
|
+
msg.setPriceBeforeTax(value);
|
|
3992
|
+
break;
|
|
3493
3993
|
default:
|
|
3494
3994
|
reader.skipField();
|
|
3495
3995
|
break;
|
|
@@ -3576,6 +4076,13 @@ proto.ItemPurchaseOrder.serializeBinaryToWriter = function(message, writer) {
|
|
|
3576
4076
|
prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition.serializeBinaryToWriter
|
|
3577
4077
|
);
|
|
3578
4078
|
}
|
|
4079
|
+
f = message.getPriceBeforeTax();
|
|
4080
|
+
if (f.length > 0) {
|
|
4081
|
+
writer.writeString(
|
|
4082
|
+
9,
|
|
4083
|
+
f
|
|
4084
|
+
);
|
|
4085
|
+
}
|
|
3579
4086
|
};
|
|
3580
4087
|
|
|
3581
4088
|
|
|
@@ -3743,6 +4250,24 @@ proto.ItemPurchaseOrder.prototype.clearPriceConditionList = function() {
|
|
|
3743
4250
|
};
|
|
3744
4251
|
|
|
3745
4252
|
|
|
4253
|
+
/**
|
|
4254
|
+
* optional string price_before_tax = 9;
|
|
4255
|
+
* @return {string}
|
|
4256
|
+
*/
|
|
4257
|
+
proto.ItemPurchaseOrder.prototype.getPriceBeforeTax = function() {
|
|
4258
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
4259
|
+
};
|
|
4260
|
+
|
|
4261
|
+
|
|
4262
|
+
/**
|
|
4263
|
+
* @param {string} value
|
|
4264
|
+
* @return {!proto.ItemPurchaseOrder} returns this
|
|
4265
|
+
*/
|
|
4266
|
+
proto.ItemPurchaseOrder.prototype.setPriceBeforeTax = function(value) {
|
|
4267
|
+
return jspb.Message.setProto3StringField(this, 9, value);
|
|
4268
|
+
};
|
|
4269
|
+
|
|
4270
|
+
|
|
3746
4271
|
|
|
3747
4272
|
|
|
3748
4273
|
|
|
@@ -3783,7 +4308,8 @@ description: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
|
3783
4308
|
detailDescription: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
3784
4309
|
quantity: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
3785
4310
|
purchaseOrderQuantity: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
3786
|
-
unitOfMeasure: jspb.Message.getFieldWithDefault(msg, 9, "")
|
|
4311
|
+
unitOfMeasure: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
4312
|
+
priceBeforeTax: jspb.Message.getFieldWithDefault(msg, 10, "")
|
|
3787
4313
|
};
|
|
3788
4314
|
|
|
3789
4315
|
if (includeInstance) {
|
|
@@ -3856,6 +4382,10 @@ proto.ItemGoodReceipt.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
3856
4382
|
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
3857
4383
|
msg.setUnitOfMeasure(value);
|
|
3858
4384
|
break;
|
|
4385
|
+
case 10:
|
|
4386
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
4387
|
+
msg.setPriceBeforeTax(value);
|
|
4388
|
+
break;
|
|
3859
4389
|
default:
|
|
3860
4390
|
reader.skipField();
|
|
3861
4391
|
break;
|
|
@@ -3948,6 +4478,13 @@ proto.ItemGoodReceipt.serializeBinaryToWriter = function(message, writer) {
|
|
|
3948
4478
|
f
|
|
3949
4479
|
);
|
|
3950
4480
|
}
|
|
4481
|
+
f = message.getPriceBeforeTax();
|
|
4482
|
+
if (f.length > 0) {
|
|
4483
|
+
writer.writeString(
|
|
4484
|
+
10,
|
|
4485
|
+
f
|
|
4486
|
+
);
|
|
4487
|
+
}
|
|
3951
4488
|
};
|
|
3952
4489
|
|
|
3953
4490
|
|
|
@@ -4113,6 +4650,24 @@ proto.ItemGoodReceipt.prototype.setUnitOfMeasure = function(value) {
|
|
|
4113
4650
|
};
|
|
4114
4651
|
|
|
4115
4652
|
|
|
4653
|
+
/**
|
|
4654
|
+
* optional string price_before_tax = 10;
|
|
4655
|
+
* @return {string}
|
|
4656
|
+
*/
|
|
4657
|
+
proto.ItemGoodReceipt.prototype.getPriceBeforeTax = function() {
|
|
4658
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
4659
|
+
};
|
|
4660
|
+
|
|
4661
|
+
|
|
4662
|
+
/**
|
|
4663
|
+
* @param {string} value
|
|
4664
|
+
* @return {!proto.ItemGoodReceipt} returns this
|
|
4665
|
+
*/
|
|
4666
|
+
proto.ItemGoodReceipt.prototype.setPriceBeforeTax = function(value) {
|
|
4667
|
+
return jspb.Message.setProto3StringField(this, 10, value);
|
|
4668
|
+
};
|
|
4669
|
+
|
|
4670
|
+
|
|
4116
4671
|
|
|
4117
4672
|
/**
|
|
4118
4673
|
* List of repeated fields within this message type.
|
|
@@ -4899,4 +5454,211 @@ proto.GetListInvoiceRes.prototype.hasMeta = function() {
|
|
|
4899
5454
|
};
|
|
4900
5455
|
|
|
4901
5456
|
|
|
5457
|
+
|
|
5458
|
+
/**
|
|
5459
|
+
* List of repeated fields within this message type.
|
|
5460
|
+
* @private {!Array<number>}
|
|
5461
|
+
* @const
|
|
5462
|
+
*/
|
|
5463
|
+
proto.DeleteInvoiceResponse.repeatedFields_ = [1];
|
|
5464
|
+
|
|
5465
|
+
|
|
5466
|
+
|
|
5467
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5468
|
+
/**
|
|
5469
|
+
* Creates an object representation of this proto.
|
|
5470
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5471
|
+
* Optional fields that are not set will be set to undefined.
|
|
5472
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5473
|
+
* For the list of reserved names please see:
|
|
5474
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5475
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5476
|
+
* JSPB instance for transitional soy proto support:
|
|
5477
|
+
* http://goto/soy-param-migration
|
|
5478
|
+
* @return {!Object}
|
|
5479
|
+
*/
|
|
5480
|
+
proto.DeleteInvoiceResponse.prototype.toObject = function(opt_includeInstance) {
|
|
5481
|
+
return proto.DeleteInvoiceResponse.toObject(opt_includeInstance, this);
|
|
5482
|
+
};
|
|
5483
|
+
|
|
5484
|
+
|
|
5485
|
+
/**
|
|
5486
|
+
* Static version of the {@see toObject} method.
|
|
5487
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5488
|
+
* the JSPB instance for transitional soy proto support:
|
|
5489
|
+
* http://goto/soy-param-migration
|
|
5490
|
+
* @param {!proto.DeleteInvoiceResponse} msg The msg instance to transform.
|
|
5491
|
+
* @return {!Object}
|
|
5492
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5493
|
+
*/
|
|
5494
|
+
proto.DeleteInvoiceResponse.toObject = function(includeInstance, msg) {
|
|
5495
|
+
var f, obj = {
|
|
5496
|
+
referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
5497
|
+
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
5498
|
+
};
|
|
5499
|
+
|
|
5500
|
+
if (includeInstance) {
|
|
5501
|
+
obj.$jspbMessageInstance = msg;
|
|
5502
|
+
}
|
|
5503
|
+
return obj;
|
|
5504
|
+
};
|
|
5505
|
+
}
|
|
5506
|
+
|
|
5507
|
+
|
|
5508
|
+
/**
|
|
5509
|
+
* Deserializes binary data (in protobuf wire format).
|
|
5510
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5511
|
+
* @return {!proto.DeleteInvoiceResponse}
|
|
5512
|
+
*/
|
|
5513
|
+
proto.DeleteInvoiceResponse.deserializeBinary = function(bytes) {
|
|
5514
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5515
|
+
var msg = new proto.DeleteInvoiceResponse;
|
|
5516
|
+
return proto.DeleteInvoiceResponse.deserializeBinaryFromReader(msg, reader);
|
|
5517
|
+
};
|
|
5518
|
+
|
|
5519
|
+
|
|
5520
|
+
/**
|
|
5521
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
5522
|
+
* given reader into the given message object.
|
|
5523
|
+
* @param {!proto.DeleteInvoiceResponse} msg The message object to deserialize into.
|
|
5524
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5525
|
+
* @return {!proto.DeleteInvoiceResponse}
|
|
5526
|
+
*/
|
|
5527
|
+
proto.DeleteInvoiceResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
5528
|
+
while (reader.nextField()) {
|
|
5529
|
+
if (reader.isEndGroup()) {
|
|
5530
|
+
break;
|
|
5531
|
+
}
|
|
5532
|
+
var field = reader.getFieldNumber();
|
|
5533
|
+
switch (field) {
|
|
5534
|
+
case 1:
|
|
5535
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
5536
|
+
msg.addReferenceIds(value);
|
|
5537
|
+
break;
|
|
5538
|
+
case 2:
|
|
5539
|
+
var value = new prisca_v1_global_meta_meta_pb.Meta;
|
|
5540
|
+
reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
|
|
5541
|
+
msg.setMeta(value);
|
|
5542
|
+
break;
|
|
5543
|
+
default:
|
|
5544
|
+
reader.skipField();
|
|
5545
|
+
break;
|
|
5546
|
+
}
|
|
5547
|
+
}
|
|
5548
|
+
return msg;
|
|
5549
|
+
};
|
|
5550
|
+
|
|
5551
|
+
|
|
5552
|
+
/**
|
|
5553
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
5554
|
+
* @return {!Uint8Array}
|
|
5555
|
+
*/
|
|
5556
|
+
proto.DeleteInvoiceResponse.prototype.serializeBinary = function() {
|
|
5557
|
+
var writer = new jspb.BinaryWriter();
|
|
5558
|
+
proto.DeleteInvoiceResponse.serializeBinaryToWriter(this, writer);
|
|
5559
|
+
return writer.getResultBuffer();
|
|
5560
|
+
};
|
|
5561
|
+
|
|
5562
|
+
|
|
5563
|
+
/**
|
|
5564
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
5565
|
+
* format), writing to the given BinaryWriter.
|
|
5566
|
+
* @param {!proto.DeleteInvoiceResponse} message
|
|
5567
|
+
* @param {!jspb.BinaryWriter} writer
|
|
5568
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5569
|
+
*/
|
|
5570
|
+
proto.DeleteInvoiceResponse.serializeBinaryToWriter = function(message, writer) {
|
|
5571
|
+
var f = undefined;
|
|
5572
|
+
f = message.getReferenceIdsList();
|
|
5573
|
+
if (f.length > 0) {
|
|
5574
|
+
writer.writeRepeatedString(
|
|
5575
|
+
1,
|
|
5576
|
+
f
|
|
5577
|
+
);
|
|
5578
|
+
}
|
|
5579
|
+
f = message.getMeta();
|
|
5580
|
+
if (f != null) {
|
|
5581
|
+
writer.writeMessage(
|
|
5582
|
+
2,
|
|
5583
|
+
f,
|
|
5584
|
+
prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
|
|
5585
|
+
);
|
|
5586
|
+
}
|
|
5587
|
+
};
|
|
5588
|
+
|
|
5589
|
+
|
|
5590
|
+
/**
|
|
5591
|
+
* repeated string reference_ids = 1;
|
|
5592
|
+
* @return {!Array<string>}
|
|
5593
|
+
*/
|
|
5594
|
+
proto.DeleteInvoiceResponse.prototype.getReferenceIdsList = function() {
|
|
5595
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
5596
|
+
};
|
|
5597
|
+
|
|
5598
|
+
|
|
5599
|
+
/**
|
|
5600
|
+
* @param {!Array<string>} value
|
|
5601
|
+
* @return {!proto.DeleteInvoiceResponse} returns this
|
|
5602
|
+
*/
|
|
5603
|
+
proto.DeleteInvoiceResponse.prototype.setReferenceIdsList = function(value) {
|
|
5604
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
5605
|
+
};
|
|
5606
|
+
|
|
5607
|
+
|
|
5608
|
+
/**
|
|
5609
|
+
* @param {string} value
|
|
5610
|
+
* @param {number=} opt_index
|
|
5611
|
+
* @return {!proto.DeleteInvoiceResponse} returns this
|
|
5612
|
+
*/
|
|
5613
|
+
proto.DeleteInvoiceResponse.prototype.addReferenceIds = function(value, opt_index) {
|
|
5614
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
5615
|
+
};
|
|
5616
|
+
|
|
5617
|
+
|
|
5618
|
+
/**
|
|
5619
|
+
* Clears the list making it empty but non-null.
|
|
5620
|
+
* @return {!proto.DeleteInvoiceResponse} returns this
|
|
5621
|
+
*/
|
|
5622
|
+
proto.DeleteInvoiceResponse.prototype.clearReferenceIdsList = function() {
|
|
5623
|
+
return this.setReferenceIdsList([]);
|
|
5624
|
+
};
|
|
5625
|
+
|
|
5626
|
+
|
|
5627
|
+
/**
|
|
5628
|
+
* optional prisca.v1.global.meta.Meta meta = 2;
|
|
5629
|
+
* @return {?proto.prisca.v1.global.meta.Meta}
|
|
5630
|
+
*/
|
|
5631
|
+
proto.DeleteInvoiceResponse.prototype.getMeta = function() {
|
|
5632
|
+
return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
|
|
5633
|
+
jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
|
|
5634
|
+
};
|
|
5635
|
+
|
|
5636
|
+
|
|
5637
|
+
/**
|
|
5638
|
+
* @param {?proto.prisca.v1.global.meta.Meta|undefined} value
|
|
5639
|
+
* @return {!proto.DeleteInvoiceResponse} returns this
|
|
5640
|
+
*/
|
|
5641
|
+
proto.DeleteInvoiceResponse.prototype.setMeta = function(value) {
|
|
5642
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
5643
|
+
};
|
|
5644
|
+
|
|
5645
|
+
|
|
5646
|
+
/**
|
|
5647
|
+
* Clears the message field making it undefined.
|
|
5648
|
+
* @return {!proto.DeleteInvoiceResponse} returns this
|
|
5649
|
+
*/
|
|
5650
|
+
proto.DeleteInvoiceResponse.prototype.clearMeta = function() {
|
|
5651
|
+
return this.setMeta(undefined);
|
|
5652
|
+
};
|
|
5653
|
+
|
|
5654
|
+
|
|
5655
|
+
/**
|
|
5656
|
+
* Returns whether this field is set.
|
|
5657
|
+
* @return {boolean}
|
|
5658
|
+
*/
|
|
5659
|
+
proto.DeleteInvoiceResponse.prototype.hasMeta = function() {
|
|
5660
|
+
return jspb.Message.getField(this, 2) != null;
|
|
5661
|
+
};
|
|
5662
|
+
|
|
5663
|
+
|
|
4902
5664
|
goog.object.extend(exports, proto);
|