@aldiokta/protocgen 1.1.21 → 1.1.22

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 (43) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/bidding/bidding_grpc_pb.js +33 -0
  3. package/prisca/v1/bidding/bidding_pb.js +613 -4
  4. package/prisca/v1/core/company/company_pb.js +77 -25
  5. package/prisca/v1/core/employee/employee_pb.js +74 -22
  6. package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +33 -0
  7. package/prisca/v1/core/incoterm/incoterm_pb.js +407 -0
  8. package/prisca/v1/core/item_transaction/item_transaction_pb.js +274 -4
  9. package/prisca/v1/core/job_grade/job_grade_pb.js +80 -28
  10. package/prisca/v1/core/job_position/job_position_pb.js +74 -22
  11. package/prisca/v1/core/job_title/job_title_pb.js +80 -28
  12. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +61 -1
  13. package/prisca/v1/core/material/material_pb.js +74 -22
  14. package/prisca/v1/core/material_group/material_group_pb.js +77 -25
  15. package/prisca/v1/core/material_type/material_type_grpc_pb.js +33 -0
  16. package/prisca/v1/core/material_type/material_type_pb.js +407 -0
  17. package/prisca/v1/core/number_range/number_range_pb.js +74 -22
  18. package/prisca/v1/core/organization/organization_pb.js +80 -28
  19. package/prisca/v1/core/organization_level/organization_level_pb.js +80 -28
  20. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +33 -0
  21. package/prisca/v1/core/price_condition/price_condition_pb.js +407 -0
  22. package/prisca/v1/core/tax_code/tax_code_pb.js +152 -2
  23. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +33 -0
  24. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +407 -0
  25. package/prisca/v1/core/users/users_grpc_pb.js +33 -0
  26. package/prisca/v1/core/users/users_pb.js +407 -0
  27. package/prisca/v1/core/work_location/work_location_pb.js +74 -22
  28. package/prisca/v1/core/workflow/workflow_pb.js +74 -22
  29. package/prisca/v1/delivery_order/delivery_order_grpc_pb.js +229 -0
  30. package/prisca/v1/delivery_order/delivery_order_pb.js +4661 -0
  31. package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +1 -0
  32. package/prisca/v1/good_receipt/good_receipt_pb.js +35 -0
  33. package/prisca/v1/purchase_order/purchase_order_pb.js +98 -8
  34. package/prisca/v1/purchasing_group/purchasing_group_pb.js +80 -28
  35. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +33 -0
  36. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +407 -0
  37. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +33 -0
  38. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +407 -0
  39. package/prisca/v1/quotation/quotation_grpc_pb.js +14 -3
  40. package/prisca/v1/quotation/quotation_pb.js +479 -2
  41. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +1 -0
  42. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +262 -4
  43. package/prisca/v1/vendor_domain/vendor_domain_pb.js +31 -1
@@ -30,6 +30,8 @@ goog.object.extend(proto, prisca_v1_core_employee_employee_pb);
30
30
  goog.exportSymbol('proto.BasePriceCondition', null, global);
31
31
  goog.exportSymbol('proto.CreatePriceConditionRequest', null, global);
32
32
  goog.exportSymbol('proto.CreatePriceConditionResponse', null, global);
33
+ goog.exportSymbol('proto.DeletePriceConditionReq', null, global);
34
+ goog.exportSymbol('proto.DeletePriceConditionRes', null, global);
33
35
  goog.exportSymbol('proto.GetByIdPriceConditionRequest', null, global);
34
36
  goog.exportSymbol('proto.GetByIdPriceConditionResponse', null, global);
35
37
  goog.exportSymbol('proto.GetListPriceConditionRequest', null, global);
@@ -163,6 +165,27 @@ if (goog.DEBUG && !COMPILED) {
163
165
  */
164
166
  proto.GetListPriceConditionRequest.displayName = 'proto.GetListPriceConditionRequest';
165
167
  }
