@aldiokta/protocgen 1.1.64 → 1.1.66

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.
@@ -35,10 +35,12 @@ var prisca_v1_core_transaction_builder_transaction_builder_pb = require('../../.
35
35
  goog.object.extend(proto, prisca_v1_core_transaction_builder_transaction_builder_pb);
36
36
  goog.exportSymbol('proto.BaseInvoice', null, global);
37
37
  goog.exportSymbol('proto.BaseInvoiceWithoutPO', null, global);
38
+ goog.exportSymbol('proto.BaseVendorInvoiceWithoutPO', null, global);
38
39
  goog.exportSymbol('proto.CreateDownPaymentInvoiceReq', null, global);
39
40
  goog.exportSymbol('proto.CreateInvoiceReq', null, global);
40
41
  goog.exportSymbol('proto.CreateInvoiceRes', null, global);
41
42
  goog.exportSymbol('proto.CreateInvoiceWithoutPOReq', null, global);
43
+ goog.exportSymbol('proto.CreateVendorInvoiceWithoutPOReq', null, global);
42
44
  goog.exportSymbol('proto.DeleteInvoiceRequest', null, global);
43
45
  goog.exportSymbol('proto.DeleteInvoiceResponse', null, global);
44
46
  goog.exportSymbol('proto.GetInvoiceByIdReq', null, global);
@@ -143,6 +145,48 @@ if (goog.DEBUG && !COMPILED) {
143
145
  */
144
146
  proto.CreateInvoiceWithoutPOReq.displayName = 'proto.CreateInvoiceWithoutPOReq';
145
147
  }
148
+ /**
149
+ * Generated by JsPbCodeGenerator.
150
+ * @param {Array=} opt_data Optional initial data array, typically from a
151
+ * server response, or constructed directly in Javascript. The array is used
152
+ * in place and becomes part of the constructed object. It is not cloned.
153
+ * If no data is provided, the constructed object will be empty, but still
154
+ * valid.
155
+ * @extends {jspb.Message}
156
+ * @constructor
157
+ */
158
+ proto.BaseVendorInvoiceWithoutPO = function(opt_data) {
159
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.BaseVendorInvoiceWithoutPO.repeatedFields_, null);
160
+ };
161
+ goog.inherits(proto.BaseVendorInvoiceWithoutPO, jspb.Message);
162
+ if (goog.DEBUG && !COMPILED) {
163
+ /**
164
+ * @public
165
+ * @override
166
+ */
167
+ proto.BaseVendorInvoiceWithoutPO.displayName = 'proto.BaseVendorInvoiceWithoutPO';
168
+ }
169
+ /**
170
+ * Generated by JsPbCodeGenerator.
171
+ * @param {Array=} opt_data Optional initial data array, typically from a
172
+ * server response, or constructed directly in Javascript. The array is used
173
+ * in place and becomes part of the constructed object. It is not cloned.
174
+ * If no data is provided, the constructed object will be empty, but still
175
+ * valid.
176
+ * @extends {jspb.Message}
177
+ * @constructor
178
+ */
179
+ proto.CreateVendorInvoiceWithoutPOReq = function(opt_data) {
180
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
181
+ };
182
+ goog.inherits(proto.CreateVendorInvoiceWithoutPOReq, jspb.Message);
183
+ if (goog.DEBUG && !COMPILED) {
184
+ /**
185
+ * @public
186
+ * @override
187
+ */
188
+ proto.CreateVendorInvoiceWithoutPOReq.displayName = 'proto.CreateVendorInvoiceWithoutPOReq';
189
+ }
146
190
  /**
147
191
  * Generated by JsPbCodeGenerator.
148
192
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -2086,7 +2130,8 @@ dueDate: jspb.Message.getFieldWithDefault(msg, 18, ""),
2086
2130
  termOfPayment: jspb.Message.getFieldWithDefault(msg, 19, ""),
2087
2131
  invoiceConditionsList: jspb.Message.toObjectList(msg.getInvoiceConditionsList(),
2088
2132
  prisca_v1_purchase_order_purchase_order_pb.InvoiceCondition.toObject, includeInstance),
2089
- department: jspb.Message.getFieldWithDefault(msg, 40, "")
2133
+ department: jspb.Message.getFieldWithDefault(msg, 40, ""),
2134
+ documentType: jspb.Message.getFieldWithDefault(msg, 41, "")
2090
2135
  };
2091
2136
 
2092
2137
  if (includeInstance) {
@@ -2211,6 +2256,10 @@ proto.BaseInvoiceWithoutPO.deserializeBinaryFromReader = function(msg, reader) {
2211
2256
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
2212
2257
  msg.setDepartment(value);
2213
2258
  break;
2259
+ case 41:
2260
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2261
+ msg.setDocumentType(value);
2262
+ break;
2214
2263
  default:
2215
2264
  reader.skipField();
2216
2265
  break;
@@ -2391,6 +2440,13 @@ proto.BaseInvoiceWithoutPO.serializeBinaryToWriter = function(message, writer) {
2391
2440
  f
2392
2441
  );
2393
2442
  }
2443
+ f = message.getDocumentType();
2444
+ if (f.length > 0) {
2445
+ writer.writeString(
2446
+ 41,
2447
+ f
2448
+ );
2449
+ }
2394
2450
  };
2395
2451
 
2396
2452
 
@@ -2852,6 +2908,24 @@ proto.BaseInvoiceWithoutPO.prototype.setDepartment = function(value) {
2852
2908
  };
2853
2909
 
2854
2910
 
2911
+ /**
2912
+ * optional string document_type = 41;
2913
+ * @return {string}
2914
+ */
2915
+ proto.BaseInvoiceWithoutPO.prototype.getDocumentType = function() {
2916
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 41, ""));
2917
+ };
2918
+
2919
+
2920
+ /**
2921
+ * @param {string} value
2922
+ * @return {!proto.BaseInvoiceWithoutPO} returns this
2923
+ */
2924
+ proto.BaseInvoiceWithoutPO.prototype.setDocumentType = function(value) {
2925
+ return jspb.Message.setProto3StringField(this, 41, value);
2926
+ };
2927
+
2928
+
2855
2929
 
2856
2930
 
2857
2931
 
