@aldiokta/protocgen 1.1.28 → 1.1.30

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.
@@ -49,7 +49,9 @@ goog.exportSymbol('proto.GetInvoiceItemDetailPreload', null, global);
49
49
  goog.exportSymbol('proto.GetInvoiceItemPreload', null, global);
50
50
  goog.exportSymbol('proto.GetListInvoiceReq', null, global);
51
51
  goog.exportSymbol('proto.GetListInvoiceRes', null, global);
52
- goog.exportSymbol('proto.Invoice', null, global);
52
+ goog.exportSymbol('proto.ItemGoodReceipt', null, global);
53
+ goog.exportSymbol('proto.ItemInvoiceReference', null, global);
54
+ goog.exportSymbol('proto.ItemPurchaseOrder', null, global);
53
55
  goog.exportSymbol('proto.UpdateInvoiceReq', null, global);
54
56
  goog.exportSymbol('proto.UpdateInvoiceRes', null, global);
55
57
  /**
@@ -73,27 +75,6 @@ if (goog.DEBUG && !COMPILED) {
73
75
  */
74
76
  proto.BaseInvoice.displayName = 'proto.BaseInvoice';
75
77
  }
76
- /**
77
- * Generated by JsPbCodeGenerator.
78
- * @param {Array=} opt_data Optional initial data array, typically from a
79
- * server response, or constructed directly in Javascript. The array is used
80
- * in place and becomes part of the constructed object. It is not cloned.
81
- * If no data is provided, the constructed object will be empty, but still
82
- * valid.
83
- * @extends {jspb.Message}
84
- * @constructor
85
- */
86
- proto.Invoice = function(opt_data) {
87
- jspb.Message.initialize(this, opt_data, 0, -1, proto.Invoice.repeatedFields_, null);
88
- };
89
- goog.inherits(proto.Invoice, jspb.Message);
90
- if (goog.DEBUG && !COMPILED) {
91
- /**
92
- * @public
93
- * @override
94
- */
95
- proto.Invoice.displayName = 'proto.Invoice';
96
- }
97
78
  /**
98
79
  * Generated by JsPbCodeGenerator.
99
80
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -241,6 +222,69 @@ if (goog.DEBUG && !COMPILED) {
241
222
  */
242
223
  proto.GetInvoiceDetailRes.displayName = 'proto.GetInvoiceDetailRes';
243
224
  }
225
+ /**
226
+ * Generated by JsPbCodeGenerator.
227
+ * @param {Array=} opt_data Optional initial data array, typically from a
228
+ * server response, or constructed directly in Javascript. The array is used
229
+ * in place and becomes part of the constructed object. It is not cloned.
230
+ * If no data is provided, the constructed object will be empty, but still
231
+ * valid.
232
+ * @extends {jspb.Message}
233
+ * @constructor
234
+ */
235
+ proto.ItemInvoiceReference = function(opt_data) {
236
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ItemInvoiceReference.repeatedFields_, null);
237
+ };
238
+ goog.inherits(proto.ItemInvoiceReference, jspb.Message);
239
+ if (goog.DEBUG && !COMPILED) {
240
+ /**
241
+ * @public
242
+ * @override
243
+ */
244
+ proto.ItemInvoiceReference.displayName = 'proto.ItemInvoiceReference';
245
+ }
246
+ /**
247
+ * Generated by JsPbCodeGenerator.
248
+ * @param {Array=} opt_data Optional initial data array, typically from a
249
+ * server response, or constructed directly in Javascript. The array is used
250
+ * in place and becomes part of the constructed object. It is not cloned.
251
+ * If no data is provided, the constructed object will be empty, but still
252
+ * valid.
253
+ * @extends {jspb.Message}
254
+ * @constructor
255
+ */
256
+ proto.ItemPurchaseOrder = function(opt_data) {
257
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ItemPurchaseOrder.repeatedFields_, null);
258
+ };
259
+ goog.inherits(proto.ItemPurchaseOrder, jspb.Message);
260
+ if (goog.DEBUG && !COMPILED) {
261
+ /**
262
+ * @public
263
+ * @override
264
+ */
265
+ proto.ItemPurchaseOrder.displayName = 'proto.ItemPurchaseOrder';
266
+ }
267
+ /**
268
+ * Generated by JsPbCodeGenerator.
269
+ * @param {Array=} opt_data Optional initial data array, typically from a
270
+ * server response, or constructed directly in Javascript. The array is used
271
+ * in place and becomes part of the constructed object. It is not cloned.
272
+ * If no data is provided, the constructed object will be empty, but still
273
+ * valid.
274
+ * @extends {jspb.Message}
275
+ * @constructor
276
+ */
277
+ proto.ItemGoodReceipt = function(opt_data) {
278
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
279
+ };
280
+ goog.inherits(proto.ItemGoodReceipt, jspb.Message);
281
+ if (goog.DEBUG && !COMPILED) {
282
+ /**
283
+ * @public
284
+ * @override
285
+ */
286
+ proto.ItemGoodReceipt.displayName = 'proto.ItemGoodReceipt';
287
+ }
244
288
  /**
245
289
  * Generated by JsPbCodeGenerator.
246
290
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -331,7 +375,7 @@ if (goog.DEBUG && !COMPILED) {
331
375
  * @private {!Array<number>}
332
376
  * @const
333
377
  */
334
- proto.BaseInvoice.repeatedFields_ = [8,9];
378
+ proto.BaseInvoice.repeatedFields_ = [8,9,14];
335
379
 
336
380
 
337
381
 
@@ -378,7 +422,9 @@ filesList: jspb.Message.toObjectList(msg.getFilesList(),
378
422
  transactionType: jspb.Message.getFieldWithDefault(msg, 10, ""),
379
423
  taxReferences: jspb.Message.getFieldWithDefault(msg, 11, ""),
380
424
  status: jspb.Message.getFieldWithDefault(msg, 12, ""),
381
- remarks: jspb.Message.getFieldWithDefault(msg, 13, "")
425
+ remarks: jspb.Message.getFieldWithDefault(msg, 13, ""),
426
+ shippingFilesList: jspb.Message.toObjectList(msg.getShippingFilesList(),
427
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance)
382
428
  };
383
429
 
384
430
  if (includeInstance) {
@@ -469,6 +515,11 @@ proto.BaseInvoice.deserializeBinaryFromReader = function(msg, reader) {
469
515
  var value = /** @type {string} */ (reader.readString());
470
516
  msg.setRemarks(value);
471
517
  break;
518
+ case 14:
519
+ var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
520
+ reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
521
+ msg.addShippingFiles(value);
522
+ break;
472
523
  default:
473
524
  reader.skipField();
474
525
  break;
@@ -591,6 +642,14 @@ proto.BaseInvoice.serializeBinaryToWriter = function(message, writer) {
591
642
  f
592
643
  );
593
644
  }
645
+ f = message.getShippingFilesList();
646
+ if (f.length > 0) {
647
+ writer.writeRepeatedMessage(
648
+ 14,
649
+ f,
650
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
651
+ );
652
+ }
594
653
  };
595
654
 
596
655
 
@@ -868,13 +927,44 @@ proto.BaseInvoice.prototype.setRemarks = function(value) {
868
927
  };
869
928
 
870
929
 
930
+ /**
931
+ * repeated FileUploadReferencesReq shipping_files = 14;
932
+ * @return {!Array<!proto.FileUploadReferencesReq>}
933
+ */
934
+ proto.BaseInvoice.prototype.getShippingFilesList = function() {
935
+ return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
936
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 14));
937
+ };
938
+
871
939
 
872
940
  /**
873
- * List of repeated fields within this message type.
874
- * @private {!Array<number>}
875
- * @const
941
+ * @param {!Array<!proto.FileUploadReferencesReq>} value
942
+ * @return {!proto.BaseInvoice} returns this
943
+ */
944
+ proto.BaseInvoice.prototype.setShippingFilesList = function(value) {
945
+ return jspb.Message.setRepeatedWrapperField(this, 14, value);
946
+ };
947
+
948
+
949
+ /**
950
+ * @param {!proto.FileUploadReferencesReq=} opt_value
951
+ * @param {number=} opt_index
952
+ * @return {!proto.FileUploadReferencesReq}
953
+ */
954
+ proto.BaseInvoice.prototype.addShippingFiles = function(opt_value, opt_index) {
955
+ return jspb.Message.addToRepeatedWrapperField(this, 14, opt_value, proto.FileUploadReferencesReq, opt_index);
956
+ };
957
+
958
+
959
+ /**
960
+ * Clears the list making it empty but non-null.
961
+ * @return {!proto.BaseInvoice} returns this
876
962
  */
877
- proto.Invoice.repeatedFields_ = [26,29,31];
963
+ proto.BaseInvoice.prototype.clearShippingFilesList = function() {
964
+ return this.setShippingFilesList([]);
965
+ };
966
+
967
+
878
968
 
879
969
 
880
970
 
@@ -891,8 +981,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
891
981
  * http://goto/soy-param-migration
892
982
  * @return {!Object}
893
983
  */