168
+ /**
169
+ * Generated by JsPbCodeGenerator.
170
+ * @param {Array=} opt_data Optional initial data array, typically from a
171
+ * server response, or constructed directly in Javascript. The array is used
172
+ * in place and becomes part of the constructed object. It is not cloned.
173
+ * If no data is provided, the constructed object will be empty, but still
174
+ * valid.
175
+ * @extends {jspb.Message}
176
+ * @constructor
177
+ */
178
+ proto.DeletePriceConditionReq = function(opt_data) {
179
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.DeletePriceConditionReq.repeatedFields_, null);
180
+ };
181
+ goog.inherits(proto.DeletePriceConditionReq, jspb.Message);
182
+ if (goog.DEBUG && !COMPILED) {
183
+ /**
184
+ * @public
185
+ * @override
186
+ */
187
+ proto.DeletePriceConditionReq.displayName = 'proto.DeletePriceConditionReq';
188
+ }
166
189
  /**
167
190
  * Generated by JsPbCodeGenerator.
168
191
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -247,6 +270,27 @@ if (goog.DEBUG && !COMPILED) {
247
270
  */
248
271
  proto.GetByIdPriceConditionResponse.displayName = 'proto.GetByIdPriceConditionResponse';
249
272
  }
273
+ /**
274
+ * Generated by JsPbCodeGenerator.
275
+ * @param {Array=} opt_data Optional initial data array, typically from a
276
+ * server response, or constructed directly in Javascript. The array is used
277
+ * in place and becomes part of the constructed object. It is not cloned.
278
+ * If no data is provided, the constructed object will be empty, but still
279
+ * valid.
280
+ * @extends {jspb.Message}
281
+ * @constructor
282
+ */
283
+ proto.DeletePriceConditionRes = function(opt_data) {
284
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.DeletePriceConditionRes.repeatedFields_, null);
285
+ };
286
+ goog.inherits(proto.DeletePriceConditionRes, jspb.Message);
287
+ if (goog.DEBUG && !COMPILED) {
288
+ /**
289
+ * @public
290
+ * @override
291
+ */
292
+ proto.DeletePriceConditionRes.displayName = 'proto.DeletePriceConditionRes';
293
+ }
250
294
 
251
295
 
252
296
 