@@ -3004,6 +3078,13 @@ proto.CreateInvoiceWithoutPOReq.prototype.hasBaseInvoiceWithoutPo = function() {
3004
3078
 
3005
3079
 
3006
3080
 
3081
+ /**
3082
+ * List of repeated fields within this message type.
3083
+ * @private {!Array<number>}
3084
+ * @const
3085
+ */
3086
+ proto.BaseVendorInvoiceWithoutPO.repeatedFields_ = [4,5,9,12];
3087
+
3007
3088
 
3008
3089
 
3009
3090
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -3019,8 +3100,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
3019
3100
  * http://goto/soy-param-migration
3020
3101
  * @return {!Object}
3021
3102
  */
3022
- proto.CreateInvoiceReq.prototype.toObject = function(opt_includeInstance) {
3023
- return proto.CreateInvoiceReq.toObject(opt_includeInstance, this);
3103
+ proto.BaseVendorInvoiceWithoutPO.prototype.toObject = function(opt_includeInstance) {
3104
+ return proto.BaseVendorInvoiceWithoutPO.toObject(opt_includeInstance, this);
3024
3105
  };
3025
3106
 
3026
3107
 
@@ -3029,13 +3110,31 @@ proto.CreateInvoiceReq.prototype.toObject = function(opt_includeInstance) {
3029
3110
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3030
3111
  * the JSPB instance for transitional soy proto support:
3031
3112
  * http://goto/soy-param-migration
3032
- * @param {!proto.CreateInvoiceReq} msg The msg instance to transform.
3113
+ * @param {!proto.BaseVendorInvoiceWithoutPO} msg The msg instance to transform.
3033
3114
  * @return {!Object}
3034
3115
  * @suppress {unusedLocalVariables} f is only used for nested messages
3035
3116
  */
3036
- proto.CreateInvoiceReq.toObject = function(includeInstance, msg) {
3117
+ proto.BaseVendorInvoiceWithoutPO.toObject = function(includeInstance, msg) {
3037
3118
  var f, obj = {
3038
- baseInvoice: (f = msg.getBaseInvoice()) && proto.BaseInvoice.toObject(includeInstance, f)
3119
+ invoiceSubject: jspb.Message.getFieldWithDefault(msg, 1, ""),
3120
+ invoiceNumber: jspb.Message.getFieldWithDefault(msg, 2, ""),
3121
+ invoiceDate: jspb.Message.getFieldWithDefault(msg, 3, ""),
3122
+ itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
3123
+ prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.toObject, includeInstance),
3124
+ filesList: jspb.Message.toObjectList(msg.getFilesList(),
3125
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
3126
+ transactionType: jspb.Message.getFieldWithDefault(msg, 6, ""),
3127
+ status: jspb.Message.getFieldWithDefault(msg, 7, ""),
3128
+ remarks: jspb.Message.getFieldWithDefault(msg, 8, ""),
3129
+ shippingFilesList: jspb.Message.toObjectList(msg.getShippingFilesList(),
3130
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
3131
+ customTransaction: jspb.Message.getFieldWithDefault(msg, 10, ""),
3132
+ currency: jspb.Message.getFieldWithDefault(msg, 11, ""),
3133
+ invoiceConditionsList: jspb.Message.toObjectList(msg.getInvoiceConditionsList(),
3134
+ prisca_v1_purchase_order_purchase_order_pb.InvoiceCondition.toObject, includeInstance),
3135
+ plant: jspb.Message.getFieldWithDefault(msg, 13, ""),
3136
+ department: jspb.Message.getFieldWithDefault(msg, 14, ""),
3137
+ documentType: jspb.Message.getFieldWithDefault(msg, 15, "")
3039
3138
  };
3040
3139
 
3041
3140
  if (includeInstance) {
@@ -3049,23 +3148,23 @@ baseInvoice: (f = msg.getBaseInvoice()) && proto.BaseInvoice.toObject(includeIns
3049
3148
  /**
3050
3149
  * Deserializes binary data (in protobuf wire format).
3051
3150
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
3052
- * @return {!proto.CreateInvoiceReq}
3151
+ * @return {!proto.BaseVendorInvoiceWithoutPO}
3053
3152
  */
3054
- proto.CreateInvoiceReq.deserializeBinary = function(bytes) {
3153
+ proto.BaseVendorInvoiceWithoutPO.deserializeBinary = function(bytes) {
3055
3154
  var reader = new jspb.BinaryReader(bytes);
3056
- var msg = new proto.CreateInvoiceReq;
3057
- return proto.CreateInvoiceReq.deserializeBinaryFromReader(msg, reader);
3155
+ var msg = new proto.BaseVendorInvoiceWithoutPO;
3156
+ return proto.BaseVendorInvoiceWithoutPO.deserializeBinaryFromReader(msg, reader);
3058
3157
  };
3059
3158
 
3060
3159
 
3061
3160
  /**
3062
3161
  * Deserializes binary data (in protobuf wire format) from the
3063
3162
  * given reader into the given message object.
3064
- * @param {!proto.CreateInvoiceReq} msg The message object to deserialize into.
3163
+ * @param {!proto.BaseVendorInvoiceWithoutPO} msg The message object to deserialize into.
3065
3164
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3066
- * @return {!proto.CreateInvoiceReq}
3165
+ * @return {!proto.BaseVendorInvoiceWithoutPO}
3067
3166
  */
3068
- proto.CreateInvoiceReq.deserializeBinaryFromReader = function(msg, reader) {
3167
+ proto.BaseVendorInvoiceWithoutPO.deserializeBinaryFromReader = function(msg, reader) {
3069
3168
  while (reader.nextField()) {
3070
3169
  if (reader.isEndGroup()) {
3071
3170
  break;
@@ -3073,9 +3172,68 @@ proto.CreateInvoiceReq.deserializeBinaryFromReader = function(msg, reader) {
3073
3172
  var field = reader.getFieldNumber();
3074
3173
  switch (field) {
3075
3174
  case 1:
3076
- var value = new proto.BaseInvoice;
3077
- reader.readMessage(value,proto.BaseInvoice.deserializeBinaryFromReader);
3078
- msg.setBaseInvoice(value);
3175
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3176
+ msg.setInvoiceSubject(value);
3177
+ break;
3178
+ case 2:
3179
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3180
+ msg.setInvoiceNumber(value);
3181
+ break;
3182
+ case 3:
3183
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3184
+ msg.setInvoiceDate(value);
3185
+ break;
3186
+ case 4:
3187
+ var value = new prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction;
3188
+ reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.deserializeBinaryFromReader);
3189
+ msg.addItemTransactions(value);
3190
+ break;
3191
+ case 5:
3192
+ var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
3193
+ reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
3194
+ msg.addFiles(value);
3195
+ break;
3196
+ case 6:
3197
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3198
+ msg.setTransactionType(value);
3199
+ break;
3200
+ case 7:
3201
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3202
+ msg.setStatus(value);
3203
+ break;
3204
+ case 8:
3205
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3206
+ msg.setRemarks(value);
3207
+ break;
3208
+ case 9:
3209
+ var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
3210
+ reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
3211
+ msg.addShippingFiles(value);
3212
+ break;
3213
+ case 10:
3214
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3215
+ msg.setCustomTransaction(value);
3216
+ break;
3217
+ case 11:
3218
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3219
+ msg.setCurrency(value);
3220
+ break;
3221
+ case 12:
3222
+ var value = new prisca_v1_purchase_order_purchase_order_pb.InvoiceCondition;
3223
+ reader.readMessage(value,prisca_v1_purchase_order_purchase_order_pb.InvoiceCondition.deserializeBinaryFromReader);
3224
+ msg.addInvoiceConditions(value);
3225
+ break;
3226
+ case 13:
3227
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3228
+ msg.setPlant(value);
3229
+ break;
3230
+ case 14:
3231
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3232
+ msg.setDepartment(value);
3233
+ break;
3234
+ case 15:
3235
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3236
+ msg.setDocumentType(value);
3079
3237
  break;
3080
3238
  default:
3081
3239
  reader.skipField();
@@ -3090,9 +3248,9 @@ proto.CreateInvoiceReq.deserializeBinaryFromReader = function(msg, reader) {
3090
3248
  * Serializes the message to binary data (in protobuf wire format).
3091
3249
  * @return {!Uint8Array}
3092
3250
  */
3093
- proto.CreateInvoiceReq.prototype.serializeBinary = function() {
3251
+ proto.BaseVendorInvoiceWithoutPO.prototype.serializeBinary = function() {
3094
3252
  var writer = new jspb.BinaryWriter();
3095
- proto.CreateInvoiceReq.serializeBinaryToWriter(this, writer);
3253
+ proto.BaseVendorInvoiceWithoutPO.serializeBinaryToWriter(this, writer);
3096
3254
  return writer.getResultBuffer();
3097
3255
  };
3098
3256
 
@@ -3100,103 +3258,819 @@ proto.CreateInvoiceReq.prototype.serializeBinary = function() {
3100
3258
  /**
3101
3259
  * Serializes the given message to binary data (in protobuf wire
3102
3260
  * format), writing to the given BinaryWriter.
3103
- * @param {!proto.CreateInvoiceReq} message
3261
+ * @param {!proto.BaseVendorInvoiceWithoutPO} message
3104
3262
  * @param {!jspb.BinaryWriter} writer
3105
3263
  * @suppress {unusedLocalVariables} f is only used for nested messages
3106
3264
  */
3107
- proto.CreateInvoiceReq.serializeBinaryToWriter = function(message, writer) {
3265
+ proto.BaseVendorInvoiceWithoutPO.serializeBinaryToWriter = function(message, writer) {
3108
3266
  var f = undefined;
3109
- f = message.getBaseInvoice();
3110
- if (f != null) {
3111
- writer.writeMessage(
3267
+ f = message.getInvoiceSubject();
3268
+ if (f.length > 0) {
3269
+ writer.writeString(
3112
3270
  1,
3113
- f,
3114
- proto.BaseInvoice.serializeBinaryToWriter
3271
+ f
3115
3272
  );
3116
3273
  }
3117
- };
3118
-
3119
-
3120
- /**
3121
- * optional BaseInvoice base_invoice = 1;
3122
- * @return {?proto.BaseInvoice}
3123
- */
3124
- proto.CreateInvoiceReq.prototype.getBaseInvoice = function() {
3125
- return /** @type{?proto.BaseInvoice} */ (
3126
- jspb.Message.getWrapperField(this, proto.BaseInvoice, 1));
3127
- };
3128
-
3129
-
3130
- /**
3131
- * @param {?proto.BaseInvoice|undefined} value
3132
- * @return {!proto.CreateInvoiceReq} returns this
3133
- */
3134
- proto.CreateInvoiceReq.prototype.setBaseInvoice = function(value) {
3135
- return jspb.Message.setWrapperField(this, 1, value);
3136
- };
3137
-
3138
-
3139
- /**
3140
- * Clears the message field making it undefined.
3141
- * @return {!proto.CreateInvoiceReq} returns this
3142
- */
3143
- proto.CreateInvoiceReq.prototype.clearBaseInvoice = function() {
3144
- return this.setBaseInvoice(undefined);
3145
- };
3146
-
3147
-
3148
- /**
3149
- * Returns whether this field is set.
3150
- * @return {boolean}
3151
- */
3152
- proto.CreateInvoiceReq.prototype.hasBaseInvoice = function() {
3153
- return jspb.Message.getField(this, 1) != null;
3154
- };
3155
-
3156
-
3157
-
3158
-
3159
-
3160
- if (jspb.Message.GENERATE_TO_OBJECT) {
3161
- /**
3162
- * Creates an object representation of this proto.
3163
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3164
- * Optional fields that are not set will be set to undefined.
3165
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3166
- * For the list of reserved names please see:
3167
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3168
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3169
- * JSPB instance for transitional soy proto support:
3170
- * http://goto/soy-param-migration
3171
- * @return {!Object}
3172
- */
3173
- proto.CreateInvoiceRes.prototype.toObject = function(opt_includeInstance) {
3174
- return proto.CreateInvoiceRes.toObject(opt_includeInstance, this);
3175
- };
3176
-
3177
-
3178
- /**
3179
- * Static version of the {@see toObject} method.
3180
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3181
- * the JSPB instance for transitional soy proto support:
3182
- * http://goto/soy-param-migration
3183
- * @param {!proto.CreateInvoiceRes} msg The msg instance to transform.
3184
- * @return {!Object}
3185
- * @suppress {unusedLocalVariables} f is only used for nested messages
3186
- */
3187
- proto.CreateInvoiceRes.toObject = function(includeInstance, msg) {
3188
- var f, obj = {
3189
- invoice: (f = msg.getInvoice()) && prisca_v1_purchase_order_purchase_order_pb.Invoice.toObject(includeInstance, f),
3190
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3191
- };
3192
-
3193
- if (includeInstance) {
3194
- obj.$jspbMessageInstance = msg;
3274
+ f = message.getInvoiceNumber();
3275
+ if (f.length > 0) {
3276
+ writer.writeString(
3277
+ 2,
3278
+ f
3279
+ );
3195
3280
  }
3196
- return obj;
3197
- };
3198
- }
3199
-
3281
+ f = message.getInvoiceDate();
3282
+ if (f.length > 0) {
3283
+ writer.writeString(
3284
+ 3,
3285
+ f
3286
+ );
3287
+ }
3288
+ f = message.getItemTransactionsList();
3289
+ if (f.length > 0) {
3290
+ writer.writeRepeatedMessage(
3291
+ 4,
3292
+ f,
3293
+ prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.serializeBinaryToWriter
3294
+ );
3295
+ }
3296
+ f = message.getFilesList();
3297
+ if (f.length > 0) {
3298
+ writer.writeRepeatedMessage(
3299
+ 5,
3300
+ f,
3301
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
3302
+ );
3303
+ }
3304
+ f = message.getTransactionType();
3305
+ if (f.length > 0) {
3306
+ writer.writeString(
3307
+ 6,
3308
+ f
3309
+ );
3310
+ }
3311
+ f = message.getStatus();
3312
+ if (f.length > 0) {
3313
+ writer.writeString(
3314
+ 7,
3315
+ f
3316
+ );
3317
+ }
3318
+ f = message.getRemarks();
3319
+ if (f.length > 0) {
3320
+ writer.writeString(
3321
+ 8,
3322
+ f
3323
+ );
3324
+ }
3325
+ f = message.getShippingFilesList();
3326
+ if (f.length > 0) {
3327
+ writer.writeRepeatedMessage(
3328
+ 9,
3329
+ f,
3330
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
3331
+ );
3332
+ }
3333
+ f = message.getCustomTransaction();
3334
+ if (f.length > 0) {
3335
+ writer.writeString(
3336
+ 10,
3337
+ f
3338
+ );
3339
+ }
3340
+ f = message.getCurrency();
3341
+ if (f.length > 0) {
3342
+ writer.writeString(
3343
+ 11,
3344
+ f
3345
+ );
3346
+ }
3347
+ f = message.getInvoiceConditionsList();
3348
+ if (f.length > 0) {
3349
+ writer.writeRepeatedMessage(
3350
+ 12,
3351
+ f,
3352
+ prisca_v1_purchase_order_purchase_order_pb.InvoiceCondition.serializeBinaryToWriter
3353
+ );
3354
+ }
3355
+ f = message.getPlant();
3356
+ if (f.length > 0) {
3357
+ writer.writeString(
3358
+ 13,
3359
+ f
3360
+ );
3361
+ }
3362
+ f = message.getDepartment();
3363
+ if (f.length > 0) {
3364
+ writer.writeString(
3365
+ 14,
3366
+ f
3367
+ );
3368
+ }
3369
+ f = message.getDocumentType();
3370
+ if (f.length > 0) {
3371
+ writer.writeString(
3372
+ 15,
3373
+ f
3374
+ );
3375
+ }
3376
+ };
3377
+
3378
+
3379
+ /**
3380
+ * optional string invoice_subject = 1;
3381
+ * @return {string}
3382
+ */
3383
+ proto.BaseVendorInvoiceWithoutPO.prototype.getInvoiceSubject = function() {
3384
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3385
+ };
3386
+
3387
+
3388
+ /**
3389
+ * @param {string} value
3390
+ * @return {!proto.BaseVendorInvoiceWithoutPO} returns this
3391
+ */
3392
+ proto.BaseVendorInvoiceWithoutPO.prototype.setInvoiceSubject = function(value) {
3393
+ return jspb.Message.setProto3StringField(this, 1, value);
3394
+ };
3395
+
3396
+
3397
+ /**
3398
+ * optional string invoice_number = 2;
3399
+ * @return {string}
3400
+ */
3401
+ proto.BaseVendorInvoiceWithoutPO.prototype.getInvoiceNumber = function() {
3402
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3403
+ };
3404
+
3405
+
3406
+ /**
3407
+ * @param {string} value
3408
+ * @return {!proto.BaseVendorInvoiceWithoutPO} returns this
3409
+ */
3410
+ proto.BaseVendorInvoiceWithoutPO.prototype.setInvoiceNumber = function(value) {
3411
+ return jspb.Message.setProto3StringField(this, 2, value);
3412
+ };
3413
+
3414
+
3415
+ /**
3416
+ * optional string invoice_date = 3;
3417
+ * @return {string}
3418
+ */
3419
+ proto.BaseVendorInvoiceWithoutPO.prototype.getInvoiceDate = function() {
3420
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3421
+ };
3422
+
3423
+
3424
+ /**
3425
+ * @param {string} value
3426
+ * @return {!proto.BaseVendorInvoiceWithoutPO} returns this
3427
+ */
3428
+ proto.BaseVendorInvoiceWithoutPO.prototype.setInvoiceDate = function(value) {
3429
+ return jspb.Message.setProto3StringField(this, 3, value);
3430
+ };
3431
+
3432
+
3433
+ /**
3434
+ * repeated ItemTransaction item_transactions = 4;
3435
+ * @return {!Array<!proto.ItemTransaction>}
3436
+ */
3437
+ proto.BaseVendorInvoiceWithoutPO.prototype.getItemTransactionsList = function() {
3438
+ return /** @type{!Array<!proto.ItemTransaction>} */ (
3439
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction, 4));
3440
+ };
3441
+
3442
+
3443
+ /**
3444
+ * @param {!Array<!proto.ItemTransaction>} value
3445
+ * @return {!proto.BaseVendorInvoiceWithoutPO} returns this
3446
+ */
3447
+ proto.BaseVendorInvoiceWithoutPO.prototype.setItemTransactionsList = function(value) {
3448
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
3449
+ };
3450
+
3451
+
3452
+ /**
3453
+ * @param {!proto.ItemTransaction=} opt_value
3454
+ * @param {number=} opt_index
3455
+ * @return {!proto.ItemTransaction}
3456
+ */
3457
+ proto.BaseVendorInvoiceWithoutPO.prototype.addItemTransactions = function(opt_value, opt_index) {
3458
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.ItemTransaction, opt_index);
3459
+ };
3460
+
3461
+
3462
+ /**
3463
+ * Clears the list making it empty but non-null.
3464
+ * @return {!proto.BaseVendorInvoiceWithoutPO} returns this
3465
+ */
3466
+ proto.BaseVendorInvoiceWithoutPO.prototype.clearItemTransactionsList = function() {
3467
+ return this.setItemTransactionsList([]);
3468
+ };
3469
+
3470
+
3471
+ /**
3472
+ * repeated FileUploadReferencesReq files = 5;
3473
+ * @return {!Array<!proto.FileUploadReferencesReq>}
3474
+ */
3475
+ proto.BaseVendorInvoiceWithoutPO.prototype.getFilesList = function() {
3476
+ return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
3477
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 5));
3478
+ };
3479
+
3480
+
3481
+ /**
3482
+ * @param {!Array<!proto.FileUploadReferencesReq>} value
3483
+ * @return {!proto.BaseVendorInvoiceWithoutPO} returns this
3484
+ */
3485
+ proto.BaseVendorInvoiceWithoutPO.prototype.setFilesList = function(value) {
3486
+ return jspb.Message.setRepeatedWrapperField(this, 5, value);
3487
+ };
3488
+
3489
+
3490
+ /**
3491
+ * @param {!proto.FileUploadReferencesReq=} opt_value
3492
+ * @param {number=} opt_index
3493
+ * @return {!proto.FileUploadReferencesReq}
3494
+ */
3495
+ proto.BaseVendorInvoiceWithoutPO.prototype.addFiles = function(opt_value, opt_index) {
3496
+ return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.FileUploadReferencesReq, opt_index);
3497
+ };
3498
+
3499
+
3500
+ /**
3501
+ * Clears the list making it empty but non-null.
3502
+ * @return {!proto.BaseVendorInvoiceWithoutPO} returns this
3503
+ */
3504
+ proto.BaseVendorInvoiceWithoutPO.prototype.clearFilesList = function() {
3505
+ return this.setFilesList([]);
3506
+ };
3507
+
3508
+
3509
+ /**
3510
+ * optional string transaction_type = 6;
3511
+ * @return {string}
3512
+ */
3513
+ proto.BaseVendorInvoiceWithoutPO.prototype.getTransactionType = function() {
3514
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
3515
+ };
3516
+
3517
+
3518
+ /**
3519
+ * @param {string} value
3520
+ * @return {!proto.BaseVendorInvoiceWithoutPO} returns this
3521
+ */
3522
+ proto.BaseVendorInvoiceWithoutPO.prototype.setTransactionType = function(value) {
3523
+ return jspb.Message.setProto3StringField(this, 6, value);
3524
+ };
3525
+
3526
+
3527
+ /**
3528
+ * optional string status = 7;
3529
+ * @return {string}
3530
+ */
3531
+ proto.BaseVendorInvoiceWithoutPO.prototype.getStatus = function() {
3532
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
3533
+ };
3534
+
3535
+
3536
+ /**
3537
+ * @param {string} value
3538
+ * @return {!proto.BaseVendorInvoiceWithoutPO} returns this
3539
+ */
3540
+ proto.BaseVendorInvoiceWithoutPO.prototype.setStatus = function(value) {
3541
+ return jspb.Message.setProto3StringField(this, 7, value);
3542
+ };
3543
+
3544
+
3545
+ /**
3546
+ * optional string remarks = 8;
3547
+ * @return {string}
3548
+ */
3549
+ proto.BaseVendorInvoiceWithoutPO.prototype.getRemarks = function() {
3550
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
3551
+ };
3552
+
3553
+
3554
+ /**
3555
+ * @param {string} value
3556
+ * @return {!proto.BaseVendorInvoiceWithoutPO} returns this
3557
+ */
3558
+ proto.BaseVendorInvoiceWithoutPO.prototype.setRemarks = function(value) {
3559
+ return jspb.Message.setProto3StringField(this, 8, value);
3560
+ };
3561
+
3562
+
3563
+ /**
3564
+ * repeated FileUploadReferencesReq shipping_files = 9;
3565
+ * @return {!Array<!proto.FileUploadReferencesReq>}
3566
+ */
3567
+ proto.BaseVendorInvoiceWithoutPO.prototype.getShippingFilesList = function() {
3568
+ return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
3569
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 9));
3570
+ };
3571
+
3572
+
3573
+ /**
3574
+ * @param {!Array<!proto.FileUploadReferencesReq>} value
3575
+ * @return {!proto.BaseVendorInvoiceWithoutPO} returns this
3576
+ */
3577
+ proto.BaseVendorInvoiceWithoutPO.prototype.setShippingFilesList = function(value) {
3578
+ return jspb.Message.setRepeatedWrapperField(this, 9, value);
3579
+ };
3580
+
3581
+
3582
+ /**
3583
+ * @param {!proto.FileUploadReferencesReq=} opt_value
3584
+ * @param {number=} opt_index
3585
+ * @return {!proto.FileUploadReferencesReq}
3586
+ */
3587
+ proto.BaseVendorInvoiceWithoutPO.prototype.addShippingFiles = function(opt_value, opt_index) {
3588
+ return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.FileUploadReferencesReq, opt_index);
3589
+ };
3590
+
3591
+
3592
+ /**
3593
+ * Clears the list making it empty but non-null.
3594
+ * @return {!proto.BaseVendorInvoiceWithoutPO} returns this
3595
+ */
3596
+ proto.BaseVendorInvoiceWithoutPO.prototype.clearShippingFilesList = function() {
3597
+ return this.setShippingFilesList([]);
3598
+ };
3599
+
3600
+
3601
+ /**
3602
+ * optional string custom_transaction = 10;
3603
+ * @return {string}
3604
+ */
3605
+ proto.BaseVendorInvoiceWithoutPO.prototype.getCustomTransaction = function() {
3606
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
3607
+ };
3608
+
3609
+
3610
+ /**
3611
+ * @param {string} value
3612
+ * @return {!proto.BaseVendorInvoiceWithoutPO} returns this
3613
+ */
3614
+ proto.BaseVendorInvoiceWithoutPO.prototype.setCustomTransaction = function(value) {
3615
+ return jspb.Message.setProto3StringField(this, 10, value);
3616
+ };
3617
+
3618
+
3619
+ /**
3620
+ * optional string currency = 11;
3621
+ * @return {string}
3622
+ */
3623
+ proto.BaseVendorInvoiceWithoutPO.prototype.getCurrency = function() {
3624
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
3625
+ };
3626
+
3627
+
3628
+ /**
3629
+ * @param {string} value
3630
+ * @return {!proto.BaseVendorInvoiceWithoutPO} returns this
3631
+ */
3632
+ proto.BaseVendorInvoiceWithoutPO.prototype.setCurrency = function(value) {
3633
+ return jspb.Message.setProto3StringField(this, 11, value);
3634
+ };
3635
+
3636
+
3637
+ /**
3638
+ * repeated InvoiceCondition invoice_conditions = 12;
3639
+ * @return {!Array<!proto.InvoiceCondition>}
3640
+ */
3641
+ proto.BaseVendorInvoiceWithoutPO.prototype.getInvoiceConditionsList = function() {
3642
+ return /** @type{!Array<!proto.InvoiceCondition>} */ (
3643
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_purchase_order_purchase_order_pb.InvoiceCondition, 12));
3644
+ };
3645
+
3646
+
3647
+ /**
3648
+ * @param {!Array<!proto.InvoiceCondition>} value
3649
+ * @return {!proto.BaseVendorInvoiceWithoutPO} returns this
3650
+ */
3651
+ proto.BaseVendorInvoiceWithoutPO.prototype.setInvoiceConditionsList = function(value) {
3652
+ return jspb.Message.setRepeatedWrapperField(this, 12, value);
3653
+ };
3654
+
3655
+
3656
+ /**
3657
+ * @param {!proto.InvoiceCondition=} opt_value
3658
+ * @param {number=} opt_index
3659
+ * @return {!proto.InvoiceCondition}
3660
+ */
3661
+ proto.BaseVendorInvoiceWithoutPO.prototype.addInvoiceConditions = function(opt_value, opt_index) {
3662
+ return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.InvoiceCondition, opt_index);
3663
+ };
3664
+
3665
+
3666
+ /**
3667
+ * Clears the list making it empty but non-null.
3668
+ * @return {!proto.BaseVendorInvoiceWithoutPO} returns this
3669
+ */
3670
+ proto.BaseVendorInvoiceWithoutPO.prototype.clearInvoiceConditionsList = function() {
3671
+ return this.setInvoiceConditionsList([]);
3672
+ };
3673
+
3674
+
3675
+ /**
3676
+ * optional string plant = 13;
3677
+ * @return {string}
3678
+ */
3679
+ proto.BaseVendorInvoiceWithoutPO.prototype.getPlant = function() {
3680
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
3681
+ };
3682
+
3683
+
3684
+ /**
3685
+ * @param {string} value
3686
+ * @return {!proto.BaseVendorInvoiceWithoutPO} returns this
3687
+ */
3688
+ proto.BaseVendorInvoiceWithoutPO.prototype.setPlant = function(value) {
3689
+ return jspb.Message.setProto3StringField(this, 13, value);
3690
+ };
3691
+
3692
+
3693
+ /**
3694
+ * optional string department = 14;
3695
+ * @return {string}
3696
+ */
3697
+ proto.BaseVendorInvoiceWithoutPO.prototype.getDepartment = function() {
3698
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
3699
+ };
3700
+
3701
+
3702
+ /**
3703
+ * @param {string} value
3704
+ * @return {!proto.BaseVendorInvoiceWithoutPO} returns this
3705
+ */
3706
+ proto.BaseVendorInvoiceWithoutPO.prototype.setDepartment = function(value) {
3707
+ return jspb.Message.setProto3StringField(this, 14, value);
3708
+ };
3709
+
3710
+
3711
+ /**
3712
+ * optional string document_type = 15;
3713
+ * @return {string}
3714
+ */
3715
+ proto.BaseVendorInvoiceWithoutPO.prototype.getDocumentType = function() {
3716
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
3717
+ };
3718
+
3719
+
3720
+ /**
3721
+ * @param {string} value
3722
+ * @return {!proto.BaseVendorInvoiceWithoutPO} returns this
3723
+ */
3724
+ proto.BaseVendorInvoiceWithoutPO.prototype.setDocumentType = function(value) {
3725
+ return jspb.Message.setProto3StringField(this, 15, value);
3726
+ };
3727
+
3728
+
3729
+
3730
+
3731
+
3732
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3733
+ /**
3734
+ * Creates an object representation of this proto.
3735
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3736
+ * Optional fields that are not set will be set to undefined.
3737
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3738
+ * For the list of reserved names please see:
3739
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3740
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3741
+ * JSPB instance for transitional soy proto support:
3742
+ * http://goto/soy-param-migration
3743
+ * @return {!Object}
3744
+ */
3745
+ proto.CreateVendorInvoiceWithoutPOReq.prototype.toObject = function(opt_includeInstance) {
3746
+ return proto.CreateVendorInvoiceWithoutPOReq.toObject(opt_includeInstance, this);
3747
+ };
3748
+
3749
+
3750
+ /**
3751
+ * Static version of the {@see toObject} method.
3752
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3753
+ * the JSPB instance for transitional soy proto support:
3754
+ * http://goto/soy-param-migration
3755
+ * @param {!proto.CreateVendorInvoiceWithoutPOReq} msg The msg instance to transform.
3756
+ * @return {!Object}
3757
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3758
+ */
3759
+ proto.CreateVendorInvoiceWithoutPOReq.toObject = function(includeInstance, msg) {
3760
+ var f, obj = {
3761
+ baseVendorInvoiceWithoutPo: (f = msg.getBaseVendorInvoiceWithoutPo()) && proto.BaseVendorInvoiceWithoutPO.toObject(includeInstance, f)
3762
+ };
3763
+
3764
+ if (includeInstance) {
3765
+ obj.$jspbMessageInstance = msg;
3766
+ }
3767
+ return obj;
3768
+ };
3769
+ }
3770
+
3771
+
3772
+ /**
3773
+ * Deserializes binary data (in protobuf wire format).
3774
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3775
+ * @return {!proto.CreateVendorInvoiceWithoutPOReq}
3776
+ */
3777
+ proto.CreateVendorInvoiceWithoutPOReq.deserializeBinary = function(bytes) {
3778
+ var reader = new jspb.BinaryReader(bytes);
3779
+ var msg = new proto.CreateVendorInvoiceWithoutPOReq;
3780
+ return proto.CreateVendorInvoiceWithoutPOReq.deserializeBinaryFromReader(msg, reader);
3781
+ };
3782
+
3783
+
3784
+ /**
3785
+ * Deserializes binary data (in protobuf wire format) from the
3786
+ * given reader into the given message object.
3787
+ * @param {!proto.CreateVendorInvoiceWithoutPOReq} msg The message object to deserialize into.
3788
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3789
+ * @return {!proto.CreateVendorInvoiceWithoutPOReq}
3790
+ */
3791
+ proto.CreateVendorInvoiceWithoutPOReq.deserializeBinaryFromReader = function(msg, reader) {
3792
+ while (reader.nextField()) {
3793
+ if (reader.isEndGroup()) {
3794
+ break;
3795
+ }
3796
+ var field = reader.getFieldNumber();
3797
+ switch (field) {
3798
+ case 1:
3799
+ var value = new proto.BaseVendorInvoiceWithoutPO;
3800
+ reader.readMessage(value,proto.BaseVendorInvoiceWithoutPO.deserializeBinaryFromReader);
3801
+ msg.setBaseVendorInvoiceWithoutPo(value);
3802
+ break;
3803
+ default:
3804
+ reader.skipField();
3805
+ break;
3806
+ }
3807
+ }
3808
+ return msg;
3809
+ };
3810
+
3811
+
3812
+ /**
3813
+ * Serializes the message to binary data (in protobuf wire format).
3814
+ * @return {!Uint8Array}
3815
+ */
3816
+ proto.CreateVendorInvoiceWithoutPOReq.prototype.serializeBinary = function() {
3817
+ var writer = new jspb.BinaryWriter();
3818
+ proto.CreateVendorInvoiceWithoutPOReq.serializeBinaryToWriter(this, writer);
3819
+ return writer.getResultBuffer();
3820
+ };
3821
+
3822
+
3823
+ /**
3824
+ * Serializes the given message to binary data (in protobuf wire
3825
+ * format), writing to the given BinaryWriter.
3826
+ * @param {!proto.CreateVendorInvoiceWithoutPOReq} message
3827
+ * @param {!jspb.BinaryWriter} writer
3828
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3829
+ */
3830
+ proto.CreateVendorInvoiceWithoutPOReq.serializeBinaryToWriter = function(message, writer) {
3831
+ var f = undefined;
3832
+ f = message.getBaseVendorInvoiceWithoutPo();
3833
+ if (f != null) {
3834
+ writer.writeMessage(
3835
+ 1,
3836
+ f,
3837
+ proto.BaseVendorInvoiceWithoutPO.serializeBinaryToWriter
3838
+ );
3839
+ }
3840
+ };
3841
+
3842
+
3843
+ /**
3844
+ * optional BaseVendorInvoiceWithoutPO base_vendor_invoice_without_po = 1;
3845
+ * @return {?proto.BaseVendorInvoiceWithoutPO}
3846
+ */
3847
+ proto.CreateVendorInvoiceWithoutPOReq.prototype.getBaseVendorInvoiceWithoutPo = function() {
3848
+ return /** @type{?proto.BaseVendorInvoiceWithoutPO} */ (
3849
+ jspb.Message.getWrapperField(this, proto.BaseVendorInvoiceWithoutPO, 1));
3850
+ };
3851
+
3852
+
3853
+ /**
3854
+ * @param {?proto.BaseVendorInvoiceWithoutPO|undefined} value
3855
+ * @return {!proto.CreateVendorInvoiceWithoutPOReq} returns this
3856
+ */
3857
+ proto.CreateVendorInvoiceWithoutPOReq.prototype.setBaseVendorInvoiceWithoutPo = function(value) {
3858
+ return jspb.Message.setWrapperField(this, 1, value);
3859
+ };
3860
+
3861
+
3862
+ /**
3863
+ * Clears the message field making it undefined.
3864
+ * @return {!proto.CreateVendorInvoiceWithoutPOReq} returns this
3865
+ */
3866
+ proto.CreateVendorInvoiceWithoutPOReq.prototype.clearBaseVendorInvoiceWithoutPo = function() {
3867
+ return this.setBaseVendorInvoiceWithoutPo(undefined);
3868
+ };
3869
+
3870
+
3871
+ /**
3872
+ * Returns whether this field is set.
3873
+ * @return {boolean}
3874
+ */
3875
+ proto.CreateVendorInvoiceWithoutPOReq.prototype.hasBaseVendorInvoiceWithoutPo = function() {
3876
+ return jspb.Message.getField(this, 1) != null;
3877
+ };
3878
+
3879
+
3880
+
3881
+
3882
+
3883
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3884
+ /**
3885
+ * Creates an object representation of this proto.
3886
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3887
+ * Optional fields that are not set will be set to undefined.
3888
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3889
+ * For the list of reserved names please see:
3890
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3891
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3892
+ * JSPB instance for transitional soy proto support:
3893
+ * http://goto/soy-param-migration
3894
+ * @return {!Object}
3895
+ */
3896
+ proto.CreateInvoiceReq.prototype.toObject = function(opt_includeInstance) {
3897
+ return proto.CreateInvoiceReq.toObject(opt_includeInstance, this);
3898
+ };
3899
+
3900
+
3901
+ /**
3902
+ * Static version of the {@see toObject} method.
3903
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3904
+ * the JSPB instance for transitional soy proto support:
3905
+ * http://goto/soy-param-migration
3906
+ * @param {!proto.CreateInvoiceReq} msg The msg instance to transform.
3907
+ * @return {!Object}
3908
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3909
+ */
3910
+ proto.CreateInvoiceReq.toObject = function(includeInstance, msg) {
3911
+ var f, obj = {
3912
+ baseInvoice: (f = msg.getBaseInvoice()) && proto.BaseInvoice.toObject(includeInstance, f)
3913
+ };
3914
+
3915
+ if (includeInstance) {
3916
+ obj.$jspbMessageInstance = msg;
3917
+ }
3918
+ return obj;
3919
+ };
3920
+ }
3921
+
3922
+
3923
+ /**
3924
+ * Deserializes binary data (in protobuf wire format).
3925
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3926
+ * @return {!proto.CreateInvoiceReq}
3927
+ */
3928
+ proto.CreateInvoiceReq.deserializeBinary = function(bytes) {
3929
+ var reader = new jspb.BinaryReader(bytes);
3930
+ var msg = new proto.CreateInvoiceReq;
3931
+ return proto.CreateInvoiceReq.deserializeBinaryFromReader(msg, reader);
3932
+ };
3933
+
3934
+
3935
+ /**
3936
+ * Deserializes binary data (in protobuf wire format) from the
3937
+ * given reader into the given message object.
3938
+ * @param {!proto.CreateInvoiceReq} msg The message object to deserialize into.
3939
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3940
+ * @return {!proto.CreateInvoiceReq}
3941
+ */
3942
+ proto.CreateInvoiceReq.deserializeBinaryFromReader = function(msg, reader) {
3943
+ while (reader.nextField()) {
3944
+ if (reader.isEndGroup()) {
3945
+ break;
3946
+ }
3947
+ var field = reader.getFieldNumber();
3948
+ switch (field) {
3949
+ case 1:
3950
+ var value = new proto.BaseInvoice;
3951
+ reader.readMessage(value,proto.BaseInvoice.deserializeBinaryFromReader);
3952
+ msg.setBaseInvoice(value);
3953
+ break;
3954
+ default:
3955
+ reader.skipField();
3956
+ break;
3957
+ }
3958
+ }
3959
+ return msg;
3960
+ };
3961
+
3962
+
3963
+ /**
3964
+ * Serializes the message to binary data (in protobuf wire format).
3965
+ * @return {!Uint8Array}
3966
+ */
3967
+ proto.CreateInvoiceReq.prototype.serializeBinary = function() {
3968
+ var writer = new jspb.BinaryWriter();
3969
+ proto.CreateInvoiceReq.serializeBinaryToWriter(this, writer);
3970
+ return writer.getResultBuffer();
3971
+ };
3972
+
3973
+
3974
+ /**
3975
+ * Serializes the given message to binary data (in protobuf wire
3976
+ * format), writing to the given BinaryWriter.
3977
+ * @param {!proto.CreateInvoiceReq} message
3978
+ * @param {!jspb.BinaryWriter} writer
3979
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3980
+ */
3981
+ proto.CreateInvoiceReq.serializeBinaryToWriter = function(message, writer) {
3982
+ var f = undefined;
3983
+ f = message.getBaseInvoice();
3984
+ if (f != null) {
3985
+ writer.writeMessage(
3986
+ 1,
3987
+ f,
3988
+ proto.BaseInvoice.serializeBinaryToWriter
3989
+ );
3990
+ }
3991
+ };
3992
+
3993
+
3994
+ /**
3995
+ * optional BaseInvoice base_invoice = 1;
3996
+ * @return {?proto.BaseInvoice}
3997
+ */
3998
+ proto.CreateInvoiceReq.prototype.getBaseInvoice = function() {
3999
+ return /** @type{?proto.BaseInvoice} */ (
4000
+ jspb.Message.getWrapperField(this, proto.BaseInvoice, 1));
4001
+ };
4002
+
4003
+
4004
+ /**
4005
+ * @param {?proto.BaseInvoice|undefined} value
4006
+ * @return {!proto.CreateInvoiceReq} returns this
4007
+ */
4008
+ proto.CreateInvoiceReq.prototype.setBaseInvoice = function(value) {
4009
+ return jspb.Message.setWrapperField(this, 1, value);
4010
+ };
4011
+
4012
+
4013
+ /**
4014
+ * Clears the message field making it undefined.
4015
+ * @return {!proto.CreateInvoiceReq} returns this
4016
+ */
4017
+ proto.CreateInvoiceReq.prototype.clearBaseInvoice = function() {
4018
+ return this.setBaseInvoice(undefined);
4019
+ };
4020
+
4021
+
4022
+ /**
4023
+ * Returns whether this field is set.
4024
+ * @return {boolean}
4025
+ */
4026
+ proto.CreateInvoiceReq.prototype.hasBaseInvoice = function() {
4027
+ return jspb.Message.getField(this, 1) != null;
4028
+ };
4029
+
4030
+
4031
+
4032
+
4033
+
4034
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4035
+ /**
4036
+ * Creates an object representation of this proto.
4037
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4038
+ * Optional fields that are not set will be set to undefined.
4039
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4040
+ * For the list of reserved names please see:
4041
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4042
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4043
+ * JSPB instance for transitional soy proto support:
4044
+ * http://goto/soy-param-migration
4045
+ * @return {!Object}
4046
+ */
4047
+ proto.CreateInvoiceRes.prototype.toObject = function(opt_includeInstance) {
4048
+ return proto.CreateInvoiceRes.toObject(opt_includeInstance, this);
4049
+ };
4050
+
4051
+
4052
+ /**
4053
+ * Static version of the {@see toObject} method.
4054
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4055
+ * the JSPB instance for transitional soy proto support:
4056
+ * http://goto/soy-param-migration
4057
+ * @param {!proto.CreateInvoiceRes} msg The msg instance to transform.
4058
+ * @return {!Object}
4059
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4060
+ */
4061
+ proto.CreateInvoiceRes.toObject = function(includeInstance, msg) {
4062
+ var f, obj = {
4063
+ invoice: (f = msg.getInvoice()) && prisca_v1_purchase_order_purchase_order_pb.Invoice.toObject(includeInstance, f),
4064
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
4065
+ };
4066
+
4067
+ if (includeInstance) {
4068
+ obj.$jspbMessageInstance = msg;
4069
+ }
4070
+ return obj;
4071
+ };
4072
+ }
4073
+
3200
4074
 
3201
4075
  /**
3202
4076
  * Deserializes binary data (in protobuf wire format).
@@ -3399,7 +4273,11 @@ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
3399
4273
  termOfPayment: jspb.Message.getFieldWithDefault(msg, 2, ""),
3400
4274
  dueDate: jspb.Message.getFieldWithDefault(msg, 3, ""),
3401
4275
  itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
3402
- prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.toObject, includeInstance)
4276
+ prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.toObject, includeInstance),
4277
+ plant: jspb.Message.getFieldWithDefault(msg, 5, ""),
4278
+ invoiceType: jspb.Message.getFieldWithDefault(msg, 6, ""),
4279
+ taxReferences: jspb.Message.getFieldWithDefault(msg, 7, ""),
4280
+ department: jspb.Message.getFieldWithDefault(msg, 8, "")
3403
4281
  };
3404
4282
 
3405
4283
  if (includeInstance) {
@@ -3453,6 +4331,22 @@ proto.UpdateInvoiceForCompanyReq.deserializeBinaryFromReader = function(msg, rea
3453
4331
  reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.deserializeBinaryFromReader);
3454
4332
  msg.addItemTransactions(value);
3455
4333
  break;
4334
+ case 5:
4335
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4336
+ msg.setPlant(value);
4337
+ break;
4338
+ case 6:
4339
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4340
+ msg.setInvoiceType(value);
4341
+ break;
4342
+ case 7:
4343
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4344
+ msg.setTaxReferences(value);
4345
+ break;
4346
+ case 8:
4347
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4348
+ msg.setDepartment(value);
4349
+ break;
3456
4350
  default:
3457
4351
  reader.skipField();
3458
4352
  break;
@@ -3511,6 +4405,34 @@ proto.UpdateInvoiceForCompanyReq.serializeBinaryToWriter = function(message, wri
3511
4405
  prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.serializeBinaryToWriter
3512
4406
  );
3513
4407
  }
4408
+ f = message.getPlant();
4409
+ if (f.length > 0) {
4410
+ writer.writeString(
4411
+ 5,
4412
+ f
4413
+ );
4414
+ }
4415
+ f = message.getInvoiceType();
4416
+ if (f.length > 0) {
4417
+ writer.writeString(
4418
+ 6,
4419
+ f
4420
+ );
4421
+ }
4422
+ f = message.getTaxReferences();
4423
+ if (f.length > 0) {
4424
+ writer.writeString(
4425
+ 7,
4426
+ f
4427
+ );
4428
+ }
4429
+ f = message.getDepartment();
4430
+ if (f.length > 0) {
4431
+ writer.writeString(
4432
+ 8,
4433
+ f
4434
+ );
4435
+ }
3514
4436
  };
3515
4437
 
3516
4438
 
@@ -3606,6 +4528,78 @@ proto.UpdateInvoiceForCompanyReq.prototype.clearItemTransactionsList = function(
3606
4528
  };
3607
4529
 
3608
4530
 
4531
+ /**
4532
+ * optional string plant = 5;
4533
+ * @return {string}
4534
+ */
4535
+ proto.UpdateInvoiceForCompanyReq.prototype.getPlant = function() {
4536
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
4537
+ };
4538
+
4539
+
4540
+ /**
4541
+ * @param {string} value
4542
+ * @return {!proto.UpdateInvoiceForCompanyReq} returns this
4543
+ */
4544
+ proto.UpdateInvoiceForCompanyReq.prototype.setPlant = function(value) {
4545
+ return jspb.Message.setProto3StringField(this, 5, value);
4546
+ };
4547
+
4548
+
4549
+ /**
4550
+ * optional string invoice_type = 6;
4551
+ * @return {string}
4552
+ */
4553
+ proto.UpdateInvoiceForCompanyReq.prototype.getInvoiceType = function() {
4554
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
4555
+ };
4556
+
4557
+
4558
+ /**
4559
+ * @param {string} value
4560
+ * @return {!proto.UpdateInvoiceForCompanyReq} returns this
4561
+ */
4562
+ proto.UpdateInvoiceForCompanyReq.prototype.setInvoiceType = function(value) {
4563
+ return jspb.Message.setProto3StringField(this, 6, value);
4564
+ };
4565
+
4566
+
4567
+ /**
4568
+ * optional string tax_references = 7;
4569
+ * @return {string}
4570
+ */
4571
+ proto.UpdateInvoiceForCompanyReq.prototype.getTaxReferences = function() {
4572
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
4573
+ };
4574
+
4575
+
4576
+ /**
4577
+ * @param {string} value
4578
+ * @return {!proto.UpdateInvoiceForCompanyReq} returns this
4579
+ */
4580
+ proto.UpdateInvoiceForCompanyReq.prototype.setTaxReferences = function(value) {
4581
+ return jspb.Message.setProto3StringField(this, 7, value);
4582
+ };
4583
+
4584
+
4585
+ /**
4586
+ * optional string department = 8;
4587
+ * @return {string}
4588
+ */
4589
+ proto.UpdateInvoiceForCompanyReq.prototype.getDepartment = function() {
4590
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
4591
+ };
4592
+
4593
+
4594
+ /**
4595
+ * @param {string} value
4596
+ * @return {!proto.UpdateInvoiceForCompanyReq} returns this
4597
+ */
4598
+ proto.UpdateInvoiceForCompanyReq.prototype.setDepartment = function(value) {
4599
+ return jspb.Message.setProto3StringField(this, 8, value);
4600
+ };
4601
+
4602
+
3609
4603
 
3610
4604
 
3611
4605