894
- proto.Invoice.prototype.toObject = function(opt_includeInstance) {
895
- return proto.Invoice.toObject(opt_includeInstance, this);
984
+ proto.CreateInvoiceReq.prototype.toObject = function(opt_includeInstance) {
985
+ return proto.CreateInvoiceReq.toObject(opt_includeInstance, this);
896
986
  };
897
987
 
898
988
 
@@ -901,49 +991,13 @@ proto.Invoice.prototype.toObject = function(opt_includeInstance) {
901
991
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
902
992
  * the JSPB instance for transitional soy proto support:
903
993
  * http://goto/soy-param-migration
904
- * @param {!proto.Invoice} msg The msg instance to transform.
994
+ * @param {!proto.CreateInvoiceReq} msg The msg instance to transform.
905
995
  * @return {!Object}
906
996
  * @suppress {unusedLocalVariables} f is only used for nested messages
907
997
  */
908
- proto.Invoice.toObject = function(includeInstance, msg) {
998
+ proto.CreateInvoiceReq.toObject = function(includeInstance, msg) {
909
999
  var f, obj = {
910
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
911
- purchaseOrderReferencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
912
- goodReceiptReferencesId: jspb.Message.getFieldWithDefault(msg, 3, ""),
913
- vendorReferencesId: jspb.Message.getFieldWithDefault(msg, 4, ""),
914
- invoiceSubject: jspb.Message.getFieldWithDefault(msg, 5, ""),
915
- invoiceType: jspb.Message.getFieldWithDefault(msg, 6, ""),
916
- plant: jspb.Message.getFieldWithDefault(msg, 7, ""),
917
- invoiceDate: jspb.Message.getFieldWithDefault(msg, 8, ""),
918
- invoiceNumber: jspb.Message.getFieldWithDefault(msg, 9, ""),
919
- documentNumber: jspb.Message.getFieldWithDefault(msg, 10, ""),
920
- remarks: jspb.Message.getFieldWithDefault(msg, 11, ""),
921
- taxReferences: jspb.Message.getFieldWithDefault(msg, 12, ""),
922
- externalNumber: jspb.Message.getFieldWithDefault(msg, 13, ""),
923
- goodReceiptNumber: jspb.Message.getFieldWithDefault(msg, 14, ""),
924
- purchaseOrderNumber: jspb.Message.getFieldWithDefault(msg, 15, ""),
925
- referencesId: jspb.Message.getFieldWithDefault(msg, 16, ""),
926
- status: jspb.Message.getFieldWithDefault(msg, 17, ""),
927
- createdAt: jspb.Message.getFieldWithDefault(msg, 18, ""),
928
- updatedAt: jspb.Message.getFieldWithDefault(msg, 19, ""),
929
- createdBy: jspb.Message.getFieldWithDefault(msg, 20, ""),
930
- updateBy: jspb.Message.getFieldWithDefault(msg, 21, ""),
931
- companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 22, ""),
932
- groupReferences: jspb.Message.getFieldWithDefault(msg, 23, ""),
933
- isExpired: jspb.Message.getBooleanFieldWithDefault(msg, 24, false),
934
- fileIds: jspb.Message.getFieldWithDefault(msg, 25, ""),
935
- filesList: jspb.Message.toObjectList(msg.getFilesList(),
936
- prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
937
- company: (f = msg.getCompany()) && prisca_v1_core_company_company_pb.Company.toObject(includeInstance, f),
938
- purchaseOrder: (f = msg.getPurchaseOrder()) && prisca_v1_purchase_order_purchase_order_pb.PurchaseOrder.toObject(includeInstance, f),
939
- goodReceiptsList: jspb.Message.toObjectList(msg.getGoodReceiptsList(),
940
- prisca_v1_good_receipt_good_receipt_pb.GoodReceipt.toObject, includeInstance),
941
- vendor: (f = msg.getVendor()) && prisca_v1_vendor_domain_vendor_domain_pb.Vendor.toObject(includeInstance, f),
942
- itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
943
- prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.toObject, includeInstance),
944
- createdByEmployee: (f = msg.getCreatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f),
945
- updatedByEmployee: (f = msg.getUpdatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f),
946
- vendorName: jspb.Message.getFieldWithDefault(msg, 34, "")
1000
+ baseInvoice: (f = msg.getBaseInvoice()) && proto.BaseInvoice.toObject(includeInstance, f)
947
1001
  };
948
1002
 
949
1003
  if (includeInstance) {
@@ -957,23 +1011,23 @@ vendorName: jspb.Message.getFieldWithDefault(msg, 34, "")
957
1011
  /**
958
1012
  * Deserializes binary data (in protobuf wire format).
959
1013
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
960
- * @return {!proto.Invoice}
1014
+ * @return {!proto.CreateInvoiceReq}
961
1015
  */
962
- proto.Invoice.deserializeBinary = function(bytes) {
1016
+ proto.CreateInvoiceReq.deserializeBinary = function(bytes) {
963
1017
  var reader = new jspb.BinaryReader(bytes);
964
- var msg = new proto.Invoice;
965
- return proto.Invoice.deserializeBinaryFromReader(msg, reader);
1018
+ var msg = new proto.CreateInvoiceReq;
1019
+ return proto.CreateInvoiceReq.deserializeBinaryFromReader(msg, reader);
966
1020
  };
967
1021
 
968
1022
 
969
1023
  /**
970
1024
  * Deserializes binary data (in protobuf wire format) from the
971
1025
  * given reader into the given message object.
972
- * @param {!proto.Invoice} msg The message object to deserialize into.
1026
+ * @param {!proto.CreateInvoiceReq} msg The message object to deserialize into.
973
1027
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
974
- * @return {!proto.Invoice}
1028
+ * @return {!proto.CreateInvoiceReq}
975
1029
  */
976
- proto.Invoice.deserializeBinaryFromReader = function(msg, reader) {
1030
+ proto.CreateInvoiceReq.deserializeBinaryFromReader = function(msg, reader) {
977
1031
  while (reader.nextField()) {
978
1032
  if (reader.isEndGroup()) {
979
1033
  break;
@@ -981,148 +1035,9 @@ proto.Invoice.deserializeBinaryFromReader = function(msg, reader) {
981
1035
  var field = reader.getFieldNumber();
982
1036
  switch (field) {
983
1037
  case 1:
984
- var value = /** @type {number} */ (reader.readInt64());
985
- msg.setId(value);
986
- break;
987
- case 2:
988
- var value = /** @type {string} */ (reader.readString());
989
- msg.setPurchaseOrderReferencesId(value);
990
- break;
991
- case 3:
992
- var value = /** @type {string} */ (reader.readString());
993
- msg.setGoodReceiptReferencesId(value);
994
- break;
995
- case 4:
996
- var value = /** @type {string} */ (reader.readString());
997
- msg.setVendorReferencesId(value);
998
- break;
999
- case 5:
1000
- var value = /** @type {string} */ (reader.readString());
1001
- msg.setInvoiceSubject(value);
1002
- break;
1003
- case 6:
1004
- var value = /** @type {string} */ (reader.readString());
1005
- msg.setInvoiceType(value);
1006
- break;
1007
- case 7:
1008
- var value = /** @type {string} */ (reader.readString());
1009
- msg.setPlant(value);
1010
- break;
1011
- case 8:
1012
- var value = /** @type {string} */ (reader.readString());
1013
- msg.setInvoiceDate(value);
1014
- break;
1015
- case 9:
1016
- var value = /** @type {string} */ (reader.readString());
1017
- msg.setInvoiceNumber(value);
1018
- break;
1019
- case 10:
1020
- var value = /** @type {string} */ (reader.readString());
1021
- msg.setDocumentNumber(value);
1022
- break;
1023
- case 11:
1024
- var value = /** @type {string} */ (reader.readString());
1025
- msg.setRemarks(value);
1026
- break;
1027
- case 12:
1028
- var value = /** @type {string} */ (reader.readString());
1029
- msg.setTaxReferences(value);
1030
- break;
1031
- case 13:
1032
- var value = /** @type {string} */ (reader.readString());
1033
- msg.setExternalNumber(value);
1034
- break;
1035
- case 14:
1036
- var value = /** @type {string} */ (reader.readString());
1037
- msg.setGoodReceiptNumber(value);
1038
- break;
1039
- case 15:
1040
- var value = /** @type {string} */ (reader.readString());
1041
- msg.setPurchaseOrderNumber(value);
1042
- break;
1043
- case 16:
1044
- var value = /** @type {string} */ (reader.readString());
1045
- msg.setReferencesId(value);
1046
- break;
1047
- case 17:
1048
- var value = /** @type {string} */ (reader.readString());
1049
- msg.setStatus(value);
1050
- break;
1051
- case 18:
1052
- var value = /** @type {string} */ (reader.readString());
1053
- msg.setCreatedAt(value);
1054
- break;
1055
- case 19:
1056
- var value = /** @type {string} */ (reader.readString());
1057
- msg.setUpdatedAt(value);
1058
- break;
1059
- case 20:
1060
- var value = /** @type {string} */ (reader.readString());
1061
- msg.setCreatedBy(value);
1062
- break;
1063
- case 21:
1064
- var value = /** @type {string} */ (reader.readString());
1065
- msg.setUpdateBy(value);
1066
- break;
1067
- case 22:
1068
- var value = /** @type {string} */ (reader.readString());
1069
- msg.setCompaniesReferencesId(value);
1070
- break;
1071
- case 23:
1072
- var value = /** @type {string} */ (reader.readString());
1073
- msg.setGroupReferences(value);
1074
- break;
1075
- case 24:
1076
- var value = /** @type {boolean} */ (reader.readBool());
1077
- msg.setIsExpired(value);
1078
- break;
1079
- case 25:
1080
- var value = /** @type {string} */ (reader.readString());
1081
- msg.setFileIds(value);
1082
- break;
1083
- case 26:
1084
- var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
1085
- reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
1086
- msg.addFiles(value);
1087
- break;
1088
- case 27:
1089
- var value = new prisca_v1_core_company_company_pb.Company;
1090
- reader.readMessage(value,prisca_v1_core_company_company_pb.Company.deserializeBinaryFromReader);
1091
- msg.setCompany(value);
1092
- break;
1093
- case 28:
1094
- var value = new prisca_v1_purchase_order_purchase_order_pb.PurchaseOrder;
1095
- reader.readMessage(value,prisca_v1_purchase_order_purchase_order_pb.PurchaseOrder.deserializeBinaryFromReader);
1096
- msg.setPurchaseOrder(value);
1097
- break;
1098
- case 29:
1099
- var value = new prisca_v1_good_receipt_good_receipt_pb.GoodReceipt;
1100
- reader.readMessage(value,prisca_v1_good_receipt_good_receipt_pb.GoodReceipt.deserializeBinaryFromReader);
1101
- msg.addGoodReceipts(value);
1102
- break;
1103
- case 30:
1104
- var value = new prisca_v1_vendor_domain_vendor_domain_pb.Vendor;
1105
- reader.readMessage(value,prisca_v1_vendor_domain_vendor_domain_pb.Vendor.deserializeBinaryFromReader);
1106
- msg.setVendor(value);
1107
- break;
1108
- case 31:
1109
- var value = new prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction;
1110
- reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.deserializeBinaryFromReader);
1111
- msg.addItemTransactions(value);
1112
- break;
1113
- case 32:
1114
- var value = new prisca_v1_core_employee_employee_pb.Employee;
1115
- reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
1116
- msg.setCreatedByEmployee(value);
1117
- break;
1118
- case 33:
1119
- var value = new prisca_v1_core_employee_employee_pb.Employee;
1120
- reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
1121
- msg.setUpdatedByEmployee(value);
1122
- break;
1123
- case 34:
1124
- var value = /** @type {string} */ (reader.readString());
1125
- msg.setVendorName(value);
1038
+ var value = new proto.BaseInvoice;
1039
+ reader.readMessage(value,proto.BaseInvoice.deserializeBinaryFromReader);
1040
+ msg.setBaseInvoice(value);
1126
1041
  break;
1127
1042
  default:
1128
1043
  reader.skipField();
@@ -1137,9 +1052,9 @@ proto.Invoice.deserializeBinaryFromReader = function(msg, reader) {
1137
1052
  * Serializes the message to binary data (in protobuf wire format).
1138
1053
  * @return {!Uint8Array}
1139
1054
  */
1140
- proto.Invoice.prototype.serializeBinary = function() {
1055
+ proto.CreateInvoiceReq.prototype.serializeBinary = function() {
1141
1056
  var writer = new jspb.BinaryWriter();
1142
- proto.Invoice.serializeBinaryToWriter(this, writer);
1057
+ proto.CreateInvoiceReq.serializeBinaryToWriter(this, writer);
1143
1058
  return writer.getResultBuffer();
1144
1059
  };
1145
1060
 
@@ -1147,774 +1062,633 @@ proto.Invoice.prototype.serializeBinary = function() {
1147
1062
  /**
1148
1063
  * Serializes the given message to binary data (in protobuf wire
1149
1064
  * format), writing to the given BinaryWriter.
1150
- * @param {!proto.Invoice} message
1065
+ * @param {!proto.CreateInvoiceReq} message
1151
1066
  * @param {!jspb.BinaryWriter} writer
1152
1067
  * @suppress {unusedLocalVariables} f is only used for nested messages
1153
1068
  */
1154
- proto.Invoice.serializeBinaryToWriter = function(message, writer) {
1069
+ proto.CreateInvoiceReq.serializeBinaryToWriter = function(message, writer) {
1155
1070
  var f = undefined;
1156
- f = message.getId();
1157
- if (f !== 0) {
1158
- writer.writeInt64(
1071
+ f = message.getBaseInvoice();
1072
+ if (f != null) {
1073
+ writer.writeMessage(
1159
1074
  1,
1160
- f
1161
- );
1162
- }
1163
- f = message.getPurchaseOrderReferencesId();
1164
- if (f.length > 0) {
1165
- writer.writeString(
1166
- 2,
1167
- f
1168
- );
1169
- }
1170
- f = message.getGoodReceiptReferencesId();
1171
- if (f.length > 0) {
1172
- writer.writeString(
1173
- 3,
1174
- f
1175
- );
1176
- }
1177
- f = message.getVendorReferencesId();
1178
- if (f.length > 0) {
1179
- writer.writeString(
1180
- 4,
1181
- f
1075
+ f,
1076
+ proto.BaseInvoice.serializeBinaryToWriter
1182
1077
  );
1183
1078
  }
1184
- f = message.getInvoiceSubject();
1185
- if (f.length > 0) {
1186
- writer.writeString(
1187
- 5,
1188
- f
1189
- );
1190
- }
1191
- f = message.getInvoiceType();
1192
- if (f.length > 0) {
1193
- writer.writeString(
1194
- 6,
1195
- f
1196
- );
1197
- }
1198
- f = message.getPlant();
1199
- if (f.length > 0) {
1200
- writer.writeString(
1201
- 7,
1202
- f
1203
- );
1204
- }
1205
- f = message.getInvoiceDate();
1206
- if (f.length > 0) {
1207
- writer.writeString(
1208
- 8,
1209
- f
1210
- );
1211
- }
1212
- f = message.getInvoiceNumber();
1213
- if (f.length > 0) {
1214
- writer.writeString(
1215
- 9,
1216
- f
1217
- );
1218
- }
1219
- f = message.getDocumentNumber();
1220
- if (f.length > 0) {
1221
- writer.writeString(
1222
- 10,
1223
- f
1224
- );
1225
- }
1226
- f = message.getRemarks();
1227
- if (f.length > 0) {
1228
- writer.writeString(
1229
- 11,
1230
- f
1231
- );
1232
- }
1233
- f = message.getTaxReferences();
1234
- if (f.length > 0) {
1235
- writer.writeString(
1236
- 12,
1237
- f
1238
- );
1239
- }
1240
- f = message.getExternalNumber();
1241
- if (f.length > 0) {
1242
- writer.writeString(
1243
- 13,
1244
- f
1245
- );
1246
- }
1247
- f = message.getGoodReceiptNumber();
1248
- if (f.length > 0) {
1249
- writer.writeString(
1250
- 14,
1251
- f
1252
- );
1253
- }
1254
- f = message.getPurchaseOrderNumber();
1255
- if (f.length > 0) {
1256
- writer.writeString(
1257
- 15,
1258
- f
1259
- );
1260
- }
1261
- f = message.getReferencesId();
1262
- if (f.length > 0) {
1263
- writer.writeString(
1264
- 16,
1265
- f
1266
- );
1267
- }
1268
- f = message.getStatus();
1269
- if (f.length > 0) {
1270
- writer.writeString(
1271
- 17,
1272
- f
1273
- );
1274
- }
1275
- f = message.getCreatedAt();
1276
- if (f.length > 0) {
1277
- writer.writeString(
1278
- 18,
1279
- f
1280
- );
1281
- }
1282
- f = message.getUpdatedAt();
1283
- if (f.length > 0) {
1284
- writer.writeString(
1285
- 19,
1286
- f
1287
- );
1288
- }
1289
- f = message.getCreatedBy();
1290
- if (f.length > 0) {
1291
- writer.writeString(
1292
- 20,
1293
- f
1294
- );
1295
- }
1296
- f = message.getUpdateBy();
1297
- if (f.length > 0) {
1298
- writer.writeString(
1299
- 21,
1300
- f
1301
- );
1302
- }
1303
- f = message.getCompaniesReferencesId();
1304
- if (f.length > 0) {
1305
- writer.writeString(
1306
- 22,
1307
- f
1308
- );
1309
- }
1310
- f = message.getGroupReferences();
1311
- if (f.length > 0) {
1312
- writer.writeString(
1313
- 23,
1314
- f
1315
- );
1316
- }
1317
- f = message.getIsExpired();
1318
- if (f) {
1319
- writer.writeBool(
1320
- 24,
1321
- f
1322
- );
1323
- }
1324
- f = message.getFileIds();
1325
- if (f.length > 0) {
1326
- writer.writeString(
1327
- 25,
1328
- f
1329
- );
1330
- }
1331
- f = message.getFilesList();
1332
- if (f.length > 0) {
1333
- writer.writeRepeatedMessage(
1334
- 26,
1335
- f,
1336
- prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
1337
- );
1338
- }
1339
- f = message.getCompany();
1340
- if (f != null) {
1341
- writer.writeMessage(
1342
- 27,
1343
- f,
1344
- prisca_v1_core_company_company_pb.Company.serializeBinaryToWriter
1345
- );
1346
- }
1347
- f = message.getPurchaseOrder();
1348
- if (f != null) {
1349
- writer.writeMessage(
1350
- 28,
1351
- f,
1352
- prisca_v1_purchase_order_purchase_order_pb.PurchaseOrder.serializeBinaryToWriter
1353
- );
1354
- }
1355
- f = message.getGoodReceiptsList();
1356
- if (f.length > 0) {
1357
- writer.writeRepeatedMessage(
1358
- 29,
1359
- f,
1360
- prisca_v1_good_receipt_good_receipt_pb.GoodReceipt.serializeBinaryToWriter
1361
- );
1362
- }
1363
- f = message.getVendor();
1364
- if (f != null) {
1365
- writer.writeMessage(
1366
- 30,
1367
- f,
1368
- prisca_v1_vendor_domain_vendor_domain_pb.Vendor.serializeBinaryToWriter
1369
- );
1370
- }
1371
- f = message.getItemTransactionsList();
1372
- if (f.length > 0) {
1373
- writer.writeRepeatedMessage(
1374
- 31,
1375
- f,
1376
- prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.serializeBinaryToWriter
1377
- );
1378
- }
1379
- f = message.getCreatedByEmployee();
1380
- if (f != null) {
1381
- writer.writeMessage(
1382
- 32,
1383
- f,
1384
- prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
1385
- );
1386
- }
1387
- f = message.getUpdatedByEmployee();
1388
- if (f != null) {
1389
- writer.writeMessage(
1390
- 33,
1391
- f,
1392
- prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
1393
- );
1394
- }
1395
- f = message.getVendorName();
1396
- if (f.length > 0) {
1397
- writer.writeString(
1398
- 34,
1399
- f
1400
- );
1401
- }
1402
- };
1403
-
1404
-
1405
- /**
1406
- * optional int64 id = 1;
1407
- * @return {number}
1408
- */
1409
- proto.Invoice.prototype.getId = function() {
1410
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1411
- };
1412
-
1413
-
1414
- /**
1415
- * @param {number} value
1416
- * @return {!proto.Invoice} returns this
1417
- */
1418
- proto.Invoice.prototype.setId = function(value) {
1419
- return jspb.Message.setProto3IntField(this, 1, value);
1420
- };
1421
-
1422
-
1423
- /**
1424
- * optional string purchase_order_references_id = 2;
1425
- * @return {string}
1426
- */
1427
- proto.Invoice.prototype.getPurchaseOrderReferencesId = function() {
1428
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1429
- };
1430
-
1431
-
1432
- /**
1433
- * @param {string} value
1434
- * @return {!proto.Invoice} returns this
1435
- */
1436
- proto.Invoice.prototype.setPurchaseOrderReferencesId = function(value) {
1437
- return jspb.Message.setProto3StringField(this, 2, value);
1438
1079
  };
1439
1080
 
1440
1081
 
1441
1082
  /**
1442
- * optional string good_receipt_references_id = 3;
1443
- * @return {string}
1444
- */
1445
- proto.Invoice.prototype.getGoodReceiptReferencesId = function() {
1446
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1447
- };
1448
-
1449
-
1450
- /**
1451
- * @param {string} value
1452
- * @return {!proto.Invoice} returns this
1453
- */
1454
- proto.Invoice.prototype.setGoodReceiptReferencesId = function(value) {
1455
- return jspb.Message.setProto3StringField(this, 3, value);
1456
- };
1457
-
1458
-
1459
- /**
1460
- * optional string vendor_references_id = 4;
1461
- * @return {string}
1462
- */
1463
- proto.Invoice.prototype.getVendorReferencesId = function() {
1464
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1465
- };
1466
-
1467
-
1468
- /**
1469
- * @param {string} value
1470
- * @return {!proto.Invoice} returns this
1471
- */
1472
- proto.Invoice.prototype.setVendorReferencesId = function(value) {
1473
- return jspb.Message.setProto3StringField(this, 4, value);
1474
- };
1475
-
1476
-
1477
- /**
1478
- * optional string invoice_subject = 5;
1479
- * @return {string}
1480
- */
1481
- proto.Invoice.prototype.getInvoiceSubject = function() {
1482
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1483
- };
1484
-
1485
-
1486
- /**
1487
- * @param {string} value
1488
- * @return {!proto.Invoice} returns this
1489
- */
1490
- proto.Invoice.prototype.setInvoiceSubject = function(value) {
1491
- return jspb.Message.setProto3StringField(this, 5, value);
1492
- };
1493
-
1494
-
1495
- /**
1496
- * optional string invoice_type = 6;
1497
- * @return {string}
1498
- */
1499
- proto.Invoice.prototype.getInvoiceType = function() {
1500
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1501
- };
1502
-
1503
-
1504
- /**
1505
- * @param {string} value
1506
- * @return {!proto.Invoice} returns this
1507
- */
1508
- proto.Invoice.prototype.setInvoiceType = function(value) {
1509
- return jspb.Message.setProto3StringField(this, 6, value);
1510
- };
1511
-
1512
-
1513
- /**
1514
- * optional string plant = 7;
1515
- * @return {string}
1083
+ * optional BaseInvoice base_invoice = 1;
1084
+ * @return {?proto.BaseInvoice}
1516
1085
  */
1517
- proto.Invoice.prototype.getPlant = function() {
1518
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1086
+ proto.CreateInvoiceReq.prototype.getBaseInvoice = function() {
1087
+ return /** @type{?proto.BaseInvoice} */ (
1088
+ jspb.Message.getWrapperField(this, proto.BaseInvoice, 1));
1519
1089
  };
1520
1090
 
1521
1091
 
1522
1092
  /**
1523
- * @param {string} value
1524
- * @return {!proto.Invoice} returns this
1525
- */
1526
- proto.Invoice.prototype.setPlant = function(value) {
1527
- return jspb.Message.setProto3StringField(this, 7, value);
1093
+ * @param {?proto.BaseInvoice|undefined} value
1094
+ * @return {!proto.CreateInvoiceReq} returns this
1095
+ */
1096
+ proto.CreateInvoiceReq.prototype.setBaseInvoice = function(value) {
1097
+ return jspb.Message.setWrapperField(this, 1, value);
1528
1098
  };
1529
1099
 
1530
1100
 
1531
1101
  /**
1532
- * optional string invoice_date = 8;
1533
- * @return {string}
1102
+ * Clears the message field making it undefined.
1103
+ * @return {!proto.CreateInvoiceReq} returns this
1534
1104
  */
1535
- proto.Invoice.prototype.getInvoiceDate = function() {
1536
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1105
+ proto.CreateInvoiceReq.prototype.clearBaseInvoice = function() {
1106
+ return this.setBaseInvoice(undefined);
1537
1107
  };
1538
1108
 
1539
1109
 
1540
1110
  /**
1541
- * @param {string} value
1542
- * @return {!proto.Invoice} returns this
1111
+ * Returns whether this field is set.
1112
+ * @return {boolean}
1543
1113
  */
1544
- proto.Invoice.prototype.setInvoiceDate = function(value) {
1545
- return jspb.Message.setProto3StringField(this, 8, value);
1114
+ proto.CreateInvoiceReq.prototype.hasBaseInvoice = function() {
1115
+ return jspb.Message.getField(this, 1) != null;
1546
1116
  };
1547
1117
 
1548
1118
 
1549
- /**
1550
- * optional string invoice_number = 9;
1551
- * @return {string}
1552
- */
1553
- proto.Invoice.prototype.getInvoiceNumber = function() {
1554
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1555
- };
1556
-
1557
1119
 
1558
- /**
1559
- * @param {string} value
1560
- * @return {!proto.Invoice} returns this
1561
- */
1562
- proto.Invoice.prototype.setInvoiceNumber = function(value) {
1563
- return jspb.Message.setProto3StringField(this, 9, value);
1564
- };
1565
1120
 
1566
1121
 
1122
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1567
1123
  /**
1568
- * optional string document_number = 10;
1569
- * @return {string}
1124
+ * Creates an object representation of this proto.
1125
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1126
+ * Optional fields that are not set will be set to undefined.
1127
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1128
+ * For the list of reserved names please see:
1129
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1130
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1131
+ * JSPB instance for transitional soy proto support:
1132
+ * http://goto/soy-param-migration
1133
+ * @return {!Object}
1570
1134
  */
1571
- proto.Invoice.prototype.getDocumentNumber = function() {
1572
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
1135
+ proto.CreateInvoiceRes.prototype.toObject = function(opt_includeInstance) {
1136
+ return proto.CreateInvoiceRes.toObject(opt_includeInstance, this);
1573
1137
  };
1574
1138
 
1575
1139
 
1576
1140
  /**
1577
- * @param {string} value
1578
- * @return {!proto.Invoice} returns this
1141
+ * Static version of the {@see toObject} method.
1142
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1143
+ * the JSPB instance for transitional soy proto support:
1144
+ * http://goto/soy-param-migration
1145
+ * @param {!proto.CreateInvoiceRes} msg The msg instance to transform.
1146
+ * @return {!Object}
1147
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1579
1148
  */
1580
- proto.Invoice.prototype.setDocumentNumber = function(value) {
1581
- return jspb.Message.setProto3StringField(this, 10, value);
1149
+ proto.CreateInvoiceRes.toObject = function(includeInstance, msg) {
1150
+ var f, obj = {
1151
+ invoice: (f = msg.getInvoice()) && prisca_v1_purchase_order_purchase_order_pb.Invoice.toObject(includeInstance, f),
1152
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1153
+ };
1154
+
1155
+ if (includeInstance) {
1156
+ obj.$jspbMessageInstance = msg;
1157
+ }
1158
+ return obj;
1582
1159
  };
1160
+ }
1583
1161
 
1584
1162
 
1585
1163
  /**
1586
- * optional string remarks = 11;
1587
- * @return {string}
1164
+ * Deserializes binary data (in protobuf wire format).
1165
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1166
+ * @return {!proto.CreateInvoiceRes}
1588
1167
  */
1589
- proto.Invoice.prototype.getRemarks = function() {
1590
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
1168
+ proto.CreateInvoiceRes.deserializeBinary = function(bytes) {
1169
+ var reader = new jspb.BinaryReader(bytes);
1170
+ var msg = new proto.CreateInvoiceRes;
1171
+ return proto.CreateInvoiceRes.deserializeBinaryFromReader(msg, reader);
1591
1172
  };
1592
1173
 
1593
1174
 
1594
1175
  /**
1595
- * @param {string} value
1596
- * @return {!proto.Invoice} returns this
1176
+ * Deserializes binary data (in protobuf wire format) from the
1177
+ * given reader into the given message object.
1178
+ * @param {!proto.CreateInvoiceRes} msg The message object to deserialize into.
1179
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1180
+ * @return {!proto.CreateInvoiceRes}
1597
1181
  */
1598
- proto.Invoice.prototype.setRemarks = function(value) {
1599
- return jspb.Message.setProto3StringField(this, 11, value);
1182
+ proto.CreateInvoiceRes.deserializeBinaryFromReader = function(msg, reader) {
1183
+ while (reader.nextField()) {
1184
+ if (reader.isEndGroup()) {
1185
+ break;
1186
+ }
1187
+ var field = reader.getFieldNumber();
1188
+ switch (field) {
1189
+ case 1:
1190
+ var value = new prisca_v1_purchase_order_purchase_order_pb.Invoice;
1191
+ reader.readMessage(value,prisca_v1_purchase_order_purchase_order_pb.Invoice.deserializeBinaryFromReader);
1192
+ msg.setInvoice(value);
1193
+ break;
1194
+ case 2:
1195
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1196
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1197
+ msg.setMeta(value);
1198
+ break;
1199
+ default:
1200
+ reader.skipField();
1201
+ break;
1202
+ }
1203
+ }
1204
+ return msg;
1600
1205
  };
1601
1206
 
1602
1207
 
1603
1208
  /**
1604
- * optional string tax_references = 12;
1605
- * @return {string}
1209
+ * Serializes the message to binary data (in protobuf wire format).
1210
+ * @return {!Uint8Array}
1606
1211
  */
1607
- proto.Invoice.prototype.getTaxReferences = function() {
1608
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
1212
+ proto.CreateInvoiceRes.prototype.serializeBinary = function() {
1213
+ var writer = new jspb.BinaryWriter();
1214
+ proto.CreateInvoiceRes.serializeBinaryToWriter(this, writer);
1215
+ return writer.getResultBuffer();
1609
1216
  };
1610
1217
 
1611
1218
 
1612
1219
  /**
1613
- * @param {string} value
1614
- * @return {!proto.Invoice} returns this
1220
+ * Serializes the given message to binary data (in protobuf wire
1221
+ * format), writing to the given BinaryWriter.
1222
+ * @param {!proto.CreateInvoiceRes} message
1223
+ * @param {!jspb.BinaryWriter} writer
1224
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1615
1225
  */
1616
- proto.Invoice.prototype.setTaxReferences = function(value) {
1617
- return jspb.Message.setProto3StringField(this, 12, value);
1226
+ proto.CreateInvoiceRes.serializeBinaryToWriter = function(message, writer) {
1227
+ var f = undefined;
1228
+ f = message.getInvoice();
1229
+ if (f != null) {
1230
+ writer.writeMessage(
1231
+ 1,
1232
+ f,
1233
+ prisca_v1_purchase_order_purchase_order_pb.Invoice.serializeBinaryToWriter
1234
+ );
1235
+ }
1236
+ f = message.getMeta();
1237
+ if (f != null) {
1238
+ writer.writeMessage(
1239
+ 2,
1240
+ f,
1241
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1242
+ );
1243
+ }
1618
1244
  };
1619
1245
 
1620
1246
 
1621
1247
  /**
1622
- * optional string external_number = 13;
1623
- * @return {string}
1248
+ * optional Invoice invoice = 1;
1249
+ * @return {?proto.Invoice}
1624
1250
  */
1625
- proto.Invoice.prototype.getExternalNumber = function() {
1626
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
1251
+ proto.CreateInvoiceRes.prototype.getInvoice = function() {
1252
+ return /** @type{?proto.Invoice} */ (
1253
+ jspb.Message.getWrapperField(this, prisca_v1_purchase_order_purchase_order_pb.Invoice, 1));
1627
1254
  };
1628
1255
 
1629
1256
 
1630
1257
  /**
1631
- * @param {string} value
1632
- * @return {!proto.Invoice} returns this
1633
- */
1634
- proto.Invoice.prototype.setExternalNumber = function(value) {
1635
- return jspb.Message.setProto3StringField(this, 13, value);
1258
+ * @param {?proto.Invoice|undefined} value
1259
+ * @return {!proto.CreateInvoiceRes} returns this
1260
+ */
1261
+ proto.CreateInvoiceRes.prototype.setInvoice = function(value) {
1262
+ return jspb.Message.setWrapperField(this, 1, value);
1636
1263
  };
1637
1264
 
1638
1265
 
1639
1266
  /**
1640
- * optional string good_receipt_number = 14;
1641
- * @return {string}
1267
+ * Clears the message field making it undefined.
1268
+ * @return {!proto.CreateInvoiceRes} returns this
1642
1269
  */
1643
- proto.Invoice.prototype.getGoodReceiptNumber = function() {
1644
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
1270
+ proto.CreateInvoiceRes.prototype.clearInvoice = function() {
1271
+ return this.setInvoice(undefined);
1645
1272
  };
1646
1273
 
1647
1274
 
1648
1275
  /**
1649
- * @param {string} value
1650
- * @return {!proto.Invoice} returns this
1276
+ * Returns whether this field is set.
1277
+ * @return {boolean}
1651
1278
  */
1652
- proto.Invoice.prototype.setGoodReceiptNumber = function(value) {
1653
- return jspb.Message.setProto3StringField(this, 14, value);
1279
+ proto.CreateInvoiceRes.prototype.hasInvoice = function() {
1280
+ return jspb.Message.getField(this, 1) != null;
1654
1281
  };
1655
1282
 
1656
1283
 
1657
1284
  /**
1658
- * optional string purchase_order_number = 15;
1659
- * @return {string}
1285
+ * optional prisca.v1.global.meta.Meta meta = 2;
1286
+ * @return {?proto.prisca.v1.global.meta.Meta}
1660
1287
  */
1661
- proto.Invoice.prototype.getPurchaseOrderNumber = function() {
1662
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
1288
+ proto.CreateInvoiceRes.prototype.getMeta = function() {
1289
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1290
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1663
1291
  };
1664
1292
 
1665
1293
 
1666
1294
  /**
1667
- * @param {string} value
1668
- * @return {!proto.Invoice} returns this
1669
- */
1670
- proto.Invoice.prototype.setPurchaseOrderNumber = function(value) {
1671
- return jspb.Message.setProto3StringField(this, 15, value);
1295
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1296
+ * @return {!proto.CreateInvoiceRes} returns this
1297
+ */
1298
+ proto.CreateInvoiceRes.prototype.setMeta = function(value) {
1299
+ return jspb.Message.setWrapperField(this, 2, value);
1672
1300
  };
1673
1301
 
1674
1302
 
1675
1303
  /**
1676
- * optional string references_id = 16;
1677
- * @return {string}
1304
+ * Clears the message field making it undefined.
1305
+ * @return {!proto.CreateInvoiceRes} returns this
1678
1306
  */
1679
- proto.Invoice.prototype.getReferencesId = function() {
1680
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
1307
+ proto.CreateInvoiceRes.prototype.clearMeta = function() {
1308
+ return this.setMeta(undefined);
1681
1309
  };
1682
1310
 
1683
1311
 
1684
1312
  /**
1685
- * @param {string} value
1686
- * @return {!proto.Invoice} returns this
1313
+ * Returns whether this field is set.
1314
+ * @return {boolean}
1687
1315
  */
1688
- proto.Invoice.prototype.setReferencesId = function(value) {
1689
- return jspb.Message.setProto3StringField(this, 16, value);
1316
+ proto.CreateInvoiceRes.prototype.hasMeta = function() {
1317
+ return jspb.Message.getField(this, 2) != null;
1690
1318
  };
1691
1319
 
1692
1320
 
1321
+
1322
+
1323
+
1324
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1693
1325
  /**
1694
- * optional string status = 17;
1695
- * @return {string}
1326
+ * Creates an object representation of this proto.
1327
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1328
+ * Optional fields that are not set will be set to undefined.
1329
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1330
+ * For the list of reserved names please see:
1331
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1332
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1333
+ * JSPB instance for transitional soy proto support:
1334
+ * http://goto/soy-param-migration
1335
+ * @return {!Object}
1696
1336
  */
1697
- proto.Invoice.prototype.getStatus = function() {
1698
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
1337
+ proto.UpdateInvoiceReq.prototype.toObject = function(opt_includeInstance) {
1338
+ return proto.UpdateInvoiceReq.toObject(opt_includeInstance, this);
1699
1339
  };
1700
1340
 
1701
1341
 
1702
1342
  /**
1703
- * @param {string} value
1704
- * @return {!proto.Invoice} returns this
1343
+ * Static version of the {@see toObject} method.
1344
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1345
+ * the JSPB instance for transitional soy proto support:
1346
+ * http://goto/soy-param-migration
1347
+ * @param {!proto.UpdateInvoiceReq} msg The msg instance to transform.
1348
+ * @return {!Object}
1349
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1705
1350
  */
1706
- proto.Invoice.prototype.setStatus = function(value) {
1707
- return jspb.Message.setProto3StringField(this, 17, value);
1351
+ proto.UpdateInvoiceReq.toObject = function(includeInstance, msg) {
1352
+ var f, obj = {
1353
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1354
+ baseInvoice: (f = msg.getBaseInvoice()) && proto.BaseInvoice.toObject(includeInstance, f)
1355
+ };
1356
+
1357
+ if (includeInstance) {
1358
+ obj.$jspbMessageInstance = msg;
1359
+ }
1360
+ return obj;
1708
1361
  };
1362
+ }
1709
1363
 
1710
1364
 
1711
1365
  /**
1712
- * optional string created_at = 18;
1713
- * @return {string}
1366
+ * Deserializes binary data (in protobuf wire format).
1367
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1368
+ * @return {!proto.UpdateInvoiceReq}
1714
1369
  */
1715
- proto.Invoice.prototype.getCreatedAt = function() {
1716
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
1370
+ proto.UpdateInvoiceReq.deserializeBinary = function(bytes) {
1371
+ var reader = new jspb.BinaryReader(bytes);
1372
+ var msg = new proto.UpdateInvoiceReq;
1373
+ return proto.UpdateInvoiceReq.deserializeBinaryFromReader(msg, reader);
1717
1374
  };
1718
1375
 
1719
1376
 
1720
1377
  /**
1721
- * @param {string} value
1722
- * @return {!proto.Invoice} returns this
1378
+ * Deserializes binary data (in protobuf wire format) from the
1379
+ * given reader into the given message object.
1380
+ * @param {!proto.UpdateInvoiceReq} msg The message object to deserialize into.
1381
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1382
+ * @return {!proto.UpdateInvoiceReq}
1723
1383
  */
1724
- proto.Invoice.prototype.setCreatedAt = function(value) {
1725
- return jspb.Message.setProto3StringField(this, 18, value);
1384
+ proto.UpdateInvoiceReq.deserializeBinaryFromReader = function(msg, reader) {
1385
+ while (reader.nextField()) {
1386
+ if (reader.isEndGroup()) {
1387
+ break;
1388
+ }
1389
+ var field = reader.getFieldNumber();
1390
+ switch (field) {
1391
+ case 1:
1392
+ var value = /** @type {string} */ (reader.readString());
1393
+ msg.setReferencesId(value);
1394
+ break;
1395
+ case 2:
1396
+ var value = new proto.BaseInvoice;
1397
+ reader.readMessage(value,proto.BaseInvoice.deserializeBinaryFromReader);
1398
+ msg.setBaseInvoice(value);
1399
+ break;
1400
+ default:
1401
+ reader.skipField();
1402
+ break;
1403
+ }
1404
+ }
1405
+ return msg;
1726
1406
  };
1727
1407
 
1728
1408
 
1729
1409
  /**
1730
- * optional string updated_at = 19;
1731
- * @return {string}
1410
+ * Serializes the message to binary data (in protobuf wire format).
1411
+ * @return {!Uint8Array}
1732
1412
  */
1733
- proto.Invoice.prototype.getUpdatedAt = function() {
1734
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
1413
+ proto.UpdateInvoiceReq.prototype.serializeBinary = function() {
1414
+ var writer = new jspb.BinaryWriter();
1415
+ proto.UpdateInvoiceReq.serializeBinaryToWriter(this, writer);
1416
+ return writer.getResultBuffer();
1735
1417
  };
1736
1418
 
1737
1419
 
1738
1420
  /**
1739
- * @param {string} value
1740
- * @return {!proto.Invoice} returns this
1421
+ * Serializes the given message to binary data (in protobuf wire
1422
+ * format), writing to the given BinaryWriter.
1423
+ * @param {!proto.UpdateInvoiceReq} message
1424
+ * @param {!jspb.BinaryWriter} writer
1425
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1741
1426
  */
1742
- proto.Invoice.prototype.setUpdatedAt = function(value) {
1743
- return jspb.Message.setProto3StringField(this, 19, value);
1427
+ proto.UpdateInvoiceReq.serializeBinaryToWriter = function(message, writer) {
1428
+ var f = undefined;
1429
+ f = message.getReferencesId();
1430
+ if (f.length > 0) {
1431
+ writer.writeString(
1432
+ 1,
1433
+ f
1434
+ );
1435
+ }
1436
+ f = message.getBaseInvoice();
1437
+ if (f != null) {
1438
+ writer.writeMessage(
1439
+ 2,
1440
+ f,
1441
+ proto.BaseInvoice.serializeBinaryToWriter
1442
+ );
1443
+ }
1744
1444
  };
1745
1445
 
1746
1446
 
1747
1447
  /**
1748
- * optional string created_by = 20;
1448
+ * optional string references_id = 1;
1749
1449
  * @return {string}
1750
1450
  */
1751
- proto.Invoice.prototype.getCreatedBy = function() {
1752
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, ""));
1451
+ proto.UpdateInvoiceReq.prototype.getReferencesId = function() {
1452
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1753
1453
  };
1754
1454
 
1755
1455
 
1756
1456
  /**
1757
1457
  * @param {string} value
1758
- * @return {!proto.Invoice} returns this
1458
+ * @return {!proto.UpdateInvoiceReq} returns this
1759
1459
  */
1760
- proto.Invoice.prototype.setCreatedBy = function(value) {
1761
- return jspb.Message.setProto3StringField(this, 20, value);
1460
+ proto.UpdateInvoiceReq.prototype.setReferencesId = function(value) {
1461
+ return jspb.Message.setProto3StringField(this, 1, value);
1762
1462
  };
1763
1463
 
1764
1464
 
1765
1465
  /**
1766
- * optional string update_by = 21;
1767
- * @return {string}
1466
+ * optional BaseInvoice base_invoice = 2;
1467
+ * @return {?proto.BaseInvoice}
1768
1468
  */
1769
- proto.Invoice.prototype.getUpdateBy = function() {
1770
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, ""));
1469
+ proto.UpdateInvoiceReq.prototype.getBaseInvoice = function() {
1470
+ return /** @type{?proto.BaseInvoice} */ (
1471
+ jspb.Message.getWrapperField(this, proto.BaseInvoice, 2));
1771
1472
  };
1772
1473
 
1773
1474
 
1774
1475
  /**
1775
- * @param {string} value
1776
- * @return {!proto.Invoice} returns this
1777
- */
1778
- proto.Invoice.prototype.setUpdateBy = function(value) {
1779
- return jspb.Message.setProto3StringField(this, 21, value);
1476
+ * @param {?proto.BaseInvoice|undefined} value
1477
+ * @return {!proto.UpdateInvoiceReq} returns this
1478
+ */
1479
+ proto.UpdateInvoiceReq.prototype.setBaseInvoice = function(value) {
1480
+ return jspb.Message.setWrapperField(this, 2, value);
1780
1481
  };
1781
1482
 
1782
1483
 
1783
1484
  /**
1784
- * optional string companies_references_id = 22;
1785
- * @return {string}
1485
+ * Clears the message field making it undefined.
1486
+ * @return {!proto.UpdateInvoiceReq} returns this
1786
1487
  */
1787
- proto.Invoice.prototype.getCompaniesReferencesId = function() {
1788
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, ""));
1488
+ proto.UpdateInvoiceReq.prototype.clearBaseInvoice = function() {
1489
+ return this.setBaseInvoice(undefined);
1789
1490
  };
1790
1491
 
1791
1492
 
1792
1493
  /**
1793
- * @param {string} value
1794
- * @return {!proto.Invoice} returns this
1494
+ * Returns whether this field is set.
1495
+ * @return {boolean}
1795
1496
  */
1796
- proto.Invoice.prototype.setCompaniesReferencesId = function(value) {
1797
- return jspb.Message.setProto3StringField(this, 22, value);
1497
+ proto.UpdateInvoiceReq.prototype.hasBaseInvoice = function() {
1498
+ return jspb.Message.getField(this, 2) != null;
1798
1499
  };
1799
1500
 
1800
1501
 
1502
+
1503
+
1504
+
1505
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1801
1506
  /**
1802
- * optional string group_references = 23;
1803
- * @return {string}
1507
+ * Creates an object representation of this proto.
1508
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1509
+ * Optional fields that are not set will be set to undefined.
1510
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1511
+ * For the list of reserved names please see:
1512
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1513
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1514
+ * JSPB instance for transitional soy proto support:
1515
+ * http://goto/soy-param-migration
1516
+ * @return {!Object}
1804
1517
  */
1805
- proto.Invoice.prototype.getGroupReferences = function() {
1806
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 23, ""));
1518
+ proto.UpdateInvoiceRes.prototype.toObject = function(opt_includeInstance) {
1519
+ return proto.UpdateInvoiceRes.toObject(opt_includeInstance, this);
1807
1520
  };
1808
1521
 
1809
1522
 
1810
1523
  /**
1811
- * @param {string} value
1812
- * @return {!proto.Invoice} returns this
1524
+ * Static version of the {@see toObject} method.
1525
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1526
+ * the JSPB instance for transitional soy proto support:
1527
+ * http://goto/soy-param-migration
1528
+ * @param {!proto.UpdateInvoiceRes} msg The msg instance to transform.
1529
+ * @return {!Object}
1530
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1813
1531
  */
1814
- proto.Invoice.prototype.setGroupReferences = function(value) {
1815
- return jspb.Message.setProto3StringField(this, 23, value);
1532
+ proto.UpdateInvoiceRes.toObject = function(includeInstance, msg) {
1533
+ var f, obj = {
1534
+ invoice: (f = msg.getInvoice()) && prisca_v1_purchase_order_purchase_order_pb.Invoice.toObject(includeInstance, f),
1535
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1536
+ };
1537
+
1538
+ if (includeInstance) {
1539
+ obj.$jspbMessageInstance = msg;
1540
+ }
1541
+ return obj;
1816
1542
  };
1543
+ }
1817
1544
 
1818
1545
 
1819
1546
  /**
1820
- * optional bool is_expired = 24;
1821
- * @return {boolean}
1547
+ * Deserializes binary data (in protobuf wire format).
1548
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1549
+ * @return {!proto.UpdateInvoiceRes}
1822
1550
  */
1823
- proto.Invoice.prototype.getIsExpired = function() {
1824
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 24, false));
1551
+ proto.UpdateInvoiceRes.deserializeBinary = function(bytes) {
1552
+ var reader = new jspb.BinaryReader(bytes);
1553
+ var msg = new proto.UpdateInvoiceRes;
1554
+ return proto.UpdateInvoiceRes.deserializeBinaryFromReader(msg, reader);
1825
1555
  };
1826
1556
 
1827
1557
 
1828
1558
  /**
1829
- * @param {boolean} value
1830
- * @return {!proto.Invoice} returns this
1559
+ * Deserializes binary data (in protobuf wire format) from the
1560
+ * given reader into the given message object.
1561
+ * @param {!proto.UpdateInvoiceRes} msg The message object to deserialize into.
1562
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1563
+ * @return {!proto.UpdateInvoiceRes}
1831
1564
  */
1832
- proto.Invoice.prototype.setIsExpired = function(value) {
1833
- return jspb.Message.setProto3BooleanField(this, 24, value);
1565
+ proto.UpdateInvoiceRes.deserializeBinaryFromReader = function(msg, reader) {
1566
+ while (reader.nextField()) {
1567
+ if (reader.isEndGroup()) {
1568
+ break;
1569
+ }
1570
+ var field = reader.getFieldNumber();
1571
+ switch (field) {
1572
+ case 1:
1573
+ var value = new prisca_v1_purchase_order_purchase_order_pb.Invoice;
1574
+ reader.readMessage(value,prisca_v1_purchase_order_purchase_order_pb.Invoice.deserializeBinaryFromReader);
1575
+ msg.setInvoice(value);
1576
+ break;
1577
+ case 2:
1578
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1579
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1580
+ msg.setMeta(value);
1581
+ break;
1582
+ default:
1583
+ reader.skipField();
1584
+ break;
1585
+ }
1586
+ }
1587
+ return msg;
1834
1588
  };
1835
1589
 
1836
1590
 
1837
1591
  /**
1838
- * optional string file_ids = 25;
1839
- * @return {string}
1592
+ * Serializes the message to binary data (in protobuf wire format).
1593
+ * @return {!Uint8Array}
1840
1594
  */
1841
- proto.Invoice.prototype.getFileIds = function() {
1842
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 25, ""));
1595
+ proto.UpdateInvoiceRes.prototype.serializeBinary = function() {
1596
+ var writer = new jspb.BinaryWriter();
1597
+ proto.UpdateInvoiceRes.serializeBinaryToWriter(this, writer);
1598
+ return writer.getResultBuffer();
1843
1599
  };
1844
1600
 
1845
1601
 
1846
1602
  /**
1847
- * @param {string} value
1848
- * @return {!proto.Invoice} returns this
1603
+ * Serializes the given message to binary data (in protobuf wire
1604
+ * format), writing to the given BinaryWriter.
1605
+ * @param {!proto.UpdateInvoiceRes} message
1606
+ * @param {!jspb.BinaryWriter} writer
1607
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1849
1608
  */
1850
- proto.Invoice.prototype.setFileIds = function(value) {
1851
- return jspb.Message.setProto3StringField(this, 25, value);
1609
+ proto.UpdateInvoiceRes.serializeBinaryToWriter = function(message, writer) {
1610
+ var f = undefined;
1611
+ f = message.getInvoice();
1612
+ if (f != null) {
1613
+ writer.writeMessage(
1614
+ 1,
1615
+ f,
1616
+ prisca_v1_purchase_order_purchase_order_pb.Invoice.serializeBinaryToWriter
1617
+ );
1618
+ }
1619
+ f = message.getMeta();
1620
+ if (f != null) {
1621
+ writer.writeMessage(
1622
+ 2,
1623
+ f,
1624
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1625
+ );
1626
+ }
1852
1627
  };
1853
1628
 
1854
1629
 
1855
1630
  /**
1856
- * repeated FileUploadReferencesReq files = 26;
1857
- * @return {!Array<!proto.FileUploadReferencesReq>}
1631
+ * optional Invoice invoice = 1;
1632
+ * @return {?proto.Invoice}
1858
1633
  */
1859
- proto.Invoice.prototype.getFilesList = function() {
1860
- return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
1861
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 26));
1634
+ proto.UpdateInvoiceRes.prototype.getInvoice = function() {
1635
+ return /** @type{?proto.Invoice} */ (
1636
+ jspb.Message.getWrapperField(this, prisca_v1_purchase_order_purchase_order_pb.Invoice, 1));
1862
1637
  };
1863
1638
 
1864
1639
 
1865
1640
  /**
1866
- * @param {!Array<!proto.FileUploadReferencesReq>} value
1867
- * @return {!proto.Invoice} returns this
1641
+ * @param {?proto.Invoice|undefined} value
1642
+ * @return {!proto.UpdateInvoiceRes} returns this
1868
1643
  */
1869
- proto.Invoice.prototype.setFilesList = function(value) {
1870
- return jspb.Message.setRepeatedWrapperField(this, 26, value);
1644
+ proto.UpdateInvoiceRes.prototype.setInvoice = function(value) {
1645
+ return jspb.Message.setWrapperField(this, 1, value);
1871
1646
  };
1872
1647
 
1873
1648
 
1874
1649
  /**
1875
- * @param {!proto.FileUploadReferencesReq=} opt_value
1876
- * @param {number=} opt_index
1877
- * @return {!proto.FileUploadReferencesReq}
1650
+ * Clears the message field making it undefined.
1651
+ * @return {!proto.UpdateInvoiceRes} returns this
1878
1652
  */
1879
- proto.Invoice.prototype.addFiles = function(opt_value, opt_index) {
1880
- return jspb.Message.addToRepeatedWrapperField(this, 26, opt_value, proto.FileUploadReferencesReq, opt_index);
1653
+ proto.UpdateInvoiceRes.prototype.clearInvoice = function() {
1654
+ return this.setInvoice(undefined);
1881
1655
  };
1882
1656
 
1883
1657
 
1884
1658
  /**
1885
- * Clears the list making it empty but non-null.
1886
- * @return {!proto.Invoice} returns this
1659
+ * Returns whether this field is set.
1660
+ * @return {boolean}
1887
1661
  */
1888
- proto.Invoice.prototype.clearFilesList = function() {
1889
- return this.setFilesList([]);
1662
+ proto.UpdateInvoiceRes.prototype.hasInvoice = function() {
1663
+ return jspb.Message.getField(this, 1) != null;
1890
1664
  };
1891
1665
 
1892
1666
 
1893
1667
  /**
1894
- * optional Company company = 27;
1895
- * @return {?proto.Company}
1668
+ * optional prisca.v1.global.meta.Meta meta = 2;
1669
+ * @return {?proto.prisca.v1.global.meta.Meta}
1896
1670
  */
1897
- proto.Invoice.prototype.getCompany = function() {
1898
- return /** @type{?proto.Company} */ (
1899
- jspb.Message.getWrapperField(this, prisca_v1_core_company_company_pb.Company, 27));
1671
+ proto.UpdateInvoiceRes.prototype.getMeta = function() {
1672
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1673
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1900
1674
  };
1901
1675
 
1902
1676
 
1903
1677
  /**
1904
- * @param {?proto.Company|undefined} value
1905
- * @return {!proto.Invoice} returns this
1678
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1679
+ * @return {!proto.UpdateInvoiceRes} returns this
1906
1680
  */
1907
- proto.Invoice.prototype.setCompany = function(value) {
1908
- return jspb.Message.setWrapperField(this, 27, value);
1681
+ proto.UpdateInvoiceRes.prototype.setMeta = function(value) {
1682
+ return jspb.Message.setWrapperField(this, 2, value);
1909
1683
  };
1910
1684
 
1911
1685
 
1912
1686
  /**
1913
1687
  * Clears the message field making it undefined.
1914
- * @return {!proto.Invoice} returns this
1688
+ * @return {!proto.UpdateInvoiceRes} returns this
1915
1689
  */
1916
- proto.Invoice.prototype.clearCompany = function() {
1917
- return this.setCompany(undefined);
1690
+ proto.UpdateInvoiceRes.prototype.clearMeta = function() {
1691
+ return this.setMeta(undefined);
1918
1692
  };
1919
1693
 
1920
1694
 
@@ -1922,186 +1696,294 @@ proto.Invoice.prototype.clearCompany = function() {
1922
1696
  * Returns whether this field is set.
1923
1697
  * @return {boolean}
1924
1698
  */
1925
- proto.Invoice.prototype.hasCompany = function() {
1926
- return jspb.Message.getField(this, 27) != null;
1699
+ proto.UpdateInvoiceRes.prototype.hasMeta = function() {
1700
+ return jspb.Message.getField(this, 2) != null;
1927
1701
  };
1928
1702
 
1929
1703
 
1930
- /**
1931
- * optional PurchaseOrder purchase_order = 28;
1932
- * @return {?proto.PurchaseOrder}
1933
- */
1934
- proto.Invoice.prototype.getPurchaseOrder = function() {
1935
- return /** @type{?proto.PurchaseOrder} */ (
1936
- jspb.Message.getWrapperField(this, prisca_v1_purchase_order_purchase_order_pb.PurchaseOrder, 28));
1937
- };
1938
1704
 
1939
1705
 
1706
+
1707
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1940
1708
  /**
1941
- * @param {?proto.PurchaseOrder|undefined} value
1942
- * @return {!proto.Invoice} returns this
1943
- */
1944
- proto.Invoice.prototype.setPurchaseOrder = function(value) {
1945
- return jspb.Message.setWrapperField(this, 28, value);
1709
+ * Creates an object representation of this proto.
1710
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1711
+ * Optional fields that are not set will be set to undefined.
1712
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1713
+ * For the list of reserved names please see:
1714
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1715
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1716
+ * JSPB instance for transitional soy proto support:
1717
+ * http://goto/soy-param-migration
1718
+ * @return {!Object}
1719
+ */
1720
+ proto.GetInvoiceByIdReq.prototype.toObject = function(opt_includeInstance) {
1721
+ return proto.GetInvoiceByIdReq.toObject(opt_includeInstance, this);
1946
1722
  };
1947
1723
 
1948
1724
 
1949
1725
  /**
1950
- * Clears the message field making it undefined.
1951
- * @return {!proto.Invoice} returns this
1726
+ * Static version of the {@see toObject} method.
1727
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1728
+ * the JSPB instance for transitional soy proto support:
1729
+ * http://goto/soy-param-migration
1730
+ * @param {!proto.GetInvoiceByIdReq} msg The msg instance to transform.
1731
+ * @return {!Object}
1732
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1952
1733
  */
1953
- proto.Invoice.prototype.clearPurchaseOrder = function() {
1954
- return this.setPurchaseOrder(undefined);
1734
+ proto.GetInvoiceByIdReq.toObject = function(includeInstance, msg) {
1735
+ var f, obj = {
1736
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
1737
+ };
1738
+
1739
+ if (includeInstance) {
1740
+ obj.$jspbMessageInstance = msg;
1741
+ }
1742
+ return obj;
1955
1743
  };
1744
+ }
1956
1745
 
1957
1746
 
1958
1747
  /**
1959
- * Returns whether this field is set.
1960
- * @return {boolean}
1748
+ * Deserializes binary data (in protobuf wire format).
1749
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1750
+ * @return {!proto.GetInvoiceByIdReq}
1961
1751
  */
1962
- proto.Invoice.prototype.hasPurchaseOrder = function() {
1963
- return jspb.Message.getField(this, 28) != null;
1752
+ proto.GetInvoiceByIdReq.deserializeBinary = function(bytes) {
1753
+ var reader = new jspb.BinaryReader(bytes);
1754
+ var msg = new proto.GetInvoiceByIdReq;
1755
+ return proto.GetInvoiceByIdReq.deserializeBinaryFromReader(msg, reader);
1964
1756
  };
1965
1757
 
1966
1758
 
1967
1759
  /**
1968
- * repeated GoodReceipt good_receipts = 29;
1969
- * @return {!Array<!proto.GoodReceipt>}
1760
+ * Deserializes binary data (in protobuf wire format) from the
1761
+ * given reader into the given message object.
1762
+ * @param {!proto.GetInvoiceByIdReq} msg The message object to deserialize into.
1763
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1764
+ * @return {!proto.GetInvoiceByIdReq}
1970
1765
  */
1971
- proto.Invoice.prototype.getGoodReceiptsList = function() {
1972
- return /** @type{!Array<!proto.GoodReceipt>} */ (
1973
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_good_receipt_good_receipt_pb.GoodReceipt, 29));
1766
+ proto.GetInvoiceByIdReq.deserializeBinaryFromReader = function(msg, reader) {
1767
+ while (reader.nextField()) {
1768
+ if (reader.isEndGroup()) {
1769
+ break;
1770
+ }
1771
+ var field = reader.getFieldNumber();
1772
+ switch (field) {
1773
+ case 1:
1774
+ var value = /** @type {string} */ (reader.readString());
1775
+ msg.setReferencesId(value);
1776
+ break;
1777
+ default:
1778
+ reader.skipField();
1779
+ break;
1780
+ }
1781
+ }
1782
+ return msg;
1974
1783
  };
1975
1784
 
1976
1785
 
1977
1786
  /**
1978
- * @param {!Array<!proto.GoodReceipt>} value
1979
- * @return {!proto.Invoice} returns this
1980
- */
1981
- proto.Invoice.prototype.setGoodReceiptsList = function(value) {
1982
- return jspb.Message.setRepeatedWrapperField(this, 29, value);
1787
+ * Serializes the message to binary data (in protobuf wire format).
1788
+ * @return {!Uint8Array}
1789
+ */
1790
+ proto.GetInvoiceByIdReq.prototype.serializeBinary = function() {
1791
+ var writer = new jspb.BinaryWriter();
1792
+ proto.GetInvoiceByIdReq.serializeBinaryToWriter(this, writer);
1793
+ return writer.getResultBuffer();
1983
1794
  };
1984
1795
 
1985
1796
 
1986
1797
  /**
1987
- * @param {!proto.GoodReceipt=} opt_value
1988
- * @param {number=} opt_index
1989
- * @return {!proto.GoodReceipt}
1798
+ * Serializes the given message to binary data (in protobuf wire
1799
+ * format), writing to the given BinaryWriter.
1800
+ * @param {!proto.GetInvoiceByIdReq} message
1801
+ * @param {!jspb.BinaryWriter} writer
1802
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1990
1803
  */
1991
- proto.Invoice.prototype.addGoodReceipts = function(opt_value, opt_index) {
1992
- return jspb.Message.addToRepeatedWrapperField(this, 29, opt_value, proto.GoodReceipt, opt_index);
1804
+ proto.GetInvoiceByIdReq.serializeBinaryToWriter = function(message, writer) {
1805
+ var f = undefined;
1806
+ f = message.getReferencesId();
1807
+ if (f.length > 0) {
1808
+ writer.writeString(
1809
+ 1,
1810
+ f
1811
+ );
1812
+ }
1993
1813
  };
1994
1814
 
1995
1815
 
1996
1816
  /**
1997
- * Clears the list making it empty but non-null.
1998
- * @return {!proto.Invoice} returns this
1817
+ * optional string references_id = 1;
1818
+ * @return {string}
1999
1819
  */
2000
- proto.Invoice.prototype.clearGoodReceiptsList = function() {
2001
- return this.setGoodReceiptsList([]);
1820
+ proto.GetInvoiceByIdReq.prototype.getReferencesId = function() {
1821
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2002
1822
  };
2003
1823
 
2004
1824
 
2005
1825
  /**
2006
- * optional Vendor vendor = 30;
2007
- * @return {?proto.Vendor}
1826
+ * @param {string} value
1827
+ * @return {!proto.GetInvoiceByIdReq} returns this
2008
1828
  */
2009
- proto.Invoice.prototype.getVendor = function() {
2010
- return /** @type{?proto.Vendor} */ (
2011
- jspb.Message.getWrapperField(this, prisca_v1_vendor_domain_vendor_domain_pb.Vendor, 30));
1829
+ proto.GetInvoiceByIdReq.prototype.setReferencesId = function(value) {
1830
+ return jspb.Message.setProto3StringField(this, 1, value);
2012
1831
  };
2013
1832
 
2014
1833
 
2015
- /**
2016
- * @param {?proto.Vendor|undefined} value
2017
- * @return {!proto.Invoice} returns this
2018
- */
2019
- proto.Invoice.prototype.setVendor = function(value) {
2020
- return jspb.Message.setWrapperField(this, 30, value);
2021
- };
2022
1834
 
2023
1835
 
1836
+
1837
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2024
1838
  /**
2025
- * Clears the message field making it undefined.
2026
- * @return {!proto.Invoice} returns this
1839
+ * Creates an object representation of this proto.
1840
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1841
+ * Optional fields that are not set will be set to undefined.
1842
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1843
+ * For the list of reserved names please see:
1844
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1845
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1846
+ * JSPB instance for transitional soy proto support:
1847
+ * http://goto/soy-param-migration
1848
+ * @return {!Object}
2027
1849
  */
2028
- proto.Invoice.prototype.clearVendor = function() {
2029
- return this.setVendor(undefined);
1850
+ proto.GetInvoiceByIdRes.prototype.toObject = function(opt_includeInstance) {
1851
+ return proto.GetInvoiceByIdRes.toObject(opt_includeInstance, this);
2030
1852
  };
2031
1853
 
2032
1854
 
2033
1855
  /**
2034
- * Returns whether this field is set.
2035
- * @return {boolean}
1856
+ * Static version of the {@see toObject} method.
1857
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1858
+ * the JSPB instance for transitional soy proto support:
1859
+ * http://goto/soy-param-migration
1860
+ * @param {!proto.GetInvoiceByIdRes} msg The msg instance to transform.
1861
+ * @return {!Object}
1862
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2036
1863
  */
2037
- proto.Invoice.prototype.hasVendor = function() {
2038
- return jspb.Message.getField(this, 30) != null;
1864
+ proto.GetInvoiceByIdRes.toObject = function(includeInstance, msg) {
1865
+ var f, obj = {
1866
+ invoice: (f = msg.getInvoice()) && prisca_v1_purchase_order_purchase_order_pb.Invoice.toObject(includeInstance, f),
1867
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1868
+ };
1869
+
1870
+ if (includeInstance) {
1871
+ obj.$jspbMessageInstance = msg;
1872
+ }
1873
+ return obj;
2039
1874
  };
1875
+ }
2040
1876
 
2041
1877
 
2042
1878
  /**
2043
- * repeated ItemTransaction item_transactions = 31;
2044
- * @return {!Array<!proto.ItemTransaction>}
1879
+ * Deserializes binary data (in protobuf wire format).
1880
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1881
+ * @return {!proto.GetInvoiceByIdRes}
2045
1882
  */
2046
- proto.Invoice.prototype.getItemTransactionsList = function() {
2047
- return /** @type{!Array<!proto.ItemTransaction>} */ (
2048
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction, 31));
1883
+ proto.GetInvoiceByIdRes.deserializeBinary = function(bytes) {
1884
+ var reader = new jspb.BinaryReader(bytes);
1885
+ var msg = new proto.GetInvoiceByIdRes;
1886
+ return proto.GetInvoiceByIdRes.deserializeBinaryFromReader(msg, reader);
2049
1887
  };
2050
1888
 
2051
1889
 
2052
1890
  /**
2053
- * @param {!Array<!proto.ItemTransaction>} value
2054
- * @return {!proto.Invoice} returns this
2055
- */
2056
- proto.Invoice.prototype.setItemTransactionsList = function(value) {
2057
- return jspb.Message.setRepeatedWrapperField(this, 31, value);
1891
+ * Deserializes binary data (in protobuf wire format) from the
1892
+ * given reader into the given message object.
1893
+ * @param {!proto.GetInvoiceByIdRes} msg The message object to deserialize into.
1894
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1895
+ * @return {!proto.GetInvoiceByIdRes}
1896
+ */
1897
+ proto.GetInvoiceByIdRes.deserializeBinaryFromReader = function(msg, reader) {
1898
+ while (reader.nextField()) {
1899
+ if (reader.isEndGroup()) {
1900
+ break;
1901
+ }
1902
+ var field = reader.getFieldNumber();
1903
+ switch (field) {
1904
+ case 1:
1905
+ var value = new prisca_v1_purchase_order_purchase_order_pb.Invoice;
1906
+ reader.readMessage(value,prisca_v1_purchase_order_purchase_order_pb.Invoice.deserializeBinaryFromReader);
1907
+ msg.setInvoice(value);
1908
+ break;
1909
+ case 2:
1910
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1911
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1912
+ msg.setMeta(value);
1913
+ break;
1914
+ default:
1915
+ reader.skipField();
1916
+ break;
1917
+ }
1918
+ }
1919
+ return msg;
2058
1920
  };
2059
1921
 
2060
1922
 
2061
1923
  /**
2062
- * @param {!proto.ItemTransaction=} opt_value
2063
- * @param {number=} opt_index
2064
- * @return {!proto.ItemTransaction}
1924
+ * Serializes the message to binary data (in protobuf wire format).
1925
+ * @return {!Uint8Array}
2065
1926
  */
2066
- proto.Invoice.prototype.addItemTransactions = function(opt_value, opt_index) {
2067
- return jspb.Message.addToRepeatedWrapperField(this, 31, opt_value, proto.ItemTransaction, opt_index);
1927
+ proto.GetInvoiceByIdRes.prototype.serializeBinary = function() {
1928
+ var writer = new jspb.BinaryWriter();
1929
+ proto.GetInvoiceByIdRes.serializeBinaryToWriter(this, writer);
1930
+ return writer.getResultBuffer();
2068
1931
  };
2069
1932
 
2070
1933
 
2071
1934
  /**
2072
- * Clears the list making it empty but non-null.
2073
- * @return {!proto.Invoice} returns this
1935
+ * Serializes the given message to binary data (in protobuf wire
1936
+ * format), writing to the given BinaryWriter.
1937
+ * @param {!proto.GetInvoiceByIdRes} message
1938
+ * @param {!jspb.BinaryWriter} writer
1939
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2074
1940
  */
2075
- proto.Invoice.prototype.clearItemTransactionsList = function() {
2076
- return this.setItemTransactionsList([]);
1941
+ proto.GetInvoiceByIdRes.serializeBinaryToWriter = function(message, writer) {
1942
+ var f = undefined;
1943
+ f = message.getInvoice();
1944
+ if (f != null) {
1945
+ writer.writeMessage(
1946
+ 1,
1947
+ f,
1948
+ prisca_v1_purchase_order_purchase_order_pb.Invoice.serializeBinaryToWriter
1949
+ );
1950
+ }
1951
+ f = message.getMeta();
1952
+ if (f != null) {
1953
+ writer.writeMessage(
1954
+ 2,
1955
+ f,
1956
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1957
+ );
1958
+ }
2077
1959
  };
2078
1960
 
2079
1961
 
2080
1962
  /**
2081
- * optional Employee created_by_employee = 32;
2082
- * @return {?proto.Employee}
1963
+ * optional Invoice invoice = 1;
1964
+ * @return {?proto.Invoice}
2083
1965
  */
2084
- proto.Invoice.prototype.getCreatedByEmployee = function() {
2085
- return /** @type{?proto.Employee} */ (
2086
- jspb.Message.getWrapperField(this, prisca_v1_core_employee_employee_pb.Employee, 32));
1966
+ proto.GetInvoiceByIdRes.prototype.getInvoice = function() {
1967
+ return /** @type{?proto.Invoice} */ (
1968
+ jspb.Message.getWrapperField(this, prisca_v1_purchase_order_purchase_order_pb.Invoice, 1));
2087
1969
  };
2088
1970
 
2089
1971
 
2090
1972
  /**
2091
- * @param {?proto.Employee|undefined} value
2092
- * @return {!proto.Invoice} returns this
1973
+ * @param {?proto.Invoice|undefined} value
1974
+ * @return {!proto.GetInvoiceByIdRes} returns this
2093
1975
  */
2094
- proto.Invoice.prototype.setCreatedByEmployee = function(value) {
2095
- return jspb.Message.setWrapperField(this, 32, value);
1976
+ proto.GetInvoiceByIdRes.prototype.setInvoice = function(value) {
1977
+ return jspb.Message.setWrapperField(this, 1, value);
2096
1978
  };
2097
1979
 
2098
1980
 
2099
1981
  /**
2100
1982
  * Clears the message field making it undefined.
2101
- * @return {!proto.Invoice} returns this
1983
+ * @return {!proto.GetInvoiceByIdRes} returns this
2102
1984
  */
2103
- proto.Invoice.prototype.clearCreatedByEmployee = function() {
2104
- return this.setCreatedByEmployee(undefined);
1985
+ proto.GetInvoiceByIdRes.prototype.clearInvoice = function() {
1986
+ return this.setInvoice(undefined);
2105
1987
  };
2106
1988
 
2107
1989
 
@@ -2109,36 +1991,36 @@ proto.Invoice.prototype.clearCreatedByEmployee = function() {
2109
1991
  * Returns whether this field is set.
2110
1992
  * @return {boolean}
2111
1993
  */
2112
- proto.Invoice.prototype.hasCreatedByEmployee = function() {
2113
- return jspb.Message.getField(this, 32) != null;
1994
+ proto.GetInvoiceByIdRes.prototype.hasInvoice = function() {
1995
+ return jspb.Message.getField(this, 1) != null;
2114
1996
  };
2115
1997
 
2116
1998
 
2117
1999
  /**
2118
- * optional Employee updated_by_employee = 33;
2119
- * @return {?proto.Employee}
2000
+ * optional prisca.v1.global.meta.Meta meta = 2;
2001
+ * @return {?proto.prisca.v1.global.meta.Meta}
2120
2002
  */
2121
- proto.Invoice.prototype.getUpdatedByEmployee = function() {
2122
- return /** @type{?proto.Employee} */ (
2123
- jspb.Message.getWrapperField(this, prisca_v1_core_employee_employee_pb.Employee, 33));
2003
+ proto.GetInvoiceByIdRes.prototype.getMeta = function() {
2004
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2005
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2124
2006
  };
2125
2007
 
2126
2008
 
2127
2009
  /**
2128
- * @param {?proto.Employee|undefined} value
2129
- * @return {!proto.Invoice} returns this
2010
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2011
+ * @return {!proto.GetInvoiceByIdRes} returns this
2130
2012
  */
2131
- proto.Invoice.prototype.setUpdatedByEmployee = function(value) {
2132
- return jspb.Message.setWrapperField(this, 33, value);
2013
+ proto.GetInvoiceByIdRes.prototype.setMeta = function(value) {
2014
+ return jspb.Message.setWrapperField(this, 2, value);
2133
2015
  };
2134
2016
 
2135
2017
 
2136
2018
  /**
2137
2019
  * Clears the message field making it undefined.
2138
- * @return {!proto.Invoice} returns this
2020
+ * @return {!proto.GetInvoiceByIdRes} returns this
2139
2021
  */
2140
- proto.Invoice.prototype.clearUpdatedByEmployee = function() {
2141
- return this.setUpdatedByEmployee(undefined);
2022
+ proto.GetInvoiceByIdRes.prototype.clearMeta = function() {
2023
+ return this.setMeta(undefined);
2142
2024
  };
2143
2025
 
2144
2026
 
@@ -2146,29 +2028,18 @@ proto.Invoice.prototype.clearUpdatedByEmployee = function() {
2146
2028
  * Returns whether this field is set.
2147
2029
  * @return {boolean}
2148
2030
  */
2149
- proto.Invoice.prototype.hasUpdatedByEmployee = function() {
2150
- return jspb.Message.getField(this, 33) != null;
2031
+ proto.GetInvoiceByIdRes.prototype.hasMeta = function() {
2032
+ return jspb.Message.getField(this, 2) != null;
2151
2033
  };
2152
2034
 
2153
2035
 
2154
- /**
2155
- * optional string vendor_name = 34;
2156
- * @return {string}
2157
- */
2158
- proto.Invoice.prototype.getVendorName = function() {
2159
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 34, ""));
2160
- };
2161
-
2162
2036
 
2163
2037
  /**
2164
- * @param {string} value
2165
- * @return {!proto.Invoice} returns this
2038
+ * List of repeated fields within this message type.
2039
+ * @private {!Array<number>}
2040
+ * @const
2166
2041
  */
2167
- proto.Invoice.prototype.setVendorName = function(value) {
2168
- return jspb.Message.setProto3StringField(this, 34, value);
2169
- };
2170
-
2171
-
2042
+ proto.GetInvoiceDetailRes.repeatedFields_ = [1,2,3,4,5];
2172
2043
 
2173
2044
 
2174
2045
 
@@ -2185,8 +2056,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
2185
2056
  * http://goto/soy-param-migration
2186
2057
  * @return {!Object}
2187
2058
  */
2188
- proto.CreateInvoiceReq.prototype.toObject = function(opt_includeInstance) {
2189
- return proto.CreateInvoiceReq.toObject(opt_includeInstance, this);
2059
+ proto.GetInvoiceDetailRes.prototype.toObject = function(opt_includeInstance) {
2060
+ return proto.GetInvoiceDetailRes.toObject(opt_includeInstance, this);
2190
2061
  };
2191
2062
 
2192
2063
 
@@ -2195,13 +2066,22 @@ proto.CreateInvoiceReq.prototype.toObject = function(opt_includeInstance) {
2195
2066
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2196
2067
  * the JSPB instance for transitional soy proto support:
2197
2068
  * http://goto/soy-param-migration
2198
- * @param {!proto.CreateInvoiceReq} msg The msg instance to transform.
2069
+ * @param {!proto.GetInvoiceDetailRes} msg The msg instance to transform.
2199
2070
  * @return {!Object}
2200
2071
  * @suppress {unusedLocalVariables} f is only used for nested messages
2201
2072
  */
2202
- proto.CreateInvoiceReq.toObject = function(includeInstance, msg) {
2073
+ proto.GetInvoiceDetailRes.toObject = function(includeInstance, msg) {
2203
2074
  var f, obj = {
2204
- baseInvoice: (f = msg.getBaseInvoice()) && proto.BaseInvoice.toObject(includeInstance, f)
2075
+ transactionBuilderList: jspb.Message.toObjectList(msg.getTransactionBuilderList(),
2076
+ prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.toObject, includeInstance),
2077
+ transactionBuilderItemsList: jspb.Message.toObjectList(msg.getTransactionBuilderItemsList(),
2078
+ proto.GetInvoiceItemPreload.toObject, includeInstance),
2079
+ itemInvoiceReferencesList: jspb.Message.toObjectList(msg.getItemInvoiceReferencesList(),
2080
+ proto.ItemInvoiceReference.toObject, includeInstance),
2081
+ itemPurchaseOrdersList: jspb.Message.toObjectList(msg.getItemPurchaseOrdersList(),
2082
+ proto.ItemPurchaseOrder.toObject, includeInstance),
2083
+ itemGoodReceiptsList: jspb.Message.toObjectList(msg.getItemGoodReceiptsList(),
2084
+ proto.ItemGoodReceipt.toObject, includeInstance)
2205
2085
  };
2206
2086
 
2207
2087
  if (includeInstance) {
@@ -2215,23 +2095,23 @@ baseInvoice: (f = msg.getBaseInvoice()) && proto.BaseInvoice.toObject(includeIns
2215
2095
  /**
2216
2096
  * Deserializes binary data (in protobuf wire format).
2217
2097
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
2218
- * @return {!proto.CreateInvoiceReq}
2098
+ * @return {!proto.GetInvoiceDetailRes}
2219
2099
  */
2220
- proto.CreateInvoiceReq.deserializeBinary = function(bytes) {
2100
+ proto.GetInvoiceDetailRes.deserializeBinary = function(bytes) {
2221
2101
  var reader = new jspb.BinaryReader(bytes);
2222
- var msg = new proto.CreateInvoiceReq;
2223
- return proto.CreateInvoiceReq.deserializeBinaryFromReader(msg, reader);
2102
+ var msg = new proto.GetInvoiceDetailRes;
2103
+ return proto.GetInvoiceDetailRes.deserializeBinaryFromReader(msg, reader);
2224
2104
  };
2225
2105
 
2226
2106
 
2227
2107
  /**
2228
2108
  * Deserializes binary data (in protobuf wire format) from the
2229
2109
  * given reader into the given message object.
2230
- * @param {!proto.CreateInvoiceReq} msg The message object to deserialize into.
2110
+ * @param {!proto.GetInvoiceDetailRes} msg The message object to deserialize into.
2231
2111
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2232
- * @return {!proto.CreateInvoiceReq}
2112
+ * @return {!proto.GetInvoiceDetailRes}
2233
2113
  */
2234
- proto.CreateInvoiceReq.deserializeBinaryFromReader = function(msg, reader) {
2114
+ proto.GetInvoiceDetailRes.deserializeBinaryFromReader = function(msg, reader) {
2235
2115
  while (reader.nextField()) {
2236
2116
  if (reader.isEndGroup()) {
2237
2117
  break;
@@ -2239,9 +2119,29 @@ proto.CreateInvoiceReq.deserializeBinaryFromReader = function(msg, reader) {
2239
2119
  var field = reader.getFieldNumber();
2240
2120
  switch (field) {
2241
2121
  case 1:
2242
- var value = new proto.BaseInvoice;
2243
- reader.readMessage(value,proto.BaseInvoice.deserializeBinaryFromReader);
2244
- msg.setBaseInvoice(value);
2122
+ var value = new prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail;
2123
+ reader.readMessage(value,prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.deserializeBinaryFromReader);
2124
+ msg.addTransactionBuilder(value);
2125
+ break;
2126
+ case 2:
2127
+ var value = new proto.GetInvoiceItemPreload;
2128
+ reader.readMessage(value,proto.GetInvoiceItemPreload.deserializeBinaryFromReader);
2129
+ msg.addTransactionBuilderItems(value);
2130
+ break;
2131
+ case 3:
2132
+ var value = new proto.ItemInvoiceReference;
2133
+ reader.readMessage(value,proto.ItemInvoiceReference.deserializeBinaryFromReader);
2134
+ msg.addItemInvoiceReferences(value);
2135
+ break;
2136
+ case 4:
2137
+ var value = new proto.ItemPurchaseOrder;
2138
+ reader.readMessage(value,proto.ItemPurchaseOrder.deserializeBinaryFromReader);
2139
+ msg.addItemPurchaseOrders(value);
2140
+ break;
2141
+ case 5:
2142
+ var value = new proto.ItemGoodReceipt;
2143
+ reader.readMessage(value,proto.ItemGoodReceipt.deserializeBinaryFromReader);
2144
+ msg.addItemGoodReceipts(value);
2245
2145
  break;
2246
2146
  default:
2247
2147
  reader.skipField();
@@ -2256,9 +2156,9 @@ proto.CreateInvoiceReq.deserializeBinaryFromReader = function(msg, reader) {
2256
2156
  * Serializes the message to binary data (in protobuf wire format).
2257
2157
  * @return {!Uint8Array}
2258
2158
  */
2259
- proto.CreateInvoiceReq.prototype.serializeBinary = function() {
2159
+ proto.GetInvoiceDetailRes.prototype.serializeBinary = function() {
2260
2160
  var writer = new jspb.BinaryWriter();
2261
- proto.CreateInvoiceReq.serializeBinaryToWriter(this, writer);
2161
+ proto.GetInvoiceDetailRes.serializeBinaryToWriter(this, writer);
2262
2162
  return writer.getResultBuffer();
2263
2163
  };
2264
2164
 
@@ -2266,263 +2166,253 @@ proto.CreateInvoiceReq.prototype.serializeBinary = function() {
2266
2166
  /**
2267
2167
  * Serializes the given message to binary data (in protobuf wire
2268
2168
  * format), writing to the given BinaryWriter.
2269
- * @param {!proto.CreateInvoiceReq} message
2169
+ * @param {!proto.GetInvoiceDetailRes} message
2270
2170
  * @param {!jspb.BinaryWriter} writer
2271
2171
  * @suppress {unusedLocalVariables} f is only used for nested messages
2272
2172
  */
2273
- proto.CreateInvoiceReq.serializeBinaryToWriter = function(message, writer) {
2173
+ proto.GetInvoiceDetailRes.serializeBinaryToWriter = function(message, writer) {
2274
2174
  var f = undefined;
2275
- f = message.getBaseInvoice();
2276
- if (f != null) {
2277
- writer.writeMessage(
2175
+ f = message.getTransactionBuilderList();
2176
+ if (f.length > 0) {
2177
+ writer.writeRepeatedMessage(
2278
2178
  1,
2279
2179
  f,
2280
- proto.BaseInvoice.serializeBinaryToWriter
2180
+ prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.serializeBinaryToWriter
2181
+ );
2182
+ }
2183
+ f = message.getTransactionBuilderItemsList();
2184
+ if (f.length > 0) {
2185
+ writer.writeRepeatedMessage(
2186
+ 2,
2187
+ f,
2188
+ proto.GetInvoiceItemPreload.serializeBinaryToWriter
2189
+ );
2190
+ }
2191
+ f = message.getItemInvoiceReferencesList();
2192
+ if (f.length > 0) {
2193
+ writer.writeRepeatedMessage(
2194
+ 3,
2195
+ f,
2196
+ proto.ItemInvoiceReference.serializeBinaryToWriter
2197
+ );
2198
+ }
2199
+ f = message.getItemPurchaseOrdersList();
2200
+ if (f.length > 0) {
2201
+ writer.writeRepeatedMessage(
2202
+ 4,
2203
+ f,
2204
+ proto.ItemPurchaseOrder.serializeBinaryToWriter
2281
2205
  );
2282
2206
  }
2207
+ f = message.getItemGoodReceiptsList();
2208
+ if (f.length > 0) {
2209
+ writer.writeRepeatedMessage(
2210
+ 5,
2211
+ f,
2212
+ proto.ItemGoodReceipt.serializeBinaryToWriter
2213
+ );
2214
+ }
2215
+ };
2216
+
2217
+
2218
+ /**
2219
+ * repeated TransactionBuilderFieldsDetail transaction_builder = 1;
2220
+ * @return {!Array<!proto.TransactionBuilderFieldsDetail>}
2221
+ */
2222
+ proto.GetInvoiceDetailRes.prototype.getTransactionBuilderList = function() {
2223
+ return /** @type{!Array<!proto.TransactionBuilderFieldsDetail>} */ (
2224
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail, 1));
2283
2225
  };
2284
2226
 
2285
2227
 
2286
2228
  /**
2287
- * optional BaseInvoice base_invoice = 1;
2288
- * @return {?proto.BaseInvoice}
2289
- */
2290
- proto.CreateInvoiceReq.prototype.getBaseInvoice = function() {
2291
- return /** @type{?proto.BaseInvoice} */ (
2292
- jspb.Message.getWrapperField(this, proto.BaseInvoice, 1));
2229
+ * @param {!Array<!proto.TransactionBuilderFieldsDetail>} value
2230
+ * @return {!proto.GetInvoiceDetailRes} returns this
2231
+ */
2232
+ proto.GetInvoiceDetailRes.prototype.setTransactionBuilderList = function(value) {
2233
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2293
2234
  };
2294
2235
 
2295
2236
 
2296
2237
  /**
2297
- * @param {?proto.BaseInvoice|undefined} value
2298
- * @return {!proto.CreateInvoiceReq} returns this
2299
- */
2300
- proto.CreateInvoiceReq.prototype.setBaseInvoice = function(value) {
2301
- return jspb.Message.setWrapperField(this, 1, value);
2238
+ * @param {!proto.TransactionBuilderFieldsDetail=} opt_value
2239
+ * @param {number=} opt_index
2240
+ * @return {!proto.TransactionBuilderFieldsDetail}
2241
+ */
2242
+ proto.GetInvoiceDetailRes.prototype.addTransactionBuilder = function(opt_value, opt_index) {
2243
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.TransactionBuilderFieldsDetail, opt_index);
2302
2244
  };
2303
2245
 
2304
2246
 
2305
2247
  /**
2306
- * Clears the message field making it undefined.
2307
- * @return {!proto.CreateInvoiceReq} returns this
2248
+ * Clears the list making it empty but non-null.
2249
+ * @return {!proto.GetInvoiceDetailRes} returns this
2308
2250
  */
2309
- proto.CreateInvoiceReq.prototype.clearBaseInvoice = function() {
2310
- return this.setBaseInvoice(undefined);
2251
+ proto.GetInvoiceDetailRes.prototype.clearTransactionBuilderList = function() {
2252
+ return this.setTransactionBuilderList([]);
2311
2253
  };
2312
2254
 
2313
2255
 
2314
2256
  /**
2315
- * Returns whether this field is set.
2316
- * @return {boolean}
2257
+ * repeated GetInvoiceItemPreload transaction_builder_items = 2;
2258
+ * @return {!Array<!proto.GetInvoiceItemPreload>}
2317
2259
  */
2318
- proto.CreateInvoiceReq.prototype.hasBaseInvoice = function() {
2319
- return jspb.Message.getField(this, 1) != null;
2260
+ proto.GetInvoiceDetailRes.prototype.getTransactionBuilderItemsList = function() {
2261
+ return /** @type{!Array<!proto.GetInvoiceItemPreload>} */ (
2262
+ jspb.Message.getRepeatedWrapperField(this, proto.GetInvoiceItemPreload, 2));
2320
2263
  };
2321
2264
 
2322
2265
 
2266
+ /**
2267
+ * @param {!Array<!proto.GetInvoiceItemPreload>} value
2268
+ * @return {!proto.GetInvoiceDetailRes} returns this
2269
+ */
2270
+ proto.GetInvoiceDetailRes.prototype.setTransactionBuilderItemsList = function(value) {
2271
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
2272
+ };
2323
2273
 
2324
2274
 
2325
-
2326
- if (jspb.Message.GENERATE_TO_OBJECT) {
2327
2275
  /**
2328
- * Creates an object representation of this proto.
2329
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2330
- * Optional fields that are not set will be set to undefined.
2331
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2332
- * For the list of reserved names please see:
2333
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2334
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2335
- * JSPB instance for transitional soy proto support:
2336
- * http://goto/soy-param-migration
2337
- * @return {!Object}
2276
+ * @param {!proto.GetInvoiceItemPreload=} opt_value
2277
+ * @param {number=} opt_index
2278
+ * @return {!proto.GetInvoiceItemPreload}
2338
2279
  */
2339
- proto.CreateInvoiceRes.prototype.toObject = function(opt_includeInstance) {
2340
- return proto.CreateInvoiceRes.toObject(opt_includeInstance, this);
2280
+ proto.GetInvoiceDetailRes.prototype.addTransactionBuilderItems = function(opt_value, opt_index) {
2281
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.GetInvoiceItemPreload, opt_index);
2341
2282
  };
2342
2283
 
2343
2284
 
2344
2285
  /**
2345
- * Static version of the {@see toObject} method.
2346
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2347
- * the JSPB instance for transitional soy proto support:
2348
- * http://goto/soy-param-migration
2349
- * @param {!proto.CreateInvoiceRes} msg The msg instance to transform.
2350
- * @return {!Object}
2351
- * @suppress {unusedLocalVariables} f is only used for nested messages
2286
+ * Clears the list making it empty but non-null.
2287
+ * @return {!proto.GetInvoiceDetailRes} returns this
2352
2288
  */
2353
- proto.CreateInvoiceRes.toObject = function(includeInstance, msg) {
2354
- var f, obj = {
2355
- invoice: (f = msg.getInvoice()) && proto.Invoice.toObject(includeInstance, f),
2356
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2357
- };
2358
-
2359
- if (includeInstance) {
2360
- obj.$jspbMessageInstance = msg;
2361
- }
2362
- return obj;
2289
+ proto.GetInvoiceDetailRes.prototype.clearTransactionBuilderItemsList = function() {
2290
+ return this.setTransactionBuilderItemsList([]);
2363
2291
  };
2364
- }
2365
2292
 
2366
2293
 
2367
2294
  /**
2368
- * Deserializes binary data (in protobuf wire format).
2369
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2370
- * @return {!proto.CreateInvoiceRes}
2295
+ * repeated ItemInvoiceReference item_invoice_references = 3;
2296
+ * @return {!Array<!proto.ItemInvoiceReference>}
2371
2297
  */
2372
- proto.CreateInvoiceRes.deserializeBinary = function(bytes) {
2373
- var reader = new jspb.BinaryReader(bytes);
2374
- var msg = new proto.CreateInvoiceRes;
2375
- return proto.CreateInvoiceRes.deserializeBinaryFromReader(msg, reader);
2298
+ proto.GetInvoiceDetailRes.prototype.getItemInvoiceReferencesList = function() {
2299
+ return /** @type{!Array<!proto.ItemInvoiceReference>} */ (
2300
+ jspb.Message.getRepeatedWrapperField(this, proto.ItemInvoiceReference, 3));
2376
2301
  };
2377
2302
 
2378
2303
 
2379
2304
  /**
2380
- * Deserializes binary data (in protobuf wire format) from the
2381
- * given reader into the given message object.
2382
- * @param {!proto.CreateInvoiceRes} msg The message object to deserialize into.
2383
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2384
- * @return {!proto.CreateInvoiceRes}
2385
- */
2386
- proto.CreateInvoiceRes.deserializeBinaryFromReader = function(msg, reader) {
2387
- while (reader.nextField()) {
2388
- if (reader.isEndGroup()) {
2389
- break;
2390
- }
2391
- var field = reader.getFieldNumber();
2392
- switch (field) {
2393
- case 1:
2394
- var value = new proto.Invoice;
2395
- reader.readMessage(value,proto.Invoice.deserializeBinaryFromReader);
2396
- msg.setInvoice(value);
2397
- break;
2398
- case 2:
2399
- var value = new prisca_v1_global_meta_meta_pb.Meta;
2400
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2401
- msg.setMeta(value);
2402
- break;
2403
- default:
2404
- reader.skipField();
2405
- break;
2406
- }
2407
- }
2408
- return msg;
2305
+ * @param {!Array<!proto.ItemInvoiceReference>} value
2306
+ * @return {!proto.GetInvoiceDetailRes} returns this
2307
+ */
2308
+ proto.GetInvoiceDetailRes.prototype.setItemInvoiceReferencesList = function(value) {
2309
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
2409
2310
  };
2410
2311
 
2411
2312
 
2412
2313
  /**
2413
- * Serializes the message to binary data (in protobuf wire format).
2414
- * @return {!Uint8Array}
2314
+ * @param {!proto.ItemInvoiceReference=} opt_value
2315
+ * @param {number=} opt_index
2316
+ * @return {!proto.ItemInvoiceReference}
2415
2317
  */
2416
- proto.CreateInvoiceRes.prototype.serializeBinary = function() {
2417
- var writer = new jspb.BinaryWriter();
2418
- proto.CreateInvoiceRes.serializeBinaryToWriter(this, writer);
2419
- return writer.getResultBuffer();
2318
+ proto.GetInvoiceDetailRes.prototype.addItemInvoiceReferences = function(opt_value, opt_index) {
2319
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.ItemInvoiceReference, opt_index);
2420
2320
  };
2421
2321
 
2422
2322
 
2423
2323
  /**
2424
- * Serializes the given message to binary data (in protobuf wire
2425
- * format), writing to the given BinaryWriter.
2426
- * @param {!proto.CreateInvoiceRes} message
2427
- * @param {!jspb.BinaryWriter} writer
2428
- * @suppress {unusedLocalVariables} f is only used for nested messages
2324
+ * Clears the list making it empty but non-null.
2325
+ * @return {!proto.GetInvoiceDetailRes} returns this
2429
2326
  */
2430
- proto.CreateInvoiceRes.serializeBinaryToWriter = function(message, writer) {
2431
- var f = undefined;
2432
- f = message.getInvoice();
2433
- if (f != null) {
2434
- writer.writeMessage(
2435
- 1,
2436
- f,
2437
- proto.Invoice.serializeBinaryToWriter
2438
- );
2439
- }
2440
- f = message.getMeta();
2441
- if (f != null) {
2442
- writer.writeMessage(
2443
- 2,
2444
- f,
2445
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2446
- );
2447
- }
2327
+ proto.GetInvoiceDetailRes.prototype.clearItemInvoiceReferencesList = function() {
2328
+ return this.setItemInvoiceReferencesList([]);
2448
2329
  };
2449
2330
 
2450
2331
 
2451
2332
  /**
2452
- * optional Invoice invoice = 1;
2453
- * @return {?proto.Invoice}
2333
+ * repeated ItemPurchaseOrder item_purchase_orders = 4;
2334
+ * @return {!Array<!proto.ItemPurchaseOrder>}
2454
2335
  */
2455
- proto.CreateInvoiceRes.prototype.getInvoice = function() {
2456
- return /** @type{?proto.Invoice} */ (
2457
- jspb.Message.getWrapperField(this, proto.Invoice, 1));
2336
+ proto.GetInvoiceDetailRes.prototype.getItemPurchaseOrdersList = function() {
2337
+ return /** @type{!Array<!proto.ItemPurchaseOrder>} */ (
2338
+ jspb.Message.getRepeatedWrapperField(this, proto.ItemPurchaseOrder, 4));
2458
2339
  };
2459
2340
 
2460
2341
 
2461
2342
  /**
2462
- * @param {?proto.Invoice|undefined} value
2463
- * @return {!proto.CreateInvoiceRes} returns this
2343
+ * @param {!Array<!proto.ItemPurchaseOrder>} value
2344
+ * @return {!proto.GetInvoiceDetailRes} returns this
2464
2345
  */
2465
- proto.CreateInvoiceRes.prototype.setInvoice = function(value) {
2466
- return jspb.Message.setWrapperField(this, 1, value);
2346
+ proto.GetInvoiceDetailRes.prototype.setItemPurchaseOrdersList = function(value) {
2347
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
2467
2348
  };
2468
2349
 
2469
2350
 
2470
2351
  /**
2471
- * Clears the message field making it undefined.
2472
- * @return {!proto.CreateInvoiceRes} returns this
2352
+ * @param {!proto.ItemPurchaseOrder=} opt_value
2353
+ * @param {number=} opt_index
2354
+ * @return {!proto.ItemPurchaseOrder}
2473
2355
  */
2474
- proto.CreateInvoiceRes.prototype.clearInvoice = function() {
2475
- return this.setInvoice(undefined);
2356
+ proto.GetInvoiceDetailRes.prototype.addItemPurchaseOrders = function(opt_value, opt_index) {
2357
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.ItemPurchaseOrder, opt_index);
2476
2358
  };
2477
2359
 
2478
2360
 
2479
2361
  /**
2480
- * Returns whether this field is set.
2481
- * @return {boolean}
2362
+ * Clears the list making it empty but non-null.
2363
+ * @return {!proto.GetInvoiceDetailRes} returns this
2482
2364
  */
2483
- proto.CreateInvoiceRes.prototype.hasInvoice = function() {
2484
- return jspb.Message.getField(this, 1) != null;
2365
+ proto.GetInvoiceDetailRes.prototype.clearItemPurchaseOrdersList = function() {
2366
+ return this.setItemPurchaseOrdersList([]);
2485
2367
  };
2486
2368
 
2487
2369
 
2488
2370
  /**
2489
- * optional prisca.v1.global.meta.Meta meta = 2;
2490
- * @return {?proto.prisca.v1.global.meta.Meta}
2371
+ * repeated ItemGoodReceipt item_good_receipts = 5;
2372
+ * @return {!Array<!proto.ItemGoodReceipt>}
2491
2373
  */
2492
- proto.CreateInvoiceRes.prototype.getMeta = function() {
2493
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2494
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2374
+ proto.GetInvoiceDetailRes.prototype.getItemGoodReceiptsList = function() {
2375
+ return /** @type{!Array<!proto.ItemGoodReceipt>} */ (
2376
+ jspb.Message.getRepeatedWrapperField(this, proto.ItemGoodReceipt, 5));
2495
2377
  };
2496
2378
 
2497
2379
 
2498
2380
  /**
2499
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2500
- * @return {!proto.CreateInvoiceRes} returns this
2381
+ * @param {!Array<!proto.ItemGoodReceipt>} value
2382
+ * @return {!proto.GetInvoiceDetailRes} returns this
2501
2383
  */
2502
- proto.CreateInvoiceRes.prototype.setMeta = function(value) {
2503
- return jspb.Message.setWrapperField(this, 2, value);
2384
+ proto.GetInvoiceDetailRes.prototype.setItemGoodReceiptsList = function(value) {
2385
+ return jspb.Message.setRepeatedWrapperField(this, 5, value);
2504
2386
  };
2505
2387
 
2506
2388
 
2507
2389
  /**
2508
- * Clears the message field making it undefined.
2509
- * @return {!proto.CreateInvoiceRes} returns this
2390
+ * @param {!proto.ItemGoodReceipt=} opt_value
2391
+ * @param {number=} opt_index
2392
+ * @return {!proto.ItemGoodReceipt}
2510
2393
  */
2511
- proto.CreateInvoiceRes.prototype.clearMeta = function() {
2512
- return this.setMeta(undefined);
2394
+ proto.GetInvoiceDetailRes.prototype.addItemGoodReceipts = function(opt_value, opt_index) {
2395
+ return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.ItemGoodReceipt, opt_index);
2513
2396
  };
2514
2397
 
2515
2398
 
2516
2399
  /**
2517
- * Returns whether this field is set.
2518
- * @return {boolean}
2400
+ * Clears the list making it empty but non-null.
2401
+ * @return {!proto.GetInvoiceDetailRes} returns this
2519
2402
  */
2520
- proto.CreateInvoiceRes.prototype.hasMeta = function() {
2521
- return jspb.Message.getField(this, 2) != null;
2403
+ proto.GetInvoiceDetailRes.prototype.clearItemGoodReceiptsList = function() {
2404
+ return this.setItemGoodReceiptsList([]);
2522
2405
  };
2523
2406
 
2524
2407
 
2525
2408
 
2409
+ /**
2410
+ * List of repeated fields within this message type.
2411
+ * @private {!Array<number>}
2412
+ * @const
2413
+ */
2414
+ proto.ItemInvoiceReference.repeatedFields_ = [12];
2415
+
2526
2416
 
2527
2417
 
2528
2418
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -2538,8 +2428,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
2538
2428
  * http://goto/soy-param-migration
2539
2429
  * @return {!Object}
2540
2430
  */
2541
- proto.UpdateInvoiceReq.prototype.toObject = function(opt_includeInstance) {
2542
- return proto.UpdateInvoiceReq.toObject(opt_includeInstance, this);
2431
+ proto.ItemInvoiceReference.prototype.toObject = function(opt_includeInstance) {
2432
+ return proto.ItemInvoiceReference.toObject(opt_includeInstance, this);
2543
2433
  };
2544
2434
 
2545
2435
 
@@ -2548,14 +2438,25 @@ proto.UpdateInvoiceReq.prototype.toObject = function(opt_includeInstance) {
2548
2438
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2549
2439
  * the JSPB instance for transitional soy proto support:
2550
2440
  * http://goto/soy-param-migration
2551
- * @param {!proto.UpdateInvoiceReq} msg The msg instance to transform.
2441
+ * @param {!proto.ItemInvoiceReference} msg The msg instance to transform.
2552
2442
  * @return {!Object}
2553
2443
  * @suppress {unusedLocalVariables} f is only used for nested messages
2554
2444
  */
2555
- proto.UpdateInvoiceReq.toObject = function(includeInstance, msg) {
2445
+ proto.ItemInvoiceReference.toObject = function(includeInstance, msg) {
2556
2446
  var f, obj = {
2557
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2558
- baseInvoice: (f = msg.getBaseInvoice()) && proto.BaseInvoice.toObject(includeInstance, f)
2447
+ invoiceNumber: jspb.Message.getFieldWithDefault(msg, 1, ""),
2448
+ documentNumber: jspb.Message.getFieldWithDefault(msg, 2, ""),
2449
+ referencesId: jspb.Message.getFieldWithDefault(msg, 3, ""),
2450
+ invoiceReferencesId: jspb.Message.getFieldWithDefault(msg, 4, ""),
2451
+ remarks: jspb.Message.getFieldWithDefault(msg, 5, ""),
2452
+ invoiceDate: jspb.Message.getFieldWithDefault(msg, 6, ""),
2453
+ description: jspb.Message.getFieldWithDefault(msg, 7, ""),
2454
+ detailDescription: jspb.Message.getFieldWithDefault(msg, 8, ""),
2455
+ includeVat: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
2456
+ incomeTax: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0),
2457
+ quantity: jspb.Message.getFieldWithDefault(msg, 11, ""),
2458
+ priceConditionList: jspb.Message.toObjectList(msg.getPriceConditionList(),
2459
+ prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition.toObject, includeInstance)
2559
2460
  };
2560
2461
 
2561
2462
  if (includeInstance) {
@@ -2569,23 +2470,23 @@ baseInvoice: (f = msg.getBaseInvoice()) && proto.BaseInvoice.toObject(includeIns
2569
2470
  /**
2570
2471
  * Deserializes binary data (in protobuf wire format).
2571
2472
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
2572
- * @return {!proto.UpdateInvoiceReq}
2473
+ * @return {!proto.ItemInvoiceReference}
2573
2474
  */
2574
- proto.UpdateInvoiceReq.deserializeBinary = function(bytes) {
2475
+ proto.ItemInvoiceReference.deserializeBinary = function(bytes) {
2575
2476
  var reader = new jspb.BinaryReader(bytes);
2576
- var msg = new proto.UpdateInvoiceReq;
2577
- return proto.UpdateInvoiceReq.deserializeBinaryFromReader(msg, reader);
2477
+ var msg = new proto.ItemInvoiceReference;
2478
+ return proto.ItemInvoiceReference.deserializeBinaryFromReader(msg, reader);
2578
2479
  };
2579
2480
 
2580
2481
 
2581
2482
  /**
2582
2483
  * Deserializes binary data (in protobuf wire format) from the
2583
2484
  * given reader into the given message object.
2584
- * @param {!proto.UpdateInvoiceReq} msg The message object to deserialize into.
2485
+ * @param {!proto.ItemInvoiceReference} msg The message object to deserialize into.
2585
2486
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2586
- * @return {!proto.UpdateInvoiceReq}
2487
+ * @return {!proto.ItemInvoiceReference}
2587
2488
  */
2588
- proto.UpdateInvoiceReq.deserializeBinaryFromReader = function(msg, reader) {
2489
+ proto.ItemInvoiceReference.deserializeBinaryFromReader = function(msg, reader) {
2589
2490
  while (reader.nextField()) {
2590
2491
  if (reader.isEndGroup()) {
2591
2492
  break;
@@ -2594,12 +2495,52 @@ proto.UpdateInvoiceReq.deserializeBinaryFromReader = function(msg, reader) {
2594
2495
  switch (field) {
2595
2496
  case 1:
2596
2497
  var value = /** @type {string} */ (reader.readString());
2597
- msg.setReferencesId(value);
2498
+ msg.setInvoiceNumber(value);
2598
2499
  break;
2599
2500
  case 2:
2600
- var value = new proto.BaseInvoice;
2601
- reader.readMessage(value,proto.BaseInvoice.deserializeBinaryFromReader);
2602
- msg.setBaseInvoice(value);
2501
+ var value = /** @type {string} */ (reader.readString());
2502
+ msg.setDocumentNumber(value);
2503
+ break;
2504
+ case 3:
2505
+ var value = /** @type {string} */ (reader.readString());
2506
+ msg.setReferencesId(value);
2507
+ break;
2508
+ case 4:
2509
+ var value = /** @type {string} */ (reader.readString());
2510
+ msg.setInvoiceReferencesId(value);
2511
+ break;
2512
+ case 5:
2513
+ var value = /** @type {string} */ (reader.readString());
2514
+ msg.setRemarks(value);
2515
+ break;
2516
+ case 6:
2517
+ var value = /** @type {string} */ (reader.readString());
2518
+ msg.setInvoiceDate(value);
2519
+ break;
2520
+ case 7:
2521
+ var value = /** @type {string} */ (reader.readString());
2522
+ msg.setDescription(value);
2523
+ break;
2524
+ case 8:
2525
+ var value = /** @type {string} */ (reader.readString());
2526
+ msg.setDetailDescription(value);
2527
+ break;
2528
+ case 9:
2529
+ var value = /** @type {boolean} */ (reader.readBool());
2530
+ msg.setIncludeVat(value);
2531
+ break;
2532
+ case 10:
2533
+ var value = /** @type {number} */ (reader.readDouble());
2534
+ msg.setIncomeTax(value);
2535
+ break;
2536
+ case 11:
2537
+ var value = /** @type {string} */ (reader.readString());
2538
+ msg.setQuantity(value);
2539
+ break;
2540
+ case 12:
2541
+ var value = new prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition;
2542
+ reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition.deserializeBinaryFromReader);
2543
+ msg.addPriceCondition(value);
2603
2544
  break;
2604
2545
  default:
2605
2546
  reader.skipField();
@@ -2614,9 +2555,9 @@ proto.UpdateInvoiceReq.deserializeBinaryFromReader = function(msg, reader) {
2614
2555
  * Serializes the message to binary data (in protobuf wire format).
2615
2556
  * @return {!Uint8Array}
2616
2557
  */
2617
- proto.UpdateInvoiceReq.prototype.serializeBinary = function() {
2558
+ proto.ItemInvoiceReference.prototype.serializeBinary = function() {
2618
2559
  var writer = new jspb.BinaryWriter();
2619
- proto.UpdateInvoiceReq.serializeBinaryToWriter(this, writer);
2560
+ proto.ItemInvoiceReference.serializeBinaryToWriter(this, writer);
2620
2561
  return writer.getResultBuffer();
2621
2562
  };
2622
2563
 
@@ -2624,288 +2565,344 @@ proto.UpdateInvoiceReq.prototype.serializeBinary = function() {
2624
2565
  /**
2625
2566
  * Serializes the given message to binary data (in protobuf wire
2626
2567
  * format), writing to the given BinaryWriter.
2627
- * @param {!proto.UpdateInvoiceReq} message
2568
+ * @param {!proto.ItemInvoiceReference} message
2628
2569
  * @param {!jspb.BinaryWriter} writer
2629
2570
  * @suppress {unusedLocalVariables} f is only used for nested messages
2630
2571
  */
2631
- proto.UpdateInvoiceReq.serializeBinaryToWriter = function(message, writer) {
2572
+ proto.ItemInvoiceReference.serializeBinaryToWriter = function(message, writer) {
2632
2573
  var f = undefined;
2633
- f = message.getReferencesId();
2574
+ f = message.getInvoiceNumber();
2634
2575
  if (f.length > 0) {
2635
2576
  writer.writeString(
2636
2577
  1,
2637
2578
  f
2638
2579
  );
2639
2580
  }
2640
- f = message.getBaseInvoice();
2641
- if (f != null) {
2642
- writer.writeMessage(
2581
+ f = message.getDocumentNumber();
2582
+ if (f.length > 0) {
2583
+ writer.writeString(
2643
2584
  2,
2585
+ f
2586
+ );
2587
+ }
2588
+ f = message.getReferencesId();
2589
+ if (f.length > 0) {
2590
+ writer.writeString(
2591
+ 3,
2592
+ f
2593
+ );
2594
+ }
2595
+ f = message.getInvoiceReferencesId();
2596
+ if (f.length > 0) {
2597
+ writer.writeString(
2598
+ 4,
2599
+ f
2600
+ );
2601
+ }
2602
+ f = message.getRemarks();
2603
+ if (f.length > 0) {
2604
+ writer.writeString(
2605
+ 5,
2606
+ f
2607
+ );
2608
+ }
2609
+ f = message.getInvoiceDate();
2610
+ if (f.length > 0) {
2611
+ writer.writeString(
2612
+ 6,
2613
+ f
2614
+ );
2615
+ }
2616
+ f = message.getDescription();
2617
+ if (f.length > 0) {
2618
+ writer.writeString(
2619
+ 7,
2620
+ f
2621
+ );
2622
+ }
2623
+ f = message.getDetailDescription();
2624
+ if (f.length > 0) {
2625
+ writer.writeString(
2626
+ 8,
2627
+ f
2628
+ );
2629
+ }
2630
+ f = message.getIncludeVat();
2631
+ if (f) {
2632
+ writer.writeBool(
2633
+ 9,
2634
+ f
2635
+ );
2636
+ }
2637
+ f = message.getIncomeTax();
2638
+ if (f !== 0.0) {
2639
+ writer.writeDouble(
2640
+ 10,
2641
+ f
2642
+ );
2643
+ }
2644
+ f = message.getQuantity();
2645
+ if (f.length > 0) {
2646
+ writer.writeString(
2647
+ 11,
2648
+ f
2649
+ );
2650
+ }
2651
+ f = message.getPriceConditionList();
2652
+ if (f.length > 0) {
2653
+ writer.writeRepeatedMessage(
2654
+ 12,
2644
2655
  f,
2645
- proto.BaseInvoice.serializeBinaryToWriter
2656
+ prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition.serializeBinaryToWriter
2646
2657
  );
2647
2658
  }
2648
2659
  };
2649
2660
 
2650
2661
 
2651
2662
  /**
2652
- * optional string references_id = 1;
2663
+ * optional string invoice_number = 1;
2653
2664
  * @return {string}
2654
2665
  */
2655
- proto.UpdateInvoiceReq.prototype.getReferencesId = function() {
2666
+ proto.ItemInvoiceReference.prototype.getInvoiceNumber = function() {
2656
2667
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2657
2668
  };
2658
2669
 
2659
2670
 
2660
2671
  /**
2661
2672
  * @param {string} value
2662
- * @return {!proto.UpdateInvoiceReq} returns this
2673
+ * @return {!proto.ItemInvoiceReference} returns this
2663
2674
  */
2664
- proto.UpdateInvoiceReq.prototype.setReferencesId = function(value) {
2675
+ proto.ItemInvoiceReference.prototype.setInvoiceNumber = function(value) {
2665
2676
  return jspb.Message.setProto3StringField(this, 1, value);
2666
2677
  };
2667
2678
 
2668
2679
 
2669
2680
  /**
2670
- * optional BaseInvoice base_invoice = 2;
2671
- * @return {?proto.BaseInvoice}
2681
+ * optional string document_number = 2;
2682
+ * @return {string}
2672
2683
  */
2673
- proto.UpdateInvoiceReq.prototype.getBaseInvoice = function() {
2674
- return /** @type{?proto.BaseInvoice} */ (
2675
- jspb.Message.getWrapperField(this, proto.BaseInvoice, 2));
2684
+ proto.ItemInvoiceReference.prototype.getDocumentNumber = function() {
2685
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2676
2686
  };
2677
2687
 
2678
2688
 
2679
2689
  /**
2680
- * @param {?proto.BaseInvoice|undefined} value
2681
- * @return {!proto.UpdateInvoiceReq} returns this
2682
- */
2683
- proto.UpdateInvoiceReq.prototype.setBaseInvoice = function(value) {
2684
- return jspb.Message.setWrapperField(this, 2, value);
2690
+ * @param {string} value
2691
+ * @return {!proto.ItemInvoiceReference} returns this
2692
+ */
2693
+ proto.ItemInvoiceReference.prototype.setDocumentNumber = function(value) {
2694
+ return jspb.Message.setProto3StringField(this, 2, value);
2685
2695
  };
2686
2696
 
2687
2697
 
2688
2698
  /**
2689
- * Clears the message field making it undefined.
2690
- * @return {!proto.UpdateInvoiceReq} returns this
2699
+ * optional string references_id = 3;
2700
+ * @return {string}
2691
2701
  */
2692
- proto.UpdateInvoiceReq.prototype.clearBaseInvoice = function() {
2693
- return this.setBaseInvoice(undefined);
2702
+ proto.ItemInvoiceReference.prototype.getReferencesId = function() {
2703
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2694
2704
  };
2695
2705
 
2696
2706
 
2697
2707
  /**
2698
- * Returns whether this field is set.
2699
- * @return {boolean}
2708
+ * @param {string} value
2709
+ * @return {!proto.ItemInvoiceReference} returns this
2700
2710
  */
2701
- proto.UpdateInvoiceReq.prototype.hasBaseInvoice = function() {
2702
- return jspb.Message.getField(this, 2) != null;
2711
+ proto.ItemInvoiceReference.prototype.setReferencesId = function(value) {
2712
+ return jspb.Message.setProto3StringField(this, 3, value);
2703
2713
  };
2704
2714
 
2705
2715
 
2716
+ /**
2717
+ * optional string invoice_references_id = 4;
2718
+ * @return {string}
2719
+ */
2720
+ proto.ItemInvoiceReference.prototype.getInvoiceReferencesId = function() {
2721
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2722
+ };
2723
+
2706
2724
 
2725
+ /**
2726
+ * @param {string} value
2727
+ * @return {!proto.ItemInvoiceReference} returns this
2728
+ */
2729
+ proto.ItemInvoiceReference.prototype.setInvoiceReferencesId = function(value) {
2730
+ return jspb.Message.setProto3StringField(this, 4, value);
2731
+ };
2707
2732
 
2708
2733
 
2709
- if (jspb.Message.GENERATE_TO_OBJECT) {
2710
2734
  /**
2711
- * Creates an object representation of this proto.
2712
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2713
- * Optional fields that are not set will be set to undefined.
2714
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2715
- * For the list of reserved names please see:
2716
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2717
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2718
- * JSPB instance for transitional soy proto support:
2719
- * http://goto/soy-param-migration
2720
- * @return {!Object}
2735
+ * optional string remarks = 5;
2736
+ * @return {string}
2721
2737
  */
2722
- proto.UpdateInvoiceRes.prototype.toObject = function(opt_includeInstance) {
2723
- return proto.UpdateInvoiceRes.toObject(opt_includeInstance, this);
2738
+ proto.ItemInvoiceReference.prototype.getRemarks = function() {
2739
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2724
2740
  };
2725
2741
 
2726
2742
 
2727
2743
  /**
2728
- * Static version of the {@see toObject} method.
2729
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2730
- * the JSPB instance for transitional soy proto support:
2731
- * http://goto/soy-param-migration
2732
- * @param {!proto.UpdateInvoiceRes} msg The msg instance to transform.
2733
- * @return {!Object}
2734
- * @suppress {unusedLocalVariables} f is only used for nested messages
2744
+ * @param {string} value
2745
+ * @return {!proto.ItemInvoiceReference} returns this
2735
2746
  */
2736
- proto.UpdateInvoiceRes.toObject = function(includeInstance, msg) {
2737
- var f, obj = {
2738
- invoice: (f = msg.getInvoice()) && proto.Invoice.toObject(includeInstance, f),
2739
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2740
- };
2747
+ proto.ItemInvoiceReference.prototype.setRemarks = function(value) {
2748
+ return jspb.Message.setProto3StringField(this, 5, value);
2749
+ };
2741
2750
 
2742
- if (includeInstance) {
2743
- obj.$jspbMessageInstance = msg;
2744
- }
2745
- return obj;
2751
+
2752
+ /**
2753
+ * optional string invoice_date = 6;
2754
+ * @return {string}
2755
+ */
2756
+ proto.ItemInvoiceReference.prototype.getInvoiceDate = function() {
2757
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
2746
2758
  };
2747
- }
2748
2759
 
2749
2760
 
2750
2761
  /**
2751
- * Deserializes binary data (in protobuf wire format).
2752
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2753
- * @return {!proto.UpdateInvoiceRes}
2762
+ * @param {string} value
2763
+ * @return {!proto.ItemInvoiceReference} returns this
2754
2764
  */
2755
- proto.UpdateInvoiceRes.deserializeBinary = function(bytes) {
2756
- var reader = new jspb.BinaryReader(bytes);
2757
- var msg = new proto.UpdateInvoiceRes;
2758
- return proto.UpdateInvoiceRes.deserializeBinaryFromReader(msg, reader);
2765
+ proto.ItemInvoiceReference.prototype.setInvoiceDate = function(value) {
2766
+ return jspb.Message.setProto3StringField(this, 6, value);
2759
2767
  };
2760
2768
 
2761
2769
 
2762
2770
  /**
2763
- * Deserializes binary data (in protobuf wire format) from the
2764
- * given reader into the given message object.
2765
- * @param {!proto.UpdateInvoiceRes} msg The message object to deserialize into.
2766
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2767
- * @return {!proto.UpdateInvoiceRes}
2771
+ * optional string description = 7;
2772
+ * @return {string}
2768
2773
  */
2769
- proto.UpdateInvoiceRes.deserializeBinaryFromReader = function(msg, reader) {
2770
- while (reader.nextField()) {
2771
- if (reader.isEndGroup()) {
2772
- break;
2773
- }
2774
- var field = reader.getFieldNumber();
2775
- switch (field) {
2776
- case 1:
2777
- var value = new proto.Invoice;
2778
- reader.readMessage(value,proto.Invoice.deserializeBinaryFromReader);
2779
- msg.setInvoice(value);
2780
- break;
2781
- case 2:
2782
- var value = new prisca_v1_global_meta_meta_pb.Meta;
2783
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2784
- msg.setMeta(value);
2785
- break;
2786
- default:
2787
- reader.skipField();
2788
- break;
2789
- }
2790
- }
2791
- return msg;
2774
+ proto.ItemInvoiceReference.prototype.getDescription = function() {
2775
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
2792
2776
  };
2793
2777
 
2794
2778
 
2795
2779
  /**
2796
- * Serializes the message to binary data (in protobuf wire format).
2797
- * @return {!Uint8Array}
2780
+ * @param {string} value
2781
+ * @return {!proto.ItemInvoiceReference} returns this
2798
2782
  */
2799
- proto.UpdateInvoiceRes.prototype.serializeBinary = function() {
2800
- var writer = new jspb.BinaryWriter();
2801
- proto.UpdateInvoiceRes.serializeBinaryToWriter(this, writer);
2802
- return writer.getResultBuffer();
2783
+ proto.ItemInvoiceReference.prototype.setDescription = function(value) {
2784
+ return jspb.Message.setProto3StringField(this, 7, value);
2803
2785
  };
2804
2786
 
2805
2787
 
2806
2788
  /**
2807
- * Serializes the given message to binary data (in protobuf wire
2808
- * format), writing to the given BinaryWriter.
2809
- * @param {!proto.UpdateInvoiceRes} message
2810
- * @param {!jspb.BinaryWriter} writer
2811
- * @suppress {unusedLocalVariables} f is only used for nested messages
2789
+ * optional string detail_description = 8;
2790
+ * @return {string}
2812
2791
  */
2813
- proto.UpdateInvoiceRes.serializeBinaryToWriter = function(message, writer) {
2814
- var f = undefined;
2815
- f = message.getInvoice();
2816
- if (f != null) {
2817
- writer.writeMessage(
2818
- 1,
2819
- f,
2820
- proto.Invoice.serializeBinaryToWriter
2821
- );
2822
- }
2823
- f = message.getMeta();
2824
- if (f != null) {
2825
- writer.writeMessage(
2826
- 2,
2827
- f,
2828
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2829
- );
2830
- }
2792
+ proto.ItemInvoiceReference.prototype.getDetailDescription = function() {
2793
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
2831
2794
  };
2832
2795
 
2833
2796
 
2834
2797
  /**
2835
- * optional Invoice invoice = 1;
2836
- * @return {?proto.Invoice}
2798
+ * @param {string} value
2799
+ * @return {!proto.ItemInvoiceReference} returns this
2837
2800
  */
2838
- proto.UpdateInvoiceRes.prototype.getInvoice = function() {
2839
- return /** @type{?proto.Invoice} */ (
2840
- jspb.Message.getWrapperField(this, proto.Invoice, 1));
2801
+ proto.ItemInvoiceReference.prototype.setDetailDescription = function(value) {
2802
+ return jspb.Message.setProto3StringField(this, 8, value);
2841
2803
  };
2842
2804
 
2843
2805
 
2844
2806
  /**
2845
- * @param {?proto.Invoice|undefined} value
2846
- * @return {!proto.UpdateInvoiceRes} returns this
2847
- */
2848
- proto.UpdateInvoiceRes.prototype.setInvoice = function(value) {
2849
- return jspb.Message.setWrapperField(this, 1, value);
2807
+ * optional bool include_vat = 9;
2808
+ * @return {boolean}
2809
+ */
2810
+ proto.ItemInvoiceReference.prototype.getIncludeVat = function() {
2811
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
2850
2812
  };
2851
2813
 
2852
2814
 
2853
2815
  /**
2854
- * Clears the message field making it undefined.
2855
- * @return {!proto.UpdateInvoiceRes} returns this
2816
+ * @param {boolean} value
2817
+ * @return {!proto.ItemInvoiceReference} returns this
2818
+ */
2819
+ proto.ItemInvoiceReference.prototype.setIncludeVat = function(value) {
2820
+ return jspb.Message.setProto3BooleanField(this, 9, value);
2821
+ };
2822
+
2823
+
2824
+ /**
2825
+ * optional double income_tax = 10;
2826
+ * @return {number}
2827
+ */
2828
+ proto.ItemInvoiceReference.prototype.getIncomeTax = function() {
2829
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 10, 0.0));
2830
+ };
2831
+
2832
+
2833
+ /**
2834
+ * @param {number} value
2835
+ * @return {!proto.ItemInvoiceReference} returns this
2836
+ */
2837
+ proto.ItemInvoiceReference.prototype.setIncomeTax = function(value) {
2838
+ return jspb.Message.setProto3FloatField(this, 10, value);
2839
+ };
2840
+
2841
+
2842
+ /**
2843
+ * optional string quantity = 11;
2844
+ * @return {string}
2856
2845
  */
2857
- proto.UpdateInvoiceRes.prototype.clearInvoice = function() {
2858
- return this.setInvoice(undefined);
2846
+ proto.ItemInvoiceReference.prototype.getQuantity = function() {
2847
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
2859
2848
  };
2860
2849
 
2861
2850
 
2862
2851
  /**
2863
- * Returns whether this field is set.
2864
- * @return {boolean}
2852
+ * @param {string} value
2853
+ * @return {!proto.ItemInvoiceReference} returns this
2865
2854
  */
2866
- proto.UpdateInvoiceRes.prototype.hasInvoice = function() {
2867
- return jspb.Message.getField(this, 1) != null;
2855
+ proto.ItemInvoiceReference.prototype.setQuantity = function(value) {
2856
+ return jspb.Message.setProto3StringField(this, 11, value);
2868
2857
  };
2869
2858
 
2870
2859
 
2871
2860
  /**
2872
- * optional prisca.v1.global.meta.Meta meta = 2;
2873
- * @return {?proto.prisca.v1.global.meta.Meta}
2861
+ * repeated ItemTransactionPriceCondition price_condition = 12;
2862
+ * @return {!Array<!proto.ItemTransactionPriceCondition>}
2874
2863
  */
2875
- proto.UpdateInvoiceRes.prototype.getMeta = function() {
2876
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2877
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2864
+ proto.ItemInvoiceReference.prototype.getPriceConditionList = function() {
2865
+ return /** @type{!Array<!proto.ItemTransactionPriceCondition>} */ (
2866
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition, 12));
2878
2867
  };
2879
2868
 
2880
2869
 
2881
2870
  /**
2882
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2883
- * @return {!proto.UpdateInvoiceRes} returns this
2871
+ * @param {!Array<!proto.ItemTransactionPriceCondition>} value
2872
+ * @return {!proto.ItemInvoiceReference} returns this
2884
2873
  */
2885
- proto.UpdateInvoiceRes.prototype.setMeta = function(value) {
2886
- return jspb.Message.setWrapperField(this, 2, value);
2874
+ proto.ItemInvoiceReference.prototype.setPriceConditionList = function(value) {
2875
+ return jspb.Message.setRepeatedWrapperField(this, 12, value);
2887
2876
  };
2888
2877
 
2889
2878
 
2890
2879
  /**
2891
- * Clears the message field making it undefined.
2892
- * @return {!proto.UpdateInvoiceRes} returns this
2880
+ * @param {!proto.ItemTransactionPriceCondition=} opt_value
2881
+ * @param {number=} opt_index
2882
+ * @return {!proto.ItemTransactionPriceCondition}
2893
2883
  */
2894
- proto.UpdateInvoiceRes.prototype.clearMeta = function() {
2895
- return this.setMeta(undefined);
2884
+ proto.ItemInvoiceReference.prototype.addPriceCondition = function(opt_value, opt_index) {
2885
+ return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.ItemTransactionPriceCondition, opt_index);
2896
2886
  };
2897
2887
 
2898
2888
 
2899
2889
  /**
2900
- * Returns whether this field is set.
2901
- * @return {boolean}
2890
+ * Clears the list making it empty but non-null.
2891
+ * @return {!proto.ItemInvoiceReference} returns this
2902
2892
  */
2903
- proto.UpdateInvoiceRes.prototype.hasMeta = function() {
2904
- return jspb.Message.getField(this, 2) != null;
2893
+ proto.ItemInvoiceReference.prototype.clearPriceConditionList = function() {
2894
+ return this.setPriceConditionList([]);
2905
2895
  };
2906
2896
 
2907
2897
 
2908
2898
 
2899
+ /**
2900
+ * List of repeated fields within this message type.
2901
+ * @private {!Array<number>}
2902
+ * @const
2903
+ */
2904
+ proto.ItemPurchaseOrder.repeatedFields_ = [8];
2905
+
2909
2906
 
2910
2907
 
2911
2908
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -2921,8 +2918,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
2921
2918
  * http://goto/soy-param-migration
2922
2919
  * @return {!Object}
2923
2920
  */
2924
- proto.GetInvoiceByIdReq.prototype.toObject = function(opt_includeInstance) {
2925
- return proto.GetInvoiceByIdReq.toObject(opt_includeInstance, this);
2921
+ proto.ItemPurchaseOrder.prototype.toObject = function(opt_includeInstance) {
2922
+ return proto.ItemPurchaseOrder.toObject(opt_includeInstance, this);
2926
2923
  };
2927
2924
 
2928
2925
 
@@ -2931,13 +2928,21 @@ proto.GetInvoiceByIdReq.prototype.toObject = function(opt_includeInstance) {
2931
2928
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2932
2929
  * the JSPB instance for transitional soy proto support:
2933
2930
  * http://goto/soy-param-migration
2934
- * @param {!proto.GetInvoiceByIdReq} msg The msg instance to transform.
2931
+ * @param {!proto.ItemPurchaseOrder} msg The msg instance to transform.
2935
2932
  * @return {!Object}
2936
2933
  * @suppress {unusedLocalVariables} f is only used for nested messages
2937
2934
  */
2938
- proto.GetInvoiceByIdReq.toObject = function(includeInstance, msg) {
2935
+ proto.ItemPurchaseOrder.toObject = function(includeInstance, msg) {
2939
2936
  var f, obj = {
2940
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
2937
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2938
+ purchaseOrderNumber: jspb.Message.getFieldWithDefault(msg, 2, ""),
2939
+ purchaseOrderReferencesId: jspb.Message.getFieldWithDefault(msg, 3, ""),
2940
+ description: jspb.Message.getFieldWithDefault(msg, 4, ""),
2941
+ detailDescription: jspb.Message.getFieldWithDefault(msg, 5, ""),
2942
+ quantity: jspb.Message.getFieldWithDefault(msg, 6, ""),
2943
+ unitOfMeasure: jspb.Message.getFieldWithDefault(msg, 7, ""),
2944
+ priceConditionList: jspb.Message.toObjectList(msg.getPriceConditionList(),
2945
+ prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition.toObject, includeInstance)
2941
2946
  };
2942
2947
 
2943
2948
  if (includeInstance) {
@@ -2951,23 +2956,23 @@ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
2951
2956
  /**
2952
2957
  * Deserializes binary data (in protobuf wire format).
2953
2958
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
2954
- * @return {!proto.GetInvoiceByIdReq}
2959
+ * @return {!proto.ItemPurchaseOrder}
2955
2960
  */
2956
- proto.GetInvoiceByIdReq.deserializeBinary = function(bytes) {
2961
+ proto.ItemPurchaseOrder.deserializeBinary = function(bytes) {
2957
2962
  var reader = new jspb.BinaryReader(bytes);
2958
- var msg = new proto.GetInvoiceByIdReq;
2959
- return proto.GetInvoiceByIdReq.deserializeBinaryFromReader(msg, reader);
2963
+ var msg = new proto.ItemPurchaseOrder;
2964
+ return proto.ItemPurchaseOrder.deserializeBinaryFromReader(msg, reader);
2960
2965
  };
2961
2966
 
2962
2967
 
2963
2968
  /**
2964
2969
  * Deserializes binary data (in protobuf wire format) from the
2965
2970
  * given reader into the given message object.
2966
- * @param {!proto.GetInvoiceByIdReq} msg The message object to deserialize into.
2971
+ * @param {!proto.ItemPurchaseOrder} msg The message object to deserialize into.
2967
2972
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2968
- * @return {!proto.GetInvoiceByIdReq}
2973
+ * @return {!proto.ItemPurchaseOrder}
2969
2974
  */
2970
- proto.GetInvoiceByIdReq.deserializeBinaryFromReader = function(msg, reader) {
2975
+ proto.ItemPurchaseOrder.deserializeBinaryFromReader = function(msg, reader) {
2971
2976
  while (reader.nextField()) {
2972
2977
  if (reader.isEndGroup()) {
2973
2978
  break;
@@ -2978,6 +2983,35 @@ proto.GetInvoiceByIdReq.deserializeBinaryFromReader = function(msg, reader) {
2978
2983
  var value = /** @type {string} */ (reader.readString());
2979
2984
  msg.setReferencesId(value);
2980
2985
  break;
2986
+ case 2:
2987
+ var value = /** @type {string} */ (reader.readString());
2988
+ msg.setPurchaseOrderNumber(value);
2989
+ break;
2990
+ case 3:
2991
+ var value = /** @type {string} */ (reader.readString());
2992
+ msg.setPurchaseOrderReferencesId(value);
2993
+ break;
2994
+ case 4:
2995
+ var value = /** @type {string} */ (reader.readString());
2996
+ msg.setDescription(value);
2997
+ break;
2998
+ case 5:
2999
+ var value = /** @type {string} */ (reader.readString());
3000
+ msg.setDetailDescription(value);
3001
+ break;
3002
+ case 6:
3003
+ var value = /** @type {string} */ (reader.readString());
3004
+ msg.setQuantity(value);
3005
+ break;
3006
+ case 7:
3007
+ var value = /** @type {string} */ (reader.readString());
3008
+ msg.setUnitOfMeasure(value);
3009
+ break;
3010
+ case 8:
3011
+ var value = new prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition;
3012
+ reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition.deserializeBinaryFromReader);
3013
+ msg.addPriceCondition(value);
3014
+ break;
2981
3015
  default:
2982
3016
  reader.skipField();
2983
3017
  break;
@@ -2991,9 +3025,9 @@ proto.GetInvoiceByIdReq.deserializeBinaryFromReader = function(msg, reader) {
2991
3025
  * Serializes the message to binary data (in protobuf wire format).
2992
3026
  * @return {!Uint8Array}
2993
3027
  */
2994
- proto.GetInvoiceByIdReq.prototype.serializeBinary = function() {
3028
+ proto.ItemPurchaseOrder.prototype.serializeBinary = function() {
2995
3029
  var writer = new jspb.BinaryWriter();
2996
- proto.GetInvoiceByIdReq.serializeBinaryToWriter(this, writer);
3030
+ proto.ItemPurchaseOrder.serializeBinaryToWriter(this, writer);
2997
3031
  return writer.getResultBuffer();
2998
3032
  };
2999
3033
 
@@ -3001,11 +3035,11 @@ proto.GetInvoiceByIdReq.prototype.serializeBinary = function() {
3001
3035
  /**
3002
3036
  * Serializes the given message to binary data (in protobuf wire
3003
3037
  * format), writing to the given BinaryWriter.
3004
- * @param {!proto.GetInvoiceByIdReq} message
3038
+ * @param {!proto.ItemPurchaseOrder} message
3005
3039
  * @param {!jspb.BinaryWriter} writer
3006
3040
  * @suppress {unusedLocalVariables} f is only used for nested messages
3007
3041
  */
3008
- proto.GetInvoiceByIdReq.serializeBinaryToWriter = function(message, writer) {
3042
+ proto.ItemPurchaseOrder.serializeBinaryToWriter = function(message, writer) {
3009
3043
  var f = undefined;
3010
3044
  f = message.getReferencesId();
3011
3045
  if (f.length > 0) {
@@ -3014,6 +3048,56 @@ proto.GetInvoiceByIdReq.serializeBinaryToWriter = function(message, writer) {
3014
3048
  f
3015
3049
  );
3016
3050
  }
3051
+ f = message.getPurchaseOrderNumber();
3052
+ if (f.length > 0) {
3053
+ writer.writeString(
3054
+ 2,
3055
+ f
3056
+ );
3057
+ }
3058
+ f = message.getPurchaseOrderReferencesId();
3059
+ if (f.length > 0) {
3060
+ writer.writeString(
3061
+ 3,
3062
+ f
3063
+ );
3064
+ }
3065
+ f = message.getDescription();
3066
+ if (f.length > 0) {
3067
+ writer.writeString(
3068
+ 4,
3069
+ f
3070
+ );
3071
+ }
3072
+ f = message.getDetailDescription();
3073
+ if (f.length > 0) {
3074
+ writer.writeString(
3075
+ 5,
3076
+ f
3077
+ );
3078
+ }
3079
+ f = message.getQuantity();
3080
+ if (f.length > 0) {
3081
+ writer.writeString(
3082
+ 6,
3083
+ f
3084
+ );
3085
+ }
3086
+ f = message.getUnitOfMeasure();
3087
+ if (f.length > 0) {
3088
+ writer.writeString(
3089
+ 7,
3090
+ f
3091
+ );
3092
+ }
3093
+ f = message.getPriceConditionList();
3094
+ if (f.length > 0) {
3095
+ writer.writeRepeatedMessage(
3096
+ 8,
3097
+ f,
3098
+ prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition.serializeBinaryToWriter
3099
+ );
3100
+ }
3017
3101
  };
3018
3102
 
3019
3103
 
@@ -3021,230 +3105,167 @@ proto.GetInvoiceByIdReq.serializeBinaryToWriter = function(message, writer) {
3021
3105
  * optional string references_id = 1;
3022
3106
  * @return {string}
3023
3107
  */
3024
- proto.GetInvoiceByIdReq.prototype.getReferencesId = function() {
3108
+ proto.ItemPurchaseOrder.prototype.getReferencesId = function() {
3025
3109
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3026
3110
  };
3027
3111
 
3028
3112
 
3029
3113
  /**
3030
3114
  * @param {string} value
3031
- * @return {!proto.GetInvoiceByIdReq} returns this
3115
+ * @return {!proto.ItemPurchaseOrder} returns this
3032
3116
  */
3033
- proto.GetInvoiceByIdReq.prototype.setReferencesId = function(value) {
3117
+ proto.ItemPurchaseOrder.prototype.setReferencesId = function(value) {
3034
3118
  return jspb.Message.setProto3StringField(this, 1, value);
3035
3119
  };
3036
3120
 
3037
3121
 
3122
+ /**
3123
+ * optional string purchase_order_number = 2;
3124
+ * @return {string}
3125
+ */
3126
+ proto.ItemPurchaseOrder.prototype.getPurchaseOrderNumber = function() {
3127
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3128
+ };
3038
3129
 
3039
3130
 
3040
-
3041
- if (jspb.Message.GENERATE_TO_OBJECT) {
3042
3131
  /**
3043
- * Creates an object representation of this proto.
3044
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3045
- * Optional fields that are not set will be set to undefined.
3046
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3047
- * For the list of reserved names please see:
3048
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3049
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3050
- * JSPB instance for transitional soy proto support:
3051
- * http://goto/soy-param-migration
3052
- * @return {!Object}
3132
+ * @param {string} value
3133
+ * @return {!proto.ItemPurchaseOrder} returns this
3053
3134
  */
3054
- proto.GetInvoiceByIdRes.prototype.toObject = function(opt_includeInstance) {
3055
- return proto.GetInvoiceByIdRes.toObject(opt_includeInstance, this);
3135
+ proto.ItemPurchaseOrder.prototype.setPurchaseOrderNumber = function(value) {
3136
+ return jspb.Message.setProto3StringField(this, 2, value);
3056
3137
  };
3057
3138
 
3058
3139
 
3059
3140
  /**
3060
- * Static version of the {@see toObject} method.
3061
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3062
- * the JSPB instance for transitional soy proto support:
3063
- * http://goto/soy-param-migration
3064
- * @param {!proto.GetInvoiceByIdRes} msg The msg instance to transform.
3065
- * @return {!Object}
3066
- * @suppress {unusedLocalVariables} f is only used for nested messages
3141
+ * optional string purchase_order_references_id = 3;
3142
+ * @return {string}
3067
3143
  */
3068
- proto.GetInvoiceByIdRes.toObject = function(includeInstance, msg) {
3069
- var f, obj = {
3070
- invoice: (f = msg.getInvoice()) && proto.Invoice.toObject(includeInstance, f),
3071
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3072
- };
3144
+ proto.ItemPurchaseOrder.prototype.getPurchaseOrderReferencesId = function() {
3145
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3146
+ };
3073
3147
 
3074
- if (includeInstance) {
3075
- obj.$jspbMessageInstance = msg;
3076
- }
3077
- return obj;
3148
+
3149
+ /**
3150
+ * @param {string} value
3151
+ * @return {!proto.ItemPurchaseOrder} returns this
3152
+ */
3153
+ proto.ItemPurchaseOrder.prototype.setPurchaseOrderReferencesId = function(value) {
3154
+ return jspb.Message.setProto3StringField(this, 3, value);
3078
3155
  };
3079
- }
3080
3156
 
3081
3157
 
3082
3158
  /**
3083
- * Deserializes binary data (in protobuf wire format).
3084
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3085
- * @return {!proto.GetInvoiceByIdRes}
3159
+ * optional string description = 4;
3160
+ * @return {string}
3086
3161
  */
3087
- proto.GetInvoiceByIdRes.deserializeBinary = function(bytes) {
3088
- var reader = new jspb.BinaryReader(bytes);
3089
- var msg = new proto.GetInvoiceByIdRes;
3090
- return proto.GetInvoiceByIdRes.deserializeBinaryFromReader(msg, reader);
3162
+ proto.ItemPurchaseOrder.prototype.getDescription = function() {
3163
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3091
3164
  };
3092
3165
 
3093
3166
 
3094
3167
  /**
3095
- * Deserializes binary data (in protobuf wire format) from the
3096
- * given reader into the given message object.
3097
- * @param {!proto.GetInvoiceByIdRes} msg The message object to deserialize into.
3098
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3099
- * @return {!proto.GetInvoiceByIdRes}
3168
+ * @param {string} value
3169
+ * @return {!proto.ItemPurchaseOrder} returns this
3100
3170
  */
3101
- proto.GetInvoiceByIdRes.deserializeBinaryFromReader = function(msg, reader) {
3102
- while (reader.nextField()) {
3103
- if (reader.isEndGroup()) {
3104
- break;
3105
- }
3106
- var field = reader.getFieldNumber();
3107
- switch (field) {
3108
- case 1:
3109
- var value = new proto.Invoice;
3110
- reader.readMessage(value,proto.Invoice.deserializeBinaryFromReader);
3111
- msg.setInvoice(value);
3112
- break;
3113
- case 2:
3114
- var value = new prisca_v1_global_meta_meta_pb.Meta;
3115
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3116
- msg.setMeta(value);
3117
- break;
3118
- default:
3119
- reader.skipField();
3120
- break;
3121
- }
3122
- }
3123
- return msg;
3171
+ proto.ItemPurchaseOrder.prototype.setDescription = function(value) {
3172
+ return jspb.Message.setProto3StringField(this, 4, value);
3124
3173
  };
3125
3174
 
3126
3175
 
3127
3176
  /**
3128
- * Serializes the message to binary data (in protobuf wire format).
3129
- * @return {!Uint8Array}
3177
+ * optional string detail_description = 5;
3178
+ * @return {string}
3130
3179
  */
3131
- proto.GetInvoiceByIdRes.prototype.serializeBinary = function() {
3132
- var writer = new jspb.BinaryWriter();
3133
- proto.GetInvoiceByIdRes.serializeBinaryToWriter(this, writer);
3134
- return writer.getResultBuffer();
3180
+ proto.ItemPurchaseOrder.prototype.getDetailDescription = function() {
3181
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3135
3182
  };
3136
3183
 
3137
3184
 
3138
3185
  /**
3139
- * Serializes the given message to binary data (in protobuf wire
3140
- * format), writing to the given BinaryWriter.
3141
- * @param {!proto.GetInvoiceByIdRes} message
3142
- * @param {!jspb.BinaryWriter} writer
3143
- * @suppress {unusedLocalVariables} f is only used for nested messages
3186
+ * @param {string} value
3187
+ * @return {!proto.ItemPurchaseOrder} returns this
3144
3188
  */
3145
- proto.GetInvoiceByIdRes.serializeBinaryToWriter = function(message, writer) {
3146
- var f = undefined;
3147
- f = message.getInvoice();
3148
- if (f != null) {
3149
- writer.writeMessage(
3150
- 1,
3151
- f,
3152
- proto.Invoice.serializeBinaryToWriter
3153
- );
3154
- }
3155
- f = message.getMeta();
3156
- if (f != null) {
3157
- writer.writeMessage(
3158
- 2,
3159
- f,
3160
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3161
- );
3162
- }
3189
+ proto.ItemPurchaseOrder.prototype.setDetailDescription = function(value) {
3190
+ return jspb.Message.setProto3StringField(this, 5, value);
3163
3191
  };
3164
3192
 
3165
3193
 
3166
3194
  /**
3167
- * optional Invoice invoice = 1;
3168
- * @return {?proto.Invoice}
3195
+ * optional string quantity = 6;
3196
+ * @return {string}
3169
3197
  */
3170
- proto.GetInvoiceByIdRes.prototype.getInvoice = function() {
3171
- return /** @type{?proto.Invoice} */ (
3172
- jspb.Message.getWrapperField(this, proto.Invoice, 1));
3198
+ proto.ItemPurchaseOrder.prototype.getQuantity = function() {
3199
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
3173
3200
  };
3174
3201
 
3175
3202
 
3176
3203
  /**
3177
- * @param {?proto.Invoice|undefined} value
3178
- * @return {!proto.GetInvoiceByIdRes} returns this
3179
- */
3180
- proto.GetInvoiceByIdRes.prototype.setInvoice = function(value) {
3181
- return jspb.Message.setWrapperField(this, 1, value);
3204
+ * @param {string} value
3205
+ * @return {!proto.ItemPurchaseOrder} returns this
3206
+ */
3207
+ proto.ItemPurchaseOrder.prototype.setQuantity = function(value) {
3208
+ return jspb.Message.setProto3StringField(this, 6, value);
3182
3209
  };
3183
3210
 
3184
3211
 
3185
3212
  /**
3186
- * Clears the message field making it undefined.
3187
- * @return {!proto.GetInvoiceByIdRes} returns this
3213
+ * optional string unit_of_measure = 7;
3214
+ * @return {string}
3188
3215
  */
3189
- proto.GetInvoiceByIdRes.prototype.clearInvoice = function() {
3190
- return this.setInvoice(undefined);
3216
+ proto.ItemPurchaseOrder.prototype.getUnitOfMeasure = function() {
3217
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
3191
3218
  };
3192
3219
 
3193
3220
 
3194
3221
  /**
3195
- * Returns whether this field is set.
3196
- * @return {boolean}
3222
+ * @param {string} value
3223
+ * @return {!proto.ItemPurchaseOrder} returns this
3197
3224
  */
3198
- proto.GetInvoiceByIdRes.prototype.hasInvoice = function() {
3199
- return jspb.Message.getField(this, 1) != null;
3225
+ proto.ItemPurchaseOrder.prototype.setUnitOfMeasure = function(value) {
3226
+ return jspb.Message.setProto3StringField(this, 7, value);
3200
3227
  };
3201
3228
 
3202
3229
 
3203
3230
  /**
3204
- * optional prisca.v1.global.meta.Meta meta = 2;
3205
- * @return {?proto.prisca.v1.global.meta.Meta}
3231
+ * repeated ItemTransactionPriceCondition price_condition = 8;
3232
+ * @return {!Array<!proto.ItemTransactionPriceCondition>}
3206
3233
  */
3207
- proto.GetInvoiceByIdRes.prototype.getMeta = function() {
3208
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3209
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3234
+ proto.ItemPurchaseOrder.prototype.getPriceConditionList = function() {
3235
+ return /** @type{!Array<!proto.ItemTransactionPriceCondition>} */ (
3236
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition, 8));
3210
3237
  };
3211
3238
 
3212
3239
 
3213
3240
  /**
3214
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3215
- * @return {!proto.GetInvoiceByIdRes} returns this
3241
+ * @param {!Array<!proto.ItemTransactionPriceCondition>} value
3242
+ * @return {!proto.ItemPurchaseOrder} returns this
3216
3243
  */
3217
- proto.GetInvoiceByIdRes.prototype.setMeta = function(value) {
3218
- return jspb.Message.setWrapperField(this, 2, value);
3244
+ proto.ItemPurchaseOrder.prototype.setPriceConditionList = function(value) {
3245
+ return jspb.Message.setRepeatedWrapperField(this, 8, value);
3219
3246
  };
3220
3247
 
3221
3248
 
3222
3249
  /**
3223
- * Clears the message field making it undefined.
3224
- * @return {!proto.GetInvoiceByIdRes} returns this
3250
+ * @param {!proto.ItemTransactionPriceCondition=} opt_value
3251
+ * @param {number=} opt_index
3252
+ * @return {!proto.ItemTransactionPriceCondition}
3225
3253
  */
3226
- proto.GetInvoiceByIdRes.prototype.clearMeta = function() {
3227
- return this.setMeta(undefined);
3254
+ proto.ItemPurchaseOrder.prototype.addPriceCondition = function(opt_value, opt_index) {
3255
+ return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.ItemTransactionPriceCondition, opt_index);
3228
3256
  };
3229
3257
 
3230
3258
 
3231
3259
  /**
3232
- * Returns whether this field is set.
3233
- * @return {boolean}
3260
+ * Clears the list making it empty but non-null.
3261
+ * @return {!proto.ItemPurchaseOrder} returns this
3234
3262
  */
3235
- proto.GetInvoiceByIdRes.prototype.hasMeta = function() {
3236
- return jspb.Message.getField(this, 2) != null;
3263
+ proto.ItemPurchaseOrder.prototype.clearPriceConditionList = function() {
3264
+ return this.setPriceConditionList([]);
3237
3265
  };
3238
3266
 
3239
3267
 
3240
3268
 
3241
- /**
3242
- * List of repeated fields within this message type.
3243
- * @private {!Array<number>}
3244
- * @const
3245
- */
3246
- proto.GetInvoiceDetailRes.repeatedFields_ = [1,2,3,4,5];
3247
-
3248
3269
 
3249
3270
 
3250
3271
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -3260,8 +3281,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
3260
3281
  * http://goto/soy-param-migration
3261
3282
  * @return {!Object}
3262
3283
  */
3263
- proto.GetInvoiceDetailRes.prototype.toObject = function(opt_includeInstance) {
3264
- return proto.GetInvoiceDetailRes.toObject(opt_includeInstance, this);
3284
+ proto.ItemGoodReceipt.prototype.toObject = function(opt_includeInstance) {
3285
+ return proto.ItemGoodReceipt.toObject(opt_includeInstance, this);
3265
3286
  };
3266
3287
 
3267
3288
 
@@ -3270,22 +3291,21 @@ proto.GetInvoiceDetailRes.prototype.toObject = function(opt_includeInstance) {
3270
3291
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3271
3292
  * the JSPB instance for transitional soy proto support:
3272
3293
  * http://goto/soy-param-migration
3273
- * @param {!proto.GetInvoiceDetailRes} msg The msg instance to transform.
3294
+ * @param {!proto.ItemGoodReceipt} msg The msg instance to transform.
3274
3295
  * @return {!Object}
3275
3296
  * @suppress {unusedLocalVariables} f is only used for nested messages
3276
3297
  */
3277
- proto.GetInvoiceDetailRes.toObject = function(includeInstance, msg) {
3298
+ proto.ItemGoodReceipt.toObject = function(includeInstance, msg) {
3278
3299
  var f, obj = {
3279
- transactionBuilderList: jspb.Message.toObjectList(msg.getTransactionBuilderList(),
3280
- prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.toObject, includeInstance),
3281
- transactionBuilderItemsList: jspb.Message.toObjectList(msg.getTransactionBuilderItemsList(),
3282
- proto.GetInvoiceItemPreload.toObject, includeInstance),
3283
- invoiceReferencesList: jspb.Message.toObjectList(msg.getInvoiceReferencesList(),
3284
- proto.Invoice.toObject, includeInstance),
3285
- transactionBuilderGoodsReceiptItemsList: jspb.Message.toObjectList(msg.getTransactionBuilderGoodsReceiptItemsList(),
3286
- proto.GetInvoiceItemPreload.toObject, includeInstance),
3287
- transactionBuilderPurchaseOrderItemsList: jspb.Message.toObjectList(msg.getTransactionBuilderPurchaseOrderItemsList(),
3288
- proto.GetInvoiceItemPreload.toObject, includeInstance)
3300
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
3301
+ purchaseOrderNumber: jspb.Message.getFieldWithDefault(msg, 2, ""),
3302
+ purchaseOrderReferencesId: jspb.Message.getFieldWithDefault(msg, 3, ""),
3303
+ goodReceiptNumber: jspb.Message.getFieldWithDefault(msg, 4, ""),
3304
+ description: jspb.Message.getFieldWithDefault(msg, 5, ""),
3305
+ detailDescription: jspb.Message.getFieldWithDefault(msg, 6, ""),
3306
+ quantity: jspb.Message.getFieldWithDefault(msg, 7, ""),
3307
+ purchaseOrderQuantity: jspb.Message.getFieldWithDefault(msg, 8, ""),
3308
+ unitOfMeasure: jspb.Message.getFieldWithDefault(msg, 9, "")
3289
3309
  };
3290
3310
 
3291
3311
  if (includeInstance) {
@@ -3299,23 +3319,23 @@ transactionBuilderPurchaseOrderItemsList: jspb.Message.toObjectList(msg.getTrans
3299
3319
  /**
3300
3320
  * Deserializes binary data (in protobuf wire format).
3301
3321
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
3302
- * @return {!proto.GetInvoiceDetailRes}
3322
+ * @return {!proto.ItemGoodReceipt}
3303
3323
  */
3304
- proto.GetInvoiceDetailRes.deserializeBinary = function(bytes) {
3324
+ proto.ItemGoodReceipt.deserializeBinary = function(bytes) {
3305
3325
  var reader = new jspb.BinaryReader(bytes);
3306
- var msg = new proto.GetInvoiceDetailRes;
3307
- return proto.GetInvoiceDetailRes.deserializeBinaryFromReader(msg, reader);
3326
+ var msg = new proto.ItemGoodReceipt;
3327
+ return proto.ItemGoodReceipt.deserializeBinaryFromReader(msg, reader);
3308
3328
  };
3309
3329
 
3310
3330
 
3311
3331
  /**
3312
3332
  * Deserializes binary data (in protobuf wire format) from the
3313
3333
  * given reader into the given message object.
3314
- * @param {!proto.GetInvoiceDetailRes} msg The message object to deserialize into.
3334
+ * @param {!proto.ItemGoodReceipt} msg The message object to deserialize into.
3315
3335
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3316
- * @return {!proto.GetInvoiceDetailRes}
3336
+ * @return {!proto.ItemGoodReceipt}
3317
3337
  */
3318
- proto.GetInvoiceDetailRes.deserializeBinaryFromReader = function(msg, reader) {
3338
+ proto.ItemGoodReceipt.deserializeBinaryFromReader = function(msg, reader) {
3319
3339
  while (reader.nextField()) {
3320
3340
  if (reader.isEndGroup()) {
3321
3341
  break;
@@ -3323,29 +3343,40 @@ proto.GetInvoiceDetailRes.deserializeBinaryFromReader = function(msg, reader) {
3323
3343
  var field = reader.getFieldNumber();
3324
3344
  switch (field) {
3325
3345
  case 1:
3326
- var value = new prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail;
3327
- reader.readMessage(value,prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.deserializeBinaryFromReader);
3328
- msg.addTransactionBuilder(value);
3346
+ var value = /** @type {string} */ (reader.readString());
3347
+ msg.setReferencesId(value);
3329
3348
  break;
3330
3349
  case 2:
3331
- var value = new proto.GetInvoiceItemPreload;
3332
- reader.readMessage(value,proto.GetInvoiceItemPreload.deserializeBinaryFromReader);
3333
- msg.addTransactionBuilderItems(value);
3350
+ var value = /** @type {string} */ (reader.readString());
3351
+ msg.setPurchaseOrderNumber(value);
3334
3352
  break;
3335
3353
  case 3:
3336
- var value = new proto.Invoice;
3337
- reader.readMessage(value,proto.Invoice.deserializeBinaryFromReader);
3338
- msg.addInvoiceReferences(value);
3354
+ var value = /** @type {string} */ (reader.readString());
3355
+ msg.setPurchaseOrderReferencesId(value);
3339
3356
  break;
3340
3357
  case 4:
3341
- var value = new proto.GetInvoiceItemPreload;
3342
- reader.readMessage(value,proto.GetInvoiceItemPreload.deserializeBinaryFromReader);
3343
- msg.addTransactionBuilderGoodsReceiptItems(value);
3358
+ var value = /** @type {string} */ (reader.readString());
3359
+ msg.setGoodReceiptNumber(value);
3344
3360
  break;
3345
3361
  case 5:
3346
- var value = new proto.GetInvoiceItemPreload;
3347
- reader.readMessage(value,proto.GetInvoiceItemPreload.deserializeBinaryFromReader);
3348
- msg.addTransactionBuilderPurchaseOrderItems(value);
3362
+ var value = /** @type {string} */ (reader.readString());
3363
+ msg.setDescription(value);
3364
+ break;
3365
+ case 6:
3366
+ var value = /** @type {string} */ (reader.readString());
3367
+ msg.setDetailDescription(value);
3368
+ break;
3369
+ case 7:
3370
+ var value = /** @type {string} */ (reader.readString());
3371
+ msg.setQuantity(value);
3372
+ break;
3373
+ case 8:
3374
+ var value = /** @type {string} */ (reader.readString());
3375
+ msg.setPurchaseOrderQuantity(value);
3376
+ break;
3377
+ case 9:
3378
+ var value = /** @type {string} */ (reader.readString());
3379
+ msg.setUnitOfMeasure(value);
3349
3380
  break;
3350
3381
  default:
3351
3382
  reader.skipField();
@@ -3360,9 +3391,9 @@ proto.GetInvoiceDetailRes.deserializeBinaryFromReader = function(msg, reader) {
3360
3391
  * Serializes the message to binary data (in protobuf wire format).
3361
3392
  * @return {!Uint8Array}
3362
3393
  */
3363
- proto.GetInvoiceDetailRes.prototype.serializeBinary = function() {
3394
+ proto.ItemGoodReceipt.prototype.serializeBinary = function() {
3364
3395
  var writer = new jspb.BinaryWriter();
3365
- proto.GetInvoiceDetailRes.serializeBinaryToWriter(this, writer);
3396
+ proto.ItemGoodReceipt.serializeBinaryToWriter(this, writer);
3366
3397
  return writer.getResultBuffer();
3367
3398
  };
3368
3399
 
@@ -3370,242 +3401,237 @@ proto.GetInvoiceDetailRes.prototype.serializeBinary = function() {
3370
3401
  /**
3371
3402
  * Serializes the given message to binary data (in protobuf wire
3372
3403
  * format), writing to the given BinaryWriter.
3373
- * @param {!proto.GetInvoiceDetailRes} message
3404
+ * @param {!proto.ItemGoodReceipt} message
3374
3405
  * @param {!jspb.BinaryWriter} writer
3375
3406
  * @suppress {unusedLocalVariables} f is only used for nested messages
3376
3407
  */
3377
- proto.GetInvoiceDetailRes.serializeBinaryToWriter = function(message, writer) {
3408
+ proto.ItemGoodReceipt.serializeBinaryToWriter = function(message, writer) {
3378
3409
  var f = undefined;
3379
- f = message.getTransactionBuilderList();
3410
+ f = message.getReferencesId();
3380
3411
  if (f.length > 0) {
3381
- writer.writeRepeatedMessage(
3412
+ writer.writeString(
3382
3413
  1,
3383
- f,
3384
- prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.serializeBinaryToWriter
3414
+ f
3385
3415
  );
3386
3416
  }
3387
- f = message.getTransactionBuilderItemsList();
3417
+ f = message.getPurchaseOrderNumber();
3388
3418
  if (f.length > 0) {
3389
- writer.writeRepeatedMessage(
3419
+ writer.writeString(
3390
3420
  2,
3391
- f,
3392
- proto.GetInvoiceItemPreload.serializeBinaryToWriter
3421
+ f
3393
3422
  );
3394
3423
  }
3395
- f = message.getInvoiceReferencesList();
3424
+ f = message.getPurchaseOrderReferencesId();
3396
3425
  if (f.length > 0) {
3397
- writer.writeRepeatedMessage(
3426
+ writer.writeString(
3398
3427
  3,
3399
- f,
3400
- proto.Invoice.serializeBinaryToWriter
3428
+ f
3401
3429
  );
3402
3430
  }
3403
- f = message.getTransactionBuilderGoodsReceiptItemsList();
3431
+ f = message.getGoodReceiptNumber();
3404
3432
  if (f.length > 0) {
3405
- writer.writeRepeatedMessage(
3433
+ writer.writeString(
3406
3434
  4,
3407
- f,
3408
- proto.GetInvoiceItemPreload.serializeBinaryToWriter
3435
+ f
3409
3436
  );
3410
3437
  }
3411
- f = message.getTransactionBuilderPurchaseOrderItemsList();
3438
+ f = message.getDescription();
3412
3439
  if (f.length > 0) {
3413
- writer.writeRepeatedMessage(
3440
+ writer.writeString(
3414
3441
  5,
3415
- f,
3416
- proto.GetInvoiceItemPreload.serializeBinaryToWriter
3442
+ f
3443
+ );
3444
+ }
3445
+ f = message.getDetailDescription();
3446
+ if (f.length > 0) {
3447
+ writer.writeString(
3448
+ 6,
3449
+ f
3450
+ );
3451
+ }
3452
+ f = message.getQuantity();
3453
+ if (f.length > 0) {
3454
+ writer.writeString(
3455
+ 7,
3456
+ f
3457
+ );
3458
+ }
3459
+ f = message.getPurchaseOrderQuantity();
3460
+ if (f.length > 0) {
3461
+ writer.writeString(
3462
+ 8,
3463
+ f
3464
+ );
3465
+ }
3466
+ f = message.getUnitOfMeasure();
3467
+ if (f.length > 0) {
3468
+ writer.writeString(
3469
+ 9,
3470
+ f
3417
3471
  );
3418
3472
  }
3419
3473
  };
3420
3474
 
3421
3475
 
3422
3476
  /**
3423
- * repeated TransactionBuilderFieldsDetail transaction_builder = 1;
3424
- * @return {!Array<!proto.TransactionBuilderFieldsDetail>}
3477
+ * optional string references_id = 1;
3478
+ * @return {string}
3425
3479
  */
3426
- proto.GetInvoiceDetailRes.prototype.getTransactionBuilderList = function() {
3427
- return /** @type{!Array<!proto.TransactionBuilderFieldsDetail>} */ (
3428
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail, 1));
3429
- };
3430
-
3431
-
3432
- /**
3433
- * @param {!Array<!proto.TransactionBuilderFieldsDetail>} value
3434
- * @return {!proto.GetInvoiceDetailRes} returns this
3435
- */
3436
- proto.GetInvoiceDetailRes.prototype.setTransactionBuilderList = function(value) {
3437
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
3480
+ proto.ItemGoodReceipt.prototype.getReferencesId = function() {
3481
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3438
3482
  };
3439
3483
 
3440
3484
 
3441
3485
  /**
3442
- * @param {!proto.TransactionBuilderFieldsDetail=} opt_value
3443
- * @param {number=} opt_index
3444
- * @return {!proto.TransactionBuilderFieldsDetail}
3486
+ * @param {string} value
3487
+ * @return {!proto.ItemGoodReceipt} returns this
3445
3488
  */
3446
- proto.GetInvoiceDetailRes.prototype.addTransactionBuilder = function(opt_value, opt_index) {
3447
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.TransactionBuilderFieldsDetail, opt_index);
3489
+ proto.ItemGoodReceipt.prototype.setReferencesId = function(value) {
3490
+ return jspb.Message.setProto3StringField(this, 1, value);
3448
3491
  };
3449
3492
 
3450
3493
 
3451
3494
  /**
3452
- * Clears the list making it empty but non-null.
3453
- * @return {!proto.GetInvoiceDetailRes} returns this
3495
+ * optional string purchase_order_number = 2;
3496
+ * @return {string}
3454
3497
  */
3455
- proto.GetInvoiceDetailRes.prototype.clearTransactionBuilderList = function() {
3456
- return this.setTransactionBuilderList([]);
3498
+ proto.ItemGoodReceipt.prototype.getPurchaseOrderNumber = function() {
3499
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3457
3500
  };
3458
3501
 
3459
3502
 
3460
3503
  /**
3461
- * repeated GetInvoiceItemPreload transaction_builder_items = 2;
3462
- * @return {!Array<!proto.GetInvoiceItemPreload>}
3504
+ * @param {string} value
3505
+ * @return {!proto.ItemGoodReceipt} returns this
3463
3506
  */
3464
- proto.GetInvoiceDetailRes.prototype.getTransactionBuilderItemsList = function() {
3465
- return /** @type{!Array<!proto.GetInvoiceItemPreload>} */ (
3466
- jspb.Message.getRepeatedWrapperField(this, proto.GetInvoiceItemPreload, 2));
3467
- };
3468
-
3469
-
3470
- /**
3471
- * @param {!Array<!proto.GetInvoiceItemPreload>} value
3472
- * @return {!proto.GetInvoiceDetailRes} returns this
3473
- */
3474
- proto.GetInvoiceDetailRes.prototype.setTransactionBuilderItemsList = function(value) {
3475
- return jspb.Message.setRepeatedWrapperField(this, 2, value);
3507
+ proto.ItemGoodReceipt.prototype.setPurchaseOrderNumber = function(value) {
3508
+ return jspb.Message.setProto3StringField(this, 2, value);
3476
3509
  };
3477
3510
 
3478
3511
 
3479
3512
  /**
3480
- * @param {!proto.GetInvoiceItemPreload=} opt_value
3481
- * @param {number=} opt_index
3482
- * @return {!proto.GetInvoiceItemPreload}
3513
+ * optional string purchase_order_references_id = 3;
3514
+ * @return {string}
3483
3515
  */
3484
- proto.GetInvoiceDetailRes.prototype.addTransactionBuilderItems = function(opt_value, opt_index) {
3485
- return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.GetInvoiceItemPreload, opt_index);
3516
+ proto.ItemGoodReceipt.prototype.getPurchaseOrderReferencesId = function() {
3517
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3486
3518
  };
3487
3519
 
3488
3520
 
3489
3521
  /**
3490
- * Clears the list making it empty but non-null.
3491
- * @return {!proto.GetInvoiceDetailRes} returns this
3522
+ * @param {string} value
3523
+ * @return {!proto.ItemGoodReceipt} returns this
3492
3524
  */
3493
- proto.GetInvoiceDetailRes.prototype.clearTransactionBuilderItemsList = function() {
3494
- return this.setTransactionBuilderItemsList([]);
3525
+ proto.ItemGoodReceipt.prototype.setPurchaseOrderReferencesId = function(value) {
3526
+ return jspb.Message.setProto3StringField(this, 3, value);
3495
3527
  };
3496
3528
 
3497
3529
 
3498
3530
  /**
3499
- * repeated Invoice invoice_references = 3;
3500
- * @return {!Array<!proto.Invoice>}
3531
+ * optional string good_receipt_number = 4;
3532
+ * @return {string}
3501
3533
  */
3502
- proto.GetInvoiceDetailRes.prototype.getInvoiceReferencesList = function() {
3503
- return /** @type{!Array<!proto.Invoice>} */ (
3504
- jspb.Message.getRepeatedWrapperField(this, proto.Invoice, 3));
3534
+ proto.ItemGoodReceipt.prototype.getGoodReceiptNumber = function() {
3535
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3505
3536
  };
3506
3537
 
3507
3538
 
3508
3539
  /**
3509
- * @param {!Array<!proto.Invoice>} value
3510
- * @return {!proto.GetInvoiceDetailRes} returns this
3511
- */
3512
- proto.GetInvoiceDetailRes.prototype.setInvoiceReferencesList = function(value) {
3513
- return jspb.Message.setRepeatedWrapperField(this, 3, value);
3540
+ * @param {string} value
3541
+ * @return {!proto.ItemGoodReceipt} returns this
3542
+ */
3543
+ proto.ItemGoodReceipt.prototype.setGoodReceiptNumber = function(value) {
3544
+ return jspb.Message.setProto3StringField(this, 4, value);
3514
3545
  };
3515
3546
 
3516
3547
 
3517
3548
  /**
3518
- * @param {!proto.Invoice=} opt_value
3519
- * @param {number=} opt_index
3520
- * @return {!proto.Invoice}
3549
+ * optional string description = 5;
3550
+ * @return {string}
3521
3551
  */
3522
- proto.GetInvoiceDetailRes.prototype.addInvoiceReferences = function(opt_value, opt_index) {
3523
- return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.Invoice, opt_index);
3552
+ proto.ItemGoodReceipt.prototype.getDescription = function() {
3553
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3524
3554
  };
3525
3555
 
3526
3556
 
3527
3557
  /**
3528
- * Clears the list making it empty but non-null.
3529
- * @return {!proto.GetInvoiceDetailRes} returns this
3558
+ * @param {string} value
3559
+ * @return {!proto.ItemGoodReceipt} returns this
3530
3560
  */
3531
- proto.GetInvoiceDetailRes.prototype.clearInvoiceReferencesList = function() {
3532
- return this.setInvoiceReferencesList([]);
3561
+ proto.ItemGoodReceipt.prototype.setDescription = function(value) {
3562
+ return jspb.Message.setProto3StringField(this, 5, value);
3533
3563
  };
3534
3564
 
3535
3565
 
3536
3566
  /**
3537
- * repeated GetInvoiceItemPreload transaction_builder_goods_receipt_items = 4;
3538
- * @return {!Array<!proto.GetInvoiceItemPreload>}
3567
+ * optional string detail_description = 6;
3568
+ * @return {string}
3539
3569
  */
3540
- proto.GetInvoiceDetailRes.prototype.getTransactionBuilderGoodsReceiptItemsList = function() {
3541
- return /** @type{!Array<!proto.GetInvoiceItemPreload>} */ (
3542
- jspb.Message.getRepeatedWrapperField(this, proto.GetInvoiceItemPreload, 4));
3570
+ proto.ItemGoodReceipt.prototype.getDetailDescription = function() {
3571
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
3543
3572
  };
3544
3573
 
3545
3574
 
3546
3575
  /**
3547
- * @param {!Array<!proto.GetInvoiceItemPreload>} value
3548
- * @return {!proto.GetInvoiceDetailRes} returns this
3549
- */
3550
- proto.GetInvoiceDetailRes.prototype.setTransactionBuilderGoodsReceiptItemsList = function(value) {
3551
- return jspb.Message.setRepeatedWrapperField(this, 4, value);
3576
+ * @param {string} value
3577
+ * @return {!proto.ItemGoodReceipt} returns this
3578
+ */
3579
+ proto.ItemGoodReceipt.prototype.setDetailDescription = function(value) {
3580
+ return jspb.Message.setProto3StringField(this, 6, value);
3552
3581
  };
3553
3582
 
3554
3583
 
3555
3584
  /**
3556
- * @param {!proto.GetInvoiceItemPreload=} opt_value
3557
- * @param {number=} opt_index
3558
- * @return {!proto.GetInvoiceItemPreload}
3585
+ * optional string quantity = 7;
3586
+ * @return {string}
3559
3587
  */
3560
- proto.GetInvoiceDetailRes.prototype.addTransactionBuilderGoodsReceiptItems = function(opt_value, opt_index) {
3561
- return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.GetInvoiceItemPreload, opt_index);
3588
+ proto.ItemGoodReceipt.prototype.getQuantity = function() {
3589
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
3562
3590
  };
3563
3591
 
3564
3592
 
3565
3593
  /**
3566
- * Clears the list making it empty but non-null.
3567
- * @return {!proto.GetInvoiceDetailRes} returns this
3594
+ * @param {string} value
3595
+ * @return {!proto.ItemGoodReceipt} returns this
3568
3596
  */
3569
- proto.GetInvoiceDetailRes.prototype.clearTransactionBuilderGoodsReceiptItemsList = function() {
3570
- return this.setTransactionBuilderGoodsReceiptItemsList([]);
3597
+ proto.ItemGoodReceipt.prototype.setQuantity = function(value) {
3598
+ return jspb.Message.setProto3StringField(this, 7, value);
3571
3599
  };
3572
3600
 
3573
3601
 
3574
3602
  /**
3575
- * repeated GetInvoiceItemPreload transaction_builder_purchase_order_items = 5;
3576
- * @return {!Array<!proto.GetInvoiceItemPreload>}
3603
+ * optional string purchase_order_quantity = 8;
3604
+ * @return {string}
3577
3605
  */
3578
- proto.GetInvoiceDetailRes.prototype.getTransactionBuilderPurchaseOrderItemsList = function() {
3579
- return /** @type{!Array<!proto.GetInvoiceItemPreload>} */ (
3580
- jspb.Message.getRepeatedWrapperField(this, proto.GetInvoiceItemPreload, 5));
3606
+ proto.ItemGoodReceipt.prototype.getPurchaseOrderQuantity = function() {
3607
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
3581
3608
  };
3582
3609
 
3583
3610
 
3584
3611
  /**
3585
- * @param {!Array<!proto.GetInvoiceItemPreload>} value
3586
- * @return {!proto.GetInvoiceDetailRes} returns this
3587
- */
3588
- proto.GetInvoiceDetailRes.prototype.setTransactionBuilderPurchaseOrderItemsList = function(value) {
3589
- return jspb.Message.setRepeatedWrapperField(this, 5, value);
3612
+ * @param {string} value
3613
+ * @return {!proto.ItemGoodReceipt} returns this
3614
+ */
3615
+ proto.ItemGoodReceipt.prototype.setPurchaseOrderQuantity = function(value) {
3616
+ return jspb.Message.setProto3StringField(this, 8, value);
3590
3617
  };
3591
3618
 
3592
3619
 
3593
3620
  /**
3594
- * @param {!proto.GetInvoiceItemPreload=} opt_value
3595
- * @param {number=} opt_index
3596
- * @return {!proto.GetInvoiceItemPreload}
3621
+ * optional string unit_of_measure = 9;
3622
+ * @return {string}
3597
3623
  */
3598
- proto.GetInvoiceDetailRes.prototype.addTransactionBuilderPurchaseOrderItems = function(opt_value, opt_index) {
3599
- return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.GetInvoiceItemPreload, opt_index);
3624
+ proto.ItemGoodReceipt.prototype.getUnitOfMeasure = function() {
3625
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
3600
3626
  };
3601
3627
 
3602
3628
 
3603
3629
  /**
3604
- * Clears the list making it empty but non-null.
3605
- * @return {!proto.GetInvoiceDetailRes} returns this
3630
+ * @param {string} value
3631
+ * @return {!proto.ItemGoodReceipt} returns this
3606
3632
  */
3607
- proto.GetInvoiceDetailRes.prototype.clearTransactionBuilderPurchaseOrderItemsList = function() {
3608
- return this.setTransactionBuilderPurchaseOrderItemsList([]);
3633
+ proto.ItemGoodReceipt.prototype.setUnitOfMeasure = function(value) {
3634
+ return jspb.Message.setProto3StringField(this, 9, value);
3609
3635
  };
3610
3636
 
3611
3637
 
@@ -4224,7 +4250,7 @@ proto.GetListInvoiceRes.prototype.toObject = function(opt_includeInstance) {
4224
4250
  proto.GetListInvoiceRes.toObject = function(includeInstance, msg) {
4225
4251
  var f, obj = {
4226
4252
  invoicesList: jspb.Message.toObjectList(msg.getInvoicesList(),
4227
- proto.Invoice.toObject, includeInstance),
4253
+ prisca_v1_purchase_order_purchase_order_pb.Invoice.toObject, includeInstance),
4228
4254
  meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
4229
4255
  };
4230
4256
 
@@ -4263,8 +4289,8 @@ proto.GetListInvoiceRes.deserializeBinaryFromReader = function(msg, reader) {
4263
4289
  var field = reader.getFieldNumber();
4264
4290
  switch (field) {
4265
4291
  case 1:
4266
- var value = new proto.Invoice;
4267
- reader.readMessage(value,proto.Invoice.deserializeBinaryFromReader);
4292
+ var value = new prisca_v1_purchase_order_purchase_order_pb.Invoice;
4293
+ reader.readMessage(value,prisca_v1_purchase_order_purchase_order_pb.Invoice.deserializeBinaryFromReader);
4268
4294
  msg.addInvoices(value);
4269
4295
  break;
4270
4296
  case 2:
@@ -4306,7 +4332,7 @@ proto.GetListInvoiceRes.serializeBinaryToWriter = function(message, writer) {
4306
4332
  writer.writeRepeatedMessage(
4307
4333
  1,
4308
4334
  f,
4309
- proto.Invoice.serializeBinaryToWriter
4335
+ prisca_v1_purchase_order_purchase_order_pb.Invoice.serializeBinaryToWriter
4310
4336
  );
4311
4337
  }
4312
4338
  f = message.getMeta();
@@ -4326,7 +4352,7 @@ proto.GetListInvoiceRes.serializeBinaryToWriter = function(message, writer) {
4326
4352
  */
4327
4353
  proto.GetListInvoiceRes.prototype.getInvoicesList = function() {
4328
4354
  return /** @type{!Array<!proto.Invoice>} */ (
4329
- jspb.Message.getRepeatedWrapperField(this, proto.Invoice, 1));
4355
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_purchase_order_purchase_order_pb.Invoice, 1));
4330
4356
  };
4331
4357
 
4332
4358