@@ -1835,6 +1879,162 @@ proto.GetListPriceConditionRequest.prototype.hasQuery = function() {
1835
1879
 
1836
1880
 
1837
1881
 
1882
+ /**
1883
+ * List of repeated fields within this message type.
1884
+ * @private {!Array<number>}
1885
+ * @const
1886
+ */
1887
+ proto.DeletePriceConditionReq.repeatedFields_ = [1];
1888
+
1889
+
1890
+
1891
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1892
+ /**
1893
+ * Creates an object representation of this proto.
1894
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1895
+ * Optional fields that are not set will be set to undefined.
1896
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1897
+ * For the list of reserved names please see:
1898
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1899
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1900
+ * JSPB instance for transitional soy proto support:
1901
+ * http://goto/soy-param-migration
1902
+ * @return {!Object}
1903
+ */
1904
+ proto.DeletePriceConditionReq.prototype.toObject = function(opt_includeInstance) {
1905
+ return proto.DeletePriceConditionReq.toObject(opt_includeInstance, this);
1906
+ };
1907
+
1908
+
1909
+ /**
1910
+ * Static version of the {@see toObject} method.
1911
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1912
+ * the JSPB instance for transitional soy proto support:
1913
+ * http://goto/soy-param-migration
1914
+ * @param {!proto.DeletePriceConditionReq} msg The msg instance to transform.
1915
+ * @return {!Object}
1916
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1917
+ */
1918
+ proto.DeletePriceConditionReq.toObject = function(includeInstance, msg) {
1919
+ var f, obj = {
1920
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
1921
+ };
1922
+
1923
+ if (includeInstance) {
1924
+ obj.$jspbMessageInstance = msg;
1925
+ }
1926
+ return obj;
1927
+ };
1928
+ }
1929
+
1930
+
1931
+ /**
1932
+ * Deserializes binary data (in protobuf wire format).
1933
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1934
+ * @return {!proto.DeletePriceConditionReq}
1935
+ */
1936
+ proto.DeletePriceConditionReq.deserializeBinary = function(bytes) {
1937
+ var reader = new jspb.BinaryReader(bytes);
1938
+ var msg = new proto.DeletePriceConditionReq;
1939
+ return proto.DeletePriceConditionReq.deserializeBinaryFromReader(msg, reader);
1940
+ };
1941
+
1942
+
1943
+ /**
1944
+ * Deserializes binary data (in protobuf wire format) from the
1945
+ * given reader into the given message object.
1946
+ * @param {!proto.DeletePriceConditionReq} msg The message object to deserialize into.
1947
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1948
+ * @return {!proto.DeletePriceConditionReq}
1949
+ */
1950
+ proto.DeletePriceConditionReq.deserializeBinaryFromReader = function(msg, reader) {
1951
+ while (reader.nextField()) {
1952
+ if (reader.isEndGroup()) {
1953
+ break;
1954
+ }
1955
+ var field = reader.getFieldNumber();
1956
+ switch (field) {
1957
+ case 1:
1958
+ var value = /** @type {string} */ (reader.readString());
1959
+ msg.addReferenceIds(value);
1960
+ break;
1961
+ default:
1962
+ reader.skipField();
1963
+ break;
1964
+ }
1965
+ }
1966
+ return msg;
1967
+ };
1968
+
1969
+
1970
+ /**
1971
+ * Serializes the message to binary data (in protobuf wire format).
1972
+ * @return {!Uint8Array}
1973
+ */
1974
+ proto.DeletePriceConditionReq.prototype.serializeBinary = function() {
1975
+ var writer = new jspb.BinaryWriter();
1976
+ proto.DeletePriceConditionReq.serializeBinaryToWriter(this, writer);
1977
+ return writer.getResultBuffer();
1978
+ };
1979
+
1980
+
1981
+ /**
1982
+ * Serializes the given message to binary data (in protobuf wire
1983
+ * format), writing to the given BinaryWriter.
1984
+ * @param {!proto.DeletePriceConditionReq} message
1985
+ * @param {!jspb.BinaryWriter} writer
1986
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1987
+ */
1988
+ proto.DeletePriceConditionReq.serializeBinaryToWriter = function(message, writer) {
1989
+ var f = undefined;
1990
+ f = message.getReferenceIdsList();
1991
+ if (f.length > 0) {
1992
+ writer.writeRepeatedString(
1993
+ 1,
1994
+ f
1995
+ );
1996
+ }
1997
+ };
1998
+
1999
+
2000
+ /**
2001
+ * repeated string reference_ids = 1;
2002
+ * @return {!Array<string>}
2003
+ */
2004
+ proto.DeletePriceConditionReq.prototype.getReferenceIdsList = function() {
2005
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2006
+ };
2007
+
2008
+
2009
+ /**
2010
+ * @param {!Array<string>} value
2011
+ * @return {!proto.DeletePriceConditionReq} returns this
2012
+ */
2013
+ proto.DeletePriceConditionReq.prototype.setReferenceIdsList = function(value) {
2014
+ return jspb.Message.setField(this, 1, value || []);
2015
+ };
2016
+
2017
+
2018
+ /**
2019
+ * @param {string} value
2020
+ * @param {number=} opt_index
2021
+ * @return {!proto.DeletePriceConditionReq} returns this
2022
+ */
2023
+ proto.DeletePriceConditionReq.prototype.addReferenceIds = function(value, opt_index) {
2024
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2025
+ };
2026
+
2027
+
2028
+ /**
2029
+ * Clears the list making it empty but non-null.
2030
+ * @return {!proto.DeletePriceConditionReq} returns this
2031
+ */
2032
+ proto.DeletePriceConditionReq.prototype.clearReferenceIdsList = function() {
2033
+ return this.setReferenceIdsList([]);
2034
+ };
2035
+
2036
+
2037
+
1838
2038
 
1839
2039
 
1840
2040
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -2651,4 +2851,211 @@ proto.GetByIdPriceConditionResponse.prototype.hasMeta = function() {
2651
2851
  };
2652
2852
 
2653
2853
 
