@sellout/models 0.0.112 → 0.0.117
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/queries/customerProfile.query.js +0 -12
- package/.dist/graphql/queries/customerProfile.query.js.map +1 -1
- package/.dist/graphql/queries/userExists.query.js +5 -2
- package/.dist/graphql/queries/userExists.query.js.map +1 -1
- package/.dist/interfaces/IEvent.d.ts +1 -0
- package/.dist/sellout-proto.js +633 -0
- package/.dist/utils/AnalyticsUtil.js +2 -2
- package/.dist/utils/AnalyticsUtil.js.map +1 -1
- package/.dist/utils/OrderUtil.js +85 -7
- package/.dist/utils/OrderUtil.js.map +1 -1
- package/package.json +3 -3
- package/src/graphql/queries/customerProfile.query.ts +0 -12
- package/src/graphql/queries/userExists.query.ts +5 -2
- package/src/interfaces/IEvent.ts +1 -0
- package/src/proto/email.proto +1 -0
- package/src/proto/fee.proto +18 -0
- package/src/proto/user.proto +1 -0
- package/src/utils/AnalyticsUtil.ts +2 -2
- package/src/utils/OrderUtil.ts +101 -0
package/.dist/sellout-proto.js
CHANGED
|
@@ -28851,6 +28851,7 @@ $root.QueueOrderQRCodeEmailRequest = (function() {
|
|
|
28851
28851
|
* @property {string|null} [orderSubtotal] QueueOrderQRCodeEmailRequest orderSubtotal
|
|
28852
28852
|
* @property {string|null} [venuePosterImageUrl] QueueOrderQRCodeEmailRequest venuePosterImageUrl
|
|
28853
28853
|
* @property {boolean|null} [isRSVP] QueueOrderQRCodeEmailRequest isRSVP
|
|
28854
|
+
* @property {string|null} [orderTax] QueueOrderQRCodeEmailRequest orderTax
|
|
28854
28855
|
*/
|
|
28855
28856
|
|
|
28856
28857
|
/**
|
|
@@ -29093,6 +29094,14 @@ $root.QueueOrderQRCodeEmailRequest = (function() {
|
|
|
29093
29094
|
*/
|
|
29094
29095
|
QueueOrderQRCodeEmailRequest.prototype.isRSVP = false;
|
|
29095
29096
|
|
|
29097
|
+
/**
|
|
29098
|
+
* QueueOrderQRCodeEmailRequest orderTax.
|
|
29099
|
+
* @member {string} orderTax
|
|
29100
|
+
* @memberof QueueOrderQRCodeEmailRequest
|
|
29101
|
+
* @instance
|
|
29102
|
+
*/
|
|
29103
|
+
QueueOrderQRCodeEmailRequest.prototype.orderTax = "";
|
|
29104
|
+
|
|
29096
29105
|
/**
|
|
29097
29106
|
* Creates a new QueueOrderQRCodeEmailRequest instance using the specified properties.
|
|
29098
29107
|
* @function create
|
|
@@ -29174,6 +29183,8 @@ $root.QueueOrderQRCodeEmailRequest = (function() {
|
|
|
29174
29183
|
writer.uint32(/* id 26, wireType 2 =*/210).string(message.venuePosterImageUrl);
|
|
29175
29184
|
if (message.isRSVP != null && Object.hasOwnProperty.call(message, "isRSVP"))
|
|
29176
29185
|
writer.uint32(/* id 27, wireType 0 =*/216).bool(message.isRSVP);
|
|
29186
|
+
if (message.orderTax != null && Object.hasOwnProperty.call(message, "orderTax"))
|
|
29187
|
+
writer.uint32(/* id 28, wireType 2 =*/226).string(message.orderTax);
|
|
29177
29188
|
return writer;
|
|
29178
29189
|
};
|
|
29179
29190
|
|
|
@@ -29294,6 +29305,9 @@ $root.QueueOrderQRCodeEmailRequest = (function() {
|
|
|
29294
29305
|
case 27:
|
|
29295
29306
|
message.isRSVP = reader.bool();
|
|
29296
29307
|
break;
|
|
29308
|
+
case 28:
|
|
29309
|
+
message.orderTax = reader.string();
|
|
29310
|
+
break;
|
|
29297
29311
|
default:
|
|
29298
29312
|
reader.skipType(tag & 7);
|
|
29299
29313
|
break;
|
|
@@ -29419,6 +29433,9 @@ $root.QueueOrderQRCodeEmailRequest = (function() {
|
|
|
29419
29433
|
if (message.isRSVP != null && message.hasOwnProperty("isRSVP"))
|
|
29420
29434
|
if (typeof message.isRSVP !== "boolean")
|
|
29421
29435
|
return "isRSVP: boolean expected";
|
|
29436
|
+
if (message.orderTax != null && message.hasOwnProperty("orderTax"))
|
|
29437
|
+
if (!$util.isString(message.orderTax))
|
|
29438
|
+
return "orderTax: string expected";
|
|
29422
29439
|
return null;
|
|
29423
29440
|
};
|
|
29424
29441
|
|
|
@@ -29498,6 +29515,8 @@ $root.QueueOrderQRCodeEmailRequest = (function() {
|
|
|
29498
29515
|
message.venuePosterImageUrl = String(object.venuePosterImageUrl);
|
|
29499
29516
|
if (object.isRSVP != null)
|
|
29500
29517
|
message.isRSVP = Boolean(object.isRSVP);
|
|
29518
|
+
if (object.orderTax != null)
|
|
29519
|
+
message.orderTax = String(object.orderTax);
|
|
29501
29520
|
return message;
|
|
29502
29521
|
};
|
|
29503
29522
|
|
|
@@ -29544,6 +29563,7 @@ $root.QueueOrderQRCodeEmailRequest = (function() {
|
|
|
29544
29563
|
object.orderSubtotal = "";
|
|
29545
29564
|
object.venuePosterImageUrl = "";
|
|
29546
29565
|
object.isRSVP = false;
|
|
29566
|
+
object.orderTax = "";
|
|
29547
29567
|
}
|
|
29548
29568
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
29549
29569
|
object.spanContext = message.spanContext;
|
|
@@ -29604,6 +29624,8 @@ $root.QueueOrderQRCodeEmailRequest = (function() {
|
|
|
29604
29624
|
object.venuePosterImageUrl = message.venuePosterImageUrl;
|
|
29605
29625
|
if (message.isRSVP != null && message.hasOwnProperty("isRSVP"))
|
|
29606
29626
|
object.isRSVP = message.isRSVP;
|
|
29627
|
+
if (message.orderTax != null && message.hasOwnProperty("orderTax"))
|
|
29628
|
+
object.orderTax = message.orderTax;
|
|
29607
29629
|
return object;
|
|
29608
29630
|
};
|
|
29609
29631
|
|
|
@@ -44194,6 +44216,562 @@ $root.UpdateFeeResponse = (function() {
|
|
|
44194
44216
|
return UpdateFeeResponse;
|
|
44195
44217
|
})();
|
|
44196
44218
|
|
|
44219
|
+
$root.updateFeeByEventRequest = (function() {
|
|
44220
|
+
|
|
44221
|
+
/**
|
|
44222
|
+
* Properties of an updateFeeByEventRequest.
|
|
44223
|
+
* @exports IupdateFeeByEventRequest
|
|
44224
|
+
* @interface IupdateFeeByEventRequest
|
|
44225
|
+
* @property {string|null} [spanContext] updateFeeByEventRequest spanContext
|
|
44226
|
+
* @property {string|null} [eventId] updateFeeByEventRequest eventId
|
|
44227
|
+
* @property {string|null} [name] updateFeeByEventRequest name
|
|
44228
|
+
* @property {number|null} [value] updateFeeByEventRequest value
|
|
44229
|
+
*/
|
|
44230
|
+
|
|
44231
|
+
/**
|
|
44232
|
+
* Constructs a new updateFeeByEventRequest.
|
|
44233
|
+
* @exports updateFeeByEventRequest
|
|
44234
|
+
* @classdesc Represents an updateFeeByEventRequest.
|
|
44235
|
+
* @implements IupdateFeeByEventRequest
|
|
44236
|
+
* @constructor
|
|
44237
|
+
* @param {IupdateFeeByEventRequest=} [properties] Properties to set
|
|
44238
|
+
*/
|
|
44239
|
+
function updateFeeByEventRequest(properties) {
|
|
44240
|
+
if (properties)
|
|
44241
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
44242
|
+
if (properties[keys[i]] != null)
|
|
44243
|
+
this[keys[i]] = properties[keys[i]];
|
|
44244
|
+
}
|
|
44245
|
+
|
|
44246
|
+
/**
|
|
44247
|
+
* updateFeeByEventRequest spanContext.
|
|
44248
|
+
* @member {string} spanContext
|
|
44249
|
+
* @memberof updateFeeByEventRequest
|
|
44250
|
+
* @instance
|
|
44251
|
+
*/
|
|
44252
|
+
updateFeeByEventRequest.prototype.spanContext = "";
|
|
44253
|
+
|
|
44254
|
+
/**
|
|
44255
|
+
* updateFeeByEventRequest eventId.
|
|
44256
|
+
* @member {string} eventId
|
|
44257
|
+
* @memberof updateFeeByEventRequest
|
|
44258
|
+
* @instance
|
|
44259
|
+
*/
|
|
44260
|
+
updateFeeByEventRequest.prototype.eventId = "";
|
|
44261
|
+
|
|
44262
|
+
/**
|
|
44263
|
+
* updateFeeByEventRequest name.
|
|
44264
|
+
* @member {string} name
|
|
44265
|
+
* @memberof updateFeeByEventRequest
|
|
44266
|
+
* @instance
|
|
44267
|
+
*/
|
|
44268
|
+
updateFeeByEventRequest.prototype.name = "";
|
|
44269
|
+
|
|
44270
|
+
/**
|
|
44271
|
+
* updateFeeByEventRequest value.
|
|
44272
|
+
* @member {number} value
|
|
44273
|
+
* @memberof updateFeeByEventRequest
|
|
44274
|
+
* @instance
|
|
44275
|
+
*/
|
|
44276
|
+
updateFeeByEventRequest.prototype.value = 0;
|
|
44277
|
+
|
|
44278
|
+
/**
|
|
44279
|
+
* Creates a new updateFeeByEventRequest instance using the specified properties.
|
|
44280
|
+
* @function create
|
|
44281
|
+
* @memberof updateFeeByEventRequest
|
|
44282
|
+
* @static
|
|
44283
|
+
* @param {IupdateFeeByEventRequest=} [properties] Properties to set
|
|
44284
|
+
* @returns {updateFeeByEventRequest} updateFeeByEventRequest instance
|
|
44285
|
+
*/
|
|
44286
|
+
updateFeeByEventRequest.create = function create(properties) {
|
|
44287
|
+
return new updateFeeByEventRequest(properties);
|
|
44288
|
+
};
|
|
44289
|
+
|
|
44290
|
+
/**
|
|
44291
|
+
* Encodes the specified updateFeeByEventRequest message. Does not implicitly {@link updateFeeByEventRequest.verify|verify} messages.
|
|
44292
|
+
* @function encode
|
|
44293
|
+
* @memberof updateFeeByEventRequest
|
|
44294
|
+
* @static
|
|
44295
|
+
* @param {IupdateFeeByEventRequest} message updateFeeByEventRequest message or plain object to encode
|
|
44296
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
44297
|
+
* @returns {$protobuf.Writer} Writer
|
|
44298
|
+
*/
|
|
44299
|
+
updateFeeByEventRequest.encode = function encode(message, writer) {
|
|
44300
|
+
if (!writer)
|
|
44301
|
+
writer = $Writer.create();
|
|
44302
|
+
if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
|
|
44303
|
+
writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
|
|
44304
|
+
if (message.eventId != null && Object.hasOwnProperty.call(message, "eventId"))
|
|
44305
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.eventId);
|
|
44306
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
44307
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
|
|
44308
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
44309
|
+
writer.uint32(/* id 3, wireType 1 =*/25).double(message.value);
|
|
44310
|
+
return writer;
|
|
44311
|
+
};
|
|
44312
|
+
|
|
44313
|
+
/**
|
|
44314
|
+
* Encodes the specified updateFeeByEventRequest message, length delimited. Does not implicitly {@link updateFeeByEventRequest.verify|verify} messages.
|
|
44315
|
+
* @function encodeDelimited
|
|
44316
|
+
* @memberof updateFeeByEventRequest
|
|
44317
|
+
* @static
|
|
44318
|
+
* @param {IupdateFeeByEventRequest} message updateFeeByEventRequest message or plain object to encode
|
|
44319
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
44320
|
+
* @returns {$protobuf.Writer} Writer
|
|
44321
|
+
*/
|
|
44322
|
+
updateFeeByEventRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
44323
|
+
return this.encode(message, writer).ldelim();
|
|
44324
|
+
};
|
|
44325
|
+
|
|
44326
|
+
/**
|
|
44327
|
+
* Decodes an updateFeeByEventRequest message from the specified reader or buffer.
|
|
44328
|
+
* @function decode
|
|
44329
|
+
* @memberof updateFeeByEventRequest
|
|
44330
|
+
* @static
|
|
44331
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
44332
|
+
* @param {number} [length] Message length if known beforehand
|
|
44333
|
+
* @returns {updateFeeByEventRequest} updateFeeByEventRequest
|
|
44334
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
44335
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
44336
|
+
*/
|
|
44337
|
+
updateFeeByEventRequest.decode = function decode(reader, length) {
|
|
44338
|
+
if (!(reader instanceof $Reader))
|
|
44339
|
+
reader = $Reader.create(reader);
|
|
44340
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.updateFeeByEventRequest();
|
|
44341
|
+
while (reader.pos < end) {
|
|
44342
|
+
var tag = reader.uint32();
|
|
44343
|
+
switch (tag >>> 3) {
|
|
44344
|
+
case 0:
|
|
44345
|
+
message.spanContext = reader.string();
|
|
44346
|
+
break;
|
|
44347
|
+
case 1:
|
|
44348
|
+
message.eventId = reader.string();
|
|
44349
|
+
break;
|
|
44350
|
+
case 2:
|
|
44351
|
+
message.name = reader.string();
|
|
44352
|
+
break;
|
|
44353
|
+
case 3:
|
|
44354
|
+
message.value = reader.double();
|
|
44355
|
+
break;
|
|
44356
|
+
default:
|
|
44357
|
+
reader.skipType(tag & 7);
|
|
44358
|
+
break;
|
|
44359
|
+
}
|
|
44360
|
+
}
|
|
44361
|
+
return message;
|
|
44362
|
+
};
|
|
44363
|
+
|
|
44364
|
+
/**
|
|
44365
|
+
* Decodes an updateFeeByEventRequest message from the specified reader or buffer, length delimited.
|
|
44366
|
+
* @function decodeDelimited
|
|
44367
|
+
* @memberof updateFeeByEventRequest
|
|
44368
|
+
* @static
|
|
44369
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
44370
|
+
* @returns {updateFeeByEventRequest} updateFeeByEventRequest
|
|
44371
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
44372
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
44373
|
+
*/
|
|
44374
|
+
updateFeeByEventRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
44375
|
+
if (!(reader instanceof $Reader))
|
|
44376
|
+
reader = new $Reader(reader);
|
|
44377
|
+
return this.decode(reader, reader.uint32());
|
|
44378
|
+
};
|
|
44379
|
+
|
|
44380
|
+
/**
|
|
44381
|
+
* Verifies an updateFeeByEventRequest message.
|
|
44382
|
+
* @function verify
|
|
44383
|
+
* @memberof updateFeeByEventRequest
|
|
44384
|
+
* @static
|
|
44385
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
44386
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
44387
|
+
*/
|
|
44388
|
+
updateFeeByEventRequest.verify = function verify(message) {
|
|
44389
|
+
if (typeof message !== "object" || message === null)
|
|
44390
|
+
return "object expected";
|
|
44391
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
44392
|
+
if (!$util.isString(message.spanContext))
|
|
44393
|
+
return "spanContext: string expected";
|
|
44394
|
+
if (message.eventId != null && message.hasOwnProperty("eventId"))
|
|
44395
|
+
if (!$util.isString(message.eventId))
|
|
44396
|
+
return "eventId: string expected";
|
|
44397
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
44398
|
+
if (!$util.isString(message.name))
|
|
44399
|
+
return "name: string expected";
|
|
44400
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
44401
|
+
if (typeof message.value !== "number")
|
|
44402
|
+
return "value: number expected";
|
|
44403
|
+
return null;
|
|
44404
|
+
};
|
|
44405
|
+
|
|
44406
|
+
/**
|
|
44407
|
+
* Creates an updateFeeByEventRequest message from a plain object. Also converts values to their respective internal types.
|
|
44408
|
+
* @function fromObject
|
|
44409
|
+
* @memberof updateFeeByEventRequest
|
|
44410
|
+
* @static
|
|
44411
|
+
* @param {Object.<string,*>} object Plain object
|
|
44412
|
+
* @returns {updateFeeByEventRequest} updateFeeByEventRequest
|
|
44413
|
+
*/
|
|
44414
|
+
updateFeeByEventRequest.fromObject = function fromObject(object) {
|
|
44415
|
+
if (object instanceof $root.updateFeeByEventRequest)
|
|
44416
|
+
return object;
|
|
44417
|
+
var message = new $root.updateFeeByEventRequest();
|
|
44418
|
+
if (object.spanContext != null)
|
|
44419
|
+
message.spanContext = String(object.spanContext);
|
|
44420
|
+
if (object.eventId != null)
|
|
44421
|
+
message.eventId = String(object.eventId);
|
|
44422
|
+
if (object.name != null)
|
|
44423
|
+
message.name = String(object.name);
|
|
44424
|
+
if (object.value != null)
|
|
44425
|
+
message.value = Number(object.value);
|
|
44426
|
+
return message;
|
|
44427
|
+
};
|
|
44428
|
+
|
|
44429
|
+
/**
|
|
44430
|
+
* Creates a plain object from an updateFeeByEventRequest message. Also converts values to other types if specified.
|
|
44431
|
+
* @function toObject
|
|
44432
|
+
* @memberof updateFeeByEventRequest
|
|
44433
|
+
* @static
|
|
44434
|
+
* @param {updateFeeByEventRequest} message updateFeeByEventRequest
|
|
44435
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
44436
|
+
* @returns {Object.<string,*>} Plain object
|
|
44437
|
+
*/
|
|
44438
|
+
updateFeeByEventRequest.toObject = function toObject(message, options) {
|
|
44439
|
+
if (!options)
|
|
44440
|
+
options = {};
|
|
44441
|
+
var object = {};
|
|
44442
|
+
if (options.defaults) {
|
|
44443
|
+
object.spanContext = "";
|
|
44444
|
+
object.eventId = "";
|
|
44445
|
+
object.name = "";
|
|
44446
|
+
object.value = 0;
|
|
44447
|
+
}
|
|
44448
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
44449
|
+
object.spanContext = message.spanContext;
|
|
44450
|
+
if (message.eventId != null && message.hasOwnProperty("eventId"))
|
|
44451
|
+
object.eventId = message.eventId;
|
|
44452
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
44453
|
+
object.name = message.name;
|
|
44454
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
44455
|
+
object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value;
|
|
44456
|
+
return object;
|
|
44457
|
+
};
|
|
44458
|
+
|
|
44459
|
+
/**
|
|
44460
|
+
* Converts this updateFeeByEventRequest to JSON.
|
|
44461
|
+
* @function toJSON
|
|
44462
|
+
* @memberof updateFeeByEventRequest
|
|
44463
|
+
* @instance
|
|
44464
|
+
* @returns {Object.<string,*>} JSON object
|
|
44465
|
+
*/
|
|
44466
|
+
updateFeeByEventRequest.prototype.toJSON = function toJSON() {
|
|
44467
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
44468
|
+
};
|
|
44469
|
+
|
|
44470
|
+
return updateFeeByEventRequest;
|
|
44471
|
+
})();
|
|
44472
|
+
|
|
44473
|
+
$root.updateFeeByEventResponse = (function() {
|
|
44474
|
+
|
|
44475
|
+
/**
|
|
44476
|
+
* Properties of an updateFeeByEventResponse.
|
|
44477
|
+
* @exports IupdateFeeByEventResponse
|
|
44478
|
+
* @interface IupdateFeeByEventResponse
|
|
44479
|
+
* @property {StatusCode|null} [status] updateFeeByEventResponse status
|
|
44480
|
+
* @property {Array.<IError>|null} [errors] updateFeeByEventResponse errors
|
|
44481
|
+
* @property {IFee|null} [fee] updateFeeByEventResponse fee
|
|
44482
|
+
*/
|
|
44483
|
+
|
|
44484
|
+
/**
|
|
44485
|
+
* Constructs a new updateFeeByEventResponse.
|
|
44486
|
+
* @exports updateFeeByEventResponse
|
|
44487
|
+
* @classdesc Represents an updateFeeByEventResponse.
|
|
44488
|
+
* @implements IupdateFeeByEventResponse
|
|
44489
|
+
* @constructor
|
|
44490
|
+
* @param {IupdateFeeByEventResponse=} [properties] Properties to set
|
|
44491
|
+
*/
|
|
44492
|
+
function updateFeeByEventResponse(properties) {
|
|
44493
|
+
this.errors = [];
|
|
44494
|
+
if (properties)
|
|
44495
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
44496
|
+
if (properties[keys[i]] != null)
|
|
44497
|
+
this[keys[i]] = properties[keys[i]];
|
|
44498
|
+
}
|
|
44499
|
+
|
|
44500
|
+
/**
|
|
44501
|
+
* updateFeeByEventResponse status.
|
|
44502
|
+
* @member {StatusCode} status
|
|
44503
|
+
* @memberof updateFeeByEventResponse
|
|
44504
|
+
* @instance
|
|
44505
|
+
*/
|
|
44506
|
+
updateFeeByEventResponse.prototype.status = 0;
|
|
44507
|
+
|
|
44508
|
+
/**
|
|
44509
|
+
* updateFeeByEventResponse errors.
|
|
44510
|
+
* @member {Array.<IError>} errors
|
|
44511
|
+
* @memberof updateFeeByEventResponse
|
|
44512
|
+
* @instance
|
|
44513
|
+
*/
|
|
44514
|
+
updateFeeByEventResponse.prototype.errors = $util.emptyArray;
|
|
44515
|
+
|
|
44516
|
+
/**
|
|
44517
|
+
* updateFeeByEventResponse fee.
|
|
44518
|
+
* @member {IFee|null|undefined} fee
|
|
44519
|
+
* @memberof updateFeeByEventResponse
|
|
44520
|
+
* @instance
|
|
44521
|
+
*/
|
|
44522
|
+
updateFeeByEventResponse.prototype.fee = null;
|
|
44523
|
+
|
|
44524
|
+
/**
|
|
44525
|
+
* Creates a new updateFeeByEventResponse instance using the specified properties.
|
|
44526
|
+
* @function create
|
|
44527
|
+
* @memberof updateFeeByEventResponse
|
|
44528
|
+
* @static
|
|
44529
|
+
* @param {IupdateFeeByEventResponse=} [properties] Properties to set
|
|
44530
|
+
* @returns {updateFeeByEventResponse} updateFeeByEventResponse instance
|
|
44531
|
+
*/
|
|
44532
|
+
updateFeeByEventResponse.create = function create(properties) {
|
|
44533
|
+
return new updateFeeByEventResponse(properties);
|
|
44534
|
+
};
|
|
44535
|
+
|
|
44536
|
+
/**
|
|
44537
|
+
* Encodes the specified updateFeeByEventResponse message. Does not implicitly {@link updateFeeByEventResponse.verify|verify} messages.
|
|
44538
|
+
* @function encode
|
|
44539
|
+
* @memberof updateFeeByEventResponse
|
|
44540
|
+
* @static
|
|
44541
|
+
* @param {IupdateFeeByEventResponse} message updateFeeByEventResponse message or plain object to encode
|
|
44542
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
44543
|
+
* @returns {$protobuf.Writer} Writer
|
|
44544
|
+
*/
|
|
44545
|
+
updateFeeByEventResponse.encode = function encode(message, writer) {
|
|
44546
|
+
if (!writer)
|
|
44547
|
+
writer = $Writer.create();
|
|
44548
|
+
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
44549
|
+
writer.uint32(/* id 0, wireType 0 =*/0).int32(message.status);
|
|
44550
|
+
if (message.errors != null && message.errors.length)
|
|
44551
|
+
for (var i = 0; i < message.errors.length; ++i)
|
|
44552
|
+
$root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
44553
|
+
if (message.fee != null && Object.hasOwnProperty.call(message, "fee"))
|
|
44554
|
+
$root.Fee.encode(message.fee, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
44555
|
+
return writer;
|
|
44556
|
+
};
|
|
44557
|
+
|
|
44558
|
+
/**
|
|
44559
|
+
* Encodes the specified updateFeeByEventResponse message, length delimited. Does not implicitly {@link updateFeeByEventResponse.verify|verify} messages.
|
|
44560
|
+
* @function encodeDelimited
|
|
44561
|
+
* @memberof updateFeeByEventResponse
|
|
44562
|
+
* @static
|
|
44563
|
+
* @param {IupdateFeeByEventResponse} message updateFeeByEventResponse message or plain object to encode
|
|
44564
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
44565
|
+
* @returns {$protobuf.Writer} Writer
|
|
44566
|
+
*/
|
|
44567
|
+
updateFeeByEventResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
44568
|
+
return this.encode(message, writer).ldelim();
|
|
44569
|
+
};
|
|
44570
|
+
|
|
44571
|
+
/**
|
|
44572
|
+
* Decodes an updateFeeByEventResponse message from the specified reader or buffer.
|
|
44573
|
+
* @function decode
|
|
44574
|
+
* @memberof updateFeeByEventResponse
|
|
44575
|
+
* @static
|
|
44576
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
44577
|
+
* @param {number} [length] Message length if known beforehand
|
|
44578
|
+
* @returns {updateFeeByEventResponse} updateFeeByEventResponse
|
|
44579
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
44580
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
44581
|
+
*/
|
|
44582
|
+
updateFeeByEventResponse.decode = function decode(reader, length) {
|
|
44583
|
+
if (!(reader instanceof $Reader))
|
|
44584
|
+
reader = $Reader.create(reader);
|
|
44585
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.updateFeeByEventResponse();
|
|
44586
|
+
while (reader.pos < end) {
|
|
44587
|
+
var tag = reader.uint32();
|
|
44588
|
+
switch (tag >>> 3) {
|
|
44589
|
+
case 0:
|
|
44590
|
+
message.status = reader.int32();
|
|
44591
|
+
break;
|
|
44592
|
+
case 1:
|
|
44593
|
+
if (!(message.errors && message.errors.length))
|
|
44594
|
+
message.errors = [];
|
|
44595
|
+
message.errors.push($root.Error.decode(reader, reader.uint32()));
|
|
44596
|
+
break;
|
|
44597
|
+
case 2:
|
|
44598
|
+
message.fee = $root.Fee.decode(reader, reader.uint32());
|
|
44599
|
+
break;
|
|
44600
|
+
default:
|
|
44601
|
+
reader.skipType(tag & 7);
|
|
44602
|
+
break;
|
|
44603
|
+
}
|
|
44604
|
+
}
|
|
44605
|
+
return message;
|
|
44606
|
+
};
|
|
44607
|
+
|
|
44608
|
+
/**
|
|
44609
|
+
* Decodes an updateFeeByEventResponse message from the specified reader or buffer, length delimited.
|
|
44610
|
+
* @function decodeDelimited
|
|
44611
|
+
* @memberof updateFeeByEventResponse
|
|
44612
|
+
* @static
|
|
44613
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
44614
|
+
* @returns {updateFeeByEventResponse} updateFeeByEventResponse
|
|
44615
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
44616
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
44617
|
+
*/
|
|
44618
|
+
updateFeeByEventResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
44619
|
+
if (!(reader instanceof $Reader))
|
|
44620
|
+
reader = new $Reader(reader);
|
|
44621
|
+
return this.decode(reader, reader.uint32());
|
|
44622
|
+
};
|
|
44623
|
+
|
|
44624
|
+
/**
|
|
44625
|
+
* Verifies an updateFeeByEventResponse message.
|
|
44626
|
+
* @function verify
|
|
44627
|
+
* @memberof updateFeeByEventResponse
|
|
44628
|
+
* @static
|
|
44629
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
44630
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
44631
|
+
*/
|
|
44632
|
+
updateFeeByEventResponse.verify = function verify(message) {
|
|
44633
|
+
if (typeof message !== "object" || message === null)
|
|
44634
|
+
return "object expected";
|
|
44635
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
44636
|
+
switch (message.status) {
|
|
44637
|
+
default:
|
|
44638
|
+
return "status: enum value expected";
|
|
44639
|
+
case 0:
|
|
44640
|
+
case 200:
|
|
44641
|
+
case 400:
|
|
44642
|
+
case 401:
|
|
44643
|
+
case 403:
|
|
44644
|
+
case 422:
|
|
44645
|
+
case 500:
|
|
44646
|
+
case 504:
|
|
44647
|
+
break;
|
|
44648
|
+
}
|
|
44649
|
+
if (message.errors != null && message.hasOwnProperty("errors")) {
|
|
44650
|
+
if (!Array.isArray(message.errors))
|
|
44651
|
+
return "errors: array expected";
|
|
44652
|
+
for (var i = 0; i < message.errors.length; ++i) {
|
|
44653
|
+
var error = $root.Error.verify(message.errors[i]);
|
|
44654
|
+
if (error)
|
|
44655
|
+
return "errors." + error;
|
|
44656
|
+
}
|
|
44657
|
+
}
|
|
44658
|
+
if (message.fee != null && message.hasOwnProperty("fee")) {
|
|
44659
|
+
var error = $root.Fee.verify(message.fee);
|
|
44660
|
+
if (error)
|
|
44661
|
+
return "fee." + error;
|
|
44662
|
+
}
|
|
44663
|
+
return null;
|
|
44664
|
+
};
|
|
44665
|
+
|
|
44666
|
+
/**
|
|
44667
|
+
* Creates an updateFeeByEventResponse message from a plain object. Also converts values to their respective internal types.
|
|
44668
|
+
* @function fromObject
|
|
44669
|
+
* @memberof updateFeeByEventResponse
|
|
44670
|
+
* @static
|
|
44671
|
+
* @param {Object.<string,*>} object Plain object
|
|
44672
|
+
* @returns {updateFeeByEventResponse} updateFeeByEventResponse
|
|
44673
|
+
*/
|
|
44674
|
+
updateFeeByEventResponse.fromObject = function fromObject(object) {
|
|
44675
|
+
if (object instanceof $root.updateFeeByEventResponse)
|
|
44676
|
+
return object;
|
|
44677
|
+
var message = new $root.updateFeeByEventResponse();
|
|
44678
|
+
switch (object.status) {
|
|
44679
|
+
case "UNKNOWN_CODE":
|
|
44680
|
+
case 0:
|
|
44681
|
+
message.status = 0;
|
|
44682
|
+
break;
|
|
44683
|
+
case "OK":
|
|
44684
|
+
case 200:
|
|
44685
|
+
message.status = 200;
|
|
44686
|
+
break;
|
|
44687
|
+
case "BAD_REQUEST":
|
|
44688
|
+
case 400:
|
|
44689
|
+
message.status = 400;
|
|
44690
|
+
break;
|
|
44691
|
+
case "UNAUTHORIZED":
|
|
44692
|
+
case 401:
|
|
44693
|
+
message.status = 401;
|
|
44694
|
+
break;
|
|
44695
|
+
case "FORBIDDEN":
|
|
44696
|
+
case 403:
|
|
44697
|
+
message.status = 403;
|
|
44698
|
+
break;
|
|
44699
|
+
case "UNPROCESSABLE_ENTITY":
|
|
44700
|
+
case 422:
|
|
44701
|
+
message.status = 422;
|
|
44702
|
+
break;
|
|
44703
|
+
case "INTERNAL_SERVER_ERROR":
|
|
44704
|
+
case 500:
|
|
44705
|
+
message.status = 500;
|
|
44706
|
+
break;
|
|
44707
|
+
case "GATEWAY_TIMEOUT":
|
|
44708
|
+
case 504:
|
|
44709
|
+
message.status = 504;
|
|
44710
|
+
break;
|
|
44711
|
+
}
|
|
44712
|
+
if (object.errors) {
|
|
44713
|
+
if (!Array.isArray(object.errors))
|
|
44714
|
+
throw TypeError(".updateFeeByEventResponse.errors: array expected");
|
|
44715
|
+
message.errors = [];
|
|
44716
|
+
for (var i = 0; i < object.errors.length; ++i) {
|
|
44717
|
+
if (typeof object.errors[i] !== "object")
|
|
44718
|
+
throw TypeError(".updateFeeByEventResponse.errors: object expected");
|
|
44719
|
+
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
44720
|
+
}
|
|
44721
|
+
}
|
|
44722
|
+
if (object.fee != null) {
|
|
44723
|
+
if (typeof object.fee !== "object")
|
|
44724
|
+
throw TypeError(".updateFeeByEventResponse.fee: object expected");
|
|
44725
|
+
message.fee = $root.Fee.fromObject(object.fee);
|
|
44726
|
+
}
|
|
44727
|
+
return message;
|
|
44728
|
+
};
|
|
44729
|
+
|
|
44730
|
+
/**
|
|
44731
|
+
* Creates a plain object from an updateFeeByEventResponse message. Also converts values to other types if specified.
|
|
44732
|
+
* @function toObject
|
|
44733
|
+
* @memberof updateFeeByEventResponse
|
|
44734
|
+
* @static
|
|
44735
|
+
* @param {updateFeeByEventResponse} message updateFeeByEventResponse
|
|
44736
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
44737
|
+
* @returns {Object.<string,*>} Plain object
|
|
44738
|
+
*/
|
|
44739
|
+
updateFeeByEventResponse.toObject = function toObject(message, options) {
|
|
44740
|
+
if (!options)
|
|
44741
|
+
options = {};
|
|
44742
|
+
var object = {};
|
|
44743
|
+
if (options.arrays || options.defaults)
|
|
44744
|
+
object.errors = [];
|
|
44745
|
+
if (options.defaults) {
|
|
44746
|
+
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
44747
|
+
object.fee = null;
|
|
44748
|
+
}
|
|
44749
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
44750
|
+
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
44751
|
+
if (message.errors && message.errors.length) {
|
|
44752
|
+
object.errors = [];
|
|
44753
|
+
for (var j = 0; j < message.errors.length; ++j)
|
|
44754
|
+
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
44755
|
+
}
|
|
44756
|
+
if (message.fee != null && message.hasOwnProperty("fee"))
|
|
44757
|
+
object.fee = $root.Fee.toObject(message.fee, options);
|
|
44758
|
+
return object;
|
|
44759
|
+
};
|
|
44760
|
+
|
|
44761
|
+
/**
|
|
44762
|
+
* Converts this updateFeeByEventResponse to JSON.
|
|
44763
|
+
* @function toJSON
|
|
44764
|
+
* @memberof updateFeeByEventResponse
|
|
44765
|
+
* @instance
|
|
44766
|
+
* @returns {Object.<string,*>} JSON object
|
|
44767
|
+
*/
|
|
44768
|
+
updateFeeByEventResponse.prototype.toJSON = function toJSON() {
|
|
44769
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
44770
|
+
};
|
|
44771
|
+
|
|
44772
|
+
return updateFeeByEventResponse;
|
|
44773
|
+
})();
|
|
44774
|
+
|
|
44197
44775
|
$root.ListFeesByIdRequest = (function() {
|
|
44198
44776
|
|
|
44199
44777
|
/**
|
|
@@ -49649,6 +50227,39 @@ $root.FeeService = (function() {
|
|
|
49649
50227
|
* @variation 2
|
|
49650
50228
|
*/
|
|
49651
50229
|
|
|
50230
|
+
/**
|
|
50231
|
+
* Callback as used by {@link FeeService#updateFeeByEvent}.
|
|
50232
|
+
* @memberof FeeService
|
|
50233
|
+
* @typedef updateFeeByEventCallback
|
|
50234
|
+
* @type {function}
|
|
50235
|
+
* @param {Error|null} error Error, if any
|
|
50236
|
+
* @param {updateFeeByEventResponse} [response] updateFeeByEventResponse
|
|
50237
|
+
*/
|
|
50238
|
+
|
|
50239
|
+
/**
|
|
50240
|
+
* Calls updateFeeByEvent.
|
|
50241
|
+
* @function updateFeeByEvent
|
|
50242
|
+
* @memberof FeeService
|
|
50243
|
+
* @instance
|
|
50244
|
+
* @param {IupdateFeeByEventRequest} request updateFeeByEventRequest message or plain object
|
|
50245
|
+
* @param {FeeService.updateFeeByEventCallback} callback Node-style callback called with the error, if any, and updateFeeByEventResponse
|
|
50246
|
+
* @returns {undefined}
|
|
50247
|
+
* @variation 1
|
|
50248
|
+
*/
|
|
50249
|
+
Object.defineProperty(FeeService.prototype.updateFeeByEvent = function updateFeeByEvent(request, callback) {
|
|
50250
|
+
return this.rpcCall(updateFeeByEvent, $root.updateFeeByEventRequest, $root.updateFeeByEventResponse, request, callback);
|
|
50251
|
+
}, "name", { value: "updateFeeByEvent" });
|
|
50252
|
+
|
|
50253
|
+
/**
|
|
50254
|
+
* Calls updateFeeByEvent.
|
|
50255
|
+
* @function updateFeeByEvent
|
|
50256
|
+
* @memberof FeeService
|
|
50257
|
+
* @instance
|
|
50258
|
+
* @param {IupdateFeeByEventRequest} request updateFeeByEventRequest message or plain object
|
|
50259
|
+
* @returns {Promise<updateFeeByEventResponse>} Promise
|
|
50260
|
+
* @variation 2
|
|
50261
|
+
*/
|
|
50262
|
+
|
|
49652
50263
|
/**
|
|
49653
50264
|
* Callback as used by {@link FeeService#updateOrganizationFee}.
|
|
49654
50265
|
* @memberof FeeService
|
|
@@ -89606,6 +90217,7 @@ $root.FindUserByEmailRequest = (function() {
|
|
|
89606
90217
|
* @interface IFindUserByEmailRequest
|
|
89607
90218
|
* @property {string|null} [spanContext] FindUserByEmailRequest spanContext
|
|
89608
90219
|
* @property {string|null} [email] FindUserByEmailRequest email
|
|
90220
|
+
* @property {string|null} [phoneNumber] FindUserByEmailRequest phoneNumber
|
|
89609
90221
|
*/
|
|
89610
90222
|
|
|
89611
90223
|
/**
|
|
@@ -89639,6 +90251,14 @@ $root.FindUserByEmailRequest = (function() {
|
|
|
89639
90251
|
*/
|
|
89640
90252
|
FindUserByEmailRequest.prototype.email = "";
|
|
89641
90253
|
|
|
90254
|
+
/**
|
|
90255
|
+
* FindUserByEmailRequest phoneNumber.
|
|
90256
|
+
* @member {string} phoneNumber
|
|
90257
|
+
* @memberof FindUserByEmailRequest
|
|
90258
|
+
* @instance
|
|
90259
|
+
*/
|
|
90260
|
+
FindUserByEmailRequest.prototype.phoneNumber = "";
|
|
90261
|
+
|
|
89642
90262
|
/**
|
|
89643
90263
|
* Creates a new FindUserByEmailRequest instance using the specified properties.
|
|
89644
90264
|
* @function create
|
|
@@ -89667,6 +90287,8 @@ $root.FindUserByEmailRequest = (function() {
|
|
|
89667
90287
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.spanContext);
|
|
89668
90288
|
if (message.email != null && Object.hasOwnProperty.call(message, "email"))
|
|
89669
90289
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.email);
|
|
90290
|
+
if (message.phoneNumber != null && Object.hasOwnProperty.call(message, "phoneNumber"))
|
|
90291
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.phoneNumber);
|
|
89670
90292
|
return writer;
|
|
89671
90293
|
};
|
|
89672
90294
|
|
|
@@ -89707,6 +90329,9 @@ $root.FindUserByEmailRequest = (function() {
|
|
|
89707
90329
|
case 2:
|
|
89708
90330
|
message.email = reader.string();
|
|
89709
90331
|
break;
|
|
90332
|
+
case 3:
|
|
90333
|
+
message.phoneNumber = reader.string();
|
|
90334
|
+
break;
|
|
89710
90335
|
default:
|
|
89711
90336
|
reader.skipType(tag & 7);
|
|
89712
90337
|
break;
|
|
@@ -89748,6 +90373,9 @@ $root.FindUserByEmailRequest = (function() {
|
|
|
89748
90373
|
if (message.email != null && message.hasOwnProperty("email"))
|
|
89749
90374
|
if (!$util.isString(message.email))
|
|
89750
90375
|
return "email: string expected";
|
|
90376
|
+
if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber"))
|
|
90377
|
+
if (!$util.isString(message.phoneNumber))
|
|
90378
|
+
return "phoneNumber: string expected";
|
|
89751
90379
|
return null;
|
|
89752
90380
|
};
|
|
89753
90381
|
|
|
@@ -89767,6 +90395,8 @@ $root.FindUserByEmailRequest = (function() {
|
|
|
89767
90395
|
message.spanContext = String(object.spanContext);
|
|
89768
90396
|
if (object.email != null)
|
|
89769
90397
|
message.email = String(object.email);
|
|
90398
|
+
if (object.phoneNumber != null)
|
|
90399
|
+
message.phoneNumber = String(object.phoneNumber);
|
|
89770
90400
|
return message;
|
|
89771
90401
|
};
|
|
89772
90402
|
|
|
@@ -89786,11 +90416,14 @@ $root.FindUserByEmailRequest = (function() {
|
|
|
89786
90416
|
if (options.defaults) {
|
|
89787
90417
|
object.spanContext = "";
|
|
89788
90418
|
object.email = "";
|
|
90419
|
+
object.phoneNumber = "";
|
|
89789
90420
|
}
|
|
89790
90421
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
89791
90422
|
object.spanContext = message.spanContext;
|
|
89792
90423
|
if (message.email != null && message.hasOwnProperty("email"))
|
|
89793
90424
|
object.email = message.email;
|
|
90425
|
+
if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber"))
|
|
90426
|
+
object.phoneNumber = message.phoneNumber;
|
|
89794
90427
|
return object;
|
|
89795
90428
|
};
|
|
89796
90429
|
|