@sellout/models 0.0.309 → 0.0.310

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.
@@ -13167,6 +13167,7 @@ $root.Order = (function() {
13167
13167
  * @property {string|null} [email] Order email
13168
13168
  * @property {string|null} [discountCode] Order discountCode
13169
13169
  * @property {number|null} [discountAmount] Order discountAmount
13170
+ * @property {Array.<IOrderIntegrationResponse>|null} [orderIntegrationResponse] Order orderIntegrationResponse
13170
13171
  */
13171
13172
 
13172
13173
  /**
@@ -13187,6 +13188,7 @@ $root.Order = (function() {
13187
13188
  this.customFields = [];
13188
13189
  this.payments = [];
13189
13190
  this.fees = [];
13191
+ this.orderIntegrationResponse = [];
13190
13192
  if (properties)
13191
13193
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
13192
13194
  if (properties[keys[i]] != null)
@@ -13481,6 +13483,14 @@ $root.Order = (function() {
13481
13483
  */
13482
13484
  Order.prototype.discountAmount = 0;
13483
13485
 
13486
+ /**
13487
+ * Order orderIntegrationResponse.
13488
+ * @member {Array.<IOrderIntegrationResponse>} orderIntegrationResponse
13489
+ * @memberof Order
13490
+ * @instance
13491
+ */
13492
+ Order.prototype.orderIntegrationResponse = $util.emptyArray;
13493
+
13484
13494
  /**
13485
13495
  * Creates a new Order instance using the specified properties.
13486
13496
  * @function create
@@ -13586,6 +13596,9 @@ $root.Order = (function() {
13586
13596
  writer.uint32(/* id 34, wireType 2 =*/274).string(message.discountCode);
13587
13597
  if (message.discountAmount != null && Object.hasOwnProperty.call(message, "discountAmount"))
13588
13598
  writer.uint32(/* id 35, wireType 0 =*/280).int32(message.discountAmount);
13599
+ if (message.orderIntegrationResponse != null && message.orderIntegrationResponse.length)
13600
+ for (var i = 0; i < message.orderIntegrationResponse.length; ++i)
13601
+ $root.OrderIntegrationResponse.encode(message.orderIntegrationResponse[i], writer.uint32(/* id 36, wireType 2 =*/290).fork()).ldelim();
13589
13602
  return writer;
13590
13603
  };
13591
13604
 