2854
+
2855
+ /**
2856
+ * List of repeated fields within this message type.
2857
+ * @private {!Array<number>}
2858
+ * @const
2859
+ */
2860
+ proto.DeletePriceConditionRes.repeatedFields_ = [1];
2861
+
2862
+
2863
+
2864
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2865
+ /**
2866
+ * Creates an object representation of this proto.
2867
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2868
+ * Optional fields that are not set will be set to undefined.
2869
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2870
+ * For the list of reserved names please see:
2871
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2872
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2873
+ * JSPB instance for transitional soy proto support:
2874
+ * http://goto/soy-param-migration
2875
+ * @return {!Object}
2876
+ */
2877
+ proto.DeletePriceConditionRes.prototype.toObject = function(opt_includeInstance) {
2878
+ return proto.DeletePriceConditionRes.toObject(opt_includeInstance, this);
2879
+ };
2880
+
2881
+
2882
+ /**
2883
+ * Static version of the {@see toObject} method.
2884
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2885
+ * the JSPB instance for transitional soy proto support:
2886
+ * http://goto/soy-param-migration
2887
+ * @param {!proto.DeletePriceConditionRes} msg The msg instance to transform.
2888
+ * @return {!Object}
2889
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2890
+ */
2891
+ proto.DeletePriceConditionRes.toObject = function(includeInstance, msg) {
2892
+ var f, obj = {
2893
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
2894
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2895
+ };
2896
+
2897
+ if (includeInstance) {
2898
+ obj.$jspbMessageInstance = msg;
2899
+ }
2900
+ return obj;
2901
+ };
2902
+ }
2903
+
2904
+
2905
+ /**
2906
+ * Deserializes binary data (in protobuf wire format).
2907
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2908
+ * @return {!proto.DeletePriceConditionRes}
2909
+ */
2910
+ proto.DeletePriceConditionRes.deserializeBinary = function(bytes) {
2911
+ var reader = new jspb.BinaryReader(bytes);
2912
+ var msg = new proto.DeletePriceConditionRes;
2913
+ return proto.DeletePriceConditionRes.deserializeBinaryFromReader(msg, reader);
2914
+ };
2915
+
2916
+
2917
+ /**
2918
+ * Deserializes binary data (in protobuf wire format) from the
2919
+ * given reader into the given message object.
2920
+ * @param {!proto.DeletePriceConditionRes} msg The message object to deserialize into.
2921
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2922
+ * @return {!proto.DeletePriceConditionRes}
2923
+ */
2924
+ proto.DeletePriceConditionRes.deserializeBinaryFromReader = function(msg, reader) {
2925
+ while (reader.nextField()) {
2926
+ if (reader.isEndGroup()) {
2927
+ break;
2928
+ }
2929
+ var field = reader.getFieldNumber();
2930
+ switch (field) {
2931
+ case 1:
2932
+ var value = /** @type {string} */ (reader.readString());
2933
+ msg.addReferenceIds(value);
2934
+ break;
2935
+ case 2:
2936
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2937
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2938
+ msg.setMeta(value);
2939
+ break;
2940
+ default:
2941
+ reader.skipField();
2942
+ break;
2943
+ }
2944
+ }
2945
+ return msg;
2946
+ };
2947
+
2948
+
2949
+ /**
2950
+ * Serializes the message to binary data (in protobuf wire format).
2951
+ * @return {!Uint8Array}
2952
+ */
2953
+ proto.DeletePriceConditionRes.prototype.serializeBinary = function() {
2954
+ var writer = new jspb.BinaryWriter();
2955
+ proto.DeletePriceConditionRes.serializeBinaryToWriter(this, writer);
2956
+ return writer.getResultBuffer();
2957
+ };
2958
+
2959
+
2960
+ /**
2961
+ * Serializes the given message to binary data (in protobuf wire
2962
+ * format), writing to the given BinaryWriter.
2963
+ * @param {!proto.DeletePriceConditionRes} message
2964
+ * @param {!jspb.BinaryWriter} writer
2965
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2966
+ */
2967
+ proto.DeletePriceConditionRes.serializeBinaryToWriter = function(message, writer) {
2968
+ var f = undefined;
2969
+ f = message.getReferenceIdsList();
2970
+ if (f.length > 0) {
2971
+ writer.writeRepeatedString(
2972
+ 1,
2973
+ f
2974
+ );
2975
+ }
2976
+ f = message.getMeta();
2977
+ if (f != null) {
2978
+ writer.writeMessage(
2979
+ 2,
2980
+ f,
2981
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2982
+ );
2983
+ }
2984
+ };
2985
+
2986
+
2987
+ /**
2988
+ * repeated string reference_ids = 1;
2989
+ * @return {!Array<string>}
2990
+ */
2991
+ proto.DeletePriceConditionRes.prototype.getReferenceIdsList = function() {
2992
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2993
+ };
2994
+
2995
+
2996
+ /**
2997
+ * @param {!Array<string>} value
2998
+ * @return {!proto.DeletePriceConditionRes} returns this
2999
+ */
3000
+ proto.DeletePriceConditionRes.prototype.setReferenceIdsList = function(value) {
3001
+ return jspb.Message.setField(this, 1, value || []);
3002
+ };
3003
+
3004
+
3005
+ /**
3006
+ * @param {string} value
3007
+ * @param {number=} opt_index
3008
+ * @return {!proto.DeletePriceConditionRes} returns this
3009
+ */
3010
+ proto.DeletePriceConditionRes.prototype.addReferenceIds = function(value, opt_index) {
3011
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
3012
+ };
3013
+
3014
+
3015
+ /**
3016
+ * Clears the list making it empty but non-null.
3017
+ * @return {!proto.DeletePriceConditionRes} returns this
3018
+ */
3019
+ proto.DeletePriceConditionRes.prototype.clearReferenceIdsList = function() {
3020
+ return this.setReferenceIdsList([]);
3021
+ };
3022
+
3023
+
3024
+ /**
3025
+ * optional prisca.v1.global.meta.Meta meta = 2;
3026
+ * @return {?proto.prisca.v1.global.meta.Meta}
3027
+ */
3028
+ proto.DeletePriceConditionRes.prototype.getMeta = function() {
3029
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3030
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3031
+ };
3032
+
3033
+
3034
+ /**
3035
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3036
+ * @return {!proto.DeletePriceConditionRes} returns this
3037
+ */
3038
+ proto.DeletePriceConditionRes.prototype.setMeta = function(value) {
3039
+ return jspb.Message.setWrapperField(this, 2, value);
3040
+ };
3041
+
3042
+
3043
+ /**
3044
+ * Clears the message field making it undefined.
3045
+ * @return {!proto.DeletePriceConditionRes} returns this
3046
+ */
3047
+ proto.DeletePriceConditionRes.prototype.clearMeta = function() {
3048
+ return this.setMeta(undefined);
3049
+ };
3050
+
3051
+
3052
+ /**
3053
+ * Returns whether this field is set.
3054
+ * @return {boolean}
3055
+ */
3056
+ proto.DeletePriceConditionRes.prototype.hasMeta = function() {
3057
+ return jspb.Message.getField(this, 2) != null;
3058
+ };
3059
+
3060
+
2654
3061
  goog.object.extend(exports, proto);
