@aldiokta/protocgen 1.1.61 → 1.1.63

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.
Files changed (34) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/budget/budget_pb.js +211 -1
  3. package/prisca/v1/budget_planning/budget_planning_grpc_pb.js +33 -0
  4. package/prisca/v1/budget_planning/budget_planning_pb.js +1199 -152
  5. package/prisca/v1/core/auth/auth_grpc_pb.js +1 -0
  6. package/prisca/v1/core/auth/auth_pb.js +115 -2
  7. package/prisca/v1/core/employee/employee_grpc_pb.js +22 -0
  8. package/prisca/v1/core/employee/employee_pb.js +214 -2
  9. package/prisca/v1/core/item_transaction/item_transaction_pb.js +519 -10
  10. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +22 -0
  11. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +303 -1
  12. package/prisca/v1/core/material/material_grpc_pb.js +33 -0
  13. package/prisca/v1/core/material/material_pb.js +787 -1
  14. package/prisca/v1/core/report/report_pb.js +31 -1
  15. package/prisca/v1/core/users/users_pb.js +31 -1
  16. package/prisca/v1/down_payment/down_payment_grpc_pb.js +201 -0
  17. package/prisca/v1/down_payment/down_payment_pb.js +3357 -0
  18. package/prisca/v1/general_configuration/general_configuration_grpc_pb.js +212 -0
  19. package/prisca/v1/general_configuration/general_configuration_pb.js +2886 -0
  20. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +33 -0
  21. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +574 -0
  22. package/prisca/v1/invoice/invoice_grpc_pb.js +77 -0
  23. package/prisca/v1/invoice/invoice_pb.js +2657 -434
  24. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +34 -0
  25. package/prisca/v1/purchase_order/purchase_order_pb.js +2542 -57
  26. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +22 -0
  27. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +743 -53
  28. package/prisca/v1/vendor_domain/vendor_domain_pb.js +72 -12
  29. package/prisca/v1/webhook_builder/webhook_builder_grpc_pb.js +245 -0
  30. package/prisca/v1/webhook_builder/webhook_builder_pb.js +5084 -0
  31. package/prisca/v1/webhook_incoming_integration/webhook_incoming_integration_grpc_pb.js +245 -0
  32. package/prisca/v1/webhook_incoming_integration/webhook_incoming_integration_pb.js +3499 -0
  33. package/prisca/v1/webhook_integration/webhook_integration_grpc_pb.js +212 -0
  34. package/prisca/v1/webhook_integration/webhook_integration_pb.js +2976 -0
@@ -34,8 +34,11 @@ goog.object.extend(proto, prisca_v1_core_file_upload_file_upload_pb);
34
34
  var prisca_v1_core_transaction_builder_transaction_builder_pb = require('../../../prisca/v1/core/transaction_builder/transaction_builder_pb.js');
35
35
  goog.object.extend(proto, prisca_v1_core_transaction_builder_transaction_builder_pb);
36
36
  goog.exportSymbol('proto.BaseInvoice', null, global);
37
+ goog.exportSymbol('proto.BaseInvoiceWithoutPO', null, global);
38
+ goog.exportSymbol('proto.CreateDownPaymentInvoiceReq', null, global);
37
39
  goog.exportSymbol('proto.CreateInvoiceReq', null, global);
38
40
  goog.exportSymbol('proto.CreateInvoiceRes', null, global);
41
+ goog.exportSymbol('proto.CreateInvoiceWithoutPOReq', null, global);
39
42
  goog.exportSymbol('proto.DeleteInvoiceRequest', null, global);
40
43
  goog.exportSymbol('proto.DeleteInvoiceResponse', null, global);
41
44
  goog.exportSymbol('proto.GetInvoiceByIdReq', null, global);
@@ -53,7 +56,30 @@ goog.exportSymbol('proto.UpdateInvoiceFileReq', null, global);
53
56
  goog.exportSymbol('proto.UpdateInvoiceForCompanyReq', null, global);
54
57
  goog.exportSymbol('proto.UpdateInvoiceReq', null, global);
55
58
  goog.exportSymbol('proto.UpdateInvoiceRes', null, global);
59
+ goog.exportSymbol('proto.UpdateInvoiceStatusByAccurateIdReq', null, global);
60
+ goog.exportSymbol('proto.UpdateInvoiceStatusByAccurateIdRes', null, global);
56
61
  goog.exportSymbol('proto.UpdateInvoiceStatusReq', null, global);
62
+ /**
63
+ * Generated by JsPbCodeGenerator.
64
+ * @param {Array=} opt_data Optional initial data array, typically from a
65
+ * server response, or constructed directly in Javascript. The array is used
66
+ * in place and becomes part of the constructed object. It is not cloned.
67
+ * If no data is provided, the constructed object will be empty, but still
68
+ * valid.
69
+ * @extends {jspb.Message}
70
+ * @constructor
71
+ */
72
+ proto.CreateDownPaymentInvoiceReq = function(opt_data) {
73
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.CreateDownPaymentInvoiceReq.repeatedFields_, null);
74
+ };
75
+ goog.inherits(proto.CreateDownPaymentInvoiceReq, jspb.Message);
76
+ if (goog.DEBUG && !COMPILED) {
77
+ /**
78
+ * @public
79
+ * @override
80
+ */
81
+ proto.CreateDownPaymentInvoiceReq.displayName = 'proto.CreateDownPaymentInvoiceReq';
82
+ }
57
83
  /**
58
84
  * Generated by JsPbCodeGenerator.
59
85
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -75,6 +101,48 @@ if (goog.DEBUG && !COMPILED) {
75
101
  */
76
102
  proto.BaseInvoice.displayName = 'proto.BaseInvoice';
77
103
  }
104
+ /**
105
+ * Generated by JsPbCodeGenerator.
106
+ * @param {Array=} opt_data Optional initial data array, typically from a
107
+ * server response, or constructed directly in Javascript. The array is used
108
+ * in place and becomes part of the constructed object. It is not cloned.
109
+ * If no data is provided, the constructed object will be empty, but still
110
+ * valid.
111
+ * @extends {jspb.Message}
112
+ * @constructor
113
+ */
114
+ proto.BaseInvoiceWithoutPO = function(opt_data) {
115
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.BaseInvoiceWithoutPO.repeatedFields_, null);
116
+ };
117
+ goog.inherits(proto.BaseInvoiceWithoutPO, jspb.Message);
118
+ if (goog.DEBUG && !COMPILED) {
119
+ /**
120
+ * @public
121
+ * @override
122
+ */
123
+ proto.BaseInvoiceWithoutPO.displayName = 'proto.BaseInvoiceWithoutPO';
124
+ }
125
+ /**
126
+ * Generated by JsPbCodeGenerator.
127
+ * @param {Array=} opt_data Optional initial data array, typically from a
128
+ * server response, or constructed directly in Javascript. The array is used
129
+ * in place and becomes part of the constructed object. It is not cloned.
130
+ * If no data is provided, the constructed object will be empty, but still
131
+ * valid.
132
+ * @extends {jspb.Message}
133
+ * @constructor
134
+ */
135
+ proto.CreateInvoiceWithoutPOReq = function(opt_data) {
136
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
137
+ };
138
+ goog.inherits(proto.CreateInvoiceWithoutPOReq, jspb.Message);
139
+ if (goog.DEBUG && !COMPILED) {
140
+ /**
141
+ * @public
142
+ * @override
143
+ */
144
+ proto.CreateInvoiceWithoutPOReq.displayName = 'proto.CreateInvoiceWithoutPOReq';
145
+ }
78
146
  /**
79
147
  * Generated by JsPbCodeGenerator.
80
148
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -180,6 +248,48 @@ if (goog.DEBUG && !COMPILED) {
180
248
  */
181
249
  proto.UpdateInvoiceStatusReq.displayName = 'proto.UpdateInvoiceStatusReq';
182
250
  }
251
+ /**
252
+ * Generated by JsPbCodeGenerator.
253
+ * @param {Array=} opt_data Optional initial data array, typically from a
254
+ * server response, or constructed directly in Javascript. The array is used
255
+ * in place and becomes part of the constructed object. It is not cloned.
256
+ * If no data is provided, the constructed object will be empty, but still
257
+ * valid.
258
+ * @extends {jspb.Message}
259
+ * @constructor
260
+ */
261
+ proto.UpdateInvoiceStatusByAccurateIdReq = function(opt_data) {
262
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
263
+ };
264
+ goog.inherits(proto.UpdateInvoiceStatusByAccurateIdReq, jspb.Message);
265
+ if (goog.DEBUG && !COMPILED) {
266
+ /**
267
+ * @public
268
+ * @override
269
+ */
270
+ proto.UpdateInvoiceStatusByAccurateIdReq.displayName = 'proto.UpdateInvoiceStatusByAccurateIdReq';
271
+ }
272
+ /**
273
+ * Generated by JsPbCodeGenerator.
274
+ * @param {Array=} opt_data Optional initial data array, typically from a
275
+ * server response, or constructed directly in Javascript. The array is used
276
+ * in place and becomes part of the constructed object. It is not cloned.
277
+ * If no data is provided, the constructed object will be empty, but still
278
+ * valid.
279
+ * @extends {jspb.Message}
280
+ * @constructor
281
+ */
282
+ proto.UpdateInvoiceStatusByAccurateIdRes = function(opt_data) {
283
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
284
+ };
285
+ goog.inherits(proto.UpdateInvoiceStatusByAccurateIdRes, jspb.Message);
286
+ if (goog.DEBUG && !COMPILED) {
287
+ /**
288
+ * @public
289
+ * @override
290
+ */
291
+ proto.UpdateInvoiceStatusByAccurateIdRes.displayName = 'proto.UpdateInvoiceStatusByAccurateIdRes';
292
+ }
183
293
  /**
184
294
  * Generated by JsPbCodeGenerator.
185
295
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -501,7 +611,7 @@ if (goog.DEBUG && !COMPILED) {
501
611
  * @private {!Array<number>}
502
612
  * @const
503
613
  */
504
- proto.BaseInvoice.repeatedFields_ = [8,9,14,39];
614
+ proto.CreateDownPaymentInvoiceReq.repeatedFields_ = [8,9,14,39];
505
615
 
506
616
 
507
617
 
@@ -518,8 +628,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
518
628
  * http://goto/soy-param-migration
519
629
  * @return {!Object}
520
630
  */