@@ -13746,6 +13759,11 @@ $root.Order = (function() {
13746
13759
  case 35:
13747
13760
  message.discountAmount = reader.int32();
13748
13761
  break;
13762
+ case 36:
13763
+ if (!(message.orderIntegrationResponse && message.orderIntegrationResponse.length))
13764
+ message.orderIntegrationResponse = [];
13765
+ message.orderIntegrationResponse.push($root.OrderIntegrationResponse.decode(reader, reader.uint32()));
13766
+ break;
13749
13767
  default:
13750
13768
  reader.skipType(tag & 7);
13751
13769
  break;
@@ -13941,6 +13959,15 @@ $root.Order = (function() {
13941
13959
  if (message.discountAmount != null && message.hasOwnProperty("discountAmount"))
13942
13960
  if (!$util.isInteger(message.discountAmount))
13943
13961
  return "discountAmount: integer expected";
13962
+ if (message.orderIntegrationResponse != null && message.hasOwnProperty("orderIntegrationResponse")) {
13963
+ if (!Array.isArray(message.orderIntegrationResponse))
13964
+ return "orderIntegrationResponse: array expected";
13965
+ for (var i = 0; i < message.orderIntegrationResponse.length; ++i) {
13966
+ var error = $root.OrderIntegrationResponse.verify(message.orderIntegrationResponse[i]);
13967
+ if (error)
13968
+ return "orderIntegrationResponse." + error;
13969
+ }
13970
+ }
13944
13971
  return null;
13945
13972
  };
13946
13973
 
@@ -14097,6 +14124,16 @@ $root.Order = (function() {
14097
14124
  message.discountCode = String(object.discountCode);
14098
14125
  if (object.discountAmount != null)
14099
14126
  message.discountAmount = object.discountAmount | 0;
14127
+ if (object.orderIntegrationResponse) {
14128
+ if (!Array.isArray(object.orderIntegrationResponse))
14129
+ throw TypeError(".Order.orderIntegrationResponse: array expected");
14130
+ message.orderIntegrationResponse = [];
14131
+ for (var i = 0; i < object.orderIntegrationResponse.length; ++i) {
14132
+ if (typeof object.orderIntegrationResponse[i] !== "object")
14133
+ throw TypeError(".Order.orderIntegrationResponse: object expected");
14134
+ message.orderIntegrationResponse[i] = $root.OrderIntegrationResponse.fromObject(object.orderIntegrationResponse[i]);
14135
+ }
14136
+ }
14100
14137
  return message;
14101
14138
  };
14102
14139
 
@@ -14123,6 +14160,7 @@ $root.Order = (function() {
14123
14160
  object.customFields = [];
14124
14161
  object.payments = [];
14125
14162
  object.fees = [];
14163
+ object.orderIntegrationResponse = [];
14126
14164
  }
14127
14165
  if (options.defaults) {
14128
14166
  object._id = "";
@@ -14252,6 +14290,11 @@ $root.Order = (function() {
14252
14290
  object.discountCode = message.discountCode;
14253
14291
  if (message.discountAmount != null && message.hasOwnProperty("discountAmount"))
14254
14292
  object.discountAmount = message.discountAmount;
14293
+ if (message.orderIntegrationResponse && message.orderIntegrationResponse.length) {
14294
+ object.orderIntegrationResponse = [];
14295
+ for (var j = 0; j < message.orderIntegrationResponse.length; ++j)
14296
+ object.orderIntegrationResponse[j] = $root.OrderIntegrationResponse.toObject(message.orderIntegrationResponse[j], options);
14297
+ }
14255
14298
  return object;
14256
14299
  };
14257
14300
 
@@ -14269,6 +14312,348 @@ $root.Order = (function() {
14269
14312
  return Order;
14270
14313
  })();
14271
14314
 
14315
+ $root.OrderIntegrationResponse = (function() {
14316
+
14317
+ /**
14318
+ * Properties of an OrderIntegrationResponse.
14319
+ * @exports IOrderIntegrationResponse
14320
+ * @interface IOrderIntegrationResponse
14321
+ * @property {boolean|null} [success] OrderIntegrationResponse success
14322
+ * @property {string|null} [title] OrderIntegrationResponse title
14323
+ * @property {string|null} [message] OrderIntegrationResponse message
14324
+ * @property {string|null} [statusCode] OrderIntegrationResponse statusCode
14325
+ * @property {string|null} [actionType] OrderIntegrationResponse actionType
14326
+ * @property {number|null} [createdAt] OrderIntegrationResponse createdAt
14327
+ * @property {string|null} [orderType] OrderIntegrationResponse orderType
14328
+ * @property {string|null} [_id] OrderIntegrationResponse _id
14329
+ */
14330
+
14331
+ /**
14332
+ * Constructs a new OrderIntegrationResponse.
14333
+ * @exports OrderIntegrationResponse
14334
+ * @classdesc Represents an OrderIntegrationResponse.
14335
+ * @implements IOrderIntegrationResponse
14336
+ * @constructor
14337
+ * @param {IOrderIntegrationResponse=} [properties] Properties to set
14338
+ */
14339
+ function OrderIntegrationResponse(properties) {
14340
+ if (properties)
14341
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
14342
+ if (properties[keys[i]] != null)
14343
+ this[keys[i]] = properties[keys[i]];
14344
+ }
14345
+
14346
+ /**
14347
+ * OrderIntegrationResponse success.
14348
+ * @member {boolean} success
14349
+ * @memberof OrderIntegrationResponse
14350
+ * @instance
14351
+ */
14352
+ OrderIntegrationResponse.prototype.success = false;
14353
+
14354
+ /**
14355
+ * OrderIntegrationResponse title.
14356
+ * @member {string} title
14357
+ * @memberof OrderIntegrationResponse
14358
+ * @instance
14359
+ */
14360
+ OrderIntegrationResponse.prototype.title = "";
14361
+
14362
+ /**
14363
+ * OrderIntegrationResponse message.
14364
+ * @member {string} message
14365
+ * @memberof OrderIntegrationResponse
14366
+ * @instance
14367
+ */
14368
+ OrderIntegrationResponse.prototype.message = "";
14369
+
14370
+ /**
14371
+ * OrderIntegrationResponse statusCode.
14372
+ * @member {string} statusCode
14373
+ * @memberof OrderIntegrationResponse
14374
+ * @instance
14375
+ */
14376
+ OrderIntegrationResponse.prototype.statusCode = "";
14377
+
14378
+ /**
14379
+ * OrderIntegrationResponse actionType.
14380
+ * @member {string} actionType
14381
+ * @memberof OrderIntegrationResponse
14382
+ * @instance
14383
+ */
14384
+ OrderIntegrationResponse.prototype.actionType = "";
14385
+
14386
+ /**
14387
+ * OrderIntegrationResponse createdAt.
14388
+ * @member {number} createdAt
14389
+ * @memberof OrderIntegrationResponse
14390
+ * @instance
14391
+ */
14392
+ OrderIntegrationResponse.prototype.createdAt = 0;
14393
+
14394
+ /**
14395
+ * OrderIntegrationResponse orderType.
14396
+ * @member {string} orderType
14397
+ * @memberof OrderIntegrationResponse
14398
+ * @instance
14399
+ */
14400
+ OrderIntegrationResponse.prototype.orderType = "";
14401
+
14402
+ /**
14403
+ * OrderIntegrationResponse _id.
14404
+ * @member {string} _id
14405
+ * @memberof OrderIntegrationResponse
14406
+ * @instance
14407
+ */
14408
+ OrderIntegrationResponse.prototype._id = "";
14409
+
14410
+ /**
14411
+ * Creates a new OrderIntegrationResponse instance using the specified properties.
14412
+ * @function create
14413
+ * @memberof OrderIntegrationResponse
14414
+ * @static
14415
+ * @param {IOrderIntegrationResponse=} [properties] Properties to set
14416
+ * @returns {OrderIntegrationResponse} OrderIntegrationResponse instance
14417
+ */
14418
+ OrderIntegrationResponse.create = function create(properties) {
14419
+ return new OrderIntegrationResponse(properties);
14420
+ };
14421
+
14422
+ /**
14423
+ * Encodes the specified OrderIntegrationResponse message. Does not implicitly {@link OrderIntegrationResponse.verify|verify} messages.
14424
+ * @function encode
14425
+ * @memberof OrderIntegrationResponse
14426
+ * @static
14427
+ * @param {IOrderIntegrationResponse} message OrderIntegrationResponse message or plain object to encode
14428
+ * @param {$protobuf.Writer} [writer] Writer to encode to
14429
+ * @returns {$protobuf.Writer} Writer
14430
+ */
14431
+ OrderIntegrationResponse.encode = function encode(message, writer) {
14432
+ if (!writer)
14433
+ writer = $Writer.create();
14434
+ if (message.success != null && Object.hasOwnProperty.call(message, "success"))
14435
+ writer.uint32(/* id 0, wireType 0 =*/0).bool(message.success);
14436
+ if (message.title != null && Object.hasOwnProperty.call(message, "title"))
14437
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.title);
14438
+ if (message.message != null && Object.hasOwnProperty.call(message, "message"))
14439
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.message);
14440
+ if (message.statusCode != null && Object.hasOwnProperty.call(message, "statusCode"))
14441
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.statusCode);
14442
+ if (message.actionType != null && Object.hasOwnProperty.call(message, "actionType"))
14443
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.actionType);
14444
+ if (message.createdAt != null && Object.hasOwnProperty.call(message, "createdAt"))
14445
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.createdAt);
14446
+ if (message.orderType != null && Object.hasOwnProperty.call(message, "orderType"))
14447
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderType);
14448
+ if (message._id != null && Object.hasOwnProperty.call(message, "_id"))
14449
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message._id);
14450
+ return writer;
14451
+ };
14452
+
14453
+ /**
14454
+ * Encodes the specified OrderIntegrationResponse message, length delimited. Does not implicitly {@link OrderIntegrationResponse.verify|verify} messages.
14455
+ * @function encodeDelimited
14456
+ * @memberof OrderIntegrationResponse
14457
+ * @static
14458
+ * @param {IOrderIntegrationResponse} message OrderIntegrationResponse message or plain object to encode
14459
+ * @param {$protobuf.Writer} [writer] Writer to encode to
14460
+ * @returns {$protobuf.Writer} Writer
14461
+ */
14462
+ OrderIntegrationResponse.encodeDelimited = function encodeDelimited(message, writer) {
14463
+ return this.encode(message, writer).ldelim();
14464
+ };
14465
+
14466
+ /**
14467
+ * Decodes an OrderIntegrationResponse message from the specified reader or buffer.
14468
+ * @function decode
14469
+ * @memberof OrderIntegrationResponse
14470
+ * @static
14471
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14472
+ * @param {number} [length] Message length if known beforehand
14473
+ * @returns {OrderIntegrationResponse} OrderIntegrationResponse
14474
+ * @throws {Error} If the payload is not a reader or valid buffer
14475
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14476
+ */
14477
+ OrderIntegrationResponse.decode = function decode(reader, length) {
14478
+ if (!(reader instanceof $Reader))
14479
+ reader = $Reader.create(reader);
14480
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrderIntegrationResponse();
14481
+ while (reader.pos < end) {
14482
+ var tag = reader.uint32();
14483
+ switch (tag >>> 3) {
14484
+ case 0:
14485
+ message.success = reader.bool();
14486
+ break;
14487
+ case 1:
14488
+ message.title = reader.string();
14489
+ break;
14490
+ case 2:
14491
+ message.message = reader.string();
14492
+ break;
14493
+ case 3:
14494
+ message.statusCode = reader.string();
14495
+ break;
14496
+ case 4:
14497
+ message.actionType = reader.string();
14498
+ break;
14499
+ case 5:
14500
+ message.createdAt = reader.int32();
14501
+ break;
14502
+ case 6:
14503
+ message.orderType = reader.string();
14504
+ break;
14505
+ case 7:
14506
+ message._id = reader.string();
14507
+ break;
14508
+ default:
14509
+ reader.skipType(tag & 7);
14510
+ break;
14511
+ }
14512
+ }
14513
+ return message;
14514
+ };
14515
+
14516
+ /**
14517
+ * Decodes an OrderIntegrationResponse message from the specified reader or buffer, length delimited.
14518
+ * @function decodeDelimited
14519
+ * @memberof OrderIntegrationResponse
14520
+ * @static
14521
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14522
+ * @returns {OrderIntegrationResponse} OrderIntegrationResponse
14523
+ * @throws {Error} If the payload is not a reader or valid buffer
14524
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14525
+ */
14526
+ OrderIntegrationResponse.decodeDelimited = function decodeDelimited(reader) {
14527
+ if (!(reader instanceof $Reader))
14528
+ reader = new $Reader(reader);
14529
+ return this.decode(reader, reader.uint32());
14530
+ };
14531
+
14532
+ /**
14533
+ * Verifies an OrderIntegrationResponse message.
14534
+ * @function verify
14535
+ * @memberof OrderIntegrationResponse
14536
+ * @static
14537
+ * @param {Object.<string,*>} message Plain object to verify
14538
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
14539
+ */
14540
+ OrderIntegrationResponse.verify = function verify(message) {
14541
+ if (typeof message !== "object" || message === null)
14542
+ return "object expected";
14543
+ if (message.success != null && message.hasOwnProperty("success"))
14544
+ if (typeof message.success !== "boolean")
14545
+ return "success: boolean expected";
14546
+ if (message.title != null && message.hasOwnProperty("title"))
14547
+ if (!$util.isString(message.title))
14548
+ return "title: string expected";
14549
+ if (message.message != null && message.hasOwnProperty("message"))
14550
+ if (!$util.isString(message.message))
14551
+ return "message: string expected";
14552
+ if (message.statusCode != null && message.hasOwnProperty("statusCode"))
14553
+ if (!$util.isString(message.statusCode))
14554
+ return "statusCode: string expected";
14555
+ if (message.actionType != null && message.hasOwnProperty("actionType"))
14556
+ if (!$util.isString(message.actionType))
14557
+ return "actionType: string expected";
14558
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
14559
+ if (!$util.isInteger(message.createdAt))
14560
+ return "createdAt: integer expected";
14561
+ if (message.orderType != null && message.hasOwnProperty("orderType"))
14562
+ if (!$util.isString(message.orderType))
14563
+ return "orderType: string expected";
14564
+ if (message._id != null && message.hasOwnProperty("_id"))
14565
+ if (!$util.isString(message._id))
14566
+ return "_id: string expected";
14567
+ return null;
14568
+ };
14569
+
14570
+ /**
14571
+ * Creates an OrderIntegrationResponse message from a plain object. Also converts values to their respective internal types.
14572
+ * @function fromObject
14573
+ * @memberof OrderIntegrationResponse
14574
+ * @static
14575
+ * @param {Object.<string,*>} object Plain object
14576
+ * @returns {OrderIntegrationResponse} OrderIntegrationResponse
14577
+ */
14578
+ OrderIntegrationResponse.fromObject = function fromObject(object) {
14579
+ if (object instanceof $root.OrderIntegrationResponse)
14580
+ return object;
14581
+ var message = new $root.OrderIntegrationResponse();
14582
+ if (object.success != null)
14583
+ message.success = Boolean(object.success);
14584
+ if (object.title != null)
14585
+ message.title = String(object.title);
14586
+ if (object.message != null)
14587
+ message.message = String(object.message);
14588
+ if (object.statusCode != null)
14589
+ message.statusCode = String(object.statusCode);
14590
+ if (object.actionType != null)
14591
+ message.actionType = String(object.actionType);
14592
+ if (object.createdAt != null)
14593
+ message.createdAt = object.createdAt | 0;
14594
+ if (object.orderType != null)
14595
+ message.orderType = String(object.orderType);
14596
+ if (object._id != null)
14597
+ message._id = String(object._id);
14598
+ return message;
14599
+ };
14600
+
14601
+ /**
14602
+ * Creates a plain object from an OrderIntegrationResponse message. Also converts values to other types if specified.
14603
+ * @function toObject
14604
+ * @memberof OrderIntegrationResponse
14605
+ * @static
14606
+ * @param {OrderIntegrationResponse} message OrderIntegrationResponse
14607
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
14608
+ * @returns {Object.<string,*>} Plain object
14609
+ */
14610
+ OrderIntegrationResponse.toObject = function toObject(message, options) {
14611
+ if (!options)
14612
+ options = {};
14613
+ var object = {};
14614
+ if (options.defaults) {
14615
+ object.success = false;
14616
+ object.title = "";
14617
+ object.message = "";
14618
+ object.statusCode = "";
14619
+ object.actionType = "";
14620
+ object.createdAt = 0;
14621
+ object.orderType = "";
14622
+ object._id = "";
14623
+ }
14624
+ if (message.success != null && message.hasOwnProperty("success"))
14625
+ object.success = message.success;
14626
+ if (message.title != null && message.hasOwnProperty("title"))
14627
+ object.title = message.title;
14628
+ if (message.message != null && message.hasOwnProperty("message"))
14629
+ object.message = message.message;
14630
+ if (message.statusCode != null && message.hasOwnProperty("statusCode"))
14631
+ object.statusCode = message.statusCode;
14632
+ if (message.actionType != null && message.hasOwnProperty("actionType"))
14633
+ object.actionType = message.actionType;
14634
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
14635
+ object.createdAt = message.createdAt;
14636
+ if (message.orderType != null && message.hasOwnProperty("orderType"))
14637
+ object.orderType = message.orderType;
14638
+ if (message._id != null && message.hasOwnProperty("_id"))
14639
+ object._id = message._id;
14640
+ return object;
14641
+ };
14642
+
14643
+ /**
14644
+ * Converts this OrderIntegrationResponse to JSON.
14645
+ * @function toJSON
14646
+ * @memberof OrderIntegrationResponse
14647
+ * @instance
14648
+ * @returns {Object.<string,*>} JSON object
14649
+ */
14650
+ OrderIntegrationResponse.prototype.toJSON = function toJSON() {
14651
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
14652
+ };
14653
+
14654
+ return OrderIntegrationResponse;
14655
+ })();
14656
+
14272
14657
  $root.ProcessingFees = (function() {
14273
14658
 
14274
14659
  /**
@@ -26605,63 +26990,607 @@ $root.UpdateGuestOrderParams = (function() {
26605
26990
  };
26606
26991
 
26607
26992
  /**
26608
- * Creates a plain object from an UpdateGuestOrderParams message. Also converts values to other types if specified.
26993
+ * Creates a plain object from an UpdateGuestOrderParams message. Also converts values to other types if specified.
26994
+ * @function toObject
26995
+ * @memberof UpdateGuestOrderParams
26996
+ * @static
26997
+ * @param {UpdateGuestOrderParams} message UpdateGuestOrderParams
26998
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
26999
+ * @returns {Object.<string,*>} Plain object
27000
+ */
27001
+ UpdateGuestOrderParams.toObject = function toObject(message, options) {
27002
+ if (!options)
27003
+ options = {};
27004
+ var object = {};
27005
+ if (options.defaults) {
27006
+ object.orderId = "";
27007
+ object.email = "";
27008
+ }
27009
+ if (message.orderId != null && message.hasOwnProperty("orderId"))
27010
+ object.orderId = message.orderId;
27011
+ if (message.email != null && message.hasOwnProperty("email"))
27012
+ object.email = message.email;
27013
+ return object;
27014
+ };
27015
+
27016
+ /**
27017
+ * Converts this UpdateGuestOrderParams to JSON.
27018
+ * @function toJSON
27019
+ * @memberof UpdateGuestOrderParams
27020
+ * @instance
27021
+ * @returns {Object.<string,*>} JSON object
27022
+ */
27023
+ UpdateGuestOrderParams.prototype.toJSON = function toJSON() {
27024
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
27025
+ };
27026
+
27027
+ return UpdateGuestOrderParams;
27028
+ })();
27029
+
27030
+ $root.UpdateGuestOrderRequest = (function() {
27031
+
27032
+ /**
27033
+ * Properties of an UpdateGuestOrderRequest.
27034
+ * @exports IUpdateGuestOrderRequest
27035
+ * @interface IUpdateGuestOrderRequest
27036
+ * @property {string|null} [spanContext] UpdateGuestOrderRequest spanContext
27037
+ * @property {IUpdateGuestOrderParams|null} [params] UpdateGuestOrderRequest params
27038
+ * @property {string|null} [requestorId] UpdateGuestOrderRequest requestorId
27039
+ */
27040
+
27041
+ /**
27042
+ * Constructs a new UpdateGuestOrderRequest.
27043
+ * @exports UpdateGuestOrderRequest
27044
+ * @classdesc Represents an UpdateGuestOrderRequest.
27045
+ * @implements IUpdateGuestOrderRequest
27046
+ * @constructor
27047
+ * @param {IUpdateGuestOrderRequest=} [properties] Properties to set
27048
+ */
27049
+ function UpdateGuestOrderRequest(properties) {
27050
+ if (properties)
27051
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
27052
+ if (properties[keys[i]] != null)
27053
+ this[keys[i]] = properties[keys[i]];
27054
+ }
27055
+
27056
+ /**
27057
+ * UpdateGuestOrderRequest spanContext.
27058
+ * @member {string} spanContext
27059
+ * @memberof UpdateGuestOrderRequest
27060
+ * @instance
27061
+ */
27062
+ UpdateGuestOrderRequest.prototype.spanContext = "";
27063
+
27064
+ /**
27065
+ * UpdateGuestOrderRequest params.
27066
+ * @member {IUpdateGuestOrderParams|null|undefined} params
27067
+ * @memberof UpdateGuestOrderRequest
27068
+ * @instance
27069
+ */
27070
+ UpdateGuestOrderRequest.prototype.params = null;
27071
+
27072
+ /**
27073
+ * UpdateGuestOrderRequest requestorId.
27074
+ * @member {string} requestorId
27075
+ * @memberof UpdateGuestOrderRequest
27076
+ * @instance
27077
+ */
27078
+ UpdateGuestOrderRequest.prototype.requestorId = "";
27079
+
27080
+ /**
27081
+ * Creates a new UpdateGuestOrderRequest instance using the specified properties.
27082
+ * @function create
27083
+ * @memberof UpdateGuestOrderRequest
27084
+ * @static
27085
+ * @param {IUpdateGuestOrderRequest=} [properties] Properties to set
27086
+ * @returns {UpdateGuestOrderRequest} UpdateGuestOrderRequest instance
27087
+ */
27088
+ UpdateGuestOrderRequest.create = function create(properties) {
27089
+ return new UpdateGuestOrderRequest(properties);
27090
+ };
27091
+
27092
+ /**
27093
+ * Encodes the specified UpdateGuestOrderRequest message. Does not implicitly {@link UpdateGuestOrderRequest.verify|verify} messages.
27094
+ * @function encode
27095
+ * @memberof UpdateGuestOrderRequest
27096
+ * @static
27097
+ * @param {IUpdateGuestOrderRequest} message UpdateGuestOrderRequest message or plain object to encode
27098
+ * @param {$protobuf.Writer} [writer] Writer to encode to
27099
+ * @returns {$protobuf.Writer} Writer
27100
+ */
27101
+ UpdateGuestOrderRequest.encode = function encode(message, writer) {
27102
+ if (!writer)
27103
+ writer = $Writer.create();
27104
+ if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
27105
+ writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
27106
+ if (message.params != null && Object.hasOwnProperty.call(message, "params"))
27107
+ $root.UpdateGuestOrderParams.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
27108
+ if (message.requestorId != null && Object.hasOwnProperty.call(message, "requestorId"))
27109
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestorId);
27110
+ return writer;
27111
+ };
27112
+
27113
+ /**
27114
+ * Encodes the specified UpdateGuestOrderRequest message, length delimited. Does not implicitly {@link UpdateGuestOrderRequest.verify|verify} messages.
27115
+ * @function encodeDelimited
27116
+ * @memberof UpdateGuestOrderRequest
27117
+ * @static
27118
+ * @param {IUpdateGuestOrderRequest} message UpdateGuestOrderRequest message or plain object to encode
27119
+ * @param {$protobuf.Writer} [writer] Writer to encode to
27120
+ * @returns {$protobuf.Writer} Writer
27121
+ */
27122
+ UpdateGuestOrderRequest.encodeDelimited = function encodeDelimited(message, writer) {
27123
+ return this.encode(message, writer).ldelim();
27124
+ };
27125
+
27126
+ /**
27127
+ * Decodes an UpdateGuestOrderRequest message from the specified reader or buffer.
27128
+ * @function decode
27129
+ * @memberof UpdateGuestOrderRequest
27130
+ * @static
27131
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
27132
+ * @param {number} [length] Message length if known beforehand
27133
+ * @returns {UpdateGuestOrderRequest} UpdateGuestOrderRequest
27134
+ * @throws {Error} If the payload is not a reader or valid buffer
27135
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
27136
+ */
27137
+ UpdateGuestOrderRequest.decode = function decode(reader, length) {
27138
+ if (!(reader instanceof $Reader))
27139
+ reader = $Reader.create(reader);
27140
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UpdateGuestOrderRequest();
27141
+ while (reader.pos < end) {
27142
+ var tag = reader.uint32();
27143
+ switch (tag >>> 3) {
27144
+ case 0:
27145
+ message.spanContext = reader.string();
27146
+ break;
27147
+ case 1:
27148
+ message.params = $root.UpdateGuestOrderParams.decode(reader, reader.uint32());
27149
+ break;
27150
+ case 2:
27151
+ message.requestorId = reader.string();
27152
+ break;
27153
+ default:
27154
+ reader.skipType(tag & 7);
27155
+ break;
27156
+ }
27157
+ }
27158
+ return message;
27159
+ };
27160
+
27161
+ /**
27162
+ * Decodes an UpdateGuestOrderRequest message from the specified reader or buffer, length delimited.
27163
+ * @function decodeDelimited
27164
+ * @memberof UpdateGuestOrderRequest
27165
+ * @static
27166
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
27167
+ * @returns {UpdateGuestOrderRequest} UpdateGuestOrderRequest
27168
+ * @throws {Error} If the payload is not a reader or valid buffer
27169
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
27170
+ */
27171
+ UpdateGuestOrderRequest.decodeDelimited = function decodeDelimited(reader) {
27172
+ if (!(reader instanceof $Reader))
27173
+ reader = new $Reader(reader);
27174
+ return this.decode(reader, reader.uint32());
27175
+ };
27176
+
27177
+ /**
27178
+ * Verifies an UpdateGuestOrderRequest message.
27179
+ * @function verify
27180
+ * @memberof UpdateGuestOrderRequest
27181
+ * @static
27182
+ * @param {Object.<string,*>} message Plain object to verify
27183
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
27184
+ */
27185
+ UpdateGuestOrderRequest.verify = function verify(message) {
27186
+ if (typeof message !== "object" || message === null)
27187
+ return "object expected";
27188
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
27189
+ if (!$util.isString(message.spanContext))
27190
+ return "spanContext: string expected";
27191
+ if (message.params != null && message.hasOwnProperty("params")) {
27192
+ var error = $root.UpdateGuestOrderParams.verify(message.params);
27193
+ if (error)
27194
+ return "params." + error;
27195
+ }
27196
+ if (message.requestorId != null && message.hasOwnProperty("requestorId"))
27197
+ if (!$util.isString(message.requestorId))
27198
+ return "requestorId: string expected";
27199
+ return null;
27200
+ };
27201
+
27202
+ /**
27203
+ * Creates an UpdateGuestOrderRequest message from a plain object. Also converts values to their respective internal types.
27204
+ * @function fromObject
27205
+ * @memberof UpdateGuestOrderRequest
27206
+ * @static
27207
+ * @param {Object.<string,*>} object Plain object
27208
+ * @returns {UpdateGuestOrderRequest} UpdateGuestOrderRequest
27209
+ */
27210
+ UpdateGuestOrderRequest.fromObject = function fromObject(object) {
27211
+ if (object instanceof $root.UpdateGuestOrderRequest)
27212
+ return object;
27213
+ var message = new $root.UpdateGuestOrderRequest();
27214
+ if (object.spanContext != null)
27215
+ message.spanContext = String(object.spanContext);
27216
+ if (object.params != null) {
27217
+ if (typeof object.params !== "object")
27218
+ throw TypeError(".UpdateGuestOrderRequest.params: object expected");
27219
+ message.params = $root.UpdateGuestOrderParams.fromObject(object.params);
27220
+ }
27221
+ if (object.requestorId != null)
27222
+ message.requestorId = String(object.requestorId);
27223
+ return message;
27224
+ };
27225
+
27226
+ /**
27227
+ * Creates a plain object from an UpdateGuestOrderRequest message. Also converts values to other types if specified.
27228
+ * @function toObject
27229
+ * @memberof UpdateGuestOrderRequest
27230
+ * @static
27231
+ * @param {UpdateGuestOrderRequest} message UpdateGuestOrderRequest
27232
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
27233
+ * @returns {Object.<string,*>} Plain object
27234
+ */
27235
+ UpdateGuestOrderRequest.toObject = function toObject(message, options) {
27236
+ if (!options)
27237
+ options = {};
27238
+ var object = {};
27239
+ if (options.defaults) {
27240
+ object.spanContext = "";
27241
+ object.params = null;
27242
+ object.requestorId = "";
27243
+ }
27244
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
27245
+ object.spanContext = message.spanContext;
27246
+ if (message.params != null && message.hasOwnProperty("params"))
27247
+ object.params = $root.UpdateGuestOrderParams.toObject(message.params, options);
27248
+ if (message.requestorId != null && message.hasOwnProperty("requestorId"))
27249
+ object.requestorId = message.requestorId;
27250
+ return object;
27251
+ };
27252
+
27253
+ /**
27254
+ * Converts this UpdateGuestOrderRequest to JSON.
27255
+ * @function toJSON
27256
+ * @memberof UpdateGuestOrderRequest
27257
+ * @instance
27258
+ * @returns {Object.<string,*>} JSON object
27259
+ */
27260
+ UpdateGuestOrderRequest.prototype.toJSON = function toJSON() {
27261
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
27262
+ };
27263
+
27264
+ return UpdateGuestOrderRequest;
27265
+ })();
27266
+
27267
+ $root.UpdateOrderResponse = (function() {
27268
+
27269
+ /**
27270
+ * Properties of an UpdateOrderResponse.
27271
+ * @exports IUpdateOrderResponse
27272
+ * @interface IUpdateOrderResponse
27273
+ * @property {StatusCode|null} [status] UpdateOrderResponse status
27274
+ * @property {Array.<IError>|null} [errors] UpdateOrderResponse errors
27275
+ * @property {IOrder|null} [order] UpdateOrderResponse order
27276
+ */
27277
+
27278
+ /**
27279
+ * Constructs a new UpdateOrderResponse.
27280
+ * @exports UpdateOrderResponse
27281
+ * @classdesc Represents an UpdateOrderResponse.
27282
+ * @implements IUpdateOrderResponse
27283
+ * @constructor
27284
+ * @param {IUpdateOrderResponse=} [properties] Properties to set
27285
+ */
27286
+ function UpdateOrderResponse(properties) {
27287
+ this.errors = [];
27288
+ if (properties)
27289
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
27290
+ if (properties[keys[i]] != null)
27291
+ this[keys[i]] = properties[keys[i]];
27292
+ }
27293
+
27294
+ /**
27295
+ * UpdateOrderResponse status.
27296
+ * @member {StatusCode} status
27297
+ * @memberof UpdateOrderResponse
27298
+ * @instance
27299
+ */
27300
+ UpdateOrderResponse.prototype.status = 0;
27301
+
27302
+ /**
27303
+ * UpdateOrderResponse errors.
27304
+ * @member {Array.<IError>} errors
27305
+ * @memberof UpdateOrderResponse
27306
+ * @instance
27307
+ */
27308
+ UpdateOrderResponse.prototype.errors = $util.emptyArray;
27309
+
27310
+ /**
27311
+ * UpdateOrderResponse order.
27312
+ * @member {IOrder|null|undefined} order
27313
+ * @memberof UpdateOrderResponse
27314
+ * @instance
27315
+ */
27316
+ UpdateOrderResponse.prototype.order = null;
27317
+
27318
+ /**
27319
+ * Creates a new UpdateOrderResponse instance using the specified properties.
27320
+ * @function create
27321
+ * @memberof UpdateOrderResponse
27322
+ * @static
27323
+ * @param {IUpdateOrderResponse=} [properties] Properties to set
27324
+ * @returns {UpdateOrderResponse} UpdateOrderResponse instance
27325
+ */
27326
+ UpdateOrderResponse.create = function create(properties) {
27327
+ return new UpdateOrderResponse(properties);
27328
+ };
27329
+
27330
+ /**
27331
+ * Encodes the specified UpdateOrderResponse message. Does not implicitly {@link UpdateOrderResponse.verify|verify} messages.
27332
+ * @function encode
27333
+ * @memberof UpdateOrderResponse
27334
+ * @static
27335
+ * @param {IUpdateOrderResponse} message UpdateOrderResponse message or plain object to encode
27336
+ * @param {$protobuf.Writer} [writer] Writer to encode to
27337
+ * @returns {$protobuf.Writer} Writer
27338
+ */
27339
+ UpdateOrderResponse.encode = function encode(message, writer) {
27340
+ if (!writer)
27341
+ writer = $Writer.create();
27342
+ if (message.status != null && Object.hasOwnProperty.call(message, "status"))
27343
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.status);
27344
+ if (message.errors != null && message.errors.length)
27345
+ for (var i = 0; i < message.errors.length; ++i)
27346
+ $root.Error.encode(message.errors[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
27347
+ if (message.order != null && Object.hasOwnProperty.call(message, "order"))
27348
+ $root.Order.encode(message.order, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
27349
+ return writer;
27350
+ };
27351
+
27352
+ /**
27353
+ * Encodes the specified UpdateOrderResponse message, length delimited. Does not implicitly {@link UpdateOrderResponse.verify|verify} messages.
27354
+ * @function encodeDelimited
27355
+ * @memberof UpdateOrderResponse
27356
+ * @static
27357
+ * @param {IUpdateOrderResponse} message UpdateOrderResponse message or plain object to encode
27358
+ * @param {$protobuf.Writer} [writer] Writer to encode to
27359
+ * @returns {$protobuf.Writer} Writer
27360
+ */
27361
+ UpdateOrderResponse.encodeDelimited = function encodeDelimited(message, writer) {
27362
+ return this.encode(message, writer).ldelim();
27363
+ };
27364
+
27365
+ /**
27366
+ * Decodes an UpdateOrderResponse message from the specified reader or buffer.
27367
+ * @function decode
27368
+ * @memberof UpdateOrderResponse
27369
+ * @static
27370
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
27371
+ * @param {number} [length] Message length if known beforehand
27372
+ * @returns {UpdateOrderResponse} UpdateOrderResponse
27373
+ * @throws {Error} If the payload is not a reader or valid buffer
27374
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
27375
+ */
27376
+ UpdateOrderResponse.decode = function decode(reader, length) {
27377
+ if (!(reader instanceof $Reader))
27378
+ reader = $Reader.create(reader);
27379
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UpdateOrderResponse();
27380
+ while (reader.pos < end) {
27381
+ var tag = reader.uint32();
27382
+ switch (tag >>> 3) {
27383
+ case 1:
27384
+ message.status = reader.int32();
27385
+ break;
27386
+ case 2:
27387
+ if (!(message.errors && message.errors.length))
27388
+ message.errors = [];
27389
+ message.errors.push($root.Error.decode(reader, reader.uint32()));
27390
+ break;
27391
+ case 3:
27392
+ message.order = $root.Order.decode(reader, reader.uint32());
27393
+ break;
27394
+ default:
27395
+ reader.skipType(tag & 7);
27396
+ break;
27397
+ }
27398
+ }
27399
+ return message;
27400
+ };
27401
+
27402
+ /**
27403
+ * Decodes an UpdateOrderResponse message from the specified reader or buffer, length delimited.
27404
+ * @function decodeDelimited
27405
+ * @memberof UpdateOrderResponse
27406
+ * @static
27407
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
27408
+ * @returns {UpdateOrderResponse} UpdateOrderResponse
27409
+ * @throws {Error} If the payload is not a reader or valid buffer
27410
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
27411
+ */
27412
+ UpdateOrderResponse.decodeDelimited = function decodeDelimited(reader) {
27413
+ if (!(reader instanceof $Reader))
27414
+ reader = new $Reader(reader);
27415
+ return this.decode(reader, reader.uint32());
27416
+ };
27417
+
27418
+ /**
27419
+ * Verifies an UpdateOrderResponse message.
27420
+ * @function verify
27421
+ * @memberof UpdateOrderResponse
27422
+ * @static
27423
+ * @param {Object.<string,*>} message Plain object to verify
27424
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
27425
+ */
27426
+ UpdateOrderResponse.verify = function verify(message) {
27427
+ if (typeof message !== "object" || message === null)
27428
+ return "object expected";
27429
+ if (message.status != null && message.hasOwnProperty("status"))
27430
+ switch (message.status) {
27431
+ default:
27432
+ return "status: enum value expected";
27433
+ case 0:
27434
+ case 200:
27435
+ case 400:
27436
+ case 401:
27437
+ case 403:
27438
+ case 422:
27439
+ case 404:
27440
+ case 500:
27441
+ case 504:
27442
+ break;
27443
+ }
27444
+ if (message.errors != null && message.hasOwnProperty("errors")) {
27445
+ if (!Array.isArray(message.errors))
27446
+ return "errors: array expected";
27447
+ for (var i = 0; i < message.errors.length; ++i) {
27448
+ var error = $root.Error.verify(message.errors[i]);
27449
+ if (error)
27450
+ return "errors." + error;
27451
+ }
27452
+ }
27453
+ if (message.order != null && message.hasOwnProperty("order")) {
27454
+ var error = $root.Order.verify(message.order);
27455
+ if (error)
27456
+ return "order." + error;
27457
+ }
27458
+ return null;
27459
+ };
27460
+
27461
+ /**
27462
+ * Creates an UpdateOrderResponse message from a plain object. Also converts values to their respective internal types.
27463
+ * @function fromObject
27464
+ * @memberof UpdateOrderResponse
27465
+ * @static
27466
+ * @param {Object.<string,*>} object Plain object
27467
+ * @returns {UpdateOrderResponse} UpdateOrderResponse
27468
+ */
27469
+ UpdateOrderResponse.fromObject = function fromObject(object) {
27470
+ if (object instanceof $root.UpdateOrderResponse)
27471
+ return object;
27472
+ var message = new $root.UpdateOrderResponse();
27473
+ switch (object.status) {
27474
+ case "UNKNOWN_CODE":
27475
+ case 0:
27476
+ message.status = 0;
27477
+ break;
27478
+ case "OK":
27479
+ case 200:
27480
+ message.status = 200;
27481
+ break;
27482
+ case "BAD_REQUEST":
27483
+ case 400:
27484
+ message.status = 400;
27485
+ break;
27486
+ case "UNAUTHORIZED":
27487
+ case 401:
27488
+ message.status = 401;
27489
+ break;
27490
+ case "FORBIDDEN":
27491
+ case 403:
27492
+ message.status = 403;
27493
+ break;
27494
+ case "UNPROCESSABLE_ENTITY":
27495
+ case 422:
27496
+ message.status = 422;
27497
+ break;
27498
+ case "NOT_FOUND":
27499
+ case 404:
27500
+ message.status = 404;
27501
+ break;
27502
+ case "INTERNAL_SERVER_ERROR":
27503
+ case 500:
27504
+ message.status = 500;
27505
+ break;
27506
+ case "GATEWAY_TIMEOUT":
27507
+ case 504:
27508
+ message.status = 504;
27509
+ break;
27510
+ }
27511
+ if (object.errors) {
27512
+ if (!Array.isArray(object.errors))
27513
+ throw TypeError(".UpdateOrderResponse.errors: array expected");
27514
+ message.errors = [];
27515
+ for (var i = 0; i < object.errors.length; ++i) {
27516
+ if (typeof object.errors[i] !== "object")
27517
+ throw TypeError(".UpdateOrderResponse.errors: object expected");
27518
+ message.errors[i] = $root.Error.fromObject(object.errors[i]);
27519
+ }
27520
+ }
27521
+ if (object.order != null) {
27522
+ if (typeof object.order !== "object")
27523
+ throw TypeError(".UpdateOrderResponse.order: object expected");
27524
+ message.order = $root.Order.fromObject(object.order);
27525
+ }
27526
+ return message;
27527
+ };
27528
+
27529
+ /**
27530
+ * Creates a plain object from an UpdateOrderResponse message. Also converts values to other types if specified.
26609
27531
  * @function toObject
26610
- * @memberof UpdateGuestOrderParams
27532
+ * @memberof UpdateOrderResponse
26611
27533
  * @static
26612
- * @param {UpdateGuestOrderParams} message UpdateGuestOrderParams
27534
+ * @param {UpdateOrderResponse} message UpdateOrderResponse
26613
27535
  * @param {$protobuf.IConversionOptions} [options] Conversion options
26614
27536
  * @returns {Object.<string,*>} Plain object
26615
27537
  */
26616
- UpdateGuestOrderParams.toObject = function toObject(message, options) {
27538
+ UpdateOrderResponse.toObject = function toObject(message, options) {
26617
27539
  if (!options)
26618
27540
  options = {};
26619
27541
  var object = {};
27542
+ if (options.arrays || options.defaults)
27543
+ object.errors = [];
26620
27544
  if (options.defaults) {
26621
- object.orderId = "";
26622
- object.email = "";
27545
+ object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
27546
+ object.order = null;
26623
27547
  }
26624
- if (message.orderId != null && message.hasOwnProperty("orderId"))
26625
- object.orderId = message.orderId;
26626
- if (message.email != null && message.hasOwnProperty("email"))
26627
- object.email = message.email;
27548
+ if (message.status != null && message.hasOwnProperty("status"))
27549
+ object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
27550
+ if (message.errors && message.errors.length) {
27551
+ object.errors = [];
27552
+ for (var j = 0; j < message.errors.length; ++j)
27553
+ object.errors[j] = $root.Error.toObject(message.errors[j], options);
27554
+ }
27555
+ if (message.order != null && message.hasOwnProperty("order"))
27556
+ object.order = $root.Order.toObject(message.order, options);
26628
27557
  return object;
26629
27558
  };
26630
27559
 
26631
27560
  /**
26632
- * Converts this UpdateGuestOrderParams to JSON.
27561
+ * Converts this UpdateOrderResponse to JSON.
26633
27562
  * @function toJSON
26634
- * @memberof UpdateGuestOrderParams
27563
+ * @memberof UpdateOrderResponse
26635
27564
  * @instance
26636
27565
  * @returns {Object.<string,*>} JSON object
26637
27566
  */
26638
- UpdateGuestOrderParams.prototype.toJSON = function toJSON() {
27567
+ UpdateOrderResponse.prototype.toJSON = function toJSON() {
26639
27568
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
26640
27569
  };
26641
27570
 
26642
- return UpdateGuestOrderParams;
27571
+ return UpdateOrderResponse;
26643
27572
  })();
26644
27573
 
26645
- $root.UpdateGuestOrderRequest = (function() {
27574
+ $root.OrderIntegrationUpdateRequest = (function() {
26646
27575
 
26647
27576
  /**
26648
- * Properties of an UpdateGuestOrderRequest.
26649
- * @exports IUpdateGuestOrderRequest
26650
- * @interface IUpdateGuestOrderRequest
26651
- * @property {string|null} [spanContext] UpdateGuestOrderRequest spanContext
26652
- * @property {IUpdateGuestOrderParams|null} [params] UpdateGuestOrderRequest params
26653
- * @property {string|null} [requestorId] UpdateGuestOrderRequest requestorId
27577
+ * Properties of an OrderIntegrationUpdateRequest.
27578
+ * @exports IOrderIntegrationUpdateRequest
27579
+ * @interface IOrderIntegrationUpdateRequest
27580
+ * @property {string|null} [spanContext] OrderIntegrationUpdateRequest spanContext
27581
+ * @property {string|null} [orderId] OrderIntegrationUpdateRequest orderId
27582
+ * @property {string|null} [orderIntegrationId] OrderIntegrationUpdateRequest orderIntegrationId
26654
27583
  */
26655
27584
 
26656
27585
  /**
26657
- * Constructs a new UpdateGuestOrderRequest.
26658
- * @exports UpdateGuestOrderRequest
26659
- * @classdesc Represents an UpdateGuestOrderRequest.
26660
- * @implements IUpdateGuestOrderRequest
27586
+ * Constructs a new OrderIntegrationUpdateRequest.
27587
+ * @exports OrderIntegrationUpdateRequest
27588
+ * @classdesc Represents an OrderIntegrationUpdateRequest.
27589
+ * @implements IOrderIntegrationUpdateRequest
26661
27590
  * @constructor
26662
- * @param {IUpdateGuestOrderRequest=} [properties] Properties to set
27591
+ * @param {IOrderIntegrationUpdateRequest=} [properties] Properties to set
26663
27592
  */
26664
- function UpdateGuestOrderRequest(properties) {
27593
+ function OrderIntegrationUpdateRequest(properties) {
26665
27594
  if (properties)
26666
27595
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
26667
27596
  if (properties[keys[i]] != null)
@@ -26669,90 +27598,90 @@ $root.UpdateGuestOrderRequest = (function() {
26669
27598
  }
26670
27599
 
26671
27600
  /**
26672
- * UpdateGuestOrderRequest spanContext.
27601
+ * OrderIntegrationUpdateRequest spanContext.
26673
27602
  * @member {string} spanContext
26674
- * @memberof UpdateGuestOrderRequest
27603
+ * @memberof OrderIntegrationUpdateRequest
26675
27604
  * @instance
26676
27605
  */
26677
- UpdateGuestOrderRequest.prototype.spanContext = "";
27606
+ OrderIntegrationUpdateRequest.prototype.spanContext = "";
26678
27607
 
26679
27608
  /**
26680
- * UpdateGuestOrderRequest params.
26681
- * @member {IUpdateGuestOrderParams|null|undefined} params
26682
- * @memberof UpdateGuestOrderRequest
27609
+ * OrderIntegrationUpdateRequest orderId.
27610
+ * @member {string} orderId
27611
+ * @memberof OrderIntegrationUpdateRequest
26683
27612
  * @instance
26684
27613
  */
26685
- UpdateGuestOrderRequest.prototype.params = null;
27614
+ OrderIntegrationUpdateRequest.prototype.orderId = "";
26686
27615
 
26687
27616
  /**
26688
- * UpdateGuestOrderRequest requestorId.
26689
- * @member {string} requestorId
26690
- * @memberof UpdateGuestOrderRequest
27617
+ * OrderIntegrationUpdateRequest orderIntegrationId.
27618
+ * @member {string} orderIntegrationId
27619
+ * @memberof OrderIntegrationUpdateRequest
26691
27620
  * @instance
26692
27621
  */
26693
- UpdateGuestOrderRequest.prototype.requestorId = "";
27622
+ OrderIntegrationUpdateRequest.prototype.orderIntegrationId = "";
26694
27623
 
26695
27624
  /**
26696
- * Creates a new UpdateGuestOrderRequest instance using the specified properties.
27625
+ * Creates a new OrderIntegrationUpdateRequest instance using the specified properties.
26697
27626
  * @function create
26698
- * @memberof UpdateGuestOrderRequest
27627
+ * @memberof OrderIntegrationUpdateRequest
26699
27628
  * @static
26700
- * @param {IUpdateGuestOrderRequest=} [properties] Properties to set
26701
- * @returns {UpdateGuestOrderRequest} UpdateGuestOrderRequest instance
27629
+ * @param {IOrderIntegrationUpdateRequest=} [properties] Properties to set
27630
+ * @returns {OrderIntegrationUpdateRequest} OrderIntegrationUpdateRequest instance
26702
27631
  */
26703
- UpdateGuestOrderRequest.create = function create(properties) {
26704
- return new UpdateGuestOrderRequest(properties);
27632
+ OrderIntegrationUpdateRequest.create = function create(properties) {
27633
+ return new OrderIntegrationUpdateRequest(properties);
26705
27634
  };
26706
27635
 
26707
27636
  /**
26708
- * Encodes the specified UpdateGuestOrderRequest message. Does not implicitly {@link UpdateGuestOrderRequest.verify|verify} messages.
27637
+ * Encodes the specified OrderIntegrationUpdateRequest message. Does not implicitly {@link OrderIntegrationUpdateRequest.verify|verify} messages.
26709
27638
  * @function encode
26710
- * @memberof UpdateGuestOrderRequest
27639
+ * @memberof OrderIntegrationUpdateRequest
26711
27640
  * @static
26712
- * @param {IUpdateGuestOrderRequest} message UpdateGuestOrderRequest message or plain object to encode
27641
+ * @param {IOrderIntegrationUpdateRequest} message OrderIntegrationUpdateRequest message or plain object to encode
26713
27642
  * @param {$protobuf.Writer} [writer] Writer to encode to
26714
27643
  * @returns {$protobuf.Writer} Writer
26715
27644
  */
26716
- UpdateGuestOrderRequest.encode = function encode(message, writer) {
27645
+ OrderIntegrationUpdateRequest.encode = function encode(message, writer) {
26717
27646
  if (!writer)
26718
27647
  writer = $Writer.create();
26719
27648
  if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
26720
27649
  writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
26721
- if (message.params != null && Object.hasOwnProperty.call(message, "params"))
26722
- $root.UpdateGuestOrderParams.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
26723
- if (message.requestorId != null && Object.hasOwnProperty.call(message, "requestorId"))
26724
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestorId);
27650
+ if (message.orderId != null && Object.hasOwnProperty.call(message, "orderId"))
27651
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.orderId);
27652
+ if (message.orderIntegrationId != null && Object.hasOwnProperty.call(message, "orderIntegrationId"))
27653
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.orderIntegrationId);
26725
27654
  return writer;
26726
27655
  };
26727
27656
 
26728
27657
  /**
26729
- * Encodes the specified UpdateGuestOrderRequest message, length delimited. Does not implicitly {@link UpdateGuestOrderRequest.verify|verify} messages.
27658
+ * Encodes the specified OrderIntegrationUpdateRequest message, length delimited. Does not implicitly {@link OrderIntegrationUpdateRequest.verify|verify} messages.
26730
27659
  * @function encodeDelimited
26731
- * @memberof UpdateGuestOrderRequest
27660
+ * @memberof OrderIntegrationUpdateRequest
26732
27661
  * @static
26733
- * @param {IUpdateGuestOrderRequest} message UpdateGuestOrderRequest message or plain object to encode
27662
+ * @param {IOrderIntegrationUpdateRequest} message OrderIntegrationUpdateRequest message or plain object to encode
26734
27663
  * @param {$protobuf.Writer} [writer] Writer to encode to
26735
27664
  * @returns {$protobuf.Writer} Writer
26736
27665
  */
26737
- UpdateGuestOrderRequest.encodeDelimited = function encodeDelimited(message, writer) {
27666
+ OrderIntegrationUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) {
26738
27667
  return this.encode(message, writer).ldelim();
26739
27668
  };
26740
27669
 
26741
27670
  /**
26742
- * Decodes an UpdateGuestOrderRequest message from the specified reader or buffer.
27671
+ * Decodes an OrderIntegrationUpdateRequest message from the specified reader or buffer.
26743
27672
  * @function decode
26744
- * @memberof UpdateGuestOrderRequest
27673
+ * @memberof OrderIntegrationUpdateRequest
26745
27674
  * @static
26746
27675
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
26747
27676
  * @param {number} [length] Message length if known beforehand
26748
- * @returns {UpdateGuestOrderRequest} UpdateGuestOrderRequest
27677
+ * @returns {OrderIntegrationUpdateRequest} OrderIntegrationUpdateRequest
26749
27678
  * @throws {Error} If the payload is not a reader or valid buffer
26750
27679
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
26751
27680
  */
26752
- UpdateGuestOrderRequest.decode = function decode(reader, length) {
27681
+ OrderIntegrationUpdateRequest.decode = function decode(reader, length) {
26753
27682
  if (!(reader instanceof $Reader))
26754
27683
  reader = $Reader.create(reader);
26755
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UpdateGuestOrderRequest();
27684
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrderIntegrationUpdateRequest();
26756
27685
  while (reader.pos < end) {
26757
27686
  var tag = reader.uint32();
26758
27687
  switch (tag >>> 3) {
@@ -26760,10 +27689,10 @@ $root.UpdateGuestOrderRequest = (function() {
26760
27689
  message.spanContext = reader.string();
26761
27690
  break;
26762
27691
  case 1:
26763
- message.params = $root.UpdateGuestOrderParams.decode(reader, reader.uint32());
27692
+ message.orderId = reader.string();
26764
27693
  break;
26765
27694
  case 2:
26766
- message.requestorId = reader.string();
27695
+ message.orderIntegrationId = reader.string();
26767
27696
  break;
26768
27697
  default:
26769
27698
  reader.skipType(tag & 7);
@@ -26774,131 +27703,126 @@ $root.UpdateGuestOrderRequest = (function() {
26774
27703
  };
26775
27704
 
26776
27705
  /**
26777
- * Decodes an UpdateGuestOrderRequest message from the specified reader or buffer, length delimited.
27706
+ * Decodes an OrderIntegrationUpdateRequest message from the specified reader or buffer, length delimited.
26778
27707
  * @function decodeDelimited
26779
- * @memberof UpdateGuestOrderRequest
27708
+ * @memberof OrderIntegrationUpdateRequest
26780
27709
  * @static
26781
27710
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
26782
- * @returns {UpdateGuestOrderRequest} UpdateGuestOrderRequest
27711
+ * @returns {OrderIntegrationUpdateRequest} OrderIntegrationUpdateRequest
26783
27712
  * @throws {Error} If the payload is not a reader or valid buffer
26784
27713
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
26785
27714
  */
26786
- UpdateGuestOrderRequest.decodeDelimited = function decodeDelimited(reader) {
27715
+ OrderIntegrationUpdateRequest.decodeDelimited = function decodeDelimited(reader) {
26787
27716
  if (!(reader instanceof $Reader))
26788
27717
  reader = new $Reader(reader);
26789
27718
  return this.decode(reader, reader.uint32());
26790
27719
  };
26791
27720
 
26792
27721
  /**
26793
- * Verifies an UpdateGuestOrderRequest message.
27722
+ * Verifies an OrderIntegrationUpdateRequest message.
26794
27723
  * @function verify
26795
- * @memberof UpdateGuestOrderRequest
27724
+ * @memberof OrderIntegrationUpdateRequest
26796
27725
  * @static
26797
27726
  * @param {Object.<string,*>} message Plain object to verify
26798
27727
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
26799
27728
  */
26800
- UpdateGuestOrderRequest.verify = function verify(message) {
27729
+ OrderIntegrationUpdateRequest.verify = function verify(message) {
26801
27730
  if (typeof message !== "object" || message === null)
26802
27731
  return "object expected";
26803
27732
  if (message.spanContext != null && message.hasOwnProperty("spanContext"))
26804
27733
  if (!$util.isString(message.spanContext))
26805
27734
  return "spanContext: string expected";
26806
- if (message.params != null && message.hasOwnProperty("params")) {
26807
- var error = $root.UpdateGuestOrderParams.verify(message.params);
26808
- if (error)
26809
- return "params." + error;
26810
- }
26811
- if (message.requestorId != null && message.hasOwnProperty("requestorId"))
26812
- if (!$util.isString(message.requestorId))
26813
- return "requestorId: string expected";
27735
+ if (message.orderId != null && message.hasOwnProperty("orderId"))
27736
+ if (!$util.isString(message.orderId))
27737
+ return "orderId: string expected";
27738
+ if (message.orderIntegrationId != null && message.hasOwnProperty("orderIntegrationId"))
27739
+ if (!$util.isString(message.orderIntegrationId))
27740
+ return "orderIntegrationId: string expected";
26814
27741
  return null;
26815
27742
  };
26816
27743
 
26817
27744
  /**
26818
- * Creates an UpdateGuestOrderRequest message from a plain object. Also converts values to their respective internal types.
27745
+ * Creates an OrderIntegrationUpdateRequest message from a plain object. Also converts values to their respective internal types.
26819
27746
  * @function fromObject
26820
- * @memberof UpdateGuestOrderRequest
27747
+ * @memberof OrderIntegrationUpdateRequest
26821
27748
  * @static
26822
27749
  * @param {Object.<string,*>} object Plain object
26823
- * @returns {UpdateGuestOrderRequest} UpdateGuestOrderRequest
27750
+ * @returns {OrderIntegrationUpdateRequest} OrderIntegrationUpdateRequest
26824
27751
  */
26825
- UpdateGuestOrderRequest.fromObject = function fromObject(object) {
26826
- if (object instanceof $root.UpdateGuestOrderRequest)
27752
+ OrderIntegrationUpdateRequest.fromObject = function fromObject(object) {
27753
+ if (object instanceof $root.OrderIntegrationUpdateRequest)
26827
27754
  return object;
26828
- var message = new $root.UpdateGuestOrderRequest();
27755
+ var message = new $root.OrderIntegrationUpdateRequest();
26829
27756
  if (object.spanContext != null)
26830
27757
  message.spanContext = String(object.spanContext);
26831
- if (object.params != null) {
26832
- if (typeof object.params !== "object")
26833
- throw TypeError(".UpdateGuestOrderRequest.params: object expected");
26834
- message.params = $root.UpdateGuestOrderParams.fromObject(object.params);
26835
- }
26836
- if (object.requestorId != null)
26837
- message.requestorId = String(object.requestorId);
27758
+ if (object.orderId != null)
27759
+ message.orderId = String(object.orderId);
27760
+ if (object.orderIntegrationId != null)
27761
+ message.orderIntegrationId = String(object.orderIntegrationId);
26838
27762
  return message;
26839
27763
  };
26840
27764
 
26841
27765
  /**
26842
- * Creates a plain object from an UpdateGuestOrderRequest message. Also converts values to other types if specified.
27766
+ * Creates a plain object from an OrderIntegrationUpdateRequest message. Also converts values to other types if specified.
26843
27767
  * @function toObject
26844
- * @memberof UpdateGuestOrderRequest
27768
+ * @memberof OrderIntegrationUpdateRequest
26845
27769
  * @static
26846
- * @param {UpdateGuestOrderRequest} message UpdateGuestOrderRequest
27770
+ * @param {OrderIntegrationUpdateRequest} message OrderIntegrationUpdateRequest
26847
27771
  * @param {$protobuf.IConversionOptions} [options] Conversion options
26848
27772
  * @returns {Object.<string,*>} Plain object
26849
27773
  */
26850
- UpdateGuestOrderRequest.toObject = function toObject(message, options) {
27774
+ OrderIntegrationUpdateRequest.toObject = function toObject(message, options) {
26851
27775
  if (!options)
26852
27776
  options = {};
26853
27777
  var object = {};
26854
27778
  if (options.defaults) {
26855
27779
  object.spanContext = "";
26856
- object.params = null;
26857
- object.requestorId = "";
27780
+ object.orderId = "";
27781
+ object.orderIntegrationId = "";
26858
27782
  }
26859
27783
  if (message.spanContext != null && message.hasOwnProperty("spanContext"))
26860
27784
  object.spanContext = message.spanContext;
26861
- if (message.params != null && message.hasOwnProperty("params"))
26862
- object.params = $root.UpdateGuestOrderParams.toObject(message.params, options);
26863
- if (message.requestorId != null && message.hasOwnProperty("requestorId"))
26864
- object.requestorId = message.requestorId;
27785
+ if (message.orderId != null && message.hasOwnProperty("orderId"))
27786
+ object.orderId = message.orderId;
27787
+ if (message.orderIntegrationId != null && message.hasOwnProperty("orderIntegrationId"))
27788
+ object.orderIntegrationId = message.orderIntegrationId;
26865
27789
  return object;
26866
27790
  };
26867
27791
 
26868
27792
  /**
26869
- * Converts this UpdateGuestOrderRequest to JSON.
27793
+ * Converts this OrderIntegrationUpdateRequest to JSON.
26870
27794
  * @function toJSON
26871
- * @memberof UpdateGuestOrderRequest
27795
+ * @memberof OrderIntegrationUpdateRequest
26872
27796
  * @instance
26873
27797
  * @returns {Object.<string,*>} JSON object
26874
27798
  */
26875
- UpdateGuestOrderRequest.prototype.toJSON = function toJSON() {
27799
+ OrderIntegrationUpdateRequest.prototype.toJSON = function toJSON() {
26876
27800
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
26877
27801
  };
26878
27802
 
26879
- return UpdateGuestOrderRequest;
27803
+ return OrderIntegrationUpdateRequest;
26880
27804
  })();
26881
27805
 
26882
- $root.UpdateOrderResponse = (function() {
27806
+ $root.OrderIntegrationUpdateResponse = (function() {
26883
27807
 
26884
27808
  /**
26885
- * Properties of an UpdateOrderResponse.
26886
- * @exports IUpdateOrderResponse
26887
- * @interface IUpdateOrderResponse
26888
- * @property {StatusCode|null} [status] UpdateOrderResponse status
26889
- * @property {Array.<IError>|null} [errors] UpdateOrderResponse errors
26890
- * @property {IOrder|null} [order] UpdateOrderResponse order
27809
+ * Properties of an OrderIntegrationUpdateResponse.
27810
+ * @exports IOrderIntegrationUpdateResponse
27811
+ * @interface IOrderIntegrationUpdateResponse
27812
+ * @property {StatusCode|null} [status] OrderIntegrationUpdateResponse status
27813
+ * @property {Array.<IError>|null} [errors] OrderIntegrationUpdateResponse errors
27814
+ * @property {IOrder|null} [order] OrderIntegrationUpdateResponse order
26891
27815
  */
26892
27816
 
26893
27817
  /**
26894
- * Constructs a new UpdateOrderResponse.
26895
- * @exports UpdateOrderResponse
26896
- * @classdesc Represents an UpdateOrderResponse.
26897
- * @implements IUpdateOrderResponse
27818
+ * Constructs a new OrderIntegrationUpdateResponse.
27819
+ * @exports OrderIntegrationUpdateResponse
27820
+ * @classdesc Represents an OrderIntegrationUpdateResponse.
27821
+ * @implements IOrderIntegrationUpdateResponse
26898
27822
  * @constructor
26899
- * @param {IUpdateOrderResponse=} [properties] Properties to set
27823
+ * @param {IOrderIntegrationUpdateResponse=} [properties] Properties to set
26900
27824
  */
26901
- function UpdateOrderResponse(properties) {
27825
+ function OrderIntegrationUpdateResponse(properties) {
26902
27826
  this.errors = [];
26903
27827
  if (properties)
26904
27828
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
@@ -26907,103 +27831,103 @@ $root.UpdateOrderResponse = (function() {
26907
27831
  }
26908
27832
 
26909
27833
  /**
26910
- * UpdateOrderResponse status.
27834
+ * OrderIntegrationUpdateResponse status.
26911
27835
  * @member {StatusCode} status
26912
- * @memberof UpdateOrderResponse
27836
+ * @memberof OrderIntegrationUpdateResponse
26913
27837
  * @instance
26914
27838
  */
26915
- UpdateOrderResponse.prototype.status = 0;
27839
+ OrderIntegrationUpdateResponse.prototype.status = 0;
26916
27840
 
26917
27841
  /**
26918
- * UpdateOrderResponse errors.
27842
+ * OrderIntegrationUpdateResponse errors.
26919
27843
  * @member {Array.<IError>} errors
26920
- * @memberof UpdateOrderResponse
27844
+ * @memberof OrderIntegrationUpdateResponse
26921
27845
  * @instance
26922
27846
  */
26923
- UpdateOrderResponse.prototype.errors = $util.emptyArray;
27847
+ OrderIntegrationUpdateResponse.prototype.errors = $util.emptyArray;
26924
27848
 
26925
27849
  /**
26926
- * UpdateOrderResponse order.
27850
+ * OrderIntegrationUpdateResponse order.
26927
27851
  * @member {IOrder|null|undefined} order
26928
- * @memberof UpdateOrderResponse
27852
+ * @memberof OrderIntegrationUpdateResponse
26929
27853
  * @instance
26930
27854
  */
26931
- UpdateOrderResponse.prototype.order = null;
27855
+ OrderIntegrationUpdateResponse.prototype.order = null;
26932
27856
 
26933
27857
  /**
26934
- * Creates a new UpdateOrderResponse instance using the specified properties.
27858
+ * Creates a new OrderIntegrationUpdateResponse instance using the specified properties.
26935
27859
  * @function create
26936
- * @memberof UpdateOrderResponse
27860
+ * @memberof OrderIntegrationUpdateResponse
26937
27861
  * @static
26938
- * @param {IUpdateOrderResponse=} [properties] Properties to set
26939
- * @returns {UpdateOrderResponse} UpdateOrderResponse instance
27862
+ * @param {IOrderIntegrationUpdateResponse=} [properties] Properties to set
27863
+ * @returns {OrderIntegrationUpdateResponse} OrderIntegrationUpdateResponse instance
26940
27864
  */
26941
- UpdateOrderResponse.create = function create(properties) {
26942
- return new UpdateOrderResponse(properties);
27865
+ OrderIntegrationUpdateResponse.create = function create(properties) {
27866
+ return new OrderIntegrationUpdateResponse(properties);
26943
27867
  };
26944
27868
 
26945
27869
  /**
26946
- * Encodes the specified UpdateOrderResponse message. Does not implicitly {@link UpdateOrderResponse.verify|verify} messages.
27870
+ * Encodes the specified OrderIntegrationUpdateResponse message. Does not implicitly {@link OrderIntegrationUpdateResponse.verify|verify} messages.
26947
27871
  * @function encode
26948
- * @memberof UpdateOrderResponse
27872
+ * @memberof OrderIntegrationUpdateResponse
26949
27873
  * @static
26950
- * @param {IUpdateOrderResponse} message UpdateOrderResponse message or plain object to encode
27874
+ * @param {IOrderIntegrationUpdateResponse} message OrderIntegrationUpdateResponse message or plain object to encode
26951
27875
  * @param {$protobuf.Writer} [writer] Writer to encode to
26952
27876
  * @returns {$protobuf.Writer} Writer
26953
27877
  */
26954
- UpdateOrderResponse.encode = function encode(message, writer) {
27878
+ OrderIntegrationUpdateResponse.encode = function encode(message, writer) {
26955
27879
  if (!writer)
26956
27880
  writer = $Writer.create();
26957
27881
  if (message.status != null && Object.hasOwnProperty.call(message, "status"))
26958
- writer.uint32(/* id 1, wireType 0 =*/8).int32(message.status);
27882
+ writer.uint32(/* id 0, wireType 0 =*/0).int32(message.status);
26959
27883
  if (message.errors != null && message.errors.length)
26960
27884
  for (var i = 0; i < message.errors.length; ++i)
26961
- $root.Error.encode(message.errors[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
27885
+ $root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
26962
27886
  if (message.order != null && Object.hasOwnProperty.call(message, "order"))
26963
- $root.Order.encode(message.order, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
27887
+ $root.Order.encode(message.order, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
26964
27888
  return writer;
26965
27889
  };
26966
27890
 
26967
27891
  /**
26968
- * Encodes the specified UpdateOrderResponse message, length delimited. Does not implicitly {@link UpdateOrderResponse.verify|verify} messages.
27892
+ * Encodes the specified OrderIntegrationUpdateResponse message, length delimited. Does not implicitly {@link OrderIntegrationUpdateResponse.verify|verify} messages.
26969
27893
  * @function encodeDelimited
26970
- * @memberof UpdateOrderResponse
27894
+ * @memberof OrderIntegrationUpdateResponse
26971
27895
  * @static
26972
- * @param {IUpdateOrderResponse} message UpdateOrderResponse message or plain object to encode
27896
+ * @param {IOrderIntegrationUpdateResponse} message OrderIntegrationUpdateResponse message or plain object to encode
26973
27897
  * @param {$protobuf.Writer} [writer] Writer to encode to
26974
27898
  * @returns {$protobuf.Writer} Writer
26975
27899
  */
26976
- UpdateOrderResponse.encodeDelimited = function encodeDelimited(message, writer) {
27900
+ OrderIntegrationUpdateResponse.encodeDelimited = function encodeDelimited(message, writer) {
26977
27901
  return this.encode(message, writer).ldelim();
26978
27902
  };
26979
27903
 
26980
27904
  /**
26981
- * Decodes an UpdateOrderResponse message from the specified reader or buffer.
27905
+ * Decodes an OrderIntegrationUpdateResponse message from the specified reader or buffer.
26982
27906
  * @function decode
26983
- * @memberof UpdateOrderResponse
27907
+ * @memberof OrderIntegrationUpdateResponse
26984
27908
  * @static
26985
27909
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
26986
27910
  * @param {number} [length] Message length if known beforehand
26987
- * @returns {UpdateOrderResponse} UpdateOrderResponse
27911
+ * @returns {OrderIntegrationUpdateResponse} OrderIntegrationUpdateResponse
26988
27912
  * @throws {Error} If the payload is not a reader or valid buffer
26989
27913
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
26990
27914
  */
26991
- UpdateOrderResponse.decode = function decode(reader, length) {
27915
+ OrderIntegrationUpdateResponse.decode = function decode(reader, length) {
26992
27916
  if (!(reader instanceof $Reader))
26993
27917
  reader = $Reader.create(reader);
26994
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UpdateOrderResponse();
27918
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrderIntegrationUpdateResponse();
26995
27919
  while (reader.pos < end) {
26996
27920
  var tag = reader.uint32();
26997
27921
  switch (tag >>> 3) {
26998
- case 1:
27922
+ case 0:
26999
27923
  message.status = reader.int32();
27000
27924
  break;
27001
- case 2:
27925
+ case 1:
27002
27926
  if (!(message.errors && message.errors.length))
27003
27927
  message.errors = [];
27004
27928
  message.errors.push($root.Error.decode(reader, reader.uint32()));
27005
27929
  break;
27006
- case 3:
27930
+ case 2:
27007
27931
  message.order = $root.Order.decode(reader, reader.uint32());
27008
27932
  break;
27009
27933
  default:
@@ -27015,30 +27939,30 @@ $root.UpdateOrderResponse = (function() {
27015
27939
  };
27016
27940
 
27017
27941
  /**
27018
- * Decodes an UpdateOrderResponse message from the specified reader or buffer, length delimited.
27942
+ * Decodes an OrderIntegrationUpdateResponse message from the specified reader or buffer, length delimited.
27019
27943
  * @function decodeDelimited
27020
- * @memberof UpdateOrderResponse
27944
+ * @memberof OrderIntegrationUpdateResponse
27021
27945
  * @static
27022
27946
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
27023
- * @returns {UpdateOrderResponse} UpdateOrderResponse
27947
+ * @returns {OrderIntegrationUpdateResponse} OrderIntegrationUpdateResponse
27024
27948
  * @throws {Error} If the payload is not a reader or valid buffer
27025
27949
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
27026
27950
  */
27027
- UpdateOrderResponse.decodeDelimited = function decodeDelimited(reader) {
27951
+ OrderIntegrationUpdateResponse.decodeDelimited = function decodeDelimited(reader) {
27028
27952
  if (!(reader instanceof $Reader))
27029
27953
  reader = new $Reader(reader);
27030
27954
  return this.decode(reader, reader.uint32());
27031
27955
  };
27032
27956
 
27033
27957
  /**
27034
- * Verifies an UpdateOrderResponse message.
27958
+ * Verifies an OrderIntegrationUpdateResponse message.
27035
27959
  * @function verify
27036
- * @memberof UpdateOrderResponse
27960
+ * @memberof OrderIntegrationUpdateResponse
27037
27961
  * @static
27038
27962
  * @param {Object.<string,*>} message Plain object to verify
27039
27963
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
27040
27964
  */
27041
- UpdateOrderResponse.verify = function verify(message) {
27965
+ OrderIntegrationUpdateResponse.verify = function verify(message) {
27042
27966
  if (typeof message !== "object" || message === null)
27043
27967
  return "object expected";
27044
27968
  if (message.status != null && message.hasOwnProperty("status"))
@@ -27074,17 +27998,17 @@ $root.UpdateOrderResponse = (function() {
27074
27998
  };
27075
27999
 
27076
28000
  /**
27077
- * Creates an UpdateOrderResponse message from a plain object. Also converts values to their respective internal types.
28001
+ * Creates an OrderIntegrationUpdateResponse message from a plain object. Also converts values to their respective internal types.
27078
28002
  * @function fromObject
27079
- * @memberof UpdateOrderResponse
28003
+ * @memberof OrderIntegrationUpdateResponse
27080
28004
  * @static
27081
28005
  * @param {Object.<string,*>} object Plain object
27082
- * @returns {UpdateOrderResponse} UpdateOrderResponse
28006
+ * @returns {OrderIntegrationUpdateResponse} OrderIntegrationUpdateResponse
27083
28007
  */
27084
- UpdateOrderResponse.fromObject = function fromObject(object) {
27085
- if (object instanceof $root.UpdateOrderResponse)
28008
+ OrderIntegrationUpdateResponse.fromObject = function fromObject(object) {
28009
+ if (object instanceof $root.OrderIntegrationUpdateResponse)
27086
28010
  return object;
27087
- var message = new $root.UpdateOrderResponse();
28011
+ var message = new $root.OrderIntegrationUpdateResponse();
27088
28012
  switch (object.status) {
27089
28013
  case "UNKNOWN_CODE":
27090
28014
  case 0:
@@ -27125,32 +28049,32 @@ $root.UpdateOrderResponse = (function() {
27125
28049
  }
27126
28050
  if (object.errors) {
27127
28051
  if (!Array.isArray(object.errors))
27128
- throw TypeError(".UpdateOrderResponse.errors: array expected");
28052
+ throw TypeError(".OrderIntegrationUpdateResponse.errors: array expected");
27129
28053
  message.errors = [];
27130
28054
  for (var i = 0; i < object.errors.length; ++i) {
27131
28055
  if (typeof object.errors[i] !== "object")
27132
- throw TypeError(".UpdateOrderResponse.errors: object expected");
28056
+ throw TypeError(".OrderIntegrationUpdateResponse.errors: object expected");
27133
28057
  message.errors[i] = $root.Error.fromObject(object.errors[i]);
27134
28058
  }
27135
28059
  }
27136
28060
  if (object.order != null) {
27137
28061
  if (typeof object.order !== "object")
27138
- throw TypeError(".UpdateOrderResponse.order: object expected");
28062
+ throw TypeError(".OrderIntegrationUpdateResponse.order: object expected");
27139
28063
  message.order = $root.Order.fromObject(object.order);
27140
28064
  }
27141
28065
  return message;
27142
28066
  };
27143
28067
 
27144
28068
  /**
27145
- * Creates a plain object from an UpdateOrderResponse message. Also converts values to other types if specified.
28069
+ * Creates a plain object from an OrderIntegrationUpdateResponse message. Also converts values to other types if specified.
27146
28070
  * @function toObject
27147
- * @memberof UpdateOrderResponse
28071
+ * @memberof OrderIntegrationUpdateResponse
27148
28072
  * @static
27149
- * @param {UpdateOrderResponse} message UpdateOrderResponse
28073
+ * @param {OrderIntegrationUpdateResponse} message OrderIntegrationUpdateResponse
27150
28074
  * @param {$protobuf.IConversionOptions} [options] Conversion options
27151
28075
  * @returns {Object.<string,*>} Plain object
27152
28076
  */
27153
- UpdateOrderResponse.toObject = function toObject(message, options) {
28077
+ OrderIntegrationUpdateResponse.toObject = function toObject(message, options) {
27154
28078
  if (!options)
27155
28079
  options = {};
27156
28080
  var object = {};
@@ -27173,17 +28097,17 @@ $root.UpdateOrderResponse = (function() {
27173
28097
  };
27174
28098
 
27175
28099
  /**
27176
- * Converts this UpdateOrderResponse to JSON.
28100
+ * Converts this OrderIntegrationUpdateResponse to JSON.
27177
28101
  * @function toJSON
27178
- * @memberof UpdateOrderResponse
28102
+ * @memberof OrderIntegrationUpdateResponse
27179
28103
  * @instance
27180
28104
  * @returns {Object.<string,*>} JSON object
27181
28105
  */
27182
- UpdateOrderResponse.prototype.toJSON = function toJSON() {
28106
+ OrderIntegrationUpdateResponse.prototype.toJSON = function toJSON() {
27183
28107
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
27184
28108
  };
27185
28109
 
27186
- return UpdateOrderResponse;
28110
+ return OrderIntegrationUpdateResponse;
27187
28111
  })();
27188
28112
 
27189
28113
  $root.SendOrderReceiptEmailRequest = (function() {
@@ -41182,6 +42106,39 @@ $root.OrderService = (function() {
41182
42106
  * @variation 2
41183
42107
  */
41184
42108
 
42109
+ /**
42110
+ * Callback as used by {@link OrderService#orderIntegrationUpdate}.
42111
+ * @memberof OrderService
42112
+ * @typedef orderIntegrationUpdateCallback
42113
+ * @type {function}
42114
+ * @param {Error|null} error Error, if any
42115
+ * @param {OrderIntegrationUpdateResponse} [response] OrderIntegrationUpdateResponse
42116
+ */
42117
+
42118
+ /**
42119
+ * Calls orderIntegrationUpdate.
42120
+ * @function orderIntegrationUpdate
42121
+ * @memberof OrderService
42122
+ * @instance
42123
+ * @param {IOrderIntegrationUpdateRequest} request OrderIntegrationUpdateRequest message or plain object
42124
+ * @param {OrderService.orderIntegrationUpdateCallback} callback Node-style callback called with the error, if any, and OrderIntegrationUpdateResponse
42125
+ * @returns {undefined}
42126
+ * @variation 1
42127
+ */
42128
+ Object.defineProperty(OrderService.prototype.orderIntegrationUpdate = function orderIntegrationUpdate(request, callback) {
42129
+ return this.rpcCall(orderIntegrationUpdate, $root.OrderIntegrationUpdateRequest, $root.OrderIntegrationUpdateResponse, request, callback);
42130
+ }, "name", { value: "orderIntegrationUpdate" });
42131
+
42132
+ /**
42133
+ * Calls orderIntegrationUpdate.
42134
+ * @function orderIntegrationUpdate
42135
+ * @memberof OrderService
42136
+ * @instance
42137
+ * @param {IOrderIntegrationUpdateRequest} request OrderIntegrationUpdateRequest message or plain object
42138
+ * @returns {Promise<OrderIntegrationUpdateResponse>} Promise
42139
+ * @variation 2
42140
+ */
42141
+
41185
42142
  return OrderService;
41186
42143
  })();
41187
42144