@@ -325,7 +325,11 @@ codeName: jspb.Message.getFieldWithDefault(msg, 3, ""),
325
325
  procedure: jspb.Message.getFieldWithDefault(msg, 4, ""),
326
326
  referencesId: jspb.Message.getFieldWithDefault(msg, 5, ""),
327
327
  createdAt: jspb.Message.getFieldWithDefault(msg, 6, ""),
328
- updatedAt: jspb.Message.getFieldWithDefault(msg, 7, "")
328
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 7, ""),
329
+ createdBy: jspb.Message.getFieldWithDefault(msg, 8, ""),
330
+ updatedBy: jspb.Message.getFieldWithDefault(msg, 9, ""),
331
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 10, ""),
332
+ value: jspb.Message.getFieldWithDefault(msg, 11, 0)
329
333
  };
330
334
 
331
335
  if (includeInstance) {
@@ -390,6 +394,22 @@ proto.TaxCode.deserializeBinaryFromReader = function(msg, reader) {
390
394
  var value = /** @type {string} */ (reader.readString());
391
395
  msg.setUpdatedAt(value);
392
396
  break;
397
+ case 8:
398
+ var value = /** @type {string} */ (reader.readString());
399
+ msg.setCreatedBy(value);
400
+ break;
401
+ case 9:
402
+ var value = /** @type {string} */ (reader.readString());
403
+ msg.setUpdatedBy(value);
404
+ break;
405
+ case 10:
406
+ var value = /** @type {string} */ (reader.readString());
407
+ msg.setCompaniesReferencesId(value);
408
+ break;
409
+ case 11:
410
+ var value = /** @type {number} */ (reader.readInt64());
411
+ msg.setValue(value);
412
+ break;
393
413
  default:
394
414
  reader.skipField();
395
415
  break;
@@ -468,6 +488,34 @@ proto.TaxCode.serializeBinaryToWriter = function(message, writer) {
468
488
  f
469
489
  );
470
490
  }
491
+ f = message.getCreatedBy();
492
+ if (f.length > 0) {
493
+ writer.writeString(
494
+ 8,
495
+ f
496
+ );
497
+ }
498
+ f = message.getUpdatedBy();
499
+ if (f.length > 0) {
500
+ writer.writeString(
501
+ 9,
502
+ f
503
+ );
504
+ }
505
+ f = message.getCompaniesReferencesId();
506
+ if (f.length > 0) {
507
+ writer.writeString(
508
+ 10,
509
+ f
510
+ );
511
+ }
512
+ f = message.getValue();
513
+ if (f !== 0) {
514
+ writer.writeInt64(
515
+ 11,
516
+ f
517
+ );
518
+ }
471
519
  };
