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