521
- proto.BaseInvoice.prototype.toObject = function(opt_includeInstance) {
522
- return proto.BaseInvoice.toObject(opt_includeInstance, this);
631
+ proto.CreateDownPaymentInvoiceReq.prototype.toObject = function(opt_includeInstance) {
632
+ return proto.CreateDownPaymentInvoiceReq.toObject(opt_includeInstance, this);
523
633
  };
524
634
 
525
635
 
@@ -528,11 +638,11 @@ proto.BaseInvoice.prototype.toObject = function(opt_includeInstance) {
528
638
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
529
639
  * the JSPB instance for transitional soy proto support:
530
640
  * http://goto/soy-param-migration
531
- * @param {!proto.BaseInvoice} msg The msg instance to transform.
641
+ * @param {!proto.CreateDownPaymentInvoiceReq} msg The msg instance to transform.
532
642
  * @return {!Object}
533
643
  * @suppress {unusedLocalVariables} f is only used for nested messages
534
644
  */
535
- proto.BaseInvoice.toObject = function(includeInstance, msg) {
645
+ proto.CreateDownPaymentInvoiceReq.toObject = function(includeInstance, msg) {
536
646
  var f, obj = {
537
647
  purchaseOrderReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
538
648
  vendorName: jspb.Message.getFieldWithDefault(msg, 2, ""),
@@ -567,23 +677,23 @@ invoiceConditionsList: jspb.Message.toObjectList(msg.getInvoiceConditionsList(),
567
677
  /**
568
678
  * Deserializes binary data (in protobuf wire format).
569
679
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
570
- * @return {!proto.BaseInvoice}
680
+ * @return {!proto.CreateDownPaymentInvoiceReq}
571
681
  */
572
- proto.BaseInvoice.deserializeBinary = function(bytes) {
682
+ proto.CreateDownPaymentInvoiceReq.deserializeBinary = function(bytes) {
573
683
  var reader = new jspb.BinaryReader(bytes);
574
- var msg = new proto.BaseInvoice;
575
- return proto.BaseInvoice.deserializeBinaryFromReader(msg, reader);
684
+ var msg = new proto.CreateDownPaymentInvoiceReq;
685
+ return proto.CreateDownPaymentInvoiceReq.deserializeBinaryFromReader(msg, reader);
576
686
  };
577
687
 
578
688
 
579
689
  /**
580
690
  * Deserializes binary data (in protobuf wire format) from the
581
691
  * given reader into the given message object.
582
- * @param {!proto.BaseInvoice} msg The message object to deserialize into.
692
+ * @param {!proto.CreateDownPaymentInvoiceReq} msg The message object to deserialize into.
583
693
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
584
- * @return {!proto.BaseInvoice}
694
+ * @return {!proto.CreateDownPaymentInvoiceReq}
585
695
  */
586
- proto.BaseInvoice.deserializeBinaryFromReader = function(msg, reader) {
696
+ proto.CreateDownPaymentInvoiceReq.deserializeBinaryFromReader = function(msg, reader) {
587
697
  while (reader.nextField()) {
588
698
  if (reader.isEndGroup()) {
589
699
  break;
@@ -671,9 +781,9 @@ proto.BaseInvoice.deserializeBinaryFromReader = function(msg, reader) {
671
781
  * Serializes the message to binary data (in protobuf wire format).
672
782
  * @return {!Uint8Array}
673
783
  */
674
- proto.BaseInvoice.prototype.serializeBinary = function() {
784
+ proto.CreateDownPaymentInvoiceReq.prototype.serializeBinary = function() {
675
785
  var writer = new jspb.BinaryWriter();
676
- proto.BaseInvoice.serializeBinaryToWriter(this, writer);
786
+ proto.CreateDownPaymentInvoiceReq.serializeBinaryToWriter(this, writer);
677
787
  return writer.getResultBuffer();
678
788
  };
679
789
 
@@ -681,11 +791,11 @@ proto.BaseInvoice.prototype.serializeBinary = function() {
681
791
  /**
682
792
  * Serializes the given message to binary data (in protobuf wire
683
793
  * format), writing to the given BinaryWriter.
684
- * @param {!proto.BaseInvoice} message
794
+ * @param {!proto.CreateDownPaymentInvoiceReq} message
685
795
  * @param {!jspb.BinaryWriter} writer
686
796
  * @suppress {unusedLocalVariables} f is only used for nested messages
687
797
  */
688
- proto.BaseInvoice.serializeBinaryToWriter = function(message, writer) {
798
+ proto.CreateDownPaymentInvoiceReq.serializeBinaryToWriter = function(message, writer) {
689
799
  var f = undefined;
690
800
  f = message.getPurchaseOrderReferencesId();
691
801
  if (f.length > 0) {
@@ -810,16 +920,16 @@ proto.BaseInvoice.serializeBinaryToWriter = function(message, writer) {
810
920
  * optional string purchase_order_references_id = 1;
811
921
  * @return {string}
812
922
  */
813
- proto.BaseInvoice.prototype.getPurchaseOrderReferencesId = function() {
923
+ proto.CreateDownPaymentInvoiceReq.prototype.getPurchaseOrderReferencesId = function() {
814
924
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
815
925
  };
816
926
 
817
927
 
818
928
  /**
819
929
  * @param {string} value
820
- * @return {!proto.BaseInvoice} returns this
930
+ * @return {!proto.CreateDownPaymentInvoiceReq} returns this
821
931
  */
822
- proto.BaseInvoice.prototype.setPurchaseOrderReferencesId = function(value) {
932
+ proto.CreateDownPaymentInvoiceReq.prototype.setPurchaseOrderReferencesId = function(value) {
823
933
  return jspb.Message.setProto3StringField(this, 1, value);
824
934
  };
825
935
 
@@ -828,16 +938,16 @@ proto.BaseInvoice.prototype.setPurchaseOrderReferencesId = function(value) {
828
938
  * optional string vendor_name = 2;
829
939
  * @return {string}
830
940
  */
831
- proto.BaseInvoice.prototype.getVendorName = function() {
941
+ proto.CreateDownPaymentInvoiceReq.prototype.getVendorName = function() {
832
942
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
833
943
  };
834
944
 
835
945
 
836
946
  /**
837
947
  * @param {string} value
838
- * @return {!proto.BaseInvoice} returns this
948
+ * @return {!proto.CreateDownPaymentInvoiceReq} returns this
839
949
  */
840
- proto.BaseInvoice.prototype.setVendorName = function(value) {
950
+ proto.CreateDownPaymentInvoiceReq.prototype.setVendorName = function(value) {
841
951
  return jspb.Message.setProto3StringField(this, 2, value);
842
952
  };
843
953
 
@@ -846,16 +956,16 @@ proto.BaseInvoice.prototype.setVendorName = function(value) {
846
956
  * optional string invoice_subject = 3;
847
957
  * @return {string}
848
958
  */
849
- proto.BaseInvoice.prototype.getInvoiceSubject = function() {
959
+ proto.CreateDownPaymentInvoiceReq.prototype.getInvoiceSubject = function() {
850
960
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
851
961
  };
852
962
 
853
963
 
854
964
  /**
855
965
  * @param {string} value
856
- * @return {!proto.BaseInvoice} returns this
966
+ * @return {!proto.CreateDownPaymentInvoiceReq} returns this
857
967
  */
858
- proto.BaseInvoice.prototype.setInvoiceSubject = function(value) {
968
+ proto.CreateDownPaymentInvoiceReq.prototype.setInvoiceSubject = function(value) {
859
969
  return jspb.Message.setProto3StringField(this, 3, value);
860
970
  };
861
971
 
@@ -864,16 +974,16 @@ proto.BaseInvoice.prototype.setInvoiceSubject = function(value) {
864
974
  * optional string invoice_number = 4;
865
975
  * @return {string}
866
976
  */
867
- proto.BaseInvoice.prototype.getInvoiceNumber = function() {
977
+ proto.CreateDownPaymentInvoiceReq.prototype.getInvoiceNumber = function() {
868
978
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
869
979
  };
870
980
 
871
981
 
872
982
  /**
873
983
  * @param {string} value
874
- * @return {!proto.BaseInvoice} returns this
984
+ * @return {!proto.CreateDownPaymentInvoiceReq} returns this
875
985
  */
876
- proto.BaseInvoice.prototype.setInvoiceNumber = function(value) {
986
+ proto.CreateDownPaymentInvoiceReq.prototype.setInvoiceNumber = function(value) {
877
987
  return jspb.Message.setProto3StringField(this, 4, value);
878
988
  };
879
989
 
@@ -882,16 +992,16 @@ proto.BaseInvoice.prototype.setInvoiceNumber = function(value) {
882
992
  * optional string invoice_date = 5;
883
993
  * @return {string}
884
994
  */
885
- proto.BaseInvoice.prototype.getInvoiceDate = function() {
995
+ proto.CreateDownPaymentInvoiceReq.prototype.getInvoiceDate = function() {
886
996
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
887
997
  };
888
998
 
889
999
 
890
1000
  /**
891
1001
  * @param {string} value
892
- * @return {!proto.BaseInvoice} returns this
1002
+ * @return {!proto.CreateDownPaymentInvoiceReq} returns this
893
1003
  */
894
- proto.BaseInvoice.prototype.setInvoiceDate = function(value) {
1004
+ proto.CreateDownPaymentInvoiceReq.prototype.setInvoiceDate = function(value) {
895
1005
  return jspb.Message.setProto3StringField(this, 5, value);
896
1006
  };
897
1007
 
@@ -900,16 +1010,16 @@ proto.BaseInvoice.prototype.setInvoiceDate = function(value) {
900
1010
  * optional string plant = 6;
901
1011
  * @return {string}
902
1012
  */
903
- proto.BaseInvoice.prototype.getPlant = function() {
1013
+ proto.CreateDownPaymentInvoiceReq.prototype.getPlant = function() {
904
1014
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
905
1015
  };
906
1016
 
907
1017
 
908
1018
  /**
909
1019
  * @param {string} value
910
- * @return {!proto.BaseInvoice} returns this
1020
+ * @return {!proto.CreateDownPaymentInvoiceReq} returns this
911
1021
  */
912
- proto.BaseInvoice.prototype.setPlant = function(value) {
1022
+ proto.CreateDownPaymentInvoiceReq.prototype.setPlant = function(value) {
913
1023
  return jspb.Message.setProto3StringField(this, 6, value);
914
1024
  };
915
1025
 
@@ -918,16 +1028,16 @@ proto.BaseInvoice.prototype.setPlant = function(value) {
918
1028
  * optional string invoice_type = 7;
919
1029
  * @return {string}
920
1030
  */
921
- proto.BaseInvoice.prototype.getInvoiceType = function() {
1031
+ proto.CreateDownPaymentInvoiceReq.prototype.getInvoiceType = function() {
922
1032
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
923
1033
  };
924
1034
 
925
1035
 
926
1036
  /**
927
1037
  * @param {string} value
928
- * @return {!proto.BaseInvoice} returns this
1038
+ * @return {!proto.CreateDownPaymentInvoiceReq} returns this
929
1039
  */
930
- proto.BaseInvoice.prototype.setInvoiceType = function(value) {
1040
+ proto.CreateDownPaymentInvoiceReq.prototype.setInvoiceType = function(value) {
931
1041
  return jspb.Message.setProto3StringField(this, 7, value);
932
1042
  };
933
1043
 
@@ -936,7 +1046,7 @@ proto.BaseInvoice.prototype.setInvoiceType = function(value) {
936
1046
  * repeated ItemTransaction item_transactions = 8;
937
1047
  * @return {!Array<!proto.ItemTransaction>}
938
1048
  */
939
- proto.BaseInvoice.prototype.getItemTransactionsList = function() {
1049
+ proto.CreateDownPaymentInvoiceReq.prototype.getItemTransactionsList = function() {
940
1050
  return /** @type{!Array<!proto.ItemTransaction>} */ (
941
1051
  jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction, 8));
942
1052
  };
@@ -944,9 +1054,9 @@ proto.BaseInvoice.prototype.getItemTransactionsList = function() {
944
1054
 
945
1055
  /**
946
1056
  * @param {!Array<!proto.ItemTransaction>} value
947
- * @return {!proto.BaseInvoice} returns this
1057
+ * @return {!proto.CreateDownPaymentInvoiceReq} returns this
948
1058
  */
949
- proto.BaseInvoice.prototype.setItemTransactionsList = function(value) {
1059
+ proto.CreateDownPaymentInvoiceReq.prototype.setItemTransactionsList = function(value) {
950
1060
  return jspb.Message.setRepeatedWrapperField(this, 8, value);
951
1061
  };
952
1062
 
@@ -956,16 +1066,16 @@ proto.BaseInvoice.prototype.setItemTransactionsList = function(value) {
956
1066
  * @param {number=} opt_index
957
1067
  * @return {!proto.ItemTransaction}
958
1068
  */
959
- proto.BaseInvoice.prototype.addItemTransactions = function(opt_value, opt_index) {
1069
+ proto.CreateDownPaymentInvoiceReq.prototype.addItemTransactions = function(opt_value, opt_index) {
960
1070
  return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.ItemTransaction, opt_index);
961
1071
  };
962
1072
 
963
1073
 
964
1074
  /**
965
1075
  * Clears the list making it empty but non-null.
966
- * @return {!proto.BaseInvoice} returns this
1076
+ * @return {!proto.CreateDownPaymentInvoiceReq} returns this
967
1077
  */
968
- proto.BaseInvoice.prototype.clearItemTransactionsList = function() {
1078
+ proto.CreateDownPaymentInvoiceReq.prototype.clearItemTransactionsList = function() {
969
1079
  return this.setItemTransactionsList([]);
970
1080
  };
971
1081
 
@@ -974,7 +1084,7 @@ proto.BaseInvoice.prototype.clearItemTransactionsList = function() {
974
1084
  * repeated FileUploadReferencesReq files = 9;
975
1085
  * @return {!Array<!proto.FileUploadReferencesReq>}
976
1086
  */
977
- proto.BaseInvoice.prototype.getFilesList = function() {
1087
+ proto.CreateDownPaymentInvoiceReq.prototype.getFilesList = function() {
978
1088
  return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
979
1089
  jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 9));
980
1090
  };
@@ -982,9 +1092,9 @@ proto.BaseInvoice.prototype.getFilesList = function() {
982
1092
 
983
1093
  /**
984
1094
  * @param {!Array<!proto.FileUploadReferencesReq>} value
985
- * @return {!proto.BaseInvoice} returns this
1095
+ * @return {!proto.CreateDownPaymentInvoiceReq} returns this
986
1096
  */
987
- proto.BaseInvoice.prototype.setFilesList = function(value) {
1097
+ proto.CreateDownPaymentInvoiceReq.prototype.setFilesList = function(value) {
988
1098
  return jspb.Message.setRepeatedWrapperField(this, 9, value);
989
1099
  };
990
1100
 
@@ -994,16 +1104,16 @@ proto.BaseInvoice.prototype.setFilesList = function(value) {
994
1104
  * @param {number=} opt_index
995
1105
  * @return {!proto.FileUploadReferencesReq}
996
1106
  */
997
- proto.BaseInvoice.prototype.addFiles = function(opt_value, opt_index) {
1107
+ proto.CreateDownPaymentInvoiceReq.prototype.addFiles = function(opt_value, opt_index) {
998
1108
  return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.FileUploadReferencesReq, opt_index);
999
1109
  };
1000
1110
 
1001
1111
 
1002
1112
  /**
1003
1113
  * Clears the list making it empty but non-null.
1004
- * @return {!proto.BaseInvoice} returns this
1114
+ * @return {!proto.CreateDownPaymentInvoiceReq} returns this
1005
1115
  */
1006
- proto.BaseInvoice.prototype.clearFilesList = function() {
1116
+ proto.CreateDownPaymentInvoiceReq.prototype.clearFilesList = function() {
1007
1117
  return this.setFilesList([]);
1008
1118
  };
1009
1119
 
@@ -1012,16 +1122,16 @@ proto.BaseInvoice.prototype.clearFilesList = function() {
1012
1122
  * optional string transaction_type = 10;
1013
1123
  * @return {string}
1014
1124
  */
1015
- proto.BaseInvoice.prototype.getTransactionType = function() {
1125
+ proto.CreateDownPaymentInvoiceReq.prototype.getTransactionType = function() {
1016
1126
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
1017
1127
  };
1018
1128
 
1019
1129
 
1020
1130
  /**
1021
1131
  * @param {string} value
1022
- * @return {!proto.BaseInvoice} returns this
1132
+ * @return {!proto.CreateDownPaymentInvoiceReq} returns this
1023
1133
  */
1024
- proto.BaseInvoice.prototype.setTransactionType = function(value) {
1134
+ proto.CreateDownPaymentInvoiceReq.prototype.setTransactionType = function(value) {
1025
1135
  return jspb.Message.setProto3StringField(this, 10, value);
1026
1136
  };
1027
1137
 
@@ -1030,16 +1140,16 @@ proto.BaseInvoice.prototype.setTransactionType = function(value) {
1030
1140
  * optional string tax_references = 11;
1031
1141
  * @return {string}
1032
1142
  */
1033
- proto.BaseInvoice.prototype.getTaxReferences = function() {
1143
+ proto.CreateDownPaymentInvoiceReq.prototype.getTaxReferences = function() {
1034
1144
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
1035
1145
  };
1036
1146
 
1037
1147
 
1038
1148
  /**
1039
1149
  * @param {string} value
1040
- * @return {!proto.BaseInvoice} returns this
1150
+ * @return {!proto.CreateDownPaymentInvoiceReq} returns this
1041
1151
  */
1042
- proto.BaseInvoice.prototype.setTaxReferences = function(value) {
1152
+ proto.CreateDownPaymentInvoiceReq.prototype.setTaxReferences = function(value) {
1043
1153
  return jspb.Message.setProto3StringField(this, 11, value);
1044
1154
  };
1045
1155
 
@@ -1048,16 +1158,16 @@ proto.BaseInvoice.prototype.setTaxReferences = function(value) {
1048
1158
  * optional string status = 12;
1049
1159
  * @return {string}
1050
1160
  */
1051
- proto.BaseInvoice.prototype.getStatus = function() {
1161
+ proto.CreateDownPaymentInvoiceReq.prototype.getStatus = function() {
1052
1162
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
1053
1163
  };
1054
1164
 
1055
1165
 
1056
1166
  /**
1057
1167
  * @param {string} value
1058
- * @return {!proto.BaseInvoice} returns this
1168
+ * @return {!proto.CreateDownPaymentInvoiceReq} returns this
1059
1169
  */
1060
- proto.BaseInvoice.prototype.setStatus = function(value) {
1170
+ proto.CreateDownPaymentInvoiceReq.prototype.setStatus = function(value) {
1061
1171
  return jspb.Message.setProto3StringField(this, 12, value);
1062
1172
  };
1063
1173
 
@@ -1066,16 +1176,16 @@ proto.BaseInvoice.prototype.setStatus = function(value) {
1066
1176
  * optional string remarks = 13;
1067
1177
  * @return {string}
1068
1178
  */
1069
- proto.BaseInvoice.prototype.getRemarks = function() {
1179
+ proto.CreateDownPaymentInvoiceReq.prototype.getRemarks = function() {
1070
1180
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
1071
1181
  };
1072
1182
 
1073
1183
 
1074
1184
  /**
1075
1185
  * @param {string} value
1076
- * @return {!proto.BaseInvoice} returns this
1186
+ * @return {!proto.CreateDownPaymentInvoiceReq} returns this
1077
1187
  */
1078
- proto.BaseInvoice.prototype.setRemarks = function(value) {
1188
+ proto.CreateDownPaymentInvoiceReq.prototype.setRemarks = function(value) {
1079
1189
  return jspb.Message.setProto3StringField(this, 13, value);
1080
1190
  };
1081
1191
 
@@ -1084,7 +1194,7 @@ proto.BaseInvoice.prototype.setRemarks = function(value) {
1084
1194
  * repeated FileUploadReferencesReq shipping_files = 14;
1085
1195
  * @return {!Array<!proto.FileUploadReferencesReq>}
1086
1196
  */
1087
- proto.BaseInvoice.prototype.getShippingFilesList = function() {
1197
+ proto.CreateDownPaymentInvoiceReq.prototype.getShippingFilesList = function() {
1088
1198
  return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
1089
1199
  jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 14));
1090
1200
  };
@@ -1092,9 +1202,9 @@ proto.BaseInvoice.prototype.getShippingFilesList = function() {
1092
1202
 
1093
1203
  /**
1094
1204
  * @param {!Array<!proto.FileUploadReferencesReq>} value
1095
- * @return {!proto.BaseInvoice} returns this
1205
+ * @return {!proto.CreateDownPaymentInvoiceReq} returns this
1096
1206
  */
1097
- proto.BaseInvoice.prototype.setShippingFilesList = function(value) {
1207
+ proto.CreateDownPaymentInvoiceReq.prototype.setShippingFilesList = function(value) {
1098
1208
  return jspb.Message.setRepeatedWrapperField(this, 14, value);
1099
1209
  };
1100
1210
 
@@ -1104,16 +1214,16 @@ proto.BaseInvoice.prototype.setShippingFilesList = function(value) {
1104
1214
  * @param {number=} opt_index
1105
1215
  * @return {!proto.FileUploadReferencesReq}
1106
1216
  */
1107
- proto.BaseInvoice.prototype.addShippingFiles = function(opt_value, opt_index) {
1217
+ proto.CreateDownPaymentInvoiceReq.prototype.addShippingFiles = function(opt_value, opt_index) {
1108
1218
  return jspb.Message.addToRepeatedWrapperField(this, 14, opt_value, proto.FileUploadReferencesReq, opt_index);
1109
1219
  };
1110
1220
 
1111
1221
 
1112
1222
  /**
1113
1223
  * Clears the list making it empty but non-null.
1114
- * @return {!proto.BaseInvoice} returns this
1224
+ * @return {!proto.CreateDownPaymentInvoiceReq} returns this
1115
1225
  */
1116
- proto.BaseInvoice.prototype.clearShippingFilesList = function() {
1226
+ proto.CreateDownPaymentInvoiceReq.prototype.clearShippingFilesList = function() {
1117
1227
  return this.setShippingFilesList([]);
1118
1228
  };
1119
1229
 
@@ -1122,16 +1232,16 @@ proto.BaseInvoice.prototype.clearShippingFilesList = function() {
1122
1232
  * optional string custom_transaction = 15;
1123
1233
  * @return {string}
1124
1234
  */
1125
- proto.BaseInvoice.prototype.getCustomTransaction = function() {
1235
+ proto.CreateDownPaymentInvoiceReq.prototype.getCustomTransaction = function() {
1126
1236
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
1127
1237
  };
1128
1238
 
1129
1239
 
1130
1240
  /**
1131
1241
  * @param {string} value
1132
- * @return {!proto.BaseInvoice} returns this
1242
+ * @return {!proto.CreateDownPaymentInvoiceReq} returns this
1133
1243
  */
1134
- proto.BaseInvoice.prototype.setCustomTransaction = function(value) {
1244
+ proto.CreateDownPaymentInvoiceReq.prototype.setCustomTransaction = function(value) {
1135
1245
  return jspb.Message.setProto3StringField(this, 15, value);
1136
1246
  };
1137
1247
 
@@ -1140,7 +1250,7 @@ proto.BaseInvoice.prototype.setCustomTransaction = function(value) {
1140
1250
  * repeated InvoiceCondition invoice_conditions = 39;
1141
1251
  * @return {!Array<!proto.InvoiceCondition>}
1142
1252
  */
1143
- proto.BaseInvoice.prototype.getInvoiceConditionsList = function() {
1253
+ proto.CreateDownPaymentInvoiceReq.prototype.getInvoiceConditionsList = function() {
1144
1254
  return /** @type{!Array<!proto.InvoiceCondition>} */ (
1145
1255
  jspb.Message.getRepeatedWrapperField(this, prisca_v1_purchase_order_purchase_order_pb.InvoiceCondition, 39));
1146
1256
  };
@@ -1148,9 +1258,9 @@ proto.BaseInvoice.prototype.getInvoiceConditionsList = function() {
1148
1258
 
1149
1259
  /**
1150
1260
  * @param {!Array<!proto.InvoiceCondition>} value
1151
- * @return {!proto.BaseInvoice} returns this
1261
+ * @return {!proto.CreateDownPaymentInvoiceReq} returns this
1152
1262
  */
1153
- proto.BaseInvoice.prototype.setInvoiceConditionsList = function(value) {
1263
+ proto.CreateDownPaymentInvoiceReq.prototype.setInvoiceConditionsList = function(value) {
1154
1264
  return jspb.Message.setRepeatedWrapperField(this, 39, value);
1155
1265
  };
1156
1266
 
@@ -1160,21 +1270,28 @@ proto.BaseInvoice.prototype.setInvoiceConditionsList = function(value) {
1160
1270
  * @param {number=} opt_index
1161
1271
  * @return {!proto.InvoiceCondition}
1162
1272
  */
1163
- proto.BaseInvoice.prototype.addInvoiceConditions = function(opt_value, opt_index) {
1273
+ proto.CreateDownPaymentInvoiceReq.prototype.addInvoiceConditions = function(opt_value, opt_index) {
1164
1274
  return jspb.Message.addToRepeatedWrapperField(this, 39, opt_value, proto.InvoiceCondition, opt_index);
1165
1275
  };
1166
1276
 
1167
1277
 
1168
1278
  /**
1169
1279
  * Clears the list making it empty but non-null.
1170
- * @return {!proto.BaseInvoice} returns this
1280
+ * @return {!proto.CreateDownPaymentInvoiceReq} returns this
1171
1281
  */
1172
- proto.BaseInvoice.prototype.clearInvoiceConditionsList = function() {
1282
+ proto.CreateDownPaymentInvoiceReq.prototype.clearInvoiceConditionsList = function() {
1173
1283
  return this.setInvoiceConditionsList([]);
1174
1284
  };
1175
1285
 
1176
1286
 
1177
1287
 
1288
+ /**
1289
+ * List of repeated fields within this message type.
1290
+ * @private {!Array<number>}
1291
+ * @const
1292
+ */
1293
+ proto.BaseInvoice.repeatedFields_ = [8,9,14,39];
1294
+
1178
1295
 
1179
1296
 
1180
1297
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -1190,8 +1307,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
1190
1307
  * http://goto/soy-param-migration
1191
1308
  * @return {!Object}
1192
1309
  */
1193
- proto.CreateInvoiceReq.prototype.toObject = function(opt_includeInstance) {
1194
- return proto.CreateInvoiceReq.toObject(opt_includeInstance, this);
1310
+ proto.BaseInvoice.prototype.toObject = function(opt_includeInstance) {
1311
+ return proto.BaseInvoice.toObject(opt_includeInstance, this);
1195
1312
  };
1196
1313
 
1197
1314
 
@@ -1200,13 +1317,32 @@ proto.CreateInvoiceReq.prototype.toObject = function(opt_includeInstance) {
1200
1317
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1201
1318
  * the JSPB instance for transitional soy proto support:
1202
1319
  * http://goto/soy-param-migration
1203
- * @param {!proto.CreateInvoiceReq} msg The msg instance to transform.
1320
+ * @param {!proto.BaseInvoice} msg The msg instance to transform.
1204
1321
  * @return {!Object}
1205
1322
  * @suppress {unusedLocalVariables} f is only used for nested messages
1206
1323
  */
1207
- proto.CreateInvoiceReq.toObject = function(includeInstance, msg) {
1324
+ proto.BaseInvoice.toObject = function(includeInstance, msg) {
1208
1325
  var f, obj = {
1209
- baseInvoice: (f = msg.getBaseInvoice()) && proto.BaseInvoice.toObject(includeInstance, f)
1326
+ purchaseOrderReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1327
+ vendorName: jspb.Message.getFieldWithDefault(msg, 2, ""),
1328
+ invoiceSubject: jspb.Message.getFieldWithDefault(msg, 3, ""),
1329
+ invoiceNumber: jspb.Message.getFieldWithDefault(msg, 4, ""),
1330
+ invoiceDate: jspb.Message.getFieldWithDefault(msg, 5, ""),
1331
+ plant: jspb.Message.getFieldWithDefault(msg, 6, ""),
1332
+ invoiceType: jspb.Message.getFieldWithDefault(msg, 7, ""),
1333
+ itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
1334
+ prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.toObject, includeInstance),
1335
+ filesList: jspb.Message.toObjectList(msg.getFilesList(),
1336
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
1337
+ transactionType: jspb.Message.getFieldWithDefault(msg, 10, ""),
1338
+ taxReferences: jspb.Message.getFieldWithDefault(msg, 11, ""),
1339
+ status: jspb.Message.getFieldWithDefault(msg, 12, ""),
1340
+ remarks: jspb.Message.getFieldWithDefault(msg, 13, ""),
1341
+ shippingFilesList: jspb.Message.toObjectList(msg.getShippingFilesList(),
1342
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
1343
+ customTransaction: jspb.Message.getFieldWithDefault(msg, 15, ""),
1344
+ invoiceConditionsList: jspb.Message.toObjectList(msg.getInvoiceConditionsList(),
1345
+ prisca_v1_purchase_order_purchase_order_pb.InvoiceCondition.toObject, includeInstance)
1210
1346
  };
1211
1347
 
1212
1348
  if (includeInstance) {
@@ -1220,23 +1356,23 @@ baseInvoice: (f = msg.getBaseInvoice()) && proto.BaseInvoice.toObject(includeIns
1220
1356
  /**
1221
1357
  * Deserializes binary data (in protobuf wire format).
1222
1358
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
1223
- * @return {!proto.CreateInvoiceReq}
1359
+ * @return {!proto.BaseInvoice}
1224
1360
  */
1225
- proto.CreateInvoiceReq.deserializeBinary = function(bytes) {
1361
+ proto.BaseInvoice.deserializeBinary = function(bytes) {
1226
1362
  var reader = new jspb.BinaryReader(bytes);
1227
- var msg = new proto.CreateInvoiceReq;
1228
- return proto.CreateInvoiceReq.deserializeBinaryFromReader(msg, reader);
1363
+ var msg = new proto.BaseInvoice;
1364
+ return proto.BaseInvoice.deserializeBinaryFromReader(msg, reader);
1229
1365
  };
1230
1366
 
1231
1367
 
1232
1368
  /**
1233
1369
  * Deserializes binary data (in protobuf wire format) from the
1234
1370
  * given reader into the given message object.
1235
- * @param {!proto.CreateInvoiceReq} msg The message object to deserialize into.
1371
+ * @param {!proto.BaseInvoice} msg The message object to deserialize into.
1236
1372
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1237
- * @return {!proto.CreateInvoiceReq}
1373
+ * @return {!proto.BaseInvoice}
1238
1374
  */
1239
- proto.CreateInvoiceReq.deserializeBinaryFromReader = function(msg, reader) {
1375
+ proto.BaseInvoice.deserializeBinaryFromReader = function(msg, reader) {
1240
1376
  while (reader.nextField()) {
1241
1377
  if (reader.isEndGroup()) {
1242
1378
  break;
@@ -1244,84 +1380,2169 @@ proto.CreateInvoiceReq.deserializeBinaryFromReader = function(msg, reader) {
1244
1380
  var field = reader.getFieldNumber();
1245
1381
  switch (field) {
1246
1382
  case 1:
1247
- var value = new proto.BaseInvoice;
1248
- reader.readMessage(value,proto.BaseInvoice.deserializeBinaryFromReader);
1249
- msg.setBaseInvoice(value);
1383
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1384
+ msg.setPurchaseOrderReferencesId(value);
1250
1385
  break;
1251
- default:
1252
- reader.skipField();
1386
+ case 2:
1387
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1388
+ msg.setVendorName(value);
1253
1389
  break;
1254
- }
1255
- }
1256
- return msg;
1257
- };
1258
-
1259
-
1260
- /**
1261
- * Serializes the message to binary data (in protobuf wire format).
1262
- * @return {!Uint8Array}
1263
- */
1264
- proto.CreateInvoiceReq.prototype.serializeBinary = function() {
1265
- var writer = new jspb.BinaryWriter();
1266
- proto.CreateInvoiceReq.serializeBinaryToWriter(this, writer);
1267
- return writer.getResultBuffer();
1268
- };
1269
-
1270
-
1271
- /**
1272
- * Serializes the given message to binary data (in protobuf wire
1273
- * format), writing to the given BinaryWriter.
1274
- * @param {!proto.CreateInvoiceReq} message
1275
- * @param {!jspb.BinaryWriter} writer
1276
- * @suppress {unusedLocalVariables} f is only used for nested messages
1277
- */
1278
- proto.CreateInvoiceReq.serializeBinaryToWriter = function(message, writer) {
1279
- var f = undefined;
1280
- f = message.getBaseInvoice();
1281
- if (f != null) {
1282
- writer.writeMessage(
1283
- 1,
1284
- f,
1285
- proto.BaseInvoice.serializeBinaryToWriter
1390
+ case 3:
1391
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1392
+ msg.setInvoiceSubject(value);
1393
+ break;
1394
+ case 4:
1395
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1396
+ msg.setInvoiceNumber(value);
1397
+ break;
1398
+ case 5:
1399
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1400
+ msg.setInvoiceDate(value);
1401
+ break;
1402
+ case 6:
1403
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1404
+ msg.setPlant(value);
1405
+ break;
1406
+ case 7:
1407
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1408
+ msg.setInvoiceType(value);
1409
+ break;
1410
+ case 8:
1411
+ var value = new prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction;
1412
+ reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.deserializeBinaryFromReader);
1413
+ msg.addItemTransactions(value);
1414
+ break;
1415
+ case 9:
1416
+ var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
1417
+ reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
1418
+ msg.addFiles(value);
1419
+ break;
1420
+ case 10:
1421
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1422
+ msg.setTransactionType(value);
1423
+ break;
1424
+ case 11:
1425
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1426
+ msg.setTaxReferences(value);
1427
+ break;
1428
+ case 12:
1429
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1430
+ msg.setStatus(value);
1431
+ break;
1432
+ case 13:
1433
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1434
+ msg.setRemarks(value);
1435
+ break;
1436
+ case 14:
1437
+ var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
1438
+ reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
1439
+ msg.addShippingFiles(value);
1440
+ break;
1441
+ case 15:
1442
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1443
+ msg.setCustomTransaction(value);
1444
+ break;
1445
+ case 39:
1446
+ var value = new prisca_v1_purchase_order_purchase_order_pb.InvoiceCondition;
1447
+ reader.readMessage(value,prisca_v1_purchase_order_purchase_order_pb.InvoiceCondition.deserializeBinaryFromReader);
1448
+ msg.addInvoiceConditions(value);
1449
+ break;
1450
+ default:
1451
+ reader.skipField();
1452
+ break;
1453
+ }
1454
+ }
1455
+ return msg;
1456
+ };
1457
+
1458
+
1459
+ /**
1460
+ * Serializes the message to binary data (in protobuf wire format).
1461
+ * @return {!Uint8Array}
1462
+ */
1463
+ proto.BaseInvoice.prototype.serializeBinary = function() {
1464
+ var writer = new jspb.BinaryWriter();
1465
+ proto.BaseInvoice.serializeBinaryToWriter(this, writer);
1466
+ return writer.getResultBuffer();
1467
+ };
1468
+
1469
+
1470
+ /**
1471
+ * Serializes the given message to binary data (in protobuf wire
1472
+ * format), writing to the given BinaryWriter.
1473
+ * @param {!proto.BaseInvoice} message
1474
+ * @param {!jspb.BinaryWriter} writer
1475
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1476
+ */
1477
+ proto.BaseInvoice.serializeBinaryToWriter = function(message, writer) {
1478
+ var f = undefined;
1479
+ f = message.getPurchaseOrderReferencesId();
1480
+ if (f.length > 0) {
1481
+ writer.writeString(
1482
+ 1,
1483
+ f
1484
+ );
1485
+ }
1486
+ f = message.getVendorName();
1487
+ if (f.length > 0) {
1488
+ writer.writeString(
1489
+ 2,
1490
+ f
1491
+ );
1492
+ }
1493
+ f = message.getInvoiceSubject();
1494
+ if (f.length > 0) {
1495
+ writer.writeString(
1496
+ 3,
1497
+ f
1498
+ );
1499
+ }
1500
+ f = message.getInvoiceNumber();
1501
+ if (f.length > 0) {
1502
+ writer.writeString(
1503
+ 4,
1504
+ f
1505
+ );
1506
+ }
1507
+ f = message.getInvoiceDate();
1508
+ if (f.length > 0) {
1509
+ writer.writeString(
1510
+ 5,
1511
+ f
1512
+ );
1513
+ }
1514
+ f = message.getPlant();
1515
+ if (f.length > 0) {
1516
+ writer.writeString(
1517
+ 6,
1518
+ f
1519
+ );
1520
+ }
1521
+ f = message.getInvoiceType();
1522
+ if (f.length > 0) {
1523
+ writer.writeString(
1524
+ 7,
1525
+ f
1526
+ );
1527
+ }
1528
+ f = message.getItemTransactionsList();
1529
+ if (f.length > 0) {
1530
+ writer.writeRepeatedMessage(
1531
+ 8,
1532
+ f,
1533
+ prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.serializeBinaryToWriter
1534
+ );
1535
+ }
1536
+ f = message.getFilesList();
1537
+ if (f.length > 0) {
1538
+ writer.writeRepeatedMessage(
1539
+ 9,
1540
+ f,
1541
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
1542
+ );
1543
+ }
1544
+ f = message.getTransactionType();
1545
+ if (f.length > 0) {
1546
+ writer.writeString(
1547
+ 10,
1548
+ f
1549
+ );
1550
+ }
1551
+ f = message.getTaxReferences();
1552
+ if (f.length > 0) {
1553
+ writer.writeString(
1554
+ 11,
1555
+ f
1556
+ );
1557
+ }
1558
+ f = message.getStatus();
1559
+ if (f.length > 0) {
1560
+ writer.writeString(
1561
+ 12,
1562
+ f
1563
+ );
1564
+ }
1565
+ f = message.getRemarks();
1566
+ if (f.length > 0) {
1567
+ writer.writeString(
1568
+ 13,
1569
+ f
1570
+ );
1571
+ }
1572
+ f = message.getShippingFilesList();
1573
+ if (f.length > 0) {
1574
+ writer.writeRepeatedMessage(
1575
+ 14,
1576
+ f,
1577
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
1578
+ );
1579
+ }
1580
+ f = message.getCustomTransaction();
1581
+ if (f.length > 0) {
1582
+ writer.writeString(
1583
+ 15,
1584
+ f
1585
+ );
1586
+ }
1587
+ f = message.getInvoiceConditionsList();
1588
+ if (f.length > 0) {
1589
+ writer.writeRepeatedMessage(
1590
+ 39,
1591
+ f,
1592
+ prisca_v1_purchase_order_purchase_order_pb.InvoiceCondition.serializeBinaryToWriter
1593
+ );
1594
+ }
1595
+ };
1596
+
1597
+
1598
+ /**
1599
+ * optional string purchase_order_references_id = 1;
1600
+ * @return {string}
1601
+ */
1602
+ proto.BaseInvoice.prototype.getPurchaseOrderReferencesId = function() {
1603
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1604
+ };
1605
+
1606
+
1607
+ /**
1608
+ * @param {string} value
1609
+ * @return {!proto.BaseInvoice} returns this
1610
+ */
1611
+ proto.BaseInvoice.prototype.setPurchaseOrderReferencesId = function(value) {
1612
+ return jspb.Message.setProto3StringField(this, 1, value);
1613
+ };
1614
+
1615
+
1616
+ /**
1617
+ * optional string vendor_name = 2;
1618
+ * @return {string}
1619
+ */
1620
+ proto.BaseInvoice.prototype.getVendorName = function() {
1621
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1622
+ };
1623
+
1624
+
1625
+ /**
1626
+ * @param {string} value
1627
+ * @return {!proto.BaseInvoice} returns this
1628
+ */
1629
+ proto.BaseInvoice.prototype.setVendorName = function(value) {
1630
+ return jspb.Message.setProto3StringField(this, 2, value);
1631
+ };
1632
+
1633
+
1634
+ /**
1635
+ * optional string invoice_subject = 3;
1636
+ * @return {string}
1637
+ */
1638
+ proto.BaseInvoice.prototype.getInvoiceSubject = function() {
1639
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1640
+ };
1641
+
1642
+
1643
+ /**
1644
+ * @param {string} value
1645
+ * @return {!proto.BaseInvoice} returns this
1646
+ */
1647
+ proto.BaseInvoice.prototype.setInvoiceSubject = function(value) {
1648
+ return jspb.Message.setProto3StringField(this, 3, value);
1649
+ };
1650
+
1651
+
1652
+ /**
1653
+ * optional string invoice_number = 4;
1654
+ * @return {string}
1655
+ */
1656
+ proto.BaseInvoice.prototype.getInvoiceNumber = function() {
1657
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1658
+ };
1659
+
1660
+
1661
+ /**
1662
+ * @param {string} value
1663
+ * @return {!proto.BaseInvoice} returns this
1664
+ */
1665
+ proto.BaseInvoice.prototype.setInvoiceNumber = function(value) {
1666
+ return jspb.Message.setProto3StringField(this, 4, value);
1667
+ };
1668
+
1669
+
1670
+ /**
1671
+ * optional string invoice_date = 5;
1672
+ * @return {string}
1673
+ */
1674
+ proto.BaseInvoice.prototype.getInvoiceDate = function() {
1675
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1676
+ };
1677
+
1678
+
1679
+ /**
1680
+ * @param {string} value
1681
+ * @return {!proto.BaseInvoice} returns this
1682
+ */
1683
+ proto.BaseInvoice.prototype.setInvoiceDate = function(value) {
1684
+ return jspb.Message.setProto3StringField(this, 5, value);
1685
+ };
1686
+
1687
+
1688
+ /**
1689
+ * optional string plant = 6;
1690
+ * @return {string}
1691
+ */
1692
+ proto.BaseInvoice.prototype.getPlant = function() {
1693
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1694
+ };
1695
+
1696
+
1697
+ /**
1698
+ * @param {string} value
1699
+ * @return {!proto.BaseInvoice} returns this
1700
+ */
1701
+ proto.BaseInvoice.prototype.setPlant = function(value) {
1702
+ return jspb.Message.setProto3StringField(this, 6, value);
1703
+ };
1704
+
1705
+
1706
+ /**
1707
+ * optional string invoice_type = 7;
1708
+ * @return {string}
1709
+ */
1710
+ proto.BaseInvoice.prototype.getInvoiceType = function() {
1711
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1712
+ };
1713
+
1714
+
1715
+ /**
1716
+ * @param {string} value
1717
+ * @return {!proto.BaseInvoice} returns this
1718
+ */
1719
+ proto.BaseInvoice.prototype.setInvoiceType = function(value) {
1720
+ return jspb.Message.setProto3StringField(this, 7, value);
1721
+ };
1722
+
1723
+
1724
+ /**
1725
+ * repeated ItemTransaction item_transactions = 8;
1726
+ * @return {!Array<!proto.ItemTransaction>}
1727
+ */
1728
+ proto.BaseInvoice.prototype.getItemTransactionsList = function() {
1729
+ return /** @type{!Array<!proto.ItemTransaction>} */ (
1730
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction, 8));
1731
+ };
1732
+
1733
+
1734
+ /**
1735
+ * @param {!Array<!proto.ItemTransaction>} value
1736
+ * @return {!proto.BaseInvoice} returns this
1737
+ */
1738
+ proto.BaseInvoice.prototype.setItemTransactionsList = function(value) {
1739
+ return jspb.Message.setRepeatedWrapperField(this, 8, value);
1740
+ };
1741
+
1742
+
1743
+ /**
1744
+ * @param {!proto.ItemTransaction=} opt_value
1745
+ * @param {number=} opt_index
1746
+ * @return {!proto.ItemTransaction}
1747
+ */
1748
+ proto.BaseInvoice.prototype.addItemTransactions = function(opt_value, opt_index) {
1749
+ return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.ItemTransaction, opt_index);
1750
+ };
1751
+
1752
+
1753
+ /**
1754
+ * Clears the list making it empty but non-null.
1755
+ * @return {!proto.BaseInvoice} returns this
1756
+ */
1757
+ proto.BaseInvoice.prototype.clearItemTransactionsList = function() {
1758
+ return this.setItemTransactionsList([]);
1759
+ };
1760
+
1761
+
1762
+ /**
1763
+ * repeated FileUploadReferencesReq files = 9;
1764
+ * @return {!Array<!proto.FileUploadReferencesReq>}
1765
+ */
1766
+ proto.BaseInvoice.prototype.getFilesList = function() {
1767
+ return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
1768
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 9));
1769
+ };
1770
+
1771
+
1772
+ /**
1773
+ * @param {!Array<!proto.FileUploadReferencesReq>} value
1774
+ * @return {!proto.BaseInvoice} returns this
1775
+ */
1776
+ proto.BaseInvoice.prototype.setFilesList = function(value) {
1777
+ return jspb.Message.setRepeatedWrapperField(this, 9, value);
1778
+ };
1779
+
1780
+
1781
+ /**
1782
+ * @param {!proto.FileUploadReferencesReq=} opt_value
1783
+ * @param {number=} opt_index
1784
+ * @return {!proto.FileUploadReferencesReq}
1785
+ */
1786
+ proto.BaseInvoice.prototype.addFiles = function(opt_value, opt_index) {
1787
+ return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.FileUploadReferencesReq, opt_index);
1788
+ };
1789
+
1790
+
1791
+ /**
1792
+ * Clears the list making it empty but non-null.
1793
+ * @return {!proto.BaseInvoice} returns this
1794
+ */
1795
+ proto.BaseInvoice.prototype.clearFilesList = function() {
1796
+ return this.setFilesList([]);
1797
+ };
1798
+
1799
+
1800
+ /**
1801
+ * optional string transaction_type = 10;
1802
+ * @return {string}
1803
+ */
1804
+ proto.BaseInvoice.prototype.getTransactionType = function() {
1805
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
1806
+ };
1807
+
1808
+
1809
+ /**
1810
+ * @param {string} value
1811
+ * @return {!proto.BaseInvoice} returns this
1812
+ */
1813
+ proto.BaseInvoice.prototype.setTransactionType = function(value) {
1814
+ return jspb.Message.setProto3StringField(this, 10, value);
1815
+ };
1816
+
1817
+
1818
+ /**
1819
+ * optional string tax_references = 11;
1820
+ * @return {string}
1821
+ */
1822
+ proto.BaseInvoice.prototype.getTaxReferences = function() {
1823
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
1824
+ };
1825
+
1826
+
1827
+ /**
1828
+ * @param {string} value
1829
+ * @return {!proto.BaseInvoice} returns this
1830
+ */
1831
+ proto.BaseInvoice.prototype.setTaxReferences = function(value) {
1832
+ return jspb.Message.setProto3StringField(this, 11, value);
1833
+ };
1834
+
1835
+
1836
+ /**
1837
+ * optional string status = 12;
1838
+ * @return {string}
1839
+ */
1840
+ proto.BaseInvoice.prototype.getStatus = function() {
1841
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
1842
+ };
1843
+
1844
+
1845
+ /**
1846
+ * @param {string} value
1847
+ * @return {!proto.BaseInvoice} returns this
1848
+ */
1849
+ proto.BaseInvoice.prototype.setStatus = function(value) {
1850
+ return jspb.Message.setProto3StringField(this, 12, value);
1851
+ };
1852
+
1853
+
1854
+ /**
1855
+ * optional string remarks = 13;
1856
+ * @return {string}
1857
+ */
1858
+ proto.BaseInvoice.prototype.getRemarks = function() {
1859
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
1860
+ };
1861
+
1862
+
1863
+ /**
1864
+ * @param {string} value
1865
+ * @return {!proto.BaseInvoice} returns this
1866
+ */
1867
+ proto.BaseInvoice.prototype.setRemarks = function(value) {
1868
+ return jspb.Message.setProto3StringField(this, 13, value);
1869
+ };
1870
+
1871
+
1872
+ /**
1873
+ * repeated FileUploadReferencesReq shipping_files = 14;
1874
+ * @return {!Array<!proto.FileUploadReferencesReq>}
1875
+ */
1876
+ proto.BaseInvoice.prototype.getShippingFilesList = function() {
1877
+ return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
1878
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 14));
1879
+ };
1880
+
1881
+
1882
+ /**
1883
+ * @param {!Array<!proto.FileUploadReferencesReq>} value
1884
+ * @return {!proto.BaseInvoice} returns this
1885
+ */
1886
+ proto.BaseInvoice.prototype.setShippingFilesList = function(value) {
1887
+ return jspb.Message.setRepeatedWrapperField(this, 14, value);
1888
+ };
1889
+
1890
+
1891
+ /**
1892
+ * @param {!proto.FileUploadReferencesReq=} opt_value
1893
+ * @param {number=} opt_index
1894
+ * @return {!proto.FileUploadReferencesReq}
1895
+ */
1896
+ proto.BaseInvoice.prototype.addShippingFiles = function(opt_value, opt_index) {
1897
+ return jspb.Message.addToRepeatedWrapperField(this, 14, opt_value, proto.FileUploadReferencesReq, opt_index);
1898
+ };
1899
+
1900
+
1901
+ /**
1902
+ * Clears the list making it empty but non-null.
1903
+ * @return {!proto.BaseInvoice} returns this
1904
+ */
1905
+ proto.BaseInvoice.prototype.clearShippingFilesList = function() {
1906
+ return this.setShippingFilesList([]);
1907
+ };
1908
+
1909
+
1910
+ /**
1911
+ * optional string custom_transaction = 15;
1912
+ * @return {string}
1913
+ */
1914
+ proto.BaseInvoice.prototype.getCustomTransaction = function() {
1915
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
1916
+ };
1917
+
1918
+
1919
+ /**
1920
+ * @param {string} value
1921
+ * @return {!proto.BaseInvoice} returns this
1922
+ */
1923
+ proto.BaseInvoice.prototype.setCustomTransaction = function(value) {
1924
+ return jspb.Message.setProto3StringField(this, 15, value);
1925
+ };
1926
+
1927
+
1928
+ /**
1929
+ * repeated InvoiceCondition invoice_conditions = 39;
1930
+ * @return {!Array<!proto.InvoiceCondition>}
1931
+ */
1932
+ proto.BaseInvoice.prototype.getInvoiceConditionsList = function() {
1933
+ return /** @type{!Array<!proto.InvoiceCondition>} */ (
1934
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_purchase_order_purchase_order_pb.InvoiceCondition, 39));
1935
+ };
1936
+
1937
+
1938
+ /**
1939
+ * @param {!Array<!proto.InvoiceCondition>} value
1940
+ * @return {!proto.BaseInvoice} returns this
1941
+ */
1942
+ proto.BaseInvoice.prototype.setInvoiceConditionsList = function(value) {
1943
+ return jspb.Message.setRepeatedWrapperField(this, 39, value);
1944
+ };
1945
+
1946
+
1947
+ /**
1948
+ * @param {!proto.InvoiceCondition=} opt_value
1949
+ * @param {number=} opt_index
1950
+ * @return {!proto.InvoiceCondition}
1951
+ */
1952
+ proto.BaseInvoice.prototype.addInvoiceConditions = function(opt_value, opt_index) {
1953
+ return jspb.Message.addToRepeatedWrapperField(this, 39, opt_value, proto.InvoiceCondition, opt_index);
1954
+ };
1955
+
1956
+
1957
+ /**
1958
+ * Clears the list making it empty but non-null.
1959
+ * @return {!proto.BaseInvoice} returns this
1960
+ */
1961
+ proto.BaseInvoice.prototype.clearInvoiceConditionsList = function() {
1962
+ return this.setInvoiceConditionsList([]);
1963
+ };
1964
+
1965
+
1966
+
1967
+ /**
1968
+ * List of repeated fields within this message type.
1969
+ * @private {!Array<number>}
1970
+ * @const
1971
+ */
1972
+ proto.BaseInvoiceWithoutPO.repeatedFields_ = [8,9,14,39];
1973
+
1974
+
1975
+
1976
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1977
+ /**
1978
+ * Creates an object representation of this proto.
1979
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1980
+ * Optional fields that are not set will be set to undefined.
1981
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1982
+ * For the list of reserved names please see:
1983
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1984
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1985
+ * JSPB instance for transitional soy proto support:
1986
+ * http://goto/soy-param-migration
1987
+ * @return {!Object}
1988
+ */
1989
+ proto.BaseInvoiceWithoutPO.prototype.toObject = function(opt_includeInstance) {
1990
+ return proto.BaseInvoiceWithoutPO.toObject(opt_includeInstance, this);
1991
+ };
1992
+
1993
+
1994
+ /**
1995
+ * Static version of the {@see toObject} method.
1996
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1997
+ * the JSPB instance for transitional soy proto support:
1998
+ * http://goto/soy-param-migration
1999
+ * @param {!proto.BaseInvoiceWithoutPO} msg The msg instance to transform.
2000
+ * @return {!Object}
2001
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2002
+ */
2003
+ proto.BaseInvoiceWithoutPO.toObject = function(includeInstance, msg) {
2004
+ var f, obj = {
2005
+ vendorReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2006
+ vendorName: jspb.Message.getFieldWithDefault(msg, 2, ""),
2007
+ invoiceSubject: jspb.Message.getFieldWithDefault(msg, 3, ""),
2008
+ invoiceNumber: jspb.Message.getFieldWithDefault(msg, 4, ""),
2009
+ invoiceDate: jspb.Message.getFieldWithDefault(msg, 5, ""),
2010
+ plant: jspb.Message.getFieldWithDefault(msg, 6, ""),
2011
+ invoiceType: jspb.Message.getFieldWithDefault(msg, 7, ""),
2012
+ itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
2013
+ prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.toObject, includeInstance),
2014
+ filesList: jspb.Message.toObjectList(msg.getFilesList(),
2015
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
2016
+ transactionType: jspb.Message.getFieldWithDefault(msg, 10, ""),
2017
+ taxReferences: jspb.Message.getFieldWithDefault(msg, 11, ""),
2018
+ status: jspb.Message.getFieldWithDefault(msg, 12, ""),
2019
+ remarks: jspb.Message.getFieldWithDefault(msg, 13, ""),
2020
+ shippingFilesList: jspb.Message.toObjectList(msg.getShippingFilesList(),
2021
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
2022
+ customTransaction: jspb.Message.getFieldWithDefault(msg, 15, ""),
2023
+ groupReferences: jspb.Message.getFieldWithDefault(msg, 16, ""),
2024
+ currency: jspb.Message.getFieldWithDefault(msg, 17, ""),
2025
+ dueDate: jspb.Message.getFieldWithDefault(msg, 18, ""),
2026
+ termOfPayment: jspb.Message.getFieldWithDefault(msg, 19, ""),
2027
+ invoiceConditionsList: jspb.Message.toObjectList(msg.getInvoiceConditionsList(),
2028
+ prisca_v1_purchase_order_purchase_order_pb.InvoiceCondition.toObject, includeInstance),
2029
+ department: jspb.Message.getFieldWithDefault(msg, 40, "")
2030
+ };
2031
+
2032
+ if (includeInstance) {
2033
+ obj.$jspbMessageInstance = msg;
2034
+ }
2035
+ return obj;
2036
+ };
2037
+ }
2038
+
2039
+
2040
+ /**
2041
+ * Deserializes binary data (in protobuf wire format).
2042
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2043
+ * @return {!proto.BaseInvoiceWithoutPO}
2044
+ */
2045
+ proto.BaseInvoiceWithoutPO.deserializeBinary = function(bytes) {
2046
+ var reader = new jspb.BinaryReader(bytes);
2047
+ var msg = new proto.BaseInvoiceWithoutPO;
2048
+ return proto.BaseInvoiceWithoutPO.deserializeBinaryFromReader(msg, reader);
2049
+ };
2050
+
2051
+
2052
+ /**
2053
+ * Deserializes binary data (in protobuf wire format) from the
2054
+ * given reader into the given message object.
2055
+ * @param {!proto.BaseInvoiceWithoutPO} msg The message object to deserialize into.
2056
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2057
+ * @return {!proto.BaseInvoiceWithoutPO}
2058
+ */
2059
+ proto.BaseInvoiceWithoutPO.deserializeBinaryFromReader = function(msg, reader) {
2060
+ while (reader.nextField()) {
2061
+ if (reader.isEndGroup()) {
2062
+ break;
2063
+ }
2064
+ var field = reader.getFieldNumber();
2065
+ switch (field) {
2066
+ case 1:
2067
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2068
+ msg.setVendorReferencesId(value);
2069
+ break;
2070
+ case 2:
2071
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2072
+ msg.setVendorName(value);
2073
+ break;
2074
+ case 3:
2075
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2076
+ msg.setInvoiceSubject(value);
2077
+ break;
2078
+ case 4:
2079
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2080
+ msg.setInvoiceNumber(value);
2081
+ break;
2082
+ case 5:
2083
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2084
+ msg.setInvoiceDate(value);
2085
+ break;
2086
+ case 6:
2087
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2088
+ msg.setPlant(value);
2089
+ break;
2090
+ case 7:
2091
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2092
+ msg.setInvoiceType(value);
2093
+ break;
2094
+ case 8:
2095
+ var value = new prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction;
2096
+ reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.deserializeBinaryFromReader);
2097
+ msg.addItemTransactions(value);
2098
+ break;
2099
+ case 9:
2100
+ var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
2101
+ reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
2102
+ msg.addFiles(value);
2103
+ break;
2104
+ case 10:
2105
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2106
+ msg.setTransactionType(value);
2107
+ break;
2108
+ case 11:
2109
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2110
+ msg.setTaxReferences(value);
2111
+ break;
2112
+ case 12:
2113
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2114
+ msg.setStatus(value);
2115
+ break;
2116
+ case 13:
2117
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2118
+ msg.setRemarks(value);
2119
+ break;
2120
+ case 14:
2121
+ var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
2122
+ reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
2123
+ msg.addShippingFiles(value);
2124
+ break;
2125
+ case 15:
2126
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2127
+ msg.setCustomTransaction(value);
2128
+ break;
2129
+ case 16:
2130
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2131
+ msg.setGroupReferences(value);
2132
+ break;
2133
+ case 17:
2134
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2135
+ msg.setCurrency(value);
2136
+ break;
2137
+ case 18:
2138
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2139
+ msg.setDueDate(value);
2140
+ break;
2141
+ case 19:
2142
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2143
+ msg.setTermOfPayment(value);
2144
+ break;
2145
+ case 39:
2146
+ var value = new prisca_v1_purchase_order_purchase_order_pb.InvoiceCondition;
2147
+ reader.readMessage(value,prisca_v1_purchase_order_purchase_order_pb.InvoiceCondition.deserializeBinaryFromReader);
2148
+ msg.addInvoiceConditions(value);
2149
+ break;
2150
+ case 40:
2151
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2152
+ msg.setDepartment(value);
2153
+ break;
2154
+ default:
2155
+ reader.skipField();
2156
+ break;
2157
+ }
2158
+ }
2159
+ return msg;
2160
+ };
2161
+
2162
+
2163
+ /**
2164
+ * Serializes the message to binary data (in protobuf wire format).
2165
+ * @return {!Uint8Array}
2166
+ */
2167
+ proto.BaseInvoiceWithoutPO.prototype.serializeBinary = function() {
2168
+ var writer = new jspb.BinaryWriter();
2169
+ proto.BaseInvoiceWithoutPO.serializeBinaryToWriter(this, writer);
2170
+ return writer.getResultBuffer();
2171
+ };
2172
+
2173
+
2174
+ /**
2175
+ * Serializes the given message to binary data (in protobuf wire
2176
+ * format), writing to the given BinaryWriter.
2177
+ * @param {!proto.BaseInvoiceWithoutPO} message
2178
+ * @param {!jspb.BinaryWriter} writer
2179
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2180
+ */
2181
+ proto.BaseInvoiceWithoutPO.serializeBinaryToWriter = function(message, writer) {
2182
+ var f = undefined;
2183
+ f = message.getVendorReferencesId();
2184
+ if (f.length > 0) {
2185
+ writer.writeString(
2186
+ 1,
2187
+ f
2188
+ );
2189
+ }
2190
+ f = message.getVendorName();
2191
+ if (f.length > 0) {
2192
+ writer.writeString(
2193
+ 2,
2194
+ f
2195
+ );
2196
+ }
2197
+ f = message.getInvoiceSubject();
2198
+ if (f.length > 0) {
2199
+ writer.writeString(
2200
+ 3,
2201
+ f
2202
+ );
2203
+ }
2204
+ f = message.getInvoiceNumber();
2205
+ if (f.length > 0) {
2206
+ writer.writeString(
2207
+ 4,
2208
+ f
2209
+ );
2210
+ }
2211
+ f = message.getInvoiceDate();
2212
+ if (f.length > 0) {
2213
+ writer.writeString(
2214
+ 5,
2215
+ f
2216
+ );
2217
+ }
2218
+ f = message.getPlant();
2219
+ if (f.length > 0) {
2220
+ writer.writeString(
2221
+ 6,
2222
+ f
2223
+ );
2224
+ }
2225
+ f = message.getInvoiceType();
2226
+ if (f.length > 0) {
2227
+ writer.writeString(
2228
+ 7,
2229
+ f
2230
+ );
2231
+ }
2232
+ f = message.getItemTransactionsList();
2233
+ if (f.length > 0) {
2234
+ writer.writeRepeatedMessage(
2235
+ 8,
2236
+ f,
2237
+ prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.serializeBinaryToWriter
2238
+ );
2239
+ }
2240
+ f = message.getFilesList();
2241
+ if (f.length > 0) {
2242
+ writer.writeRepeatedMessage(
2243
+ 9,
2244
+ f,
2245
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
2246
+ );
2247
+ }
2248
+ f = message.getTransactionType();
2249
+ if (f.length > 0) {
2250
+ writer.writeString(
2251
+ 10,
2252
+ f
2253
+ );
2254
+ }
2255
+ f = message.getTaxReferences();
2256
+ if (f.length > 0) {
2257
+ writer.writeString(
2258
+ 11,
2259
+ f
2260
+ );
2261
+ }
2262
+ f = message.getStatus();
2263
+ if (f.length > 0) {
2264
+ writer.writeString(
2265
+ 12,
2266
+ f
2267
+ );
2268
+ }
2269
+ f = message.getRemarks();
2270
+ if (f.length > 0) {
2271
+ writer.writeString(
2272
+ 13,
2273
+ f
2274
+ );
2275
+ }
2276
+ f = message.getShippingFilesList();
2277
+ if (f.length > 0) {
2278
+ writer.writeRepeatedMessage(
2279
+ 14,
2280
+ f,
2281
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
2282
+ );
2283
+ }
2284
+ f = message.getCustomTransaction();
2285
+ if (f.length > 0) {
2286
+ writer.writeString(
2287
+ 15,
2288
+ f
2289
+ );
2290
+ }
2291
+ f = message.getGroupReferences();
2292
+ if (f.length > 0) {
2293
+ writer.writeString(
2294
+ 16,
2295
+ f
2296
+ );
2297
+ }
2298
+ f = message.getCurrency();
2299
+ if (f.length > 0) {
2300
+ writer.writeString(
2301
+ 17,
2302
+ f
2303
+ );
2304
+ }
2305
+ f = message.getDueDate();
2306
+ if (f.length > 0) {
2307
+ writer.writeString(
2308
+ 18,
2309
+ f
2310
+ );
2311
+ }
2312
+ f = message.getTermOfPayment();
2313
+ if (f.length > 0) {
2314
+ writer.writeString(
2315
+ 19,
2316
+ f
2317
+ );
2318
+ }
2319
+ f = message.getInvoiceConditionsList();
2320
+ if (f.length > 0) {
2321
+ writer.writeRepeatedMessage(
2322
+ 39,
2323
+ f,
2324
+ prisca_v1_purchase_order_purchase_order_pb.InvoiceCondition.serializeBinaryToWriter
2325
+ );
2326
+ }
2327
+ f = message.getDepartment();
2328
+ if (f.length > 0) {
2329
+ writer.writeString(
2330
+ 40,
2331
+ f
2332
+ );
2333
+ }
2334
+ };
2335
+
2336
+
2337
+ /**
2338
+ * optional string vendor_references_id = 1;
2339
+ * @return {string}
2340
+ */
2341
+ proto.BaseInvoiceWithoutPO.prototype.getVendorReferencesId = function() {
2342
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2343
+ };
2344
+
2345
+
2346
+ /**
2347
+ * @param {string} value
2348
+ * @return {!proto.BaseInvoiceWithoutPO} returns this
2349
+ */
2350
+ proto.BaseInvoiceWithoutPO.prototype.setVendorReferencesId = function(value) {
2351
+ return jspb.Message.setProto3StringField(this, 1, value);
2352
+ };
2353
+
2354
+
2355
+ /**
2356
+ * optional string vendor_name = 2;
2357
+ * @return {string}
2358
+ */
2359
+ proto.BaseInvoiceWithoutPO.prototype.getVendorName = function() {
2360
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2361
+ };
2362
+
2363
+
2364
+ /**
2365
+ * @param {string} value
2366
+ * @return {!proto.BaseInvoiceWithoutPO} returns this
2367
+ */
2368
+ proto.BaseInvoiceWithoutPO.prototype.setVendorName = function(value) {
2369
+ return jspb.Message.setProto3StringField(this, 2, value);
2370
+ };
2371
+
2372
+
2373
+ /**
2374
+ * optional string invoice_subject = 3;
2375
+ * @return {string}
2376
+ */
2377
+ proto.BaseInvoiceWithoutPO.prototype.getInvoiceSubject = function() {
2378
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2379
+ };
2380
+
2381
+
2382
+ /**
2383
+ * @param {string} value
2384
+ * @return {!proto.BaseInvoiceWithoutPO} returns this
2385
+ */
2386
+ proto.BaseInvoiceWithoutPO.prototype.setInvoiceSubject = function(value) {
2387
+ return jspb.Message.setProto3StringField(this, 3, value);
2388
+ };
2389
+
2390
+
2391
+ /**
2392
+ * optional string invoice_number = 4;
2393
+ * @return {string}
2394
+ */
2395
+ proto.BaseInvoiceWithoutPO.prototype.getInvoiceNumber = function() {
2396
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2397
+ };
2398
+
2399
+
2400
+ /**
2401
+ * @param {string} value
2402
+ * @return {!proto.BaseInvoiceWithoutPO} returns this
2403
+ */
2404
+ proto.BaseInvoiceWithoutPO.prototype.setInvoiceNumber = function(value) {
2405
+ return jspb.Message.setProto3StringField(this, 4, value);
2406
+ };
2407
+
2408
+
2409
+ /**
2410
+ * optional string invoice_date = 5;
2411
+ * @return {string}
2412
+ */
2413
+ proto.BaseInvoiceWithoutPO.prototype.getInvoiceDate = function() {
2414
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2415
+ };
2416
+
2417
+
2418
+ /**
2419
+ * @param {string} value
2420
+ * @return {!proto.BaseInvoiceWithoutPO} returns this
2421
+ */
2422
+ proto.BaseInvoiceWithoutPO.prototype.setInvoiceDate = function(value) {
2423
+ return jspb.Message.setProto3StringField(this, 5, value);
2424
+ };
2425
+
2426
+
2427
+ /**
2428
+ * optional string plant = 6;
2429
+ * @return {string}
2430
+ */
2431
+ proto.BaseInvoiceWithoutPO.prototype.getPlant = function() {
2432
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
2433
+ };
2434
+
2435
+
2436
+ /**
2437
+ * @param {string} value
2438
+ * @return {!proto.BaseInvoiceWithoutPO} returns this
2439
+ */
2440
+ proto.BaseInvoiceWithoutPO.prototype.setPlant = function(value) {
2441
+ return jspb.Message.setProto3StringField(this, 6, value);
2442
+ };
2443
+
2444
+
2445
+ /**
2446
+ * optional string invoice_type = 7;
2447
+ * @return {string}
2448
+ */
2449
+ proto.BaseInvoiceWithoutPO.prototype.getInvoiceType = function() {
2450
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
2451
+ };
2452
+
2453
+
2454
+ /**
2455
+ * @param {string} value
2456
+ * @return {!proto.BaseInvoiceWithoutPO} returns this
2457
+ */
2458
+ proto.BaseInvoiceWithoutPO.prototype.setInvoiceType = function(value) {
2459
+ return jspb.Message.setProto3StringField(this, 7, value);
2460
+ };
2461
+
2462
+
2463
+ /**
2464
+ * repeated ItemTransaction item_transactions = 8;
2465
+ * @return {!Array<!proto.ItemTransaction>}
2466
+ */
2467
+ proto.BaseInvoiceWithoutPO.prototype.getItemTransactionsList = function() {
2468
+ return /** @type{!Array<!proto.ItemTransaction>} */ (
2469
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction, 8));
2470
+ };
2471
+
2472
+
2473
+ /**
2474
+ * @param {!Array<!proto.ItemTransaction>} value
2475
+ * @return {!proto.BaseInvoiceWithoutPO} returns this
2476
+ */
2477
+ proto.BaseInvoiceWithoutPO.prototype.setItemTransactionsList = function(value) {
2478
+ return jspb.Message.setRepeatedWrapperField(this, 8, value);
2479
+ };
2480
+
2481
+
2482
+ /**
2483
+ * @param {!proto.ItemTransaction=} opt_value
2484
+ * @param {number=} opt_index
2485
+ * @return {!proto.ItemTransaction}
2486
+ */
2487
+ proto.BaseInvoiceWithoutPO.prototype.addItemTransactions = function(opt_value, opt_index) {
2488
+ return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.ItemTransaction, opt_index);
2489
+ };
2490
+
2491
+
2492
+ /**
2493
+ * Clears the list making it empty but non-null.
2494
+ * @return {!proto.BaseInvoiceWithoutPO} returns this
2495
+ */
2496
+ proto.BaseInvoiceWithoutPO.prototype.clearItemTransactionsList = function() {
2497
+ return this.setItemTransactionsList([]);
2498
+ };
2499
+
2500
+
2501
+ /**
2502
+ * repeated FileUploadReferencesReq files = 9;
2503
+ * @return {!Array<!proto.FileUploadReferencesReq>}
2504
+ */
2505
+ proto.BaseInvoiceWithoutPO.prototype.getFilesList = function() {
2506
+ return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
2507
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 9));
2508
+ };
2509
+
2510
+
2511
+ /**
2512
+ * @param {!Array<!proto.FileUploadReferencesReq>} value
2513
+ * @return {!proto.BaseInvoiceWithoutPO} returns this
2514
+ */
2515
+ proto.BaseInvoiceWithoutPO.prototype.setFilesList = function(value) {
2516
+ return jspb.Message.setRepeatedWrapperField(this, 9, value);
2517
+ };
2518
+
2519
+
2520
+ /**
2521
+ * @param {!proto.FileUploadReferencesReq=} opt_value
2522
+ * @param {number=} opt_index
2523
+ * @return {!proto.FileUploadReferencesReq}
2524
+ */
2525
+ proto.BaseInvoiceWithoutPO.prototype.addFiles = function(opt_value, opt_index) {
2526
+ return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.FileUploadReferencesReq, opt_index);
2527
+ };
2528
+
2529
+
2530
+ /**
2531
+ * Clears the list making it empty but non-null.
2532
+ * @return {!proto.BaseInvoiceWithoutPO} returns this
2533
+ */
2534
+ proto.BaseInvoiceWithoutPO.prototype.clearFilesList = function() {
2535
+ return this.setFilesList([]);
2536
+ };
2537
+
2538
+
2539
+ /**
2540
+ * optional string transaction_type = 10;
2541
+ * @return {string}
2542
+ */
2543
+ proto.BaseInvoiceWithoutPO.prototype.getTransactionType = function() {
2544
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
2545
+ };
2546
+
2547
+
2548
+ /**
2549
+ * @param {string} value
2550
+ * @return {!proto.BaseInvoiceWithoutPO} returns this
2551
+ */
2552
+ proto.BaseInvoiceWithoutPO.prototype.setTransactionType = function(value) {
2553
+ return jspb.Message.setProto3StringField(this, 10, value);
2554
+ };
2555
+
2556
+
2557
+ /**
2558
+ * optional string tax_references = 11;
2559
+ * @return {string}
2560
+ */
2561
+ proto.BaseInvoiceWithoutPO.prototype.getTaxReferences = function() {
2562
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
2563
+ };
2564
+
2565
+
2566
+ /**
2567
+ * @param {string} value
2568
+ * @return {!proto.BaseInvoiceWithoutPO} returns this
2569
+ */
2570
+ proto.BaseInvoiceWithoutPO.prototype.setTaxReferences = function(value) {
2571
+ return jspb.Message.setProto3StringField(this, 11, value);
2572
+ };
2573
+
2574
+
2575
+ /**
2576
+ * optional string status = 12;
2577
+ * @return {string}
2578
+ */
2579
+ proto.BaseInvoiceWithoutPO.prototype.getStatus = function() {
2580
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
2581
+ };
2582
+
2583
+
2584
+ /**
2585
+ * @param {string} value
2586
+ * @return {!proto.BaseInvoiceWithoutPO} returns this
2587
+ */
2588
+ proto.BaseInvoiceWithoutPO.prototype.setStatus = function(value) {
2589
+ return jspb.Message.setProto3StringField(this, 12, value);
2590
+ };
2591
+
2592
+
2593
+ /**
2594
+ * optional string remarks = 13;
2595
+ * @return {string}
2596
+ */
2597
+ proto.BaseInvoiceWithoutPO.prototype.getRemarks = function() {
2598
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
2599
+ };
2600
+
2601
+
2602
+ /**
2603
+ * @param {string} value
2604
+ * @return {!proto.BaseInvoiceWithoutPO} returns this
2605
+ */
2606
+ proto.BaseInvoiceWithoutPO.prototype.setRemarks = function(value) {
2607
+ return jspb.Message.setProto3StringField(this, 13, value);
2608
+ };
2609
+
2610
+
2611
+ /**
2612
+ * repeated FileUploadReferencesReq shipping_files = 14;
2613
+ * @return {!Array<!proto.FileUploadReferencesReq>}
2614
+ */
2615
+ proto.BaseInvoiceWithoutPO.prototype.getShippingFilesList = function() {
2616
+ return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
2617
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 14));
2618
+ };
2619
+
2620
+
2621
+ /**
2622
+ * @param {!Array<!proto.FileUploadReferencesReq>} value
2623
+ * @return {!proto.BaseInvoiceWithoutPO} returns this
2624
+ */
2625
+ proto.BaseInvoiceWithoutPO.prototype.setShippingFilesList = function(value) {
2626
+ return jspb.Message.setRepeatedWrapperField(this, 14, value);
2627
+ };
2628
+
2629
+
2630
+ /**
2631
+ * @param {!proto.FileUploadReferencesReq=} opt_value
2632
+ * @param {number=} opt_index
2633
+ * @return {!proto.FileUploadReferencesReq}
2634
+ */
2635
+ proto.BaseInvoiceWithoutPO.prototype.addShippingFiles = function(opt_value, opt_index) {
2636
+ return jspb.Message.addToRepeatedWrapperField(this, 14, opt_value, proto.FileUploadReferencesReq, opt_index);
2637
+ };
2638
+
2639
+
2640
+ /**
2641
+ * Clears the list making it empty but non-null.
2642
+ * @return {!proto.BaseInvoiceWithoutPO} returns this
2643
+ */
2644
+ proto.BaseInvoiceWithoutPO.prototype.clearShippingFilesList = function() {
2645
+ return this.setShippingFilesList([]);
2646
+ };
2647
+
2648
+
2649
+ /**
2650
+ * optional string custom_transaction = 15;
2651
+ * @return {string}
2652
+ */
2653
+ proto.BaseInvoiceWithoutPO.prototype.getCustomTransaction = function() {
2654
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
2655
+ };
2656
+
2657
+
2658
+ /**
2659
+ * @param {string} value
2660
+ * @return {!proto.BaseInvoiceWithoutPO} returns this
2661
+ */
2662
+ proto.BaseInvoiceWithoutPO.prototype.setCustomTransaction = function(value) {
2663
+ return jspb.Message.setProto3StringField(this, 15, value);
2664
+ };
2665
+
2666
+
2667
+ /**
2668
+ * optional string group_references = 16;
2669
+ * @return {string}
2670
+ */
2671
+ proto.BaseInvoiceWithoutPO.prototype.getGroupReferences = function() {
2672
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
2673
+ };
2674
+
2675
+
2676
+ /**
2677
+ * @param {string} value
2678
+ * @return {!proto.BaseInvoiceWithoutPO} returns this
2679
+ */
2680
+ proto.BaseInvoiceWithoutPO.prototype.setGroupReferences = function(value) {
2681
+ return jspb.Message.setProto3StringField(this, 16, value);
2682
+ };
2683
+
2684
+
2685
+ /**
2686
+ * optional string currency = 17;
2687
+ * @return {string}
2688
+ */
2689
+ proto.BaseInvoiceWithoutPO.prototype.getCurrency = function() {
2690
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
2691
+ };
2692
+
2693
+
2694
+ /**
2695
+ * @param {string} value
2696
+ * @return {!proto.BaseInvoiceWithoutPO} returns this
2697
+ */
2698
+ proto.BaseInvoiceWithoutPO.prototype.setCurrency = function(value) {
2699
+ return jspb.Message.setProto3StringField(this, 17, value);
2700
+ };
2701
+
2702
+
2703
+ /**
2704
+ * optional string due_date = 18;
2705
+ * @return {string}
2706
+ */
2707
+ proto.BaseInvoiceWithoutPO.prototype.getDueDate = function() {
2708
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
2709
+ };
2710
+
2711
+
2712
+ /**
2713
+ * @param {string} value
2714
+ * @return {!proto.BaseInvoiceWithoutPO} returns this
2715
+ */
2716
+ proto.BaseInvoiceWithoutPO.prototype.setDueDate = function(value) {
2717
+ return jspb.Message.setProto3StringField(this, 18, value);
2718
+ };
2719
+
2720
+
2721
+ /**
2722
+ * optional string term_of_payment = 19;
2723
+ * @return {string}
2724
+ */
2725
+ proto.BaseInvoiceWithoutPO.prototype.getTermOfPayment = function() {
2726
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
2727
+ };
2728
+
2729
+
2730
+ /**
2731
+ * @param {string} value
2732
+ * @return {!proto.BaseInvoiceWithoutPO} returns this
2733
+ */
2734
+ proto.BaseInvoiceWithoutPO.prototype.setTermOfPayment = function(value) {
2735
+ return jspb.Message.setProto3StringField(this, 19, value);
2736
+ };
2737
+
2738
+
2739
+ /**
2740
+ * repeated InvoiceCondition invoice_conditions = 39;
2741
+ * @return {!Array<!proto.InvoiceCondition>}
2742
+ */
2743
+ proto.BaseInvoiceWithoutPO.prototype.getInvoiceConditionsList = function() {
2744
+ return /** @type{!Array<!proto.InvoiceCondition>} */ (
2745
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_purchase_order_purchase_order_pb.InvoiceCondition, 39));
2746
+ };
2747
+
2748
+
2749
+ /**
2750
+ * @param {!Array<!proto.InvoiceCondition>} value
2751
+ * @return {!proto.BaseInvoiceWithoutPO} returns this
2752
+ */
2753
+ proto.BaseInvoiceWithoutPO.prototype.setInvoiceConditionsList = function(value) {
2754
+ return jspb.Message.setRepeatedWrapperField(this, 39, value);
2755
+ };
2756
+
2757
+
2758
+ /**
2759
+ * @param {!proto.InvoiceCondition=} opt_value
2760
+ * @param {number=} opt_index
2761
+ * @return {!proto.InvoiceCondition}
2762
+ */
2763
+ proto.BaseInvoiceWithoutPO.prototype.addInvoiceConditions = function(opt_value, opt_index) {
2764
+ return jspb.Message.addToRepeatedWrapperField(this, 39, opt_value, proto.InvoiceCondition, opt_index);
2765
+ };
2766
+
2767
+
2768
+ /**
2769
+ * Clears the list making it empty but non-null.
2770
+ * @return {!proto.BaseInvoiceWithoutPO} returns this
2771
+ */
2772
+ proto.BaseInvoiceWithoutPO.prototype.clearInvoiceConditionsList = function() {
2773
+ return this.setInvoiceConditionsList([]);
2774
+ };
2775
+
2776
+
2777
+ /**
2778
+ * optional string department = 40;
2779
+ * @return {string}
2780
+ */
2781
+ proto.BaseInvoiceWithoutPO.prototype.getDepartment = function() {
2782
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 40, ""));
2783
+ };
2784
+
2785
+
2786
+ /**
2787
+ * @param {string} value
2788
+ * @return {!proto.BaseInvoiceWithoutPO} returns this
2789
+ */
2790
+ proto.BaseInvoiceWithoutPO.prototype.setDepartment = function(value) {
2791
+ return jspb.Message.setProto3StringField(this, 40, value);
2792
+ };
2793
+
2794
+
2795
+
2796
+
2797
+
2798
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2799
+ /**
2800
+ * Creates an object representation of this proto.
2801
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2802
+ * Optional fields that are not set will be set to undefined.
2803
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2804
+ * For the list of reserved names please see:
2805
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2806
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2807
+ * JSPB instance for transitional soy proto support:
2808
+ * http://goto/soy-param-migration
2809
+ * @return {!Object}
2810
+ */
2811
+ proto.CreateInvoiceWithoutPOReq.prototype.toObject = function(opt_includeInstance) {
2812
+ return proto.CreateInvoiceWithoutPOReq.toObject(opt_includeInstance, this);
2813
+ };
2814
+
2815
+
2816
+ /**
2817
+ * Static version of the {@see toObject} method.
2818
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2819
+ * the JSPB instance for transitional soy proto support:
2820
+ * http://goto/soy-param-migration
2821
+ * @param {!proto.CreateInvoiceWithoutPOReq} msg The msg instance to transform.
2822
+ * @return {!Object}
2823
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2824
+ */
2825
+ proto.CreateInvoiceWithoutPOReq.toObject = function(includeInstance, msg) {
2826
+ var f, obj = {
2827
+ baseInvoiceWithoutPo: (f = msg.getBaseInvoiceWithoutPo()) && proto.BaseInvoiceWithoutPO.toObject(includeInstance, f)
2828
+ };
2829
+
2830
+ if (includeInstance) {
2831
+ obj.$jspbMessageInstance = msg;
2832
+ }
2833
+ return obj;
2834
+ };
2835
+ }
2836
+
2837
+
2838
+ /**
2839
+ * Deserializes binary data (in protobuf wire format).
2840
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2841
+ * @return {!proto.CreateInvoiceWithoutPOReq}
2842
+ */
2843
+ proto.CreateInvoiceWithoutPOReq.deserializeBinary = function(bytes) {
2844
+ var reader = new jspb.BinaryReader(bytes);
2845
+ var msg = new proto.CreateInvoiceWithoutPOReq;
2846
+ return proto.CreateInvoiceWithoutPOReq.deserializeBinaryFromReader(msg, reader);
2847
+ };
2848
+
2849
+
2850
+ /**
2851
+ * Deserializes binary data (in protobuf wire format) from the
2852
+ * given reader into the given message object.
2853
+ * @param {!proto.CreateInvoiceWithoutPOReq} msg The message object to deserialize into.
2854
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2855
+ * @return {!proto.CreateInvoiceWithoutPOReq}
2856
+ */
2857
+ proto.CreateInvoiceWithoutPOReq.deserializeBinaryFromReader = function(msg, reader) {
2858
+ while (reader.nextField()) {
2859
+ if (reader.isEndGroup()) {
2860
+ break;
2861
+ }
2862
+ var field = reader.getFieldNumber();
2863
+ switch (field) {
2864
+ case 1:
2865
+ var value = new proto.BaseInvoiceWithoutPO;
2866
+ reader.readMessage(value,proto.BaseInvoiceWithoutPO.deserializeBinaryFromReader);
2867
+ msg.setBaseInvoiceWithoutPo(value);
2868
+ break;
2869
+ default:
2870
+ reader.skipField();
2871
+ break;
2872
+ }
2873
+ }
2874
+ return msg;
2875
+ };
2876
+
2877
+
2878
+ /**
2879
+ * Serializes the message to binary data (in protobuf wire format).
2880
+ * @return {!Uint8Array}
2881
+ */
2882
+ proto.CreateInvoiceWithoutPOReq.prototype.serializeBinary = function() {
2883
+ var writer = new jspb.BinaryWriter();
2884
+ proto.CreateInvoiceWithoutPOReq.serializeBinaryToWriter(this, writer);
2885
+ return writer.getResultBuffer();
2886
+ };
2887
+
2888
+
2889
+ /**
2890
+ * Serializes the given message to binary data (in protobuf wire
2891
+ * format), writing to the given BinaryWriter.
2892
+ * @param {!proto.CreateInvoiceWithoutPOReq} message
2893
+ * @param {!jspb.BinaryWriter} writer
2894
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2895
+ */
2896
+ proto.CreateInvoiceWithoutPOReq.serializeBinaryToWriter = function(message, writer) {
2897
+ var f = undefined;
2898
+ f = message.getBaseInvoiceWithoutPo();
2899
+ if (f != null) {
2900
+ writer.writeMessage(
2901
+ 1,
2902
+ f,
2903
+ proto.BaseInvoiceWithoutPO.serializeBinaryToWriter
2904
+ );
2905
+ }
2906
+ };
2907
+
2908
+
2909
+ /**
2910
+ * optional BaseInvoiceWithoutPO base_invoice_without_po = 1;
2911
+ * @return {?proto.BaseInvoiceWithoutPO}
2912
+ */
2913
+ proto.CreateInvoiceWithoutPOReq.prototype.getBaseInvoiceWithoutPo = function() {
2914
+ return /** @type{?proto.BaseInvoiceWithoutPO} */ (
2915
+ jspb.Message.getWrapperField(this, proto.BaseInvoiceWithoutPO, 1));
2916
+ };
2917
+
2918
+
2919
+ /**
2920
+ * @param {?proto.BaseInvoiceWithoutPO|undefined} value
2921
+ * @return {!proto.CreateInvoiceWithoutPOReq} returns this
2922
+ */
2923
+ proto.CreateInvoiceWithoutPOReq.prototype.setBaseInvoiceWithoutPo = function(value) {
2924
+ return jspb.Message.setWrapperField(this, 1, value);
2925
+ };
2926
+
2927
+
2928
+ /**
2929
+ * Clears the message field making it undefined.
2930
+ * @return {!proto.CreateInvoiceWithoutPOReq} returns this
2931
+ */
2932
+ proto.CreateInvoiceWithoutPOReq.prototype.clearBaseInvoiceWithoutPo = function() {
2933
+ return this.setBaseInvoiceWithoutPo(undefined);
2934
+ };
2935
+
2936
+
2937
+ /**
2938
+ * Returns whether this field is set.
2939
+ * @return {boolean}
2940
+ */
2941
+ proto.CreateInvoiceWithoutPOReq.prototype.hasBaseInvoiceWithoutPo = function() {
2942
+ return jspb.Message.getField(this, 1) != null;
2943
+ };
2944
+
2945
+
2946
+
2947
+
2948
+
2949
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2950
+ /**
2951
+ * Creates an object representation of this proto.
2952
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2953
+ * Optional fields that are not set will be set to undefined.
2954
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2955
+ * For the list of reserved names please see:
2956
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2957
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2958
+ * JSPB instance for transitional soy proto support:
2959
+ * http://goto/soy-param-migration
2960
+ * @return {!Object}
2961
+ */
2962
+ proto.CreateInvoiceReq.prototype.toObject = function(opt_includeInstance) {
2963
+ return proto.CreateInvoiceReq.toObject(opt_includeInstance, this);
2964
+ };
2965
+
2966
+
2967
+ /**
2968
+ * Static version of the {@see toObject} method.
2969
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2970
+ * the JSPB instance for transitional soy proto support:
2971
+ * http://goto/soy-param-migration
2972
+ * @param {!proto.CreateInvoiceReq} msg The msg instance to transform.
2973
+ * @return {!Object}
2974
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2975
+ */
2976
+ proto.CreateInvoiceReq.toObject = function(includeInstance, msg) {
2977
+ var f, obj = {
2978
+ baseInvoice: (f = msg.getBaseInvoice()) && proto.BaseInvoice.toObject(includeInstance, f)
2979
+ };
2980
+
2981
+ if (includeInstance) {
2982
+ obj.$jspbMessageInstance = msg;
2983
+ }
2984
+ return obj;
2985
+ };
2986
+ }
2987
+
2988
+
2989
+ /**
2990
+ * Deserializes binary data (in protobuf wire format).
2991
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2992
+ * @return {!proto.CreateInvoiceReq}
2993
+ */
2994
+ proto.CreateInvoiceReq.deserializeBinary = function(bytes) {
2995
+ var reader = new jspb.BinaryReader(bytes);
2996
+ var msg = new proto.CreateInvoiceReq;
2997
+ return proto.CreateInvoiceReq.deserializeBinaryFromReader(msg, reader);
2998
+ };
2999
+
3000
+
3001
+ /**
3002
+ * Deserializes binary data (in protobuf wire format) from the
3003
+ * given reader into the given message object.
3004
+ * @param {!proto.CreateInvoiceReq} msg The message object to deserialize into.
3005
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3006
+ * @return {!proto.CreateInvoiceReq}
3007
+ */
3008
+ proto.CreateInvoiceReq.deserializeBinaryFromReader = function(msg, reader) {
3009
+ while (reader.nextField()) {
3010
+ if (reader.isEndGroup()) {
3011
+ break;
3012
+ }
3013
+ var field = reader.getFieldNumber();
3014
+ switch (field) {
3015
+ case 1:
3016
+ var value = new proto.BaseInvoice;
3017
+ reader.readMessage(value,proto.BaseInvoice.deserializeBinaryFromReader);
3018
+ msg.setBaseInvoice(value);
3019
+ break;
3020
+ default:
3021
+ reader.skipField();
3022
+ break;
3023
+ }
3024
+ }
3025
+ return msg;
3026
+ };
3027
+
3028
+
3029
+ /**
3030
+ * Serializes the message to binary data (in protobuf wire format).
3031
+ * @return {!Uint8Array}
3032
+ */
3033
+ proto.CreateInvoiceReq.prototype.serializeBinary = function() {
3034
+ var writer = new jspb.BinaryWriter();
3035
+ proto.CreateInvoiceReq.serializeBinaryToWriter(this, writer);
3036
+ return writer.getResultBuffer();
3037
+ };
3038
+
3039
+
3040
+ /**
3041
+ * Serializes the given message to binary data (in protobuf wire
3042
+ * format), writing to the given BinaryWriter.
3043
+ * @param {!proto.CreateInvoiceReq} message
3044
+ * @param {!jspb.BinaryWriter} writer
3045
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3046
+ */
3047
+ proto.CreateInvoiceReq.serializeBinaryToWriter = function(message, writer) {
3048
+ var f = undefined;
3049
+ f = message.getBaseInvoice();
3050
+ if (f != null) {
3051
+ writer.writeMessage(
3052
+ 1,
3053
+ f,
3054
+ proto.BaseInvoice.serializeBinaryToWriter
3055
+ );
3056
+ }
3057
+ };
3058
+
3059
+
3060
+ /**
3061
+ * optional BaseInvoice base_invoice = 1;
3062
+ * @return {?proto.BaseInvoice}
3063
+ */
3064
+ proto.CreateInvoiceReq.prototype.getBaseInvoice = function() {
3065
+ return /** @type{?proto.BaseInvoice} */ (
3066
+ jspb.Message.getWrapperField(this, proto.BaseInvoice, 1));
3067
+ };
3068
+
3069
+
3070
+ /**
3071
+ * @param {?proto.BaseInvoice|undefined} value
3072
+ * @return {!proto.CreateInvoiceReq} returns this
3073
+ */
3074
+ proto.CreateInvoiceReq.prototype.setBaseInvoice = function(value) {
3075
+ return jspb.Message.setWrapperField(this, 1, value);
3076
+ };
3077
+
3078
+
3079
+ /**
3080
+ * Clears the message field making it undefined.
3081
+ * @return {!proto.CreateInvoiceReq} returns this
3082
+ */
3083
+ proto.CreateInvoiceReq.prototype.clearBaseInvoice = function() {
3084
+ return this.setBaseInvoice(undefined);
3085
+ };
3086
+
3087
+
3088
+ /**
3089
+ * Returns whether this field is set.
3090
+ * @return {boolean}
3091
+ */
3092
+ proto.CreateInvoiceReq.prototype.hasBaseInvoice = function() {
3093
+ return jspb.Message.getField(this, 1) != null;
3094
+ };
3095
+
3096
+
3097
+
3098
+
3099
+
3100
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3101
+ /**
3102
+ * Creates an object representation of this proto.
3103
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3104
+ * Optional fields that are not set will be set to undefined.
3105
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3106
+ * For the list of reserved names please see:
3107
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3108
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3109
+ * JSPB instance for transitional soy proto support:
3110
+ * http://goto/soy-param-migration
3111
+ * @return {!Object}
3112
+ */
3113
+ proto.CreateInvoiceRes.prototype.toObject = function(opt_includeInstance) {
3114
+ return proto.CreateInvoiceRes.toObject(opt_includeInstance, this);
3115
+ };
3116
+
3117
+
3118
+ /**
3119
+ * Static version of the {@see toObject} method.
3120
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3121
+ * the JSPB instance for transitional soy proto support:
3122
+ * http://goto/soy-param-migration
3123
+ * @param {!proto.CreateInvoiceRes} msg The msg instance to transform.
3124
+ * @return {!Object}
3125
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3126
+ */
3127
+ proto.CreateInvoiceRes.toObject = function(includeInstance, msg) {
3128
+ var f, obj = {
3129
+ invoice: (f = msg.getInvoice()) && prisca_v1_purchase_order_purchase_order_pb.Invoice.toObject(includeInstance, f),
3130
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3131
+ };
3132
+
3133
+ if (includeInstance) {
3134
+ obj.$jspbMessageInstance = msg;
3135
+ }
3136
+ return obj;
3137
+ };
3138
+ }
3139
+
3140
+
3141
+ /**
3142
+ * Deserializes binary data (in protobuf wire format).
3143
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3144
+ * @return {!proto.CreateInvoiceRes}
3145
+ */
3146
+ proto.CreateInvoiceRes.deserializeBinary = function(bytes) {
3147
+ var reader = new jspb.BinaryReader(bytes);
3148
+ var msg = new proto.CreateInvoiceRes;
3149
+ return proto.CreateInvoiceRes.deserializeBinaryFromReader(msg, reader);
3150
+ };
3151
+
3152
+
3153
+ /**
3154
+ * Deserializes binary data (in protobuf wire format) from the
3155
+ * given reader into the given message object.
3156
+ * @param {!proto.CreateInvoiceRes} msg The message object to deserialize into.
3157
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3158
+ * @return {!proto.CreateInvoiceRes}
3159
+ */
3160
+ proto.CreateInvoiceRes.deserializeBinaryFromReader = function(msg, reader) {
3161
+ while (reader.nextField()) {
3162
+ if (reader.isEndGroup()) {
3163
+ break;
3164
+ }
3165
+ var field = reader.getFieldNumber();
3166
+ switch (field) {
3167
+ case 1:
3168
+ var value = new prisca_v1_purchase_order_purchase_order_pb.Invoice;
3169
+ reader.readMessage(value,prisca_v1_purchase_order_purchase_order_pb.Invoice.deserializeBinaryFromReader);
3170
+ msg.setInvoice(value);
3171
+ break;
3172
+ case 2:
3173
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
3174
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3175
+ msg.setMeta(value);
3176
+ break;
3177
+ default:
3178
+ reader.skipField();
3179
+ break;
3180
+ }
3181
+ }
3182
+ return msg;
3183
+ };
3184
+
3185
+
3186
+ /**
3187
+ * Serializes the message to binary data (in protobuf wire format).
3188
+ * @return {!Uint8Array}
3189
+ */
3190
+ proto.CreateInvoiceRes.prototype.serializeBinary = function() {
3191
+ var writer = new jspb.BinaryWriter();
3192
+ proto.CreateInvoiceRes.serializeBinaryToWriter(this, writer);
3193
+ return writer.getResultBuffer();
3194
+ };
3195
+
3196
+
3197
+ /**
3198
+ * Serializes the given message to binary data (in protobuf wire
3199
+ * format), writing to the given BinaryWriter.
3200
+ * @param {!proto.CreateInvoiceRes} message
3201
+ * @param {!jspb.BinaryWriter} writer
3202
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3203
+ */
3204
+ proto.CreateInvoiceRes.serializeBinaryToWriter = function(message, writer) {
3205
+ var f = undefined;
3206
+ f = message.getInvoice();
3207
+ if (f != null) {
3208
+ writer.writeMessage(
3209
+ 1,
3210
+ f,
3211
+ prisca_v1_purchase_order_purchase_order_pb.Invoice.serializeBinaryToWriter
3212
+ );
3213
+ }
3214
+ f = message.getMeta();
3215
+ if (f != null) {
3216
+ writer.writeMessage(
3217
+ 2,
3218
+ f,
3219
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3220
+ );
3221
+ }
3222
+ };
3223
+
3224
+
3225
+ /**
3226
+ * optional Invoice invoice = 1;
3227
+ * @return {?proto.Invoice}
3228
+ */
3229
+ proto.CreateInvoiceRes.prototype.getInvoice = function() {
3230
+ return /** @type{?proto.Invoice} */ (
3231
+ jspb.Message.getWrapperField(this, prisca_v1_purchase_order_purchase_order_pb.Invoice, 1));
3232
+ };
3233
+
3234
+
3235
+ /**
3236
+ * @param {?proto.Invoice|undefined} value
3237
+ * @return {!proto.CreateInvoiceRes} returns this
3238
+ */
3239
+ proto.CreateInvoiceRes.prototype.setInvoice = function(value) {
3240
+ return jspb.Message.setWrapperField(this, 1, value);
3241
+ };
3242
+
3243
+
3244
+ /**
3245
+ * Clears the message field making it undefined.
3246
+ * @return {!proto.CreateInvoiceRes} returns this
3247
+ */
3248
+ proto.CreateInvoiceRes.prototype.clearInvoice = function() {
3249
+ return this.setInvoice(undefined);
3250
+ };
3251
+
3252
+
3253
+ /**
3254
+ * Returns whether this field is set.
3255
+ * @return {boolean}
3256
+ */
3257
+ proto.CreateInvoiceRes.prototype.hasInvoice = function() {
3258
+ return jspb.Message.getField(this, 1) != null;
3259
+ };
3260
+
3261
+
3262
+ /**
3263
+ * optional prisca.v1.global.meta.Meta meta = 2;
3264
+ * @return {?proto.prisca.v1.global.meta.Meta}
3265
+ */
3266
+ proto.CreateInvoiceRes.prototype.getMeta = function() {
3267
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3268
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3269
+ };
3270
+
3271
+
3272
+ /**
3273
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3274
+ * @return {!proto.CreateInvoiceRes} returns this
3275
+ */
3276
+ proto.CreateInvoiceRes.prototype.setMeta = function(value) {
3277
+ return jspb.Message.setWrapperField(this, 2, value);
3278
+ };
3279
+
3280
+
3281
+ /**
3282
+ * Clears the message field making it undefined.
3283
+ * @return {!proto.CreateInvoiceRes} returns this
3284
+ */
3285
+ proto.CreateInvoiceRes.prototype.clearMeta = function() {
3286
+ return this.setMeta(undefined);
3287
+ };
3288
+
3289
+
3290
+ /**
3291
+ * Returns whether this field is set.
3292
+ * @return {boolean}
3293
+ */
3294
+ proto.CreateInvoiceRes.prototype.hasMeta = function() {
3295
+ return jspb.Message.getField(this, 2) != null;
3296
+ };
3297
+
3298
+
3299
+
3300
+ /**
3301
+ * List of repeated fields within this message type.
3302
+ * @private {!Array<number>}
3303
+ * @const
3304
+ */
3305
+ proto.UpdateInvoiceForCompanyReq.repeatedFields_ = [4];
3306
+
3307
+
3308
+
3309
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3310
+ /**
3311
+ * Creates an object representation of this proto.
3312
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3313
+ * Optional fields that are not set will be set to undefined.
3314
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3315
+ * For the list of reserved names please see:
3316
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3317
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3318
+ * JSPB instance for transitional soy proto support:
3319
+ * http://goto/soy-param-migration
3320
+ * @return {!Object}
3321
+ */
3322
+ proto.UpdateInvoiceForCompanyReq.prototype.toObject = function(opt_includeInstance) {
3323
+ return proto.UpdateInvoiceForCompanyReq.toObject(opt_includeInstance, this);
3324
+ };
3325
+
3326
+
3327
+ /**
3328
+ * Static version of the {@see toObject} method.
3329
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3330
+ * the JSPB instance for transitional soy proto support:
3331
+ * http://goto/soy-param-migration
3332
+ * @param {!proto.UpdateInvoiceForCompanyReq} msg The msg instance to transform.
3333
+ * @return {!Object}
3334
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3335
+ */
3336
+ proto.UpdateInvoiceForCompanyReq.toObject = function(includeInstance, msg) {
3337
+ var f, obj = {
3338
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
3339
+ termOfPayment: jspb.Message.getFieldWithDefault(msg, 2, ""),
3340
+ dueDate: jspb.Message.getFieldWithDefault(msg, 3, ""),
3341
+ itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
3342
+ prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.toObject, includeInstance)
3343
+ };
3344
+
3345
+ if (includeInstance) {
3346
+ obj.$jspbMessageInstance = msg;
3347
+ }
3348
+ return obj;
3349
+ };
3350
+ }
3351
+
3352
+
3353
+ /**
3354
+ * Deserializes binary data (in protobuf wire format).
3355
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3356
+ * @return {!proto.UpdateInvoiceForCompanyReq}
3357
+ */
3358
+ proto.UpdateInvoiceForCompanyReq.deserializeBinary = function(bytes) {
3359
+ var reader = new jspb.BinaryReader(bytes);
3360
+ var msg = new proto.UpdateInvoiceForCompanyReq;
3361
+ return proto.UpdateInvoiceForCompanyReq.deserializeBinaryFromReader(msg, reader);
3362
+ };
3363
+
3364
+
3365
+ /**
3366
+ * Deserializes binary data (in protobuf wire format) from the
3367
+ * given reader into the given message object.
3368
+ * @param {!proto.UpdateInvoiceForCompanyReq} msg The message object to deserialize into.
3369
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3370
+ * @return {!proto.UpdateInvoiceForCompanyReq}
3371
+ */
3372
+ proto.UpdateInvoiceForCompanyReq.deserializeBinaryFromReader = function(msg, reader) {
3373
+ while (reader.nextField()) {
3374
+ if (reader.isEndGroup()) {
3375
+ break;
3376
+ }
3377
+ var field = reader.getFieldNumber();
3378
+ switch (field) {
3379
+ case 1:
3380
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3381
+ msg.setReferencesId(value);
3382
+ break;
3383
+ case 2:
3384
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3385
+ msg.setTermOfPayment(value);
3386
+ break;
3387
+ case 3:
3388
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3389
+ msg.setDueDate(value);
3390
+ break;
3391
+ case 4:
3392
+ var value = new prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction;
3393
+ reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.deserializeBinaryFromReader);
3394
+ msg.addItemTransactions(value);
3395
+ break;
3396
+ default:
3397
+ reader.skipField();
3398
+ break;
3399
+ }
3400
+ }
3401
+ return msg;
3402
+ };
3403
+
3404
+
3405
+ /**
3406
+ * Serializes the message to binary data (in protobuf wire format).
3407
+ * @return {!Uint8Array}
3408
+ */
3409
+ proto.UpdateInvoiceForCompanyReq.prototype.serializeBinary = function() {
3410
+ var writer = new jspb.BinaryWriter();
3411
+ proto.UpdateInvoiceForCompanyReq.serializeBinaryToWriter(this, writer);
3412
+ return writer.getResultBuffer();
3413
+ };
3414
+
3415
+
3416
+ /**
3417
+ * Serializes the given message to binary data (in protobuf wire
3418
+ * format), writing to the given BinaryWriter.
3419
+ * @param {!proto.UpdateInvoiceForCompanyReq} message
3420
+ * @param {!jspb.BinaryWriter} writer
3421
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3422
+ */
3423
+ proto.UpdateInvoiceForCompanyReq.serializeBinaryToWriter = function(message, writer) {
3424
+ var f = undefined;
3425
+ f = message.getReferencesId();
3426
+ if (f.length > 0) {
3427
+ writer.writeString(
3428
+ 1,
3429
+ f
3430
+ );
3431
+ }
3432
+ f = message.getTermOfPayment();
3433
+ if (f.length > 0) {
3434
+ writer.writeString(
3435
+ 2,
3436
+ f
3437
+ );
3438
+ }
3439
+ f = message.getDueDate();
3440
+ if (f.length > 0) {
3441
+ writer.writeString(
3442
+ 3,
3443
+ f
3444
+ );
3445
+ }
3446
+ f = message.getItemTransactionsList();
3447
+ if (f.length > 0) {
3448
+ writer.writeRepeatedMessage(
3449
+ 4,
3450
+ f,
3451
+ prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.serializeBinaryToWriter
1286
3452
  );
1287
3453
  }
1288
3454
  };
1289
3455
 
1290
3456
 
1291
3457
  /**
1292
- * optional BaseInvoice base_invoice = 1;
1293
- * @return {?proto.BaseInvoice}
3458
+ * optional string references_id = 1;
3459
+ * @return {string}
1294
3460
  */
1295
- proto.CreateInvoiceReq.prototype.getBaseInvoice = function() {
1296
- return /** @type{?proto.BaseInvoice} */ (
1297
- jspb.Message.getWrapperField(this, proto.BaseInvoice, 1));
3461
+ proto.UpdateInvoiceForCompanyReq.prototype.getReferencesId = function() {
3462
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1298
3463
  };
1299
3464
 
1300
3465
 
1301
3466
  /**
1302
- * @param {?proto.BaseInvoice|undefined} value
1303
- * @return {!proto.CreateInvoiceReq} returns this
1304
- */
1305
- proto.CreateInvoiceReq.prototype.setBaseInvoice = function(value) {
1306
- return jspb.Message.setWrapperField(this, 1, value);
3467
+ * @param {string} value
3468
+ * @return {!proto.UpdateInvoiceForCompanyReq} returns this
3469
+ */
3470
+ proto.UpdateInvoiceForCompanyReq.prototype.setReferencesId = function(value) {
3471
+ return jspb.Message.setProto3StringField(this, 1, value);
3472
+ };
3473
+
3474
+
3475
+ /**
3476
+ * optional string term_of_payment = 2;
3477
+ * @return {string}
3478
+ */
3479
+ proto.UpdateInvoiceForCompanyReq.prototype.getTermOfPayment = function() {
3480
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3481
+ };
3482
+
3483
+
3484
+ /**
3485
+ * @param {string} value
3486
+ * @return {!proto.UpdateInvoiceForCompanyReq} returns this
3487
+ */
3488
+ proto.UpdateInvoiceForCompanyReq.prototype.setTermOfPayment = function(value) {
3489
+ return jspb.Message.setProto3StringField(this, 2, value);
3490
+ };
3491
+
3492
+
3493
+ /**
3494
+ * optional string due_date = 3;
3495
+ * @return {string}
3496
+ */
3497
+ proto.UpdateInvoiceForCompanyReq.prototype.getDueDate = function() {
3498
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3499
+ };
3500
+
3501
+
3502
+ /**
3503
+ * @param {string} value
3504
+ * @return {!proto.UpdateInvoiceForCompanyReq} returns this
3505
+ */
3506
+ proto.UpdateInvoiceForCompanyReq.prototype.setDueDate = function(value) {
3507
+ return jspb.Message.setProto3StringField(this, 3, value);
3508
+ };
3509
+
3510
+
3511
+ /**
3512
+ * repeated ItemTransaction item_transactions = 4;
3513
+ * @return {!Array<!proto.ItemTransaction>}
3514
+ */
3515
+ proto.UpdateInvoiceForCompanyReq.prototype.getItemTransactionsList = function() {
3516
+ return /** @type{!Array<!proto.ItemTransaction>} */ (
3517
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction, 4));
3518
+ };
3519
+
3520
+
3521
+ /**
3522
+ * @param {!Array<!proto.ItemTransaction>} value
3523
+ * @return {!proto.UpdateInvoiceForCompanyReq} returns this
3524
+ */
3525
+ proto.UpdateInvoiceForCompanyReq.prototype.setItemTransactionsList = function(value) {
3526
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
1307
3527
  };
1308
3528
 
1309
3529
 
1310
3530
  /**
1311
- * Clears the message field making it undefined.
1312
- * @return {!proto.CreateInvoiceReq} returns this
3531
+ * @param {!proto.ItemTransaction=} opt_value
3532
+ * @param {number=} opt_index
3533
+ * @return {!proto.ItemTransaction}
1313
3534
  */
1314
- proto.CreateInvoiceReq.prototype.clearBaseInvoice = function() {
1315
- return this.setBaseInvoice(undefined);
3535
+ proto.UpdateInvoiceForCompanyReq.prototype.addItemTransactions = function(opt_value, opt_index) {
3536
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.ItemTransaction, opt_index);
1316
3537
  };
1317
3538
 
1318
3539
 
1319
3540
  /**
1320
- * Returns whether this field is set.
1321
- * @return {boolean}
3541
+ * Clears the list making it empty but non-null.
3542
+ * @return {!proto.UpdateInvoiceForCompanyReq} returns this
1322
3543
  */
1323
- proto.CreateInvoiceReq.prototype.hasBaseInvoice = function() {
1324
- return jspb.Message.getField(this, 1) != null;
3544
+ proto.UpdateInvoiceForCompanyReq.prototype.clearItemTransactionsList = function() {
3545
+ return this.setItemTransactionsList([]);
1325
3546
  };
1326
3547
 
1327
3548
 
@@ -1341,8 +3562,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
1341
3562
  * http://goto/soy-param-migration
1342
3563
  * @return {!Object}
1343
3564
  */
1344
- proto.CreateInvoiceRes.prototype.toObject = function(opt_includeInstance) {
1345
- return proto.CreateInvoiceRes.toObject(opt_includeInstance, this);
3565
+ proto.UpdateInvoiceReq.prototype.toObject = function(opt_includeInstance) {
3566
+ return proto.UpdateInvoiceReq.toObject(opt_includeInstance, this);
1346
3567
  };
1347
3568
 
1348
3569
 
@@ -1351,14 +3572,14 @@ proto.CreateInvoiceRes.prototype.toObject = function(opt_includeInstance) {
1351
3572
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1352
3573
  * the JSPB instance for transitional soy proto support:
1353
3574
  * http://goto/soy-param-migration
1354
- * @param {!proto.CreateInvoiceRes} msg The msg instance to transform.
3575
+ * @param {!proto.UpdateInvoiceReq} msg The msg instance to transform.
1355
3576
  * @return {!Object}
1356
3577
  * @suppress {unusedLocalVariables} f is only used for nested messages
1357
3578
  */
1358
- proto.CreateInvoiceRes.toObject = function(includeInstance, msg) {
3579
+ proto.UpdateInvoiceReq.toObject = function(includeInstance, msg) {
1359
3580
  var f, obj = {
1360
- invoice: (f = msg.getInvoice()) && prisca_v1_purchase_order_purchase_order_pb.Invoice.toObject(includeInstance, f),
1361
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3581
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
3582
+ baseInvoice: (f = msg.getBaseInvoice()) && proto.BaseInvoice.toObject(includeInstance, f)
1362
3583
  };
1363
3584
 
1364
3585
  if (includeInstance) {
@@ -1372,23 +3593,23 @@ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(include
1372
3593
  /**
1373
3594
  * Deserializes binary data (in protobuf wire format).
1374
3595
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
1375
- * @return {!proto.CreateInvoiceRes}
3596
+ * @return {!proto.UpdateInvoiceReq}
1376
3597
  */
1377
- proto.CreateInvoiceRes.deserializeBinary = function(bytes) {
3598
+ proto.UpdateInvoiceReq.deserializeBinary = function(bytes) {
1378
3599
  var reader = new jspb.BinaryReader(bytes);
1379
- var msg = new proto.CreateInvoiceRes;
1380
- return proto.CreateInvoiceRes.deserializeBinaryFromReader(msg, reader);
3600
+ var msg = new proto.UpdateInvoiceReq;
3601
+ return proto.UpdateInvoiceReq.deserializeBinaryFromReader(msg, reader);
1381
3602
  };
1382
3603
 
1383
3604
 
1384
3605
  /**
1385
3606
  * Deserializes binary data (in protobuf wire format) from the
1386
3607
  * given reader into the given message object.
1387
- * @param {!proto.CreateInvoiceRes} msg The message object to deserialize into.
3608
+ * @param {!proto.UpdateInvoiceReq} msg The message object to deserialize into.
1388
3609
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1389
- * @return {!proto.CreateInvoiceRes}
3610
+ * @return {!proto.UpdateInvoiceReq}
1390
3611
  */
1391
- proto.CreateInvoiceRes.deserializeBinaryFromReader = function(msg, reader) {
3612
+ proto.UpdateInvoiceReq.deserializeBinaryFromReader = function(msg, reader) {
1392
3613
  while (reader.nextField()) {
1393
3614
  if (reader.isEndGroup()) {
1394
3615
  break;
@@ -1396,14 +3617,13 @@ proto.CreateInvoiceRes.deserializeBinaryFromReader = function(msg, reader) {
1396
3617
  var field = reader.getFieldNumber();
1397
3618
  switch (field) {
1398
3619
  case 1:
1399
- var value = new prisca_v1_purchase_order_purchase_order_pb.Invoice;
1400
- reader.readMessage(value,prisca_v1_purchase_order_purchase_order_pb.Invoice.deserializeBinaryFromReader);
1401
- msg.setInvoice(value);
3620
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3621
+ msg.setReferencesId(value);
1402
3622
  break;
1403
3623
  case 2:
1404
- var value = new prisca_v1_global_meta_meta_pb.Meta;
1405
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1406
- msg.setMeta(value);
3624
+ var value = new proto.BaseInvoice;
3625
+ reader.readMessage(value,proto.BaseInvoice.deserializeBinaryFromReader);
3626
+ msg.setBaseInvoice(value);
1407
3627
  break;
1408
3628
  default:
1409
3629
  reader.skipField();
@@ -1418,9 +3638,9 @@ proto.CreateInvoiceRes.deserializeBinaryFromReader = function(msg, reader) {
1418
3638
  * Serializes the message to binary data (in protobuf wire format).
1419
3639
  * @return {!Uint8Array}
1420
3640
  */
1421
- proto.CreateInvoiceRes.prototype.serializeBinary = function() {
3641
+ proto.UpdateInvoiceReq.prototype.serializeBinary = function() {
1422
3642
  var writer = new jspb.BinaryWriter();
1423
- proto.CreateInvoiceRes.serializeBinaryToWriter(this, writer);
3643
+ proto.UpdateInvoiceReq.serializeBinaryToWriter(this, writer);
1424
3644
  return writer.getResultBuffer();
1425
3645
  };
1426
3646
 
@@ -1428,93 +3648,73 @@ proto.CreateInvoiceRes.prototype.serializeBinary = function() {
1428
3648
  /**
1429
3649
  * Serializes the given message to binary data (in protobuf wire
1430
3650
  * format), writing to the given BinaryWriter.
1431
- * @param {!proto.CreateInvoiceRes} message
3651
+ * @param {!proto.UpdateInvoiceReq} message
1432
3652
  * @param {!jspb.BinaryWriter} writer
1433
3653
  * @suppress {unusedLocalVariables} f is only used for nested messages
1434
3654
  */
1435
- proto.CreateInvoiceRes.serializeBinaryToWriter = function(message, writer) {
3655
+ proto.UpdateInvoiceReq.serializeBinaryToWriter = function(message, writer) {
1436
3656
  var f = undefined;
1437
- f = message.getInvoice();
1438
- if (f != null) {
1439
- writer.writeMessage(
3657
+ f = message.getReferencesId();
3658
+ if (f.length > 0) {
3659
+ writer.writeString(
1440
3660
  1,
1441
- f,
1442
- prisca_v1_purchase_order_purchase_order_pb.Invoice.serializeBinaryToWriter
3661
+ f
1443
3662
  );
1444
3663
  }
1445
- f = message.getMeta();
3664
+ f = message.getBaseInvoice();
1446
3665
  if (f != null) {
1447
3666
  writer.writeMessage(
1448
3667
  2,
1449
3668
  f,
1450
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3669
+ proto.BaseInvoice.serializeBinaryToWriter
1451
3670
  );
1452
3671
  }
1453
3672
  };
1454
3673
 
1455
3674
 
1456
3675
  /**
1457
- * optional Invoice invoice = 1;
1458
- * @return {?proto.Invoice}
1459
- */
1460
- proto.CreateInvoiceRes.prototype.getInvoice = function() {
1461
- return /** @type{?proto.Invoice} */ (
1462
- jspb.Message.getWrapperField(this, prisca_v1_purchase_order_purchase_order_pb.Invoice, 1));
1463
- };
1464
-
1465
-
1466
- /**
1467
- * @param {?proto.Invoice|undefined} value
1468
- * @return {!proto.CreateInvoiceRes} returns this
1469
- */
1470
- proto.CreateInvoiceRes.prototype.setInvoice = function(value) {
1471
- return jspb.Message.setWrapperField(this, 1, value);
1472
- };
1473
-
1474
-
1475
- /**
1476
- * Clears the message field making it undefined.
1477
- * @return {!proto.CreateInvoiceRes} returns this
3676
+ * optional string references_id = 1;
3677
+ * @return {string}
1478
3678
  */
1479
- proto.CreateInvoiceRes.prototype.clearInvoice = function() {
1480
- return this.setInvoice(undefined);
3679
+ proto.UpdateInvoiceReq.prototype.getReferencesId = function() {
3680
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1481
3681
  };
1482
3682
 
1483
3683
 
1484
3684
  /**
1485
- * Returns whether this field is set.
1486
- * @return {boolean}
3685
+ * @param {string} value
3686
+ * @return {!proto.UpdateInvoiceReq} returns this
1487
3687
  */
1488
- proto.CreateInvoiceRes.prototype.hasInvoice = function() {
1489
- return jspb.Message.getField(this, 1) != null;
3688
+ proto.UpdateInvoiceReq.prototype.setReferencesId = function(value) {
3689
+ return jspb.Message.setProto3StringField(this, 1, value);
1490
3690
  };
1491
3691
 
1492
3692
 
1493
3693
  /**
1494
- * optional prisca.v1.global.meta.Meta meta = 2;
1495
- * @return {?proto.prisca.v1.global.meta.Meta}
3694
+ * optional BaseInvoice base_invoice = 2;
3695
+ * @return {?proto.BaseInvoice}
1496
3696
  */
1497
- proto.CreateInvoiceRes.prototype.getMeta = function() {
1498
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1499
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3697
+ proto.UpdateInvoiceReq.prototype.getBaseInvoice = function() {
3698
+ return /** @type{?proto.BaseInvoice} */ (
3699
+ jspb.Message.getWrapperField(this, proto.BaseInvoice, 2));
1500
3700
  };
1501
3701
 
1502
3702
 
1503
3703
  /**
1504
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1505
- * @return {!proto.CreateInvoiceRes} returns this
3704
+ * @param {?proto.BaseInvoice|undefined} value
3705
+ * @return {!proto.UpdateInvoiceReq} returns this
1506
3706
  */
1507
- proto.CreateInvoiceRes.prototype.setMeta = function(value) {
3707
+ proto.UpdateInvoiceReq.prototype.setBaseInvoice = function(value) {
1508
3708
  return jspb.Message.setWrapperField(this, 2, value);
1509
3709
  };
1510
3710
 
1511
3711
 
1512
3712
  /**
1513
3713
  * Clears the message field making it undefined.
1514
- * @return {!proto.CreateInvoiceRes} returns this
3714
+ * @return {!proto.UpdateInvoiceReq} returns this
1515
3715
  */
1516
- proto.CreateInvoiceRes.prototype.clearMeta = function() {
1517
- return this.setMeta(undefined);
3716
+ proto.UpdateInvoiceReq.prototype.clearBaseInvoice = function() {
3717
+ return this.setBaseInvoice(undefined);
1518
3718
  };
1519
3719
 
1520
3720
 
@@ -1522,19 +3722,12 @@ proto.CreateInvoiceRes.prototype.clearMeta = function() {
1522
3722
  * Returns whether this field is set.
1523
3723
  * @return {boolean}
1524
3724
  */
1525
- proto.CreateInvoiceRes.prototype.hasMeta = function() {
3725
+ proto.UpdateInvoiceReq.prototype.hasBaseInvoice = function() {
1526
3726
  return jspb.Message.getField(this, 2) != null;
1527
3727
  };
1528
3728
 
1529
3729
 
1530
3730
 
1531
- /**
1532
- * List of repeated fields within this message type.
1533
- * @private {!Array<number>}
1534
- * @const
1535
- */
1536
- proto.UpdateInvoiceForCompanyReq.repeatedFields_ = [4];
1537
-
1538
3731
 
1539
3732
 
1540
3733
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -1550,8 +3743,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
1550
3743
  * http://goto/soy-param-migration
1551
3744
  * @return {!Object}
1552
3745
  */
1553
- proto.UpdateInvoiceForCompanyReq.prototype.toObject = function(opt_includeInstance) {
1554
- return proto.UpdateInvoiceForCompanyReq.toObject(opt_includeInstance, this);
3746
+ proto.UpdateInvoiceStatusReq.prototype.toObject = function(opt_includeInstance) {
3747
+ return proto.UpdateInvoiceStatusReq.toObject(opt_includeInstance, this);
1555
3748
  };
1556
3749
 
1557
3750
 
@@ -1560,17 +3753,14 @@ proto.UpdateInvoiceForCompanyReq.prototype.toObject = function(opt_includeInstan
1560
3753
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1561
3754
  * the JSPB instance for transitional soy proto support:
1562
3755
  * http://goto/soy-param-migration
1563
- * @param {!proto.UpdateInvoiceForCompanyReq} msg The msg instance to transform.
3756
+ * @param {!proto.UpdateInvoiceStatusReq} msg The msg instance to transform.
1564
3757
  * @return {!Object}
1565
3758
  * @suppress {unusedLocalVariables} f is only used for nested messages
1566
3759
  */
1567
- proto.UpdateInvoiceForCompanyReq.toObject = function(includeInstance, msg) {
3760
+ proto.UpdateInvoiceStatusReq.toObject = function(includeInstance, msg) {
1568
3761
  var f, obj = {
1569
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1570
- termOfPayment: jspb.Message.getFieldWithDefault(msg, 2, ""),
1571
- dueDate: jspb.Message.getFieldWithDefault(msg, 3, ""),
1572
- itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
1573
- prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.toObject, includeInstance)
3762
+ status: jspb.Message.getFieldWithDefault(msg, 1, ""),
3763
+ referencesId: jspb.Message.getFieldWithDefault(msg, 2, "")
1574
3764
  };
1575
3765
 
1576
3766
  if (includeInstance) {
@@ -1584,23 +3774,23 @@ itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
1584
3774
  /**
1585
3775
  * Deserializes binary data (in protobuf wire format).
1586
3776
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
1587
- * @return {!proto.UpdateInvoiceForCompanyReq}
3777
+ * @return {!proto.UpdateInvoiceStatusReq}
1588
3778
  */
1589
- proto.UpdateInvoiceForCompanyReq.deserializeBinary = function(bytes) {
3779
+ proto.UpdateInvoiceStatusReq.deserializeBinary = function(bytes) {
1590
3780
  var reader = new jspb.BinaryReader(bytes);
1591
- var msg = new proto.UpdateInvoiceForCompanyReq;
1592
- return proto.UpdateInvoiceForCompanyReq.deserializeBinaryFromReader(msg, reader);
3781
+ var msg = new proto.UpdateInvoiceStatusReq;
3782
+ return proto.UpdateInvoiceStatusReq.deserializeBinaryFromReader(msg, reader);
1593
3783
  };
1594
3784
 
1595
3785
 
1596
3786
  /**
1597
3787
  * Deserializes binary data (in protobuf wire format) from the
1598
3788
  * given reader into the given message object.
1599
- * @param {!proto.UpdateInvoiceForCompanyReq} msg The message object to deserialize into.
3789
+ * @param {!proto.UpdateInvoiceStatusReq} msg The message object to deserialize into.
1600
3790
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1601
- * @return {!proto.UpdateInvoiceForCompanyReq}
3791
+ * @return {!proto.UpdateInvoiceStatusReq}
1602
3792
  */
1603
- proto.UpdateInvoiceForCompanyReq.deserializeBinaryFromReader = function(msg, reader) {
3793
+ proto.UpdateInvoiceStatusReq.deserializeBinaryFromReader = function(msg, reader) {
1604
3794
  while (reader.nextField()) {
1605
3795
  if (reader.isEndGroup()) {
1606
3796
  break;
@@ -1609,20 +3799,11 @@ proto.UpdateInvoiceForCompanyReq.deserializeBinaryFromReader = function(msg, rea
1609
3799
  switch (field) {
1610
3800
  case 1:
1611
3801
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
1612
- msg.setReferencesId(value);
3802
+ msg.setStatus(value);
1613
3803
  break;
1614
3804
  case 2:
1615
3805
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
1616
- msg.setTermOfPayment(value);
1617
- break;
1618
- case 3:
1619
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
1620
- msg.setDueDate(value);
1621
- break;
1622
- case 4:
1623
- var value = new prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction;
1624
- reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.deserializeBinaryFromReader);
1625
- msg.addItemTransactions(value);
3806
+ msg.setReferencesId(value);
1626
3807
  break;
1627
3808
  default:
1628
3809
  reader.skipField();
@@ -1637,9 +3818,9 @@ proto.UpdateInvoiceForCompanyReq.deserializeBinaryFromReader = function(msg, rea
1637
3818
  * Serializes the message to binary data (in protobuf wire format).
1638
3819
  * @return {!Uint8Array}
1639
3820
  */
1640
- proto.UpdateInvoiceForCompanyReq.prototype.serializeBinary = function() {
3821
+ proto.UpdateInvoiceStatusReq.prototype.serializeBinary = function() {
1641
3822
  var writer = new jspb.BinaryWriter();
1642
- proto.UpdateInvoiceForCompanyReq.serializeBinaryToWriter(this, writer);
3823
+ proto.UpdateInvoiceStatusReq.serializeBinaryToWriter(this, writer);
1643
3824
  return writer.getResultBuffer();
1644
3825
  };
1645
3826
 
@@ -1647,133 +3828,62 @@ proto.UpdateInvoiceForCompanyReq.prototype.serializeBinary = function() {
1647
3828
  /**
1648
3829
  * Serializes the given message to binary data (in protobuf wire
1649
3830
  * format), writing to the given BinaryWriter.
1650
- * @param {!proto.UpdateInvoiceForCompanyReq} message
3831
+ * @param {!proto.UpdateInvoiceStatusReq} message
1651
3832
  * @param {!jspb.BinaryWriter} writer
1652
3833
  * @suppress {unusedLocalVariables} f is only used for nested messages
1653
3834
  */
1654
- proto.UpdateInvoiceForCompanyReq.serializeBinaryToWriter = function(message, writer) {
3835
+ proto.UpdateInvoiceStatusReq.serializeBinaryToWriter = function(message, writer) {
1655
3836
  var f = undefined;
1656
- f = message.getReferencesId();
3837
+ f = message.getStatus();
1657
3838
  if (f.length > 0) {
1658
3839
  writer.writeString(
1659
3840
  1,
1660
3841
  f
1661
- );
1662
- }
1663
- f = message.getTermOfPayment();
1664
- if (f.length > 0) {
1665
- writer.writeString(
1666
- 2,
1667
- f
1668
- );
1669
- }
1670
- f = message.getDueDate();
1671
- if (f.length > 0) {
1672
- writer.writeString(
1673
- 3,
1674
- f
1675
- );
1676
- }
1677
- f = message.getItemTransactionsList();
1678
- if (f.length > 0) {
1679
- writer.writeRepeatedMessage(
1680
- 4,
1681
- f,
1682
- prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.serializeBinaryToWriter
1683
- );
1684
- }
1685
- };
1686
-
1687
-
1688
- /**
1689
- * optional string references_id = 1;
1690
- * @return {string}
1691
- */
1692
- proto.UpdateInvoiceForCompanyReq.prototype.getReferencesId = function() {
1693
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1694
- };
1695
-
1696
-
1697
- /**
1698
- * @param {string} value
1699
- * @return {!proto.UpdateInvoiceForCompanyReq} returns this
1700
- */
1701
- proto.UpdateInvoiceForCompanyReq.prototype.setReferencesId = function(value) {
1702
- return jspb.Message.setProto3StringField(this, 1, value);
1703
- };
1704
-
1705
-
1706
- /**
1707
- * optional string term_of_payment = 2;
1708
- * @return {string}
1709
- */
1710
- proto.UpdateInvoiceForCompanyReq.prototype.getTermOfPayment = function() {
1711
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1712
- };
1713
-
1714
-
1715
- /**
1716
- * @param {string} value
1717
- * @return {!proto.UpdateInvoiceForCompanyReq} returns this
1718
- */
1719
- proto.UpdateInvoiceForCompanyReq.prototype.setTermOfPayment = function(value) {
1720
- return jspb.Message.setProto3StringField(this, 2, value);
3842
+ );
3843
+ }
3844
+ f = message.getReferencesId();
3845
+ if (f.length > 0) {
3846
+ writer.writeString(
3847
+ 2,
3848
+ f
3849
+ );
3850
+ }
1721
3851
  };
1722
3852
 
1723
3853
 
1724
3854
  /**
1725
- * optional string due_date = 3;
3855
+ * optional string status = 1;
1726
3856
  * @return {string}
1727
3857
  */
1728
- proto.UpdateInvoiceForCompanyReq.prototype.getDueDate = function() {
1729
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3858
+ proto.UpdateInvoiceStatusReq.prototype.getStatus = function() {
3859
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1730
3860
  };
1731
3861
 
1732
3862
 
1733
3863
  /**
1734
3864
  * @param {string} value
1735
- * @return {!proto.UpdateInvoiceForCompanyReq} returns this
1736
- */
1737
- proto.UpdateInvoiceForCompanyReq.prototype.setDueDate = function(value) {
1738
- return jspb.Message.setProto3StringField(this, 3, value);
1739
- };
1740
-
1741
-
1742
- /**
1743
- * repeated ItemTransaction item_transactions = 4;
1744
- * @return {!Array<!proto.ItemTransaction>}
3865
+ * @return {!proto.UpdateInvoiceStatusReq} returns this
1745
3866
  */
1746
- proto.UpdateInvoiceForCompanyReq.prototype.getItemTransactionsList = function() {
1747
- return /** @type{!Array<!proto.ItemTransaction>} */ (
1748
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction, 4));
1749
- };
1750
-
1751
-
1752
- /**
1753
- * @param {!Array<!proto.ItemTransaction>} value
1754
- * @return {!proto.UpdateInvoiceForCompanyReq} returns this
1755
- */
1756
- proto.UpdateInvoiceForCompanyReq.prototype.setItemTransactionsList = function(value) {
1757
- return jspb.Message.setRepeatedWrapperField(this, 4, value);
3867
+ proto.UpdateInvoiceStatusReq.prototype.setStatus = function(value) {
3868
+ return jspb.Message.setProto3StringField(this, 1, value);
1758
3869
  };
1759
3870
 
1760
3871
 
1761
3872
  /**
1762
- * @param {!proto.ItemTransaction=} opt_value
1763
- * @param {number=} opt_index
1764
- * @return {!proto.ItemTransaction}
3873
+ * optional string references_id = 2;
3874
+ * @return {string}
1765
3875
  */
1766
- proto.UpdateInvoiceForCompanyReq.prototype.addItemTransactions = function(opt_value, opt_index) {
1767
- return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.ItemTransaction, opt_index);
3876
+ proto.UpdateInvoiceStatusReq.prototype.getReferencesId = function() {
3877
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1768
3878
  };
1769
3879
 
1770
3880
 
1771
3881
  /**
1772
- * Clears the list making it empty but non-null.
1773
- * @return {!proto.UpdateInvoiceForCompanyReq} returns this
3882
+ * @param {string} value
3883
+ * @return {!proto.UpdateInvoiceStatusReq} returns this
1774
3884
  */
1775
- proto.UpdateInvoiceForCompanyReq.prototype.clearItemTransactionsList = function() {
1776
- return this.setItemTransactionsList([]);
3885
+ proto.UpdateInvoiceStatusReq.prototype.setReferencesId = function(value) {
3886
+ return jspb.Message.setProto3StringField(this, 2, value);
1777
3887
  };
1778
3888
 
1779
3889
 
@@ -1793,8 +3903,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
1793
3903
  * http://goto/soy-param-migration
1794
3904
  * @return {!Object}
1795
3905
  */
1796
- proto.UpdateInvoiceReq.prototype.toObject = function(opt_includeInstance) {
1797
- return proto.UpdateInvoiceReq.toObject(opt_includeInstance, this);
3906
+ proto.UpdateInvoiceStatusByAccurateIdReq.prototype.toObject = function(opt_includeInstance) {
3907
+ return proto.UpdateInvoiceStatusByAccurateIdReq.toObject(opt_includeInstance, this);
1798
3908
  };
1799
3909
 
1800
3910
 
@@ -1803,14 +3913,14 @@ proto.UpdateInvoiceReq.prototype.toObject = function(opt_includeInstance) {
1803
3913
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1804
3914
  * the JSPB instance for transitional soy proto support:
1805
3915
  * http://goto/soy-param-migration
1806
- * @param {!proto.UpdateInvoiceReq} msg The msg instance to transform.
3916
+ * @param {!proto.UpdateInvoiceStatusByAccurateIdReq} msg The msg instance to transform.
1807
3917
  * @return {!Object}
1808
3918
  * @suppress {unusedLocalVariables} f is only used for nested messages
1809
3919
  */
1810
- proto.UpdateInvoiceReq.toObject = function(includeInstance, msg) {
3920
+ proto.UpdateInvoiceStatusByAccurateIdReq.toObject = function(includeInstance, msg) {
1811
3921
  var f, obj = {
1812
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1813
- baseInvoice: (f = msg.getBaseInvoice()) && proto.BaseInvoice.toObject(includeInstance, f)
3922
+ accurateInvoiceId: jspb.Message.getFieldWithDefault(msg, 1, ""),
3923
+ status: jspb.Message.getFieldWithDefault(msg, 2, "")
1814
3924
  };
1815
3925
 
1816
3926
  if (includeInstance) {
@@ -1824,23 +3934,23 @@ baseInvoice: (f = msg.getBaseInvoice()) && proto.BaseInvoice.toObject(includeIns
1824
3934
  /**
1825
3935
  * Deserializes binary data (in protobuf wire format).
1826
3936
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
1827
- * @return {!proto.UpdateInvoiceReq}
3937
+ * @return {!proto.UpdateInvoiceStatusByAccurateIdReq}
1828
3938
  */
1829
- proto.UpdateInvoiceReq.deserializeBinary = function(bytes) {
3939
+ proto.UpdateInvoiceStatusByAccurateIdReq.deserializeBinary = function(bytes) {
1830
3940
  var reader = new jspb.BinaryReader(bytes);
1831
- var msg = new proto.UpdateInvoiceReq;
1832
- return proto.UpdateInvoiceReq.deserializeBinaryFromReader(msg, reader);
3941
+ var msg = new proto.UpdateInvoiceStatusByAccurateIdReq;
3942
+ return proto.UpdateInvoiceStatusByAccurateIdReq.deserializeBinaryFromReader(msg, reader);
1833
3943
  };
1834
3944
 
1835
3945
 
1836
3946
  /**
1837
3947
  * Deserializes binary data (in protobuf wire format) from the
1838
3948
  * given reader into the given message object.
1839
- * @param {!proto.UpdateInvoiceReq} msg The message object to deserialize into.
3949
+ * @param {!proto.UpdateInvoiceStatusByAccurateIdReq} msg The message object to deserialize into.
1840
3950
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1841
- * @return {!proto.UpdateInvoiceReq}
3951
+ * @return {!proto.UpdateInvoiceStatusByAccurateIdReq}
1842
3952
  */
1843
- proto.UpdateInvoiceReq.deserializeBinaryFromReader = function(msg, reader) {
3953
+ proto.UpdateInvoiceStatusByAccurateIdReq.deserializeBinaryFromReader = function(msg, reader) {
1844
3954
  while (reader.nextField()) {
1845
3955
  if (reader.isEndGroup()) {
1846
3956
  break;
@@ -1849,12 +3959,11 @@ proto.UpdateInvoiceReq.deserializeBinaryFromReader = function(msg, reader) {
1849
3959
  switch (field) {
1850
3960
  case 1:
1851
3961
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
1852
- msg.setReferencesId(value);
3962
+ msg.setAccurateInvoiceId(value);
1853
3963
  break;
1854
3964
  case 2:
1855
- var value = new proto.BaseInvoice;
1856
- reader.readMessage(value,proto.BaseInvoice.deserializeBinaryFromReader);
1857
- msg.setBaseInvoice(value);
3965
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3966
+ msg.setStatus(value);
1858
3967
  break;
1859
3968
  default:
1860
3969
  reader.skipField();
@@ -1869,9 +3978,9 @@ proto.UpdateInvoiceReq.deserializeBinaryFromReader = function(msg, reader) {
1869
3978
  * Serializes the message to binary data (in protobuf wire format).
1870
3979
  * @return {!Uint8Array}
1871
3980
  */
1872
- proto.UpdateInvoiceReq.prototype.serializeBinary = function() {
3981
+ proto.UpdateInvoiceStatusByAccurateIdReq.prototype.serializeBinary = function() {
1873
3982
  var writer = new jspb.BinaryWriter();
1874
- proto.UpdateInvoiceReq.serializeBinaryToWriter(this, writer);
3983
+ proto.UpdateInvoiceStatusByAccurateIdReq.serializeBinaryToWriter(this, writer);
1875
3984
  return writer.getResultBuffer();
1876
3985
  };
1877
3986
 
@@ -1879,82 +3988,62 @@ proto.UpdateInvoiceReq.prototype.serializeBinary = function() {
1879
3988
  /**
1880
3989
  * Serializes the given message to binary data (in protobuf wire
1881
3990
  * format), writing to the given BinaryWriter.
1882
- * @param {!proto.UpdateInvoiceReq} message
3991
+ * @param {!proto.UpdateInvoiceStatusByAccurateIdReq} message
1883
3992
  * @param {!jspb.BinaryWriter} writer
1884
3993
  * @suppress {unusedLocalVariables} f is only used for nested messages
1885
3994
  */
1886
- proto.UpdateInvoiceReq.serializeBinaryToWriter = function(message, writer) {
3995
+ proto.UpdateInvoiceStatusByAccurateIdReq.serializeBinaryToWriter = function(message, writer) {
1887
3996
  var f = undefined;
1888
- f = message.getReferencesId();
3997
+ f = message.getAccurateInvoiceId();
1889
3998
  if (f.length > 0) {
1890
3999
  writer.writeString(
1891
4000
  1,
1892
4001
  f
1893
4002
  );
1894
4003
  }
1895
- f = message.getBaseInvoice();
1896
- if (f != null) {
1897
- writer.writeMessage(
4004
+ f = message.getStatus();
4005
+ if (f.length > 0) {
4006
+ writer.writeString(
1898
4007
  2,
1899
- f,
1900
- proto.BaseInvoice.serializeBinaryToWriter
4008
+ f
1901
4009
  );
1902
4010
  }
1903
4011
  };
1904
4012
 
1905
4013
 
1906
4014
  /**
1907
- * optional string references_id = 1;
4015
+ * optional string accurate_invoice_id = 1;
1908
4016
  * @return {string}
1909
4017
  */
1910
- proto.UpdateInvoiceReq.prototype.getReferencesId = function() {
4018
+ proto.UpdateInvoiceStatusByAccurateIdReq.prototype.getAccurateInvoiceId = function() {
1911
4019
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1912
4020
  };
1913
4021
 
1914
4022
 
1915
4023
  /**
1916
4024
  * @param {string} value
1917
- * @return {!proto.UpdateInvoiceReq} returns this
4025
+ * @return {!proto.UpdateInvoiceStatusByAccurateIdReq} returns this
1918
4026
  */
1919
- proto.UpdateInvoiceReq.prototype.setReferencesId = function(value) {
4027
+ proto.UpdateInvoiceStatusByAccurateIdReq.prototype.setAccurateInvoiceId = function(value) {
1920
4028
  return jspb.Message.setProto3StringField(this, 1, value);
1921
4029
  };
1922
4030
 
1923
4031
 
1924
4032
  /**
1925
- * optional BaseInvoice base_invoice = 2;
1926
- * @return {?proto.BaseInvoice}
1927
- */
1928
- proto.UpdateInvoiceReq.prototype.getBaseInvoice = function() {
1929
- return /** @type{?proto.BaseInvoice} */ (
1930
- jspb.Message.getWrapperField(this, proto.BaseInvoice, 2));
1931
- };
1932
-
1933
-
1934
- /**
1935
- * @param {?proto.BaseInvoice|undefined} value
1936
- * @return {!proto.UpdateInvoiceReq} returns this
1937
- */
1938
- proto.UpdateInvoiceReq.prototype.setBaseInvoice = function(value) {
1939
- return jspb.Message.setWrapperField(this, 2, value);
1940
- };
1941
-
1942
-
1943
- /**
1944
- * Clears the message field making it undefined.
1945
- * @return {!proto.UpdateInvoiceReq} returns this
4033
+ * optional string status = 2;
4034
+ * @return {string}
1946
4035
  */
1947
- proto.UpdateInvoiceReq.prototype.clearBaseInvoice = function() {
1948
- return this.setBaseInvoice(undefined);
4036
+ proto.UpdateInvoiceStatusByAccurateIdReq.prototype.getStatus = function() {
4037
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1949
4038
  };
1950
4039
 
1951
4040
 
1952
4041
  /**
1953
- * Returns whether this field is set.
1954
- * @return {boolean}
4042
+ * @param {string} value
4043
+ * @return {!proto.UpdateInvoiceStatusByAccurateIdReq} returns this
1955
4044
  */
1956
- proto.UpdateInvoiceReq.prototype.hasBaseInvoice = function() {
1957
- return jspb.Message.getField(this, 2) != null;
4045
+ proto.UpdateInvoiceStatusByAccurateIdReq.prototype.setStatus = function(value) {
4046
+ return jspb.Message.setProto3StringField(this, 2, value);
1958
4047
  };
1959
4048
 
1960
4049
 
@@ -1974,8 +4063,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
1974
4063
  * http://goto/soy-param-migration
1975
4064
  * @return {!Object}
1976
4065
  */
1977
- proto.UpdateInvoiceStatusReq.prototype.toObject = function(opt_includeInstance) {
1978
- return proto.UpdateInvoiceStatusReq.toObject(opt_includeInstance, this);
4066
+ proto.UpdateInvoiceStatusByAccurateIdRes.prototype.toObject = function(opt_includeInstance) {
4067
+ return proto.UpdateInvoiceStatusByAccurateIdRes.toObject(opt_includeInstance, this);
1979
4068
  };
1980
4069
 
1981
4070
 
@@ -1984,14 +4073,16 @@ proto.UpdateInvoiceStatusReq.prototype.toObject = function(opt_includeInstance)
1984
4073
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1985
4074
  * the JSPB instance for transitional soy proto support:
1986
4075
  * http://goto/soy-param-migration
1987
- * @param {!proto.UpdateInvoiceStatusReq} msg The msg instance to transform.
4076
+ * @param {!proto.UpdateInvoiceStatusByAccurateIdRes} msg The msg instance to transform.
1988
4077
  * @return {!Object}
1989
4078
  * @suppress {unusedLocalVariables} f is only used for nested messages
1990
4079
  */
1991
- proto.UpdateInvoiceStatusReq.toObject = function(includeInstance, msg) {
4080
+ proto.UpdateInvoiceStatusByAccurateIdRes.toObject = function(includeInstance, msg) {
1992
4081
  var f, obj = {
1993
- status: jspb.Message.getFieldWithDefault(msg, 1, ""),
1994
- referencesId: jspb.Message.getFieldWithDefault(msg, 2, "")
4082
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
4083
+ status: jspb.Message.getFieldWithDefault(msg, 2, ""),
4084
+ actionTaken: jspb.Message.getFieldWithDefault(msg, 3, ""),
4085
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1995
4086
  };
1996
4087
 
1997
4088
  if (includeInstance) {
@@ -2005,23 +4096,23 @@ referencesId: jspb.Message.getFieldWithDefault(msg, 2, "")
2005
4096
  /**
2006
4097
  * Deserializes binary data (in protobuf wire format).
2007
4098
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
2008
- * @return {!proto.UpdateInvoiceStatusReq}
4099
+ * @return {!proto.UpdateInvoiceStatusByAccurateIdRes}
2009
4100
  */
2010
- proto.UpdateInvoiceStatusReq.deserializeBinary = function(bytes) {
4101
+ proto.UpdateInvoiceStatusByAccurateIdRes.deserializeBinary = function(bytes) {
2011
4102
  var reader = new jspb.BinaryReader(bytes);
2012
- var msg = new proto.UpdateInvoiceStatusReq;
2013
- return proto.UpdateInvoiceStatusReq.deserializeBinaryFromReader(msg, reader);
4103
+ var msg = new proto.UpdateInvoiceStatusByAccurateIdRes;
4104
+ return proto.UpdateInvoiceStatusByAccurateIdRes.deserializeBinaryFromReader(msg, reader);
2014
4105
  };
2015
4106
 
2016
4107
 
2017
4108
  /**
2018
4109
  * Deserializes binary data (in protobuf wire format) from the
2019
4110
  * given reader into the given message object.
2020
- * @param {!proto.UpdateInvoiceStatusReq} msg The message object to deserialize into.
4111
+ * @param {!proto.UpdateInvoiceStatusByAccurateIdRes} msg The message object to deserialize into.
2021
4112
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2022
- * @return {!proto.UpdateInvoiceStatusReq}
4113
+ * @return {!proto.UpdateInvoiceStatusByAccurateIdRes}
2023
4114
  */
2024
- proto.UpdateInvoiceStatusReq.deserializeBinaryFromReader = function(msg, reader) {
4115
+ proto.UpdateInvoiceStatusByAccurateIdRes.deserializeBinaryFromReader = function(msg, reader) {
2025
4116
  while (reader.nextField()) {
2026
4117
  if (reader.isEndGroup()) {
2027
4118
  break;
@@ -2030,11 +4121,20 @@ proto.UpdateInvoiceStatusReq.deserializeBinaryFromReader = function(msg, reader)
2030
4121
  switch (field) {
2031
4122
  case 1:
2032
4123
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
2033
- msg.setStatus(value);
4124
+ msg.setReferencesId(value);
2034
4125
  break;
2035
4126
  case 2:
2036
4127
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
2037
- msg.setReferencesId(value);
4128
+ msg.setStatus(value);
4129
+ break;
4130
+ case 3:
4131
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4132
+ msg.setActionTaken(value);
4133
+ break;
4134
+ case 4:
4135
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
4136
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
4137
+ msg.setMeta(value);
2038
4138
  break;
2039
4139
  default:
2040
4140
  reader.skipField();
@@ -2049,9 +4149,9 @@ proto.UpdateInvoiceStatusReq.deserializeBinaryFromReader = function(msg, reader)
2049
4149
  * Serializes the message to binary data (in protobuf wire format).
2050
4150
  * @return {!Uint8Array}
2051
4151
  */
2052
- proto.UpdateInvoiceStatusReq.prototype.serializeBinary = function() {
4152
+ proto.UpdateInvoiceStatusByAccurateIdRes.prototype.serializeBinary = function() {
2053
4153
  var writer = new jspb.BinaryWriter();
2054
- proto.UpdateInvoiceStatusReq.serializeBinaryToWriter(this, writer);
4154
+ proto.UpdateInvoiceStatusByAccurateIdRes.serializeBinaryToWriter(this, writer);
2055
4155
  return writer.getResultBuffer();
2056
4156
  };
2057
4157
 
@@ -2059,65 +4159,135 @@ proto.UpdateInvoiceStatusReq.prototype.serializeBinary = function() {
2059
4159
  /**
2060
4160
  * Serializes the given message to binary data (in protobuf wire
2061
4161
  * format), writing to the given BinaryWriter.
2062
- * @param {!proto.UpdateInvoiceStatusReq} message
4162
+ * @param {!proto.UpdateInvoiceStatusByAccurateIdRes} message
2063
4163
  * @param {!jspb.BinaryWriter} writer
2064
4164
  * @suppress {unusedLocalVariables} f is only used for nested messages
2065
4165
  */
2066
- proto.UpdateInvoiceStatusReq.serializeBinaryToWriter = function(message, writer) {
4166
+ proto.UpdateInvoiceStatusByAccurateIdRes.serializeBinaryToWriter = function(message, writer) {
2067
4167
  var f = undefined;
2068
- f = message.getStatus();
4168
+ f = message.getReferencesId();
2069
4169
  if (f.length > 0) {
2070
4170
  writer.writeString(
2071
4171
  1,
2072
4172
  f
2073
4173
  );
2074
4174
  }
2075
- f = message.getReferencesId();
4175
+ f = message.getStatus();
2076
4176
  if (f.length > 0) {
2077
4177
  writer.writeString(
2078
4178
  2,
2079
4179
  f
2080
4180
  );
2081
4181
  }
4182
+ f = message.getActionTaken();
4183
+ if (f.length > 0) {
4184
+ writer.writeString(
4185
+ 3,
4186
+ f
4187
+ );
4188
+ }
4189
+ f = message.getMeta();
4190
+ if (f != null) {
4191
+ writer.writeMessage(
4192
+ 4,
4193
+ f,
4194
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
4195
+ );
4196
+ }
2082
4197
  };
2083
4198
 
2084
4199
 
2085
4200
  /**
2086
- * optional string status = 1;
4201
+ * optional string references_id = 1;
2087
4202
  * @return {string}
2088
4203
  */
2089
- proto.UpdateInvoiceStatusReq.prototype.getStatus = function() {
4204
+ proto.UpdateInvoiceStatusByAccurateIdRes.prototype.getReferencesId = function() {
2090
4205
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2091
4206
  };
2092
4207
 
2093
4208
 
2094
4209
  /**
2095
4210
  * @param {string} value
2096
- * @return {!proto.UpdateInvoiceStatusReq} returns this
4211
+ * @return {!proto.UpdateInvoiceStatusByAccurateIdRes} returns this
2097
4212
  */
2098
- proto.UpdateInvoiceStatusReq.prototype.setStatus = function(value) {
4213
+ proto.UpdateInvoiceStatusByAccurateIdRes.prototype.setReferencesId = function(value) {
2099
4214
  return jspb.Message.setProto3StringField(this, 1, value);
2100
4215
  };
2101
4216
 
2102
4217
 
2103
4218
  /**
2104
- * optional string references_id = 2;
4219
+ * optional string status = 2;
2105
4220
  * @return {string}
2106
4221
  */
2107
- proto.UpdateInvoiceStatusReq.prototype.getReferencesId = function() {
4222
+ proto.UpdateInvoiceStatusByAccurateIdRes.prototype.getStatus = function() {
2108
4223
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2109
4224
  };
2110
4225
 
2111
4226
 
2112
4227
  /**
2113
4228
  * @param {string} value
2114
- * @return {!proto.UpdateInvoiceStatusReq} returns this
4229
+ * @return {!proto.UpdateInvoiceStatusByAccurateIdRes} returns this
2115
4230
  */
2116
- proto.UpdateInvoiceStatusReq.prototype.setReferencesId = function(value) {
4231
+ proto.UpdateInvoiceStatusByAccurateIdRes.prototype.setStatus = function(value) {
2117
4232
  return jspb.Message.setProto3StringField(this, 2, value);
2118
4233
  };
2119
4234
 
2120
4235
 
4236
+ /**
4237
+ * optional string action_taken = 3;
4238
+ * @return {string}
4239
+ */
4240
+ proto.UpdateInvoiceStatusByAccurateIdRes.prototype.getActionTaken = function() {
4241
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
4242
+ };
4243
+
4244
+
4245
+ /**
4246
+ * @param {string} value
4247
+ * @return {!proto.UpdateInvoiceStatusByAccurateIdRes} returns this
4248
+ */
4249
+ proto.UpdateInvoiceStatusByAccurateIdRes.prototype.setActionTaken = function(value) {
4250
+ return jspb.Message.setProto3StringField(this, 3, value);
4251
+ };
4252
+
4253
+
4254
+ /**
4255
+ * optional prisca.v1.global.meta.Meta meta = 4;
4256
+ * @return {?proto.prisca.v1.global.meta.Meta}
4257
+ */
4258
+ proto.UpdateInvoiceStatusByAccurateIdRes.prototype.getMeta = function() {
4259
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
4260
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 4));
4261
+ };
4262
+
4263
+
4264
+ /**
4265
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
4266
+ * @return {!proto.UpdateInvoiceStatusByAccurateIdRes} returns this
4267
+ */
4268
+ proto.UpdateInvoiceStatusByAccurateIdRes.prototype.setMeta = function(value) {
4269
+ return jspb.Message.setWrapperField(this, 4, value);
4270
+ };
4271
+
4272
+
4273
+ /**
4274
+ * Clears the message field making it undefined.
4275
+ * @return {!proto.UpdateInvoiceStatusByAccurateIdRes} returns this
4276
+ */
4277
+ proto.UpdateInvoiceStatusByAccurateIdRes.prototype.clearMeta = function() {
4278
+ return this.setMeta(undefined);
4279
+ };
4280
+
4281
+
4282
+ /**
4283
+ * Returns whether this field is set.
4284
+ * @return {boolean}
4285
+ */
4286
+ proto.UpdateInvoiceStatusByAccurateIdRes.prototype.hasMeta = function() {
4287
+ return jspb.Message.getField(this, 4) != null;
4288
+ };
4289
+
4290
+
2121
4291
 
2122
4292
  /**
2123
4293
  * List of repeated fields within this message type.
@@ -3949,7 +6119,7 @@ proto.ItemInvoiceReference.prototype.setPriceBeforeTax = function(value) {
3949
6119
  * @private {!Array<number>}
3950
6120
  * @const
3951
6121
  */
3952
- proto.ItemPurchaseOrder.repeatedFields_ = [8];
6122
+ proto.ItemPurchaseOrder.repeatedFields_ = [8,10];
3953
6123
 
3954
6124
 
3955
6125
 
@@ -3991,7 +6161,9 @@ quantity: jspb.Message.getFieldWithDefault(msg, 6, ""),
3991
6161
  unitOfMeasure: jspb.Message.getFieldWithDefault(msg, 7, ""),
3992
6162
  priceConditionList: jspb.Message.toObjectList(msg.getPriceConditionList(),
3993
6163
  prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition.toObject, includeInstance),
3994
- priceBeforeTax: jspb.Message.getFieldWithDefault(msg, 9, "")
6164
+ priceBeforeTax: jspb.Message.getFieldWithDefault(msg, 9, ""),
6165
+ itemTransactionServiceList: jspb.Message.toObjectList(msg.getItemTransactionServiceList(),
6166
+ prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionService.toObject, includeInstance)
3995
6167
  };
3996
6168
 
3997
6169
  if (includeInstance) {
@@ -4065,6 +6237,11 @@ proto.ItemPurchaseOrder.deserializeBinaryFromReader = function(msg, reader) {
4065
6237
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
4066
6238
  msg.setPriceBeforeTax(value);
4067
6239
  break;
6240
+ case 10:
6241
+ var value = new prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionService;
6242
+ reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionService.deserializeBinaryFromReader);
6243
+ msg.addItemTransactionService(value);
6244
+ break;
4068
6245
  default:
4069
6246
  reader.skipField();
4070
6247
  break;
@@ -4158,6 +6335,14 @@ proto.ItemPurchaseOrder.serializeBinaryToWriter = function(message, writer) {
4158
6335
  f
4159
6336
  );
4160
6337
  }
6338
+ f = message.getItemTransactionServiceList();
6339
+ if (f.length > 0) {
6340
+ writer.writeRepeatedMessage(
6341
+ 10,
6342
+ f,
6343
+ prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionService.serializeBinaryToWriter
6344
+ );
6345
+ }
4161
6346
  };
4162
6347
 
4163
6348
 
@@ -4343,6 +6528,44 @@ proto.ItemPurchaseOrder.prototype.setPriceBeforeTax = function(value) {
4343
6528
  };
4344
6529
 
4345
6530
 
6531
+ /**
6532
+ * repeated ItemTransactionService item_transaction_service = 10;
6533
+ * @return {!Array<!proto.ItemTransactionService>}
6534
+ */
6535
+ proto.ItemPurchaseOrder.prototype.getItemTransactionServiceList = function() {
6536
+ return /** @type{!Array<!proto.ItemTransactionService>} */ (
6537
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionService, 10));
6538
+ };
6539
+
6540
+
6541
+ /**
6542
+ * @param {!Array<!proto.ItemTransactionService>} value
6543
+ * @return {!proto.ItemPurchaseOrder} returns this
6544
+ */
6545
+ proto.ItemPurchaseOrder.prototype.setItemTransactionServiceList = function(value) {
6546
+ return jspb.Message.setRepeatedWrapperField(this, 10, value);
6547
+ };
6548
+
6549
+
6550
+ /**
6551
+ * @param {!proto.ItemTransactionService=} opt_value
6552
+ * @param {number=} opt_index
6553
+ * @return {!proto.ItemTransactionService}
6554
+ */
6555
+ proto.ItemPurchaseOrder.prototype.addItemTransactionService = function(opt_value, opt_index) {
6556
+ return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.ItemTransactionService, opt_index);
6557
+ };
6558
+
6559
+
6560
+ /**
6561
+ * Clears the list making it empty but non-null.
6562
+ * @return {!proto.ItemPurchaseOrder} returns this
6563
+ */
6564
+ proto.ItemPurchaseOrder.prototype.clearItemTransactionServiceList = function() {
6565
+ return this.setItemTransactionServiceList([]);
6566
+ };
6567
+
6568
+
4346
6569
 
4347
6570
 
4348
6571