472
520
 
473
521
 
@@ -597,6 +645,78 @@ proto.TaxCode.prototype.setUpdatedAt = function(value) {
597
645
  };
598
646
 
599
647
 
648
+ /**
649
+ * optional string created_by = 8;
650
+ * @return {string}
651
+ */
652
+ proto.TaxCode.prototype.getCreatedBy = function() {
653
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
654
+ };
655
+
656
+
657
+ /**
658
+ * @param {string} value
659
+ * @return {!proto.TaxCode} returns this
660
+ */
661
+ proto.TaxCode.prototype.setCreatedBy = function(value) {
662
+ return jspb.Message.setProto3StringField(this, 8, value);
663
+ };
664
+
665
+
666
+ /**
667
+ * optional string updated_by = 9;
668
+ * @return {string}
669
+ */
670
+ proto.TaxCode.prototype.getUpdatedBy = function() {
671
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
672
+ };
673
+
674
+
675
+ /**
676
+ * @param {string} value
677
+ * @return {!proto.TaxCode} returns this
678
+ */
679
+ proto.TaxCode.prototype.setUpdatedBy = function(value) {
680
+ return jspb.Message.setProto3StringField(this, 9, value);
681
+ };
682
+
683
+
684
+ /**
685
+ * optional string companies_references_id = 10;
686
+ * @return {string}
687
+ */
688
+ proto.TaxCode.prototype.getCompaniesReferencesId = function() {
689
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
690
+ };
691
+
692
+
693
+ /**
694
+ * @param {string} value
695
+ * @return {!proto.TaxCode} returns this
696
+ */
697
+ proto.TaxCode.prototype.setCompaniesReferencesId = function(value) {
698
+ return jspb.Message.setProto3StringField(this, 10, value);
699
+ };
700
+
701
+
702
+ /**
703
+ * optional int64 value = 11;
704
+ * @return {number}
705
+ */
706
+ proto.TaxCode.prototype.getValue = function() {
707
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
708
+ };
709
+
710
+
711
+ /**
712
+ * @param {number} value
713
+ * @return {!proto.TaxCode} returns this
714
+ */
715
+ proto.TaxCode.prototype.setValue = function(value) {
716
+ return jspb.Message.setProto3IntField(this, 11, value);
717
+ };
718
+
719
+
600
720
 
601
721
 
602
722
 
@@ -631,7 +751,8 @@ proto.BaseTaxCode.toObject = function(includeInstance, msg) {
631
751
  var f, obj = {
632
752
  code: jspb.Message.getFieldWithDefault(msg, 1, ""),
633
753
  codeName: jspb.Message.getFieldWithDefault(msg, 2, ""),
634
- procedure: jspb.Message.getFieldWithDefault(msg, 3, "")
754
+ procedure: jspb.Message.getFieldWithDefault(msg, 3, ""),
755
+ value: jspb.Message.getFieldWithDefault(msg, 4, 0)
635
756
  };
636
757
 
637
758
  if (includeInstance) {
@@ -680,6 +801,10 @@ proto.BaseTaxCode.deserializeBinaryFromReader = function(msg, reader) {
680
801
  var value = /** @type {string} */ (reader.readString());
681
802
  msg.setProcedure(value);
682
803
  break;
804
+ case 4:
805
+ var value = /** @type {number} */ (reader.readInt64());
806
+ msg.setValue(value);
807
+ break;
683
808
  default:
684
809
  reader.skipField();
685
810
  break;
@@ -730,6 +855,13 @@ proto.BaseTaxCode.serializeBinaryToWriter = function(message, writer) {
730
855
  f
731
856
  );
732
857
  }
858
+ f = message.getValue();
859
+ if (f !== 0) {
860
+ writer.writeInt64(
861
+ 4,
862
+ f
863
+ );
864
+ }
733
865
  };
734
866
 
735
867
 
@@ -787,6 +919,24 @@ proto.BaseTaxCode.prototype.setProcedure = function(value) {
787
919
  };
788
920
 
789
921
 
922
+ /**
923
+ * optional int64 value = 4;
924
+ * @return {number}
925
+ */
926
+ proto.BaseTaxCode.prototype.getValue = function() {
927
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
928
+ };
929
+
930
+
931
+ /**
932
+ * @param {number} value
933
+ * @return {!proto.BaseTaxCode} returns this
934
+ */
935
+ proto.BaseTaxCode.prototype.setValue = function(value) {
936
+ return jspb.Message.setProto3IntField(this, 4, value);
937
+ };
938
+
939
+
790
940
 
791
941
 
792
942
 
@@ -27,6 +27,28 @@ function deserialize_CreateTermOfPaymentRes(buffer_arg) {
27
27
  return prisca_v1_core_term_of_payment_term_of_payment_pb.CreateTermOfPaymentRes.deserializeBinary(new Uint8Array(buffer_arg));
28
28
  }
29
29
 
30
+ function serialize_DeleteTermOfPaymentReq(arg) {
31
+ if (!(arg instanceof prisca_v1_core_term_of_payment_term_of_payment_pb.DeleteTermOfPaymentReq)) {
32
+ throw new Error('Expected argument of type DeleteTermOfPaymentReq');
33
+ }
34
+ return Buffer.from(arg.serializeBinary());
35
+ }
36
+
37
+ function deserialize_DeleteTermOfPaymentReq(buffer_arg) {
38
+ return prisca_v1_core_term_of_payment_term_of_payment_pb.DeleteTermOfPaymentReq.deserializeBinary(new Uint8Array(buffer_arg));
39
+ }
40
+
41
+ function serialize_DeleteTermOfPaymentRes(arg) {
42
+ if (!(arg instanceof prisca_v1_core_term_of_payment_term_of_payment_pb.DeleteTermOfPaymentRes)) {
43
+ throw new Error('Expected argument of type DeleteTermOfPaymentRes');
44
+ }
45
+ return Buffer.from(arg.serializeBinary());
46
+ }
47
+
48
+ function deserialize_DeleteTermOfPaymentRes(buffer_arg) {
49
+ return prisca_v1_core_term_of_payment_term_of_payment_pb.DeleteTermOfPaymentRes.deserializeBinary(new Uint8Array(buffer_arg));
50
+ }
51
+
30
52
  function serialize_GetListTermOfPaymentReq(arg) {
31
53
  if (!(arg instanceof prisca_v1_core_term_of_payment_term_of_payment_pb.GetListTermOfPaymentReq)) {
32
54
  throw new Error('Expected argument of type GetListTermOfPaymentReq');
@@ -139,6 +161,17 @@ var TermOfPaymentServiceService = exports.TermOfPaymentServiceService = {
139
161
  responseSerialize: serialize_GetListTermOfPaymentRes,
140
162
  responseDeserialize: deserialize_GetListTermOfPaymentRes,
141
163
  },
164
+ deleteTermOfPayment: {
165
+ path: '/TermOfPaymentService/DeleteTermOfPayment',
166
+ requestStream: false,
167
+ responseStream: false,
168
+ requestType: prisca_v1_core_term_of_payment_term_of_payment_pb.DeleteTermOfPaymentReq,
169
+ responseType: prisca_v1_core_term_of_payment_term_of_payment_pb.DeleteTermOfPaymentRes,
170
+ requestSerialize: serialize_DeleteTermOfPaymentReq,
171
+ requestDeserialize: deserialize_DeleteTermOfPaymentReq,
172
+ responseSerialize: serialize_DeleteTermOfPaymentRes,
173
+ responseDeserialize: deserialize_DeleteTermOfPaymentRes,
174
+ },
142
175
  };
143
176
 
144
177
  exports.TermOfPaymentServiceClient = grpc.makeGenericClientConstructor(TermOfPaymentServiceService, 'TermOfPaymentService');