@sellout/models 0.0.176 → 0.0.178

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/.dist/graphql/fragments/event.fragment.js +1 -0
  2. package/.dist/graphql/fragments/event.fragment.js.map +1 -1
  3. package/.dist/graphql/fragments/season.fragment.js +1 -0
  4. package/.dist/graphql/fragments/season.fragment.js.map +1 -1
  5. package/.dist/graphql/mutations/createEventOrSeasonFee.mutation.d.ts +2 -0
  6. package/.dist/graphql/mutations/createEventOrSeasonFee.mutation.js +31 -0
  7. package/.dist/graphql/mutations/createEventOrSeasonFee.mutation.js.map +1 -0
  8. package/.dist/graphql/mutations/deleteEventOrSeasonFee.mutation.d.ts +2 -0
  9. package/.dist/graphql/mutations/deleteEventOrSeasonFee.mutation.js +13 -0
  10. package/.dist/graphql/mutations/deleteEventOrSeasonFee.mutation.js.map +1 -0
  11. package/.dist/graphql/mutations/updateEventOrSeasonFee.mutation.d.ts +2 -0
  12. package/.dist/graphql/mutations/updateEventOrSeasonFee.mutation.js +31 -0
  13. package/.dist/graphql/mutations/updateEventOrSeasonFee.mutation.js.map +1 -0
  14. package/.dist/graphql/queries/eventFees.query.d.ts +2 -0
  15. package/.dist/graphql/queries/eventFees.query.js +30 -0
  16. package/.dist/graphql/queries/eventFees.query.js.map +1 -0
  17. package/.dist/graphql/queries/promoCodeVerify.query.js +1 -0
  18. package/.dist/graphql/queries/promoCodeVerify.query.js.map +1 -1
  19. package/.dist/graphql/queries/season.query.js +1 -0
  20. package/.dist/graphql/queries/season.query.js.map +1 -1
  21. package/.dist/graphql/queries/seasonFees.query.d.ts +2 -0
  22. package/.dist/graphql/queries/seasonFees.query.js +31 -0
  23. package/.dist/graphql/queries/seasonFees.query.js.map +1 -0
  24. package/.dist/graphql/queries/seasons.query.js +1 -0
  25. package/.dist/graphql/queries/seasons.query.js.map +1 -1
  26. package/.dist/graphql/queries/userExists.query.js +2 -0
  27. package/.dist/graphql/queries/userExists.query.js.map +1 -1
  28. package/.dist/interfaces/IEventPromotion.d.ts +3 -1
  29. package/.dist/interfaces/IEventPromotion.js +1 -0
  30. package/.dist/interfaces/IEventPromotion.js.map +1 -1
  31. package/.dist/interfaces/ITicketType.d.ts +1 -0
  32. package/.dist/schemas/Event.d.ts +4 -0
  33. package/.dist/schemas/Event.js +4 -0
  34. package/.dist/schemas/Event.js.map +1 -1
  35. package/.dist/schemas/Season.d.ts +4 -0
  36. package/.dist/schemas/Season.js +4 -0
  37. package/.dist/schemas/Season.js.map +1 -1
  38. package/.dist/sellout-proto.js +1068 -0
  39. package/package.json +3 -3
  40. package/src/graphql/fragments/event.fragment.ts +1 -0
  41. package/src/graphql/fragments/season.fragment.ts +1 -0
  42. package/src/graphql/mutations/createEventOrSeasonFee.mutation.ts +27 -0
  43. package/src/graphql/mutations/deleteEventOrSeasonFee.mutation.ts +9 -0
  44. package/src/graphql/mutations/updateEventOrSeasonFee.mutation.ts +27 -0
  45. package/src/graphql/queries/eventFees.query.ts +26 -0
  46. package/src/graphql/queries/promoCodeVerify.query.ts +1 -0
  47. package/src/graphql/queries/season.query.ts +1 -0
  48. package/src/graphql/queries/seasonFees.query.ts +27 -0
  49. package/src/graphql/queries/seasons.query.ts +1 -0
  50. package/src/graphql/queries/userExists.query.ts +2 -0
  51. package/src/interfaces/IEventPromotion.ts +2 -0
  52. package/src/interfaces/ITicketType.ts +1 -0
  53. package/src/proto/event.proto +2 -0
  54. package/src/proto/fee.proto +21 -0
  55. package/src/proto/order.proto +7 -0
  56. package/src/schemas/Event.ts +4 -0
  57. package/src/schemas/Season.ts +4 -0
@@ -26811,6 +26811,216 @@ $root.FindOrderByIdRequest = (function() {
26811
26811
  return FindOrderByIdRequest;
26812
26812
  })();
26813
26813
 
26814
+ $root.FindOrderByFeeIdRequest = (function() {
26815
+
26816
+ /**
26817
+ * Properties of a FindOrderByFeeIdRequest.
26818
+ * @exports IFindOrderByFeeIdRequest
26819
+ * @interface IFindOrderByFeeIdRequest
26820
+ * @property {string|null} [spanContext] FindOrderByFeeIdRequest spanContext
26821
+ * @property {string|null} [feeId] FindOrderByFeeIdRequest feeId
26822
+ */
26823
+
26824
+ /**
26825
+ * Constructs a new FindOrderByFeeIdRequest.
26826
+ * @exports FindOrderByFeeIdRequest
26827
+ * @classdesc Represents a FindOrderByFeeIdRequest.
26828
+ * @implements IFindOrderByFeeIdRequest
26829
+ * @constructor
26830
+ * @param {IFindOrderByFeeIdRequest=} [properties] Properties to set
26831
+ */
26832
+ function FindOrderByFeeIdRequest(properties) {
26833
+ if (properties)
26834
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
26835
+ if (properties[keys[i]] != null)
26836
+ this[keys[i]] = properties[keys[i]];
26837
+ }
26838
+
26839
+ /**
26840
+ * FindOrderByFeeIdRequest spanContext.
26841
+ * @member {string} spanContext
26842
+ * @memberof FindOrderByFeeIdRequest
26843
+ * @instance
26844
+ */
26845
+ FindOrderByFeeIdRequest.prototype.spanContext = "";
26846
+
26847
+ /**
26848
+ * FindOrderByFeeIdRequest feeId.
26849
+ * @member {string} feeId
26850
+ * @memberof FindOrderByFeeIdRequest
26851
+ * @instance
26852
+ */
26853
+ FindOrderByFeeIdRequest.prototype.feeId = "";
26854
+
26855
+ /**
26856
+ * Creates a new FindOrderByFeeIdRequest instance using the specified properties.
26857
+ * @function create
26858
+ * @memberof FindOrderByFeeIdRequest
26859
+ * @static
26860
+ * @param {IFindOrderByFeeIdRequest=} [properties] Properties to set
26861
+ * @returns {FindOrderByFeeIdRequest} FindOrderByFeeIdRequest instance
26862
+ */
26863
+ FindOrderByFeeIdRequest.create = function create(properties) {
26864
+ return new FindOrderByFeeIdRequest(properties);
26865
+ };
26866
+
26867
+ /**
26868
+ * Encodes the specified FindOrderByFeeIdRequest message. Does not implicitly {@link FindOrderByFeeIdRequest.verify|verify} messages.
26869
+ * @function encode
26870
+ * @memberof FindOrderByFeeIdRequest
26871
+ * @static
26872
+ * @param {IFindOrderByFeeIdRequest} message FindOrderByFeeIdRequest message or plain object to encode
26873
+ * @param {$protobuf.Writer} [writer] Writer to encode to
26874
+ * @returns {$protobuf.Writer} Writer
26875
+ */
26876
+ FindOrderByFeeIdRequest.encode = function encode(message, writer) {
26877
+ if (!writer)
26878
+ writer = $Writer.create();
26879
+ if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
26880
+ writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
26881
+ if (message.feeId != null && Object.hasOwnProperty.call(message, "feeId"))
26882
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.feeId);
26883
+ return writer;
26884
+ };
26885
+
26886
+ /**
26887
+ * Encodes the specified FindOrderByFeeIdRequest message, length delimited. Does not implicitly {@link FindOrderByFeeIdRequest.verify|verify} messages.
26888
+ * @function encodeDelimited
26889
+ * @memberof FindOrderByFeeIdRequest
26890
+ * @static
26891
+ * @param {IFindOrderByFeeIdRequest} message FindOrderByFeeIdRequest message or plain object to encode
26892
+ * @param {$protobuf.Writer} [writer] Writer to encode to
26893
+ * @returns {$protobuf.Writer} Writer
26894
+ */
26895
+ FindOrderByFeeIdRequest.encodeDelimited = function encodeDelimited(message, writer) {
26896
+ return this.encode(message, writer).ldelim();
26897
+ };
26898
+
26899
+ /**
26900
+ * Decodes a FindOrderByFeeIdRequest message from the specified reader or buffer.
26901
+ * @function decode
26902
+ * @memberof FindOrderByFeeIdRequest
26903
+ * @static
26904
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
26905
+ * @param {number} [length] Message length if known beforehand
26906
+ * @returns {FindOrderByFeeIdRequest} FindOrderByFeeIdRequest
26907
+ * @throws {Error} If the payload is not a reader or valid buffer
26908
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26909
+ */
26910
+ FindOrderByFeeIdRequest.decode = function decode(reader, length) {
26911
+ if (!(reader instanceof $Reader))
26912
+ reader = $Reader.create(reader);
26913
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.FindOrderByFeeIdRequest();
26914
+ while (reader.pos < end) {
26915
+ var tag = reader.uint32();
26916
+ switch (tag >>> 3) {
26917
+ case 0:
26918
+ message.spanContext = reader.string();
26919
+ break;
26920
+ case 1:
26921
+ message.feeId = reader.string();
26922
+ break;
26923
+ default:
26924
+ reader.skipType(tag & 7);
26925
+ break;
26926
+ }
26927
+ }
26928
+ return message;
26929
+ };
26930
+
26931
+ /**
26932
+ * Decodes a FindOrderByFeeIdRequest message from the specified reader or buffer, length delimited.
26933
+ * @function decodeDelimited
26934
+ * @memberof FindOrderByFeeIdRequest
26935
+ * @static
26936
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
26937
+ * @returns {FindOrderByFeeIdRequest} FindOrderByFeeIdRequest
26938
+ * @throws {Error} If the payload is not a reader or valid buffer
26939
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26940
+ */
26941
+ FindOrderByFeeIdRequest.decodeDelimited = function decodeDelimited(reader) {
26942
+ if (!(reader instanceof $Reader))
26943
+ reader = new $Reader(reader);
26944
+ return this.decode(reader, reader.uint32());
26945
+ };
26946
+
26947
+ /**
26948
+ * Verifies a FindOrderByFeeIdRequest message.
26949
+ * @function verify
26950
+ * @memberof FindOrderByFeeIdRequest
26951
+ * @static
26952
+ * @param {Object.<string,*>} message Plain object to verify
26953
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
26954
+ */
26955
+ FindOrderByFeeIdRequest.verify = function verify(message) {
26956
+ if (typeof message !== "object" || message === null)
26957
+ return "object expected";
26958
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
26959
+ if (!$util.isString(message.spanContext))
26960
+ return "spanContext: string expected";
26961
+ if (message.feeId != null && message.hasOwnProperty("feeId"))
26962
+ if (!$util.isString(message.feeId))
26963
+ return "feeId: string expected";
26964
+ return null;
26965
+ };
26966
+
26967
+ /**
26968
+ * Creates a FindOrderByFeeIdRequest message from a plain object. Also converts values to their respective internal types.
26969
+ * @function fromObject
26970
+ * @memberof FindOrderByFeeIdRequest
26971
+ * @static
26972
+ * @param {Object.<string,*>} object Plain object
26973
+ * @returns {FindOrderByFeeIdRequest} FindOrderByFeeIdRequest
26974
+ */
26975
+ FindOrderByFeeIdRequest.fromObject = function fromObject(object) {
26976
+ if (object instanceof $root.FindOrderByFeeIdRequest)
26977
+ return object;
26978
+ var message = new $root.FindOrderByFeeIdRequest();
26979
+ if (object.spanContext != null)
26980
+ message.spanContext = String(object.spanContext);
26981
+ if (object.feeId != null)
26982
+ message.feeId = String(object.feeId);
26983
+ return message;
26984
+ };
26985
+
26986
+ /**
26987
+ * Creates a plain object from a FindOrderByFeeIdRequest message. Also converts values to other types if specified.
26988
+ * @function toObject
26989
+ * @memberof FindOrderByFeeIdRequest
26990
+ * @static
26991
+ * @param {FindOrderByFeeIdRequest} message FindOrderByFeeIdRequest
26992
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
26993
+ * @returns {Object.<string,*>} Plain object
26994
+ */
26995
+ FindOrderByFeeIdRequest.toObject = function toObject(message, options) {
26996
+ if (!options)
26997
+ options = {};
26998
+ var object = {};
26999
+ if (options.defaults) {
27000
+ object.spanContext = "";
27001
+ object.feeId = "";
27002
+ }
27003
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
27004
+ object.spanContext = message.spanContext;
27005
+ if (message.feeId != null && message.hasOwnProperty("feeId"))
27006
+ object.feeId = message.feeId;
27007
+ return object;
27008
+ };
27009
+
27010
+ /**
27011
+ * Converts this FindOrderByFeeIdRequest to JSON.
27012
+ * @function toJSON
27013
+ * @memberof FindOrderByFeeIdRequest
27014
+ * @instance
27015
+ * @returns {Object.<string,*>} JSON object
27016
+ */
27017
+ FindOrderByFeeIdRequest.prototype.toJSON = function toJSON() {
27018
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
27019
+ };
27020
+
27021
+ return FindOrderByFeeIdRequest;
27022
+ })();
27023
+
26814
27024
  $root.FindOrderByIdResponse = (function() {
26815
27025
 
26816
27026
  /**
@@ -31521,6 +31731,7 @@ $root.GetPromoUsedRequest = (function() {
31521
31731
  * @property {string|null} [promoCode] GetPromoUsedRequest promoCode
31522
31732
  * @property {string|null} [userId] GetPromoUsedRequest userId
31523
31733
  * @property {string|null} [eventId] GetPromoUsedRequest eventId
31734
+ * @property {string|null} [seasonId] GetPromoUsedRequest seasonId
31524
31735
  */
31525
31736
 
31526
31737
  /**
@@ -31570,6 +31781,14 @@ $root.GetPromoUsedRequest = (function() {
31570
31781
  */
31571
31782
  GetPromoUsedRequest.prototype.eventId = "";
31572
31783
 
31784
+ /**
31785
+ * GetPromoUsedRequest seasonId.
31786
+ * @member {string} seasonId
31787
+ * @memberof GetPromoUsedRequest
31788
+ * @instance
31789
+ */
31790
+ GetPromoUsedRequest.prototype.seasonId = "";
31791
+
31573
31792
  /**
31574
31793
  * Creates a new GetPromoUsedRequest instance using the specified properties.
31575
31794
  * @function create
@@ -31602,6 +31821,8 @@ $root.GetPromoUsedRequest = (function() {
31602
31821
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.userId);
31603
31822
  if (message.eventId != null && Object.hasOwnProperty.call(message, "eventId"))
31604
31823
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.eventId);
31824
+ if (message.seasonId != null && Object.hasOwnProperty.call(message, "seasonId"))
31825
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.seasonId);
31605
31826
  return writer;
31606
31827
  };
31607
31828
 
@@ -31648,6 +31869,9 @@ $root.GetPromoUsedRequest = (function() {
31648
31869
  case 3:
31649
31870
  message.eventId = reader.string();
31650
31871
  break;
31872
+ case 4:
31873
+ message.seasonId = reader.string();
31874
+ break;
31651
31875
  default:
31652
31876
  reader.skipType(tag & 7);
31653
31877
  break;
@@ -31695,6 +31919,9 @@ $root.GetPromoUsedRequest = (function() {
31695
31919
  if (message.eventId != null && message.hasOwnProperty("eventId"))
31696
31920
  if (!$util.isString(message.eventId))
31697
31921
  return "eventId: string expected";
31922
+ if (message.seasonId != null && message.hasOwnProperty("seasonId"))
31923
+ if (!$util.isString(message.seasonId))
31924
+ return "seasonId: string expected";
31698
31925
  return null;
31699
31926
  };
31700
31927
 
@@ -31718,6 +31945,8 @@ $root.GetPromoUsedRequest = (function() {
31718
31945
  message.userId = String(object.userId);
31719
31946
  if (object.eventId != null)
31720
31947
  message.eventId = String(object.eventId);
31948
+ if (object.seasonId != null)
31949
+ message.seasonId = String(object.seasonId);
31721
31950
  return message;
31722
31951
  };
31723
31952
 
@@ -31739,6 +31968,7 @@ $root.GetPromoUsedRequest = (function() {
31739
31968
  object.promoCode = "";
31740
31969
  object.userId = "";
31741
31970
  object.eventId = "";
31971
+ object.seasonId = "";
31742
31972
  }
31743
31973
  if (message.spanContext != null && message.hasOwnProperty("spanContext"))
31744
31974
  object.spanContext = message.spanContext;
@@ -31748,6 +31978,8 @@ $root.GetPromoUsedRequest = (function() {
31748
31978
  object.userId = message.userId;
31749
31979
  if (message.eventId != null && message.hasOwnProperty("eventId"))
31750
31980
  object.eventId = message.eventId;
31981
+ if (message.seasonId != null && message.hasOwnProperty("seasonId"))
31982
+ object.seasonId = message.seasonId;
31751
31983
  return object;
31752
31984
  };
31753
31985
 
@@ -32787,6 +33019,39 @@ $root.OrderService = (function() {
32787
33019
  * @variation 2
32788
33020
  */
32789
33021
 
33022
+ /**
33023
+ * Callback as used by {@link OrderService#findOrderByFeeId}.
33024
+ * @memberof OrderService
33025
+ * @typedef findOrderByFeeIdCallback
33026
+ * @type {function}
33027
+ * @param {Error|null} error Error, if any
33028
+ * @param {FindOrderByIdResponse} [response] FindOrderByIdResponse
33029
+ */
33030
+
33031
+ /**
33032
+ * Calls findOrderByFeeId.
33033
+ * @function findOrderByFeeId
33034
+ * @memberof OrderService
33035
+ * @instance
33036
+ * @param {IFindOrderByFeeIdRequest} request FindOrderByFeeIdRequest message or plain object
33037
+ * @param {OrderService.findOrderByFeeIdCallback} callback Node-style callback called with the error, if any, and FindOrderByIdResponse
33038
+ * @returns {undefined}
33039
+ * @variation 1
33040
+ */
33041
+ Object.defineProperty(OrderService.prototype.findOrderByFeeId = function findOrderByFeeId(request, callback) {
33042
+ return this.rpcCall(findOrderByFeeId, $root.FindOrderByFeeIdRequest, $root.FindOrderByIdResponse, request, callback);
33043
+ }, "name", { value: "findOrderByFeeId" });
33044
+
33045
+ /**
33046
+ * Calls findOrderByFeeId.
33047
+ * @function findOrderByFeeId
33048
+ * @memberof OrderService
33049
+ * @instance
33050
+ * @param {IFindOrderByFeeIdRequest} request FindOrderByFeeIdRequest message or plain object
33051
+ * @returns {Promise<FindOrderByIdResponse>} Promise
33052
+ * @variation 2
33053
+ */
33054
+
32790
33055
  /**
32791
33056
  * Callback as used by {@link OrderService#findOrderByEmail}.
32792
33057
  * @memberof OrderService
@@ -45817,6 +46082,7 @@ $root.EventPromotion = (function() {
45817
46082
  * @property {number|null} [useLimit] EventPromotion useLimit
45818
46083
  * @property {string|null} [discountType] EventPromotion discountType
45819
46084
  * @property {number|null} [discountValue] EventPromotion discountValue
46085
+ * @property {number|null} [overRideMax] EventPromotion overRideMax
45820
46086
  */
45821
46087
 
45822
46088
  /**
@@ -45940,6 +46206,14 @@ $root.EventPromotion = (function() {
45940
46206
  */
45941
46207
  EventPromotion.prototype.discountValue = 0;
45942
46208
 
46209
+ /**
46210
+ * EventPromotion overRideMax.
46211
+ * @member {number} overRideMax
46212
+ * @memberof EventPromotion
46213
+ * @instance
46214
+ */
46215
+ EventPromotion.prototype.overRideMax = 0;
46216
+
45943
46217
  /**
45944
46218
  * Creates a new EventPromotion instance using the specified properties.
45945
46219
  * @function create
@@ -45992,6 +46266,8 @@ $root.EventPromotion = (function() {
45992
46266
  writer.uint32(/* id 11, wireType 2 =*/90).string(message.discountType);
45993
46267
  if (message.discountValue != null && Object.hasOwnProperty.call(message, "discountValue"))
45994
46268
  writer.uint32(/* id 12, wireType 0 =*/96).int32(message.discountValue);
46269
+ if (message.overRideMax != null && Object.hasOwnProperty.call(message, "overRideMax"))
46270
+ writer.uint32(/* id 13, wireType 0 =*/104).int32(message.overRideMax);
45995
46271
  return writer;
45996
46272
  };
45997
46273
 
@@ -46069,6 +46345,9 @@ $root.EventPromotion = (function() {
46069
46345
  case 12:
46070
46346
  message.discountValue = reader.int32();
46071
46347
  break;
46348
+ case 13:
46349
+ message.overRideMax = reader.int32();
46350
+ break;
46072
46351
  default:
46073
46352
  reader.skipType(tag & 7);
46074
46353
  break;
@@ -46151,6 +46430,9 @@ $root.EventPromotion = (function() {
46151
46430
  if (message.discountValue != null && message.hasOwnProperty("discountValue"))
46152
46431
  if (!$util.isInteger(message.discountValue))
46153
46432
  return "discountValue: integer expected";
46433
+ if (message.overRideMax != null && message.hasOwnProperty("overRideMax"))
46434
+ if (!$util.isInteger(message.overRideMax))
46435
+ return "overRideMax: integer expected";
46154
46436
  return null;
46155
46437
  };
46156
46438
 
@@ -46202,6 +46484,8 @@ $root.EventPromotion = (function() {
46202
46484
  message.discountType = String(object.discountType);
46203
46485
  if (object.discountValue != null)
46204
46486
  message.discountValue = object.discountValue | 0;
46487
+ if (object.overRideMax != null)
46488
+ message.overRideMax = object.overRideMax | 0;
46205
46489
  return message;
46206
46490
  };
46207
46491
 
@@ -46234,6 +46518,7 @@ $root.EventPromotion = (function() {
46234
46518
  object.useLimit = 0;
46235
46519
  object.discountType = "";
46236
46520
  object.discountValue = 0;
46521
+ object.overRideMax = 0;
46237
46522
  }
46238
46523
  if (message._id != null && message.hasOwnProperty("_id"))
46239
46524
  object._id = message._id;
@@ -46267,6 +46552,8 @@ $root.EventPromotion = (function() {
46267
46552
  object.discountType = message.discountType;
46268
46553
  if (message.discountValue != null && message.hasOwnProperty("discountValue"))
46269
46554
  object.discountValue = message.discountValue;
46555
+ if (message.overRideMax != null && message.hasOwnProperty("overRideMax"))
46556
+ object.overRideMax = message.overRideMax;
46270
46557
  return object;
46271
46558
  };
46272
46559
 
@@ -50522,6 +50809,7 @@ $root.EventTickets = (function() {
50522
50809
  * @property {number|null} [startsAt] EventTickets startsAt
50523
50810
  * @property {number|null} [endsAt] EventTickets endsAt
50524
50811
  * @property {Array.<ITicketType>|null} [eventTickets] EventTickets eventTickets
50812
+ * @property {number|null} [overRideMax] EventTickets overRideMax
50525
50813
  */
50526
50814
 
50527
50815
  /**
@@ -50588,6 +50876,14 @@ $root.EventTickets = (function() {
50588
50876
  */
50589
50877
  EventTickets.prototype.eventTickets = $util.emptyArray;
50590
50878
 
50879
+ /**
50880
+ * EventTickets overRideMax.
50881
+ * @member {number} overRideMax
50882
+ * @memberof EventTickets
50883
+ * @instance
50884
+ */
50885
+ EventTickets.prototype.overRideMax = 0;
50886
+
50591
50887
  /**
50592
50888
  * Creates a new EventTickets instance using the specified properties.
50593
50889
  * @function create
@@ -50625,6 +50921,8 @@ $root.EventTickets = (function() {
50625
50921
  writer.uint32(/* id 4, wireType 0 =*/32).int32(message.startsAt);
50626
50922
  if (message.endsAt != null && Object.hasOwnProperty.call(message, "endsAt"))
50627
50923
  writer.uint32(/* id 5, wireType 0 =*/40).int32(message.endsAt);
50924
+ if (message.overRideMax != null && Object.hasOwnProperty.call(message, "overRideMax"))
50925
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.overRideMax);
50628
50926
  return writer;
50629
50927
  };
50630
50928
 
@@ -50679,6 +50977,9 @@ $root.EventTickets = (function() {
50679
50977
  message.eventTickets = [];
50680
50978
  message.eventTickets.push($root.TicketType.decode(reader, reader.uint32()));
50681
50979
  break;
50980
+ case 6:
50981
+ message.overRideMax = reader.int32();
50982
+ break;
50682
50983
  default:
50683
50984
  reader.skipType(tag & 7);
50684
50985
  break;
@@ -50738,6 +51039,9 @@ $root.EventTickets = (function() {
50738
51039
  return "eventTickets." + error;
50739
51040
  }
50740
51041
  }
51042
+ if (message.overRideMax != null && message.hasOwnProperty("overRideMax"))
51043
+ if (!$util.isInteger(message.overRideMax))
51044
+ return "overRideMax: integer expected";
50741
51045
  return null;
50742
51046
  };
50743
51047
 
@@ -50773,6 +51077,8 @@ $root.EventTickets = (function() {
50773
51077
  message.eventTickets[i] = $root.TicketType.fromObject(object.eventTickets[i]);
50774
51078
  }
50775
51079
  }
51080
+ if (object.overRideMax != null)
51081
+ message.overRideMax = object.overRideMax | 0;
50776
51082
  return message;
50777
51083
  };
50778
51084
 
@@ -50797,6 +51103,7 @@ $root.EventTickets = (function() {
50797
51103
  object.active = false;
50798
51104
  object.startsAt = 0;
50799
51105
  object.endsAt = 0;
51106
+ object.overRideMax = 0;
50800
51107
  }
50801
51108
  if (message.promoType != null && message.hasOwnProperty("promoType"))
50802
51109
  object.promoType = message.promoType;
@@ -50813,6 +51120,8 @@ $root.EventTickets = (function() {
50813
51120
  object.startsAt = message.startsAt;
50814
51121
  if (message.endsAt != null && message.hasOwnProperty("endsAt"))
50815
51122
  object.endsAt = message.endsAt;
51123
+ if (message.overRideMax != null && message.hasOwnProperty("overRideMax"))
51124
+ object.overRideMax = message.overRideMax;
50816
51125
  return object;
50817
51126
  };
50818
51127
 
@@ -63774,6 +64083,8 @@ $root.CreateFeeRequest = (function() {
63774
64083
  * @property {string|null} [orgId] CreateFeeRequest orgId
63775
64084
  * @property {string|null} [requestorId] CreateFeeRequest requestorId
63776
64085
  * @property {IFee|null} [fee] CreateFeeRequest fee
64086
+ * @property {string|null} [eventId] CreateFeeRequest eventId
64087
+ * @property {string|null} [seasonId] CreateFeeRequest seasonId
63777
64088
  */
63778
64089
 
63779
64090
  /**
@@ -63823,6 +64134,22 @@ $root.CreateFeeRequest = (function() {
63823
64134
  */
63824
64135
  CreateFeeRequest.prototype.fee = null;
63825
64136
 
64137
+ /**
64138
+ * CreateFeeRequest eventId.
64139
+ * @member {string} eventId
64140
+ * @memberof CreateFeeRequest
64141
+ * @instance
64142
+ */
64143
+ CreateFeeRequest.prototype.eventId = "";
64144
+
64145
+ /**
64146
+ * CreateFeeRequest seasonId.
64147
+ * @member {string} seasonId
64148
+ * @memberof CreateFeeRequest
64149
+ * @instance
64150
+ */
64151
+ CreateFeeRequest.prototype.seasonId = "";
64152
+
63826
64153
  /**
63827
64154
  * Creates a new CreateFeeRequest instance using the specified properties.
63828
64155
  * @function create
@@ -63855,6 +64182,10 @@ $root.CreateFeeRequest = (function() {
63855
64182
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestorId);
63856
64183
  if (message.fee != null && Object.hasOwnProperty.call(message, "fee"))
63857
64184
  $root.Fee.encode(message.fee, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
64185
+ if (message.eventId != null && Object.hasOwnProperty.call(message, "eventId"))
64186
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.eventId);
64187
+ if (message.seasonId != null && Object.hasOwnProperty.call(message, "seasonId"))
64188
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.seasonId);
63858
64189
  return writer;
63859
64190
  };
63860
64191
 
@@ -63901,6 +64232,12 @@ $root.CreateFeeRequest = (function() {
63901
64232
  case 3:
63902
64233
  message.fee = $root.Fee.decode(reader, reader.uint32());
63903
64234
  break;
64235
+ case 4:
64236
+ message.eventId = reader.string();
64237
+ break;
64238
+ case 5:
64239
+ message.seasonId = reader.string();
64240
+ break;
63904
64241
  default:
63905
64242
  reader.skipType(tag & 7);
63906
64243
  break;
@@ -63950,6 +64287,12 @@ $root.CreateFeeRequest = (function() {
63950
64287
  if (error)
63951
64288
  return "fee." + error;
63952
64289
  }
64290
+ if (message.eventId != null && message.hasOwnProperty("eventId"))
64291
+ if (!$util.isString(message.eventId))
64292
+ return "eventId: string expected";
64293
+ if (message.seasonId != null && message.hasOwnProperty("seasonId"))
64294
+ if (!$util.isString(message.seasonId))
64295
+ return "seasonId: string expected";
63953
64296
  return null;
63954
64297
  };
63955
64298
 
@@ -63976,6 +64319,10 @@ $root.CreateFeeRequest = (function() {
63976
64319
  throw TypeError(".CreateFeeRequest.fee: object expected");
63977
64320
  message.fee = $root.Fee.fromObject(object.fee);
63978
64321
  }
64322
+ if (object.eventId != null)
64323
+ message.eventId = String(object.eventId);
64324
+ if (object.seasonId != null)
64325
+ message.seasonId = String(object.seasonId);
63979
64326
  return message;
63980
64327
  };
63981
64328
 
@@ -63997,6 +64344,8 @@ $root.CreateFeeRequest = (function() {
63997
64344
  object.orgId = "";
63998
64345
  object.requestorId = "";
63999
64346
  object.fee = null;
64347
+ object.eventId = "";
64348
+ object.seasonId = "";
64000
64349
  }
64001
64350
  if (message.spanContext != null && message.hasOwnProperty("spanContext"))
64002
64351
  object.spanContext = message.spanContext;
@@ -64006,6 +64355,10 @@ $root.CreateFeeRequest = (function() {
64006
64355
  object.requestorId = message.requestorId;
64007
64356
  if (message.fee != null && message.hasOwnProperty("fee"))
64008
64357
  object.fee = $root.Fee.toObject(message.fee, options);
64358
+ if (message.eventId != null && message.hasOwnProperty("eventId"))
64359
+ object.eventId = message.eventId;
64360
+ if (message.seasonId != null && message.hasOwnProperty("seasonId"))
64361
+ object.seasonId = message.seasonId;
64009
64362
  return object;
64010
64363
  };
64011
64364
 
@@ -64335,6 +64688,8 @@ $root.UpdateFeeRequest = (function() {
64335
64688
  * @property {string|null} [orgId] UpdateFeeRequest orgId
64336
64689
  * @property {string|null} [requestorId] UpdateFeeRequest requestorId
64337
64690
  * @property {IFee|null} [fee] UpdateFeeRequest fee
64691
+ * @property {string|null} [eventId] UpdateFeeRequest eventId
64692
+ * @property {string|null} [seasonId] UpdateFeeRequest seasonId
64338
64693
  */
64339
64694
 
64340
64695
  /**
@@ -64384,6 +64739,22 @@ $root.UpdateFeeRequest = (function() {
64384
64739
  */
64385
64740
  UpdateFeeRequest.prototype.fee = null;
64386
64741
 
64742
+ /**
64743
+ * UpdateFeeRequest eventId.
64744
+ * @member {string} eventId
64745
+ * @memberof UpdateFeeRequest
64746
+ * @instance
64747
+ */
64748
+ UpdateFeeRequest.prototype.eventId = "";
64749
+
64750
+ /**
64751
+ * UpdateFeeRequest seasonId.
64752
+ * @member {string} seasonId
64753
+ * @memberof UpdateFeeRequest
64754
+ * @instance
64755
+ */
64756
+ UpdateFeeRequest.prototype.seasonId = "";
64757
+
64387
64758
  /**
64388
64759
  * Creates a new UpdateFeeRequest instance using the specified properties.
64389
64760
  * @function create
@@ -64416,6 +64787,10 @@ $root.UpdateFeeRequest = (function() {
64416
64787
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestorId);
64417
64788
  if (message.fee != null && Object.hasOwnProperty.call(message, "fee"))
64418
64789
  $root.Fee.encode(message.fee, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
64790
+ if (message.eventId != null && Object.hasOwnProperty.call(message, "eventId"))
64791
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.eventId);
64792
+ if (message.seasonId != null && Object.hasOwnProperty.call(message, "seasonId"))
64793
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.seasonId);
64419
64794
  return writer;
64420
64795
  };
64421
64796
 
@@ -64462,6 +64837,12 @@ $root.UpdateFeeRequest = (function() {
64462
64837
  case 3:
64463
64838
  message.fee = $root.Fee.decode(reader, reader.uint32());
64464
64839
  break;
64840
+ case 4:
64841
+ message.eventId = reader.string();
64842
+ break;
64843
+ case 5:
64844
+ message.seasonId = reader.string();
64845
+ break;
64465
64846
  default:
64466
64847
  reader.skipType(tag & 7);
64467
64848
  break;
@@ -64511,6 +64892,12 @@ $root.UpdateFeeRequest = (function() {
64511
64892
  if (error)
64512
64893
  return "fee." + error;
64513
64894
  }
64895
+ if (message.eventId != null && message.hasOwnProperty("eventId"))
64896
+ if (!$util.isString(message.eventId))
64897
+ return "eventId: string expected";
64898
+ if (message.seasonId != null && message.hasOwnProperty("seasonId"))
64899
+ if (!$util.isString(message.seasonId))
64900
+ return "seasonId: string expected";
64514
64901
  return null;
64515
64902
  };
64516
64903
 
@@ -64537,6 +64924,10 @@ $root.UpdateFeeRequest = (function() {
64537
64924
  throw TypeError(".UpdateFeeRequest.fee: object expected");
64538
64925
  message.fee = $root.Fee.fromObject(object.fee);
64539
64926
  }
64927
+ if (object.eventId != null)
64928
+ message.eventId = String(object.eventId);
64929
+ if (object.seasonId != null)
64930
+ message.seasonId = String(object.seasonId);
64540
64931
  return message;
64541
64932
  };
64542
64933
 
@@ -64558,6 +64949,8 @@ $root.UpdateFeeRequest = (function() {
64558
64949
  object.orgId = "";
64559
64950
  object.requestorId = "";
64560
64951
  object.fee = null;
64952
+ object.eventId = "";
64953
+ object.seasonId = "";
64561
64954
  }
64562
64955
  if (message.spanContext != null && message.hasOwnProperty("spanContext"))
64563
64956
  object.spanContext = message.spanContext;
@@ -64567,6 +64960,10 @@ $root.UpdateFeeRequest = (function() {
64567
64960
  object.requestorId = message.requestorId;
64568
64961
  if (message.fee != null && message.hasOwnProperty("fee"))
64569
64962
  object.fee = $root.Fee.toObject(message.fee, options);
64963
+ if (message.eventId != null && message.hasOwnProperty("eventId"))
64964
+ object.eventId = message.eventId;
64965
+ if (message.seasonId != null && message.hasOwnProperty("seasonId"))
64966
+ object.seasonId = message.seasonId;
64570
64967
  return object;
64571
64968
  };
64572
64969
 
@@ -69787,6 +70184,578 @@ $root.DeleteOrganizationFeeResponse = (function() {
69787
70184
  return DeleteOrganizationFeeResponse;
69788
70185
  })();
69789
70186
 
70187
+ $root.DeleteEventOrSeasonFeeRequest = (function() {
70188
+
70189
+ /**
70190
+ * Properties of a DeleteEventOrSeasonFeeRequest.
70191
+ * @exports IDeleteEventOrSeasonFeeRequest
70192
+ * @interface IDeleteEventOrSeasonFeeRequest
70193
+ * @property {string|null} [spanContext] DeleteEventOrSeasonFeeRequest spanContext
70194
+ * @property {string|null} [eventId] DeleteEventOrSeasonFeeRequest eventId
70195
+ * @property {string|null} [seasonId] DeleteEventOrSeasonFeeRequest seasonId
70196
+ * @property {string|null} [feeId] DeleteEventOrSeasonFeeRequest feeId
70197
+ * @property {string|null} [orgId] DeleteEventOrSeasonFeeRequest orgId
70198
+ * @property {string|null} [requestorId] DeleteEventOrSeasonFeeRequest requestorId
70199
+ */
70200
+
70201
+ /**
70202
+ * Constructs a new DeleteEventOrSeasonFeeRequest.
70203
+ * @exports DeleteEventOrSeasonFeeRequest
70204
+ * @classdesc Represents a DeleteEventOrSeasonFeeRequest.
70205
+ * @implements IDeleteEventOrSeasonFeeRequest
70206
+ * @constructor
70207
+ * @param {IDeleteEventOrSeasonFeeRequest=} [properties] Properties to set
70208
+ */
70209
+ function DeleteEventOrSeasonFeeRequest(properties) {
70210
+ if (properties)
70211
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
70212
+ if (properties[keys[i]] != null)
70213
+ this[keys[i]] = properties[keys[i]];
70214
+ }
70215
+
70216
+ /**
70217
+ * DeleteEventOrSeasonFeeRequest spanContext.
70218
+ * @member {string} spanContext
70219
+ * @memberof DeleteEventOrSeasonFeeRequest
70220
+ * @instance
70221
+ */
70222
+ DeleteEventOrSeasonFeeRequest.prototype.spanContext = "";
70223
+
70224
+ /**
70225
+ * DeleteEventOrSeasonFeeRequest eventId.
70226
+ * @member {string} eventId
70227
+ * @memberof DeleteEventOrSeasonFeeRequest
70228
+ * @instance
70229
+ */
70230
+ DeleteEventOrSeasonFeeRequest.prototype.eventId = "";
70231
+
70232
+ /**
70233
+ * DeleteEventOrSeasonFeeRequest seasonId.
70234
+ * @member {string} seasonId
70235
+ * @memberof DeleteEventOrSeasonFeeRequest
70236
+ * @instance
70237
+ */
70238
+ DeleteEventOrSeasonFeeRequest.prototype.seasonId = "";
70239
+
70240
+ /**
70241
+ * DeleteEventOrSeasonFeeRequest feeId.
70242
+ * @member {string} feeId
70243
+ * @memberof DeleteEventOrSeasonFeeRequest
70244
+ * @instance
70245
+ */
70246
+ DeleteEventOrSeasonFeeRequest.prototype.feeId = "";
70247
+
70248
+ /**
70249
+ * DeleteEventOrSeasonFeeRequest orgId.
70250
+ * @member {string} orgId
70251
+ * @memberof DeleteEventOrSeasonFeeRequest
70252
+ * @instance
70253
+ */
70254
+ DeleteEventOrSeasonFeeRequest.prototype.orgId = "";
70255
+
70256
+ /**
70257
+ * DeleteEventOrSeasonFeeRequest requestorId.
70258
+ * @member {string} requestorId
70259
+ * @memberof DeleteEventOrSeasonFeeRequest
70260
+ * @instance
70261
+ */
70262
+ DeleteEventOrSeasonFeeRequest.prototype.requestorId = "";
70263
+
70264
+ /**
70265
+ * Creates a new DeleteEventOrSeasonFeeRequest instance using the specified properties.
70266
+ * @function create
70267
+ * @memberof DeleteEventOrSeasonFeeRequest
70268
+ * @static
70269
+ * @param {IDeleteEventOrSeasonFeeRequest=} [properties] Properties to set
70270
+ * @returns {DeleteEventOrSeasonFeeRequest} DeleteEventOrSeasonFeeRequest instance
70271
+ */
70272
+ DeleteEventOrSeasonFeeRequest.create = function create(properties) {
70273
+ return new DeleteEventOrSeasonFeeRequest(properties);
70274
+ };
70275
+
70276
+ /**
70277
+ * Encodes the specified DeleteEventOrSeasonFeeRequest message. Does not implicitly {@link DeleteEventOrSeasonFeeRequest.verify|verify} messages.
70278
+ * @function encode
70279
+ * @memberof DeleteEventOrSeasonFeeRequest
70280
+ * @static
70281
+ * @param {IDeleteEventOrSeasonFeeRequest} message DeleteEventOrSeasonFeeRequest message or plain object to encode
70282
+ * @param {$protobuf.Writer} [writer] Writer to encode to
70283
+ * @returns {$protobuf.Writer} Writer
70284
+ */
70285
+ DeleteEventOrSeasonFeeRequest.encode = function encode(message, writer) {
70286
+ if (!writer)
70287
+ writer = $Writer.create();
70288
+ if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
70289
+ writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
70290
+ if (message.eventId != null && Object.hasOwnProperty.call(message, "eventId"))
70291
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.eventId);
70292
+ if (message.seasonId != null && Object.hasOwnProperty.call(message, "seasonId"))
70293
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.seasonId);
70294
+ if (message.feeId != null && Object.hasOwnProperty.call(message, "feeId"))
70295
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.feeId);
70296
+ if (message.orgId != null && Object.hasOwnProperty.call(message, "orgId"))
70297
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.orgId);
70298
+ if (message.requestorId != null && Object.hasOwnProperty.call(message, "requestorId"))
70299
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.requestorId);
70300
+ return writer;
70301
+ };
70302
+
70303
+ /**
70304
+ * Encodes the specified DeleteEventOrSeasonFeeRequest message, length delimited. Does not implicitly {@link DeleteEventOrSeasonFeeRequest.verify|verify} messages.
70305
+ * @function encodeDelimited
70306
+ * @memberof DeleteEventOrSeasonFeeRequest
70307
+ * @static
70308
+ * @param {IDeleteEventOrSeasonFeeRequest} message DeleteEventOrSeasonFeeRequest message or plain object to encode
70309
+ * @param {$protobuf.Writer} [writer] Writer to encode to
70310
+ * @returns {$protobuf.Writer} Writer
70311
+ */
70312
+ DeleteEventOrSeasonFeeRequest.encodeDelimited = function encodeDelimited(message, writer) {
70313
+ return this.encode(message, writer).ldelim();
70314
+ };
70315
+
70316
+ /**
70317
+ * Decodes a DeleteEventOrSeasonFeeRequest message from the specified reader or buffer.
70318
+ * @function decode
70319
+ * @memberof DeleteEventOrSeasonFeeRequest
70320
+ * @static
70321
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
70322
+ * @param {number} [length] Message length if known beforehand
70323
+ * @returns {DeleteEventOrSeasonFeeRequest} DeleteEventOrSeasonFeeRequest
70324
+ * @throws {Error} If the payload is not a reader or valid buffer
70325
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
70326
+ */
70327
+ DeleteEventOrSeasonFeeRequest.decode = function decode(reader, length) {
70328
+ if (!(reader instanceof $Reader))
70329
+ reader = $Reader.create(reader);
70330
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.DeleteEventOrSeasonFeeRequest();
70331
+ while (reader.pos < end) {
70332
+ var tag = reader.uint32();
70333
+ switch (tag >>> 3) {
70334
+ case 0:
70335
+ message.spanContext = reader.string();
70336
+ break;
70337
+ case 1:
70338
+ message.eventId = reader.string();
70339
+ break;
70340
+ case 2:
70341
+ message.seasonId = reader.string();
70342
+ break;
70343
+ case 3:
70344
+ message.feeId = reader.string();
70345
+ break;
70346
+ case 4:
70347
+ message.orgId = reader.string();
70348
+ break;
70349
+ case 5:
70350
+ message.requestorId = reader.string();
70351
+ break;
70352
+ default:
70353
+ reader.skipType(tag & 7);
70354
+ break;
70355
+ }
70356
+ }
70357
+ return message;
70358
+ };
70359
+
70360
+ /**
70361
+ * Decodes a DeleteEventOrSeasonFeeRequest message from the specified reader or buffer, length delimited.
70362
+ * @function decodeDelimited
70363
+ * @memberof DeleteEventOrSeasonFeeRequest
70364
+ * @static
70365
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
70366
+ * @returns {DeleteEventOrSeasonFeeRequest} DeleteEventOrSeasonFeeRequest
70367
+ * @throws {Error} If the payload is not a reader or valid buffer
70368
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
70369
+ */
70370
+ DeleteEventOrSeasonFeeRequest.decodeDelimited = function decodeDelimited(reader) {
70371
+ if (!(reader instanceof $Reader))
70372
+ reader = new $Reader(reader);
70373
+ return this.decode(reader, reader.uint32());
70374
+ };
70375
+
70376
+ /**
70377
+ * Verifies a DeleteEventOrSeasonFeeRequest message.
70378
+ * @function verify
70379
+ * @memberof DeleteEventOrSeasonFeeRequest
70380
+ * @static
70381
+ * @param {Object.<string,*>} message Plain object to verify
70382
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
70383
+ */
70384
+ DeleteEventOrSeasonFeeRequest.verify = function verify(message) {
70385
+ if (typeof message !== "object" || message === null)
70386
+ return "object expected";
70387
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
70388
+ if (!$util.isString(message.spanContext))
70389
+ return "spanContext: string expected";
70390
+ if (message.eventId != null && message.hasOwnProperty("eventId"))
70391
+ if (!$util.isString(message.eventId))
70392
+ return "eventId: string expected";
70393
+ if (message.seasonId != null && message.hasOwnProperty("seasonId"))
70394
+ if (!$util.isString(message.seasonId))
70395
+ return "seasonId: string expected";
70396
+ if (message.feeId != null && message.hasOwnProperty("feeId"))
70397
+ if (!$util.isString(message.feeId))
70398
+ return "feeId: string expected";
70399
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
70400
+ if (!$util.isString(message.orgId))
70401
+ return "orgId: string expected";
70402
+ if (message.requestorId != null && message.hasOwnProperty("requestorId"))
70403
+ if (!$util.isString(message.requestorId))
70404
+ return "requestorId: string expected";
70405
+ return null;
70406
+ };
70407
+
70408
+ /**
70409
+ * Creates a DeleteEventOrSeasonFeeRequest message from a plain object. Also converts values to their respective internal types.
70410
+ * @function fromObject
70411
+ * @memberof DeleteEventOrSeasonFeeRequest
70412
+ * @static
70413
+ * @param {Object.<string,*>} object Plain object
70414
+ * @returns {DeleteEventOrSeasonFeeRequest} DeleteEventOrSeasonFeeRequest
70415
+ */
70416
+ DeleteEventOrSeasonFeeRequest.fromObject = function fromObject(object) {
70417
+ if (object instanceof $root.DeleteEventOrSeasonFeeRequest)
70418
+ return object;
70419
+ var message = new $root.DeleteEventOrSeasonFeeRequest();
70420
+ if (object.spanContext != null)
70421
+ message.spanContext = String(object.spanContext);
70422
+ if (object.eventId != null)
70423
+ message.eventId = String(object.eventId);
70424
+ if (object.seasonId != null)
70425
+ message.seasonId = String(object.seasonId);
70426
+ if (object.feeId != null)
70427
+ message.feeId = String(object.feeId);
70428
+ if (object.orgId != null)
70429
+ message.orgId = String(object.orgId);
70430
+ if (object.requestorId != null)
70431
+ message.requestorId = String(object.requestorId);
70432
+ return message;
70433
+ };
70434
+
70435
+ /**
70436
+ * Creates a plain object from a DeleteEventOrSeasonFeeRequest message. Also converts values to other types if specified.
70437
+ * @function toObject
70438
+ * @memberof DeleteEventOrSeasonFeeRequest
70439
+ * @static
70440
+ * @param {DeleteEventOrSeasonFeeRequest} message DeleteEventOrSeasonFeeRequest
70441
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
70442
+ * @returns {Object.<string,*>} Plain object
70443
+ */
70444
+ DeleteEventOrSeasonFeeRequest.toObject = function toObject(message, options) {
70445
+ if (!options)
70446
+ options = {};
70447
+ var object = {};
70448
+ if (options.defaults) {
70449
+ object.spanContext = "";
70450
+ object.eventId = "";
70451
+ object.seasonId = "";
70452
+ object.feeId = "";
70453
+ object.orgId = "";
70454
+ object.requestorId = "";
70455
+ }
70456
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
70457
+ object.spanContext = message.spanContext;
70458
+ if (message.eventId != null && message.hasOwnProperty("eventId"))
70459
+ object.eventId = message.eventId;
70460
+ if (message.seasonId != null && message.hasOwnProperty("seasonId"))
70461
+ object.seasonId = message.seasonId;
70462
+ if (message.feeId != null && message.hasOwnProperty("feeId"))
70463
+ object.feeId = message.feeId;
70464
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
70465
+ object.orgId = message.orgId;
70466
+ if (message.requestorId != null && message.hasOwnProperty("requestorId"))
70467
+ object.requestorId = message.requestorId;
70468
+ return object;
70469
+ };
70470
+
70471
+ /**
70472
+ * Converts this DeleteEventOrSeasonFeeRequest to JSON.
70473
+ * @function toJSON
70474
+ * @memberof DeleteEventOrSeasonFeeRequest
70475
+ * @instance
70476
+ * @returns {Object.<string,*>} JSON object
70477
+ */
70478
+ DeleteEventOrSeasonFeeRequest.prototype.toJSON = function toJSON() {
70479
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
70480
+ };
70481
+
70482
+ return DeleteEventOrSeasonFeeRequest;
70483
+ })();
70484
+
70485
+ $root.DeleteEventOrSeasonFeeResponse = (function() {
70486
+
70487
+ /**
70488
+ * Properties of a DeleteEventOrSeasonFeeResponse.
70489
+ * @exports IDeleteEventOrSeasonFeeResponse
70490
+ * @interface IDeleteEventOrSeasonFeeResponse
70491
+ * @property {StatusCode|null} [status] DeleteEventOrSeasonFeeResponse status
70492
+ * @property {Array.<IError>|null} [errors] DeleteEventOrSeasonFeeResponse errors
70493
+ */
70494
+
70495
+ /**
70496
+ * Constructs a new DeleteEventOrSeasonFeeResponse.
70497
+ * @exports DeleteEventOrSeasonFeeResponse
70498
+ * @classdesc Represents a DeleteEventOrSeasonFeeResponse.
70499
+ * @implements IDeleteEventOrSeasonFeeResponse
70500
+ * @constructor
70501
+ * @param {IDeleteEventOrSeasonFeeResponse=} [properties] Properties to set
70502
+ */
70503
+ function DeleteEventOrSeasonFeeResponse(properties) {
70504
+ this.errors = [];
70505
+ if (properties)
70506
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
70507
+ if (properties[keys[i]] != null)
70508
+ this[keys[i]] = properties[keys[i]];
70509
+ }
70510
+
70511
+ /**
70512
+ * DeleteEventOrSeasonFeeResponse status.
70513
+ * @member {StatusCode} status
70514
+ * @memberof DeleteEventOrSeasonFeeResponse
70515
+ * @instance
70516
+ */
70517
+ DeleteEventOrSeasonFeeResponse.prototype.status = 0;
70518
+
70519
+ /**
70520
+ * DeleteEventOrSeasonFeeResponse errors.
70521
+ * @member {Array.<IError>} errors
70522
+ * @memberof DeleteEventOrSeasonFeeResponse
70523
+ * @instance
70524
+ */
70525
+ DeleteEventOrSeasonFeeResponse.prototype.errors = $util.emptyArray;
70526
+
70527
+ /**
70528
+ * Creates a new DeleteEventOrSeasonFeeResponse instance using the specified properties.
70529
+ * @function create
70530
+ * @memberof DeleteEventOrSeasonFeeResponse
70531
+ * @static
70532
+ * @param {IDeleteEventOrSeasonFeeResponse=} [properties] Properties to set
70533
+ * @returns {DeleteEventOrSeasonFeeResponse} DeleteEventOrSeasonFeeResponse instance
70534
+ */
70535
+ DeleteEventOrSeasonFeeResponse.create = function create(properties) {
70536
+ return new DeleteEventOrSeasonFeeResponse(properties);
70537
+ };
70538
+
70539
+ /**
70540
+ * Encodes the specified DeleteEventOrSeasonFeeResponse message. Does not implicitly {@link DeleteEventOrSeasonFeeResponse.verify|verify} messages.
70541
+ * @function encode
70542
+ * @memberof DeleteEventOrSeasonFeeResponse
70543
+ * @static
70544
+ * @param {IDeleteEventOrSeasonFeeResponse} message DeleteEventOrSeasonFeeResponse message or plain object to encode
70545
+ * @param {$protobuf.Writer} [writer] Writer to encode to
70546
+ * @returns {$protobuf.Writer} Writer
70547
+ */
70548
+ DeleteEventOrSeasonFeeResponse.encode = function encode(message, writer) {
70549
+ if (!writer)
70550
+ writer = $Writer.create();
70551
+ if (message.status != null && Object.hasOwnProperty.call(message, "status"))
70552
+ writer.uint32(/* id 0, wireType 0 =*/0).int32(message.status);
70553
+ if (message.errors != null && message.errors.length)
70554
+ for (var i = 0; i < message.errors.length; ++i)
70555
+ $root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
70556
+ return writer;
70557
+ };
70558
+
70559
+ /**
70560
+ * Encodes the specified DeleteEventOrSeasonFeeResponse message, length delimited. Does not implicitly {@link DeleteEventOrSeasonFeeResponse.verify|verify} messages.
70561
+ * @function encodeDelimited
70562
+ * @memberof DeleteEventOrSeasonFeeResponse
70563
+ * @static
70564
+ * @param {IDeleteEventOrSeasonFeeResponse} message DeleteEventOrSeasonFeeResponse message or plain object to encode
70565
+ * @param {$protobuf.Writer} [writer] Writer to encode to
70566
+ * @returns {$protobuf.Writer} Writer
70567
+ */
70568
+ DeleteEventOrSeasonFeeResponse.encodeDelimited = function encodeDelimited(message, writer) {
70569
+ return this.encode(message, writer).ldelim();
70570
+ };
70571
+
70572
+ /**
70573
+ * Decodes a DeleteEventOrSeasonFeeResponse message from the specified reader or buffer.
70574
+ * @function decode
70575
+ * @memberof DeleteEventOrSeasonFeeResponse
70576
+ * @static
70577
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
70578
+ * @param {number} [length] Message length if known beforehand
70579
+ * @returns {DeleteEventOrSeasonFeeResponse} DeleteEventOrSeasonFeeResponse
70580
+ * @throws {Error} If the payload is not a reader or valid buffer
70581
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
70582
+ */
70583
+ DeleteEventOrSeasonFeeResponse.decode = function decode(reader, length) {
70584
+ if (!(reader instanceof $Reader))
70585
+ reader = $Reader.create(reader);
70586
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.DeleteEventOrSeasonFeeResponse();
70587
+ while (reader.pos < end) {
70588
+ var tag = reader.uint32();
70589
+ switch (tag >>> 3) {
70590
+ case 0:
70591
+ message.status = reader.int32();
70592
+ break;
70593
+ case 1:
70594
+ if (!(message.errors && message.errors.length))
70595
+ message.errors = [];
70596
+ message.errors.push($root.Error.decode(reader, reader.uint32()));
70597
+ break;
70598
+ default:
70599
+ reader.skipType(tag & 7);
70600
+ break;
70601
+ }
70602
+ }
70603
+ return message;
70604
+ };
70605
+
70606
+ /**
70607
+ * Decodes a DeleteEventOrSeasonFeeResponse message from the specified reader or buffer, length delimited.
70608
+ * @function decodeDelimited
70609
+ * @memberof DeleteEventOrSeasonFeeResponse
70610
+ * @static
70611
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
70612
+ * @returns {DeleteEventOrSeasonFeeResponse} DeleteEventOrSeasonFeeResponse
70613
+ * @throws {Error} If the payload is not a reader or valid buffer
70614
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
70615
+ */
70616
+ DeleteEventOrSeasonFeeResponse.decodeDelimited = function decodeDelimited(reader) {
70617
+ if (!(reader instanceof $Reader))
70618
+ reader = new $Reader(reader);
70619
+ return this.decode(reader, reader.uint32());
70620
+ };
70621
+
70622
+ /**
70623
+ * Verifies a DeleteEventOrSeasonFeeResponse message.
70624
+ * @function verify
70625
+ * @memberof DeleteEventOrSeasonFeeResponse
70626
+ * @static
70627
+ * @param {Object.<string,*>} message Plain object to verify
70628
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
70629
+ */
70630
+ DeleteEventOrSeasonFeeResponse.verify = function verify(message) {
70631
+ if (typeof message !== "object" || message === null)
70632
+ return "object expected";
70633
+ if (message.status != null && message.hasOwnProperty("status"))
70634
+ switch (message.status) {
70635
+ default:
70636
+ return "status: enum value expected";
70637
+ case 0:
70638
+ case 200:
70639
+ case 400:
70640
+ case 401:
70641
+ case 403:
70642
+ case 422:
70643
+ case 500:
70644
+ case 504:
70645
+ break;
70646
+ }
70647
+ if (message.errors != null && message.hasOwnProperty("errors")) {
70648
+ if (!Array.isArray(message.errors))
70649
+ return "errors: array expected";
70650
+ for (var i = 0; i < message.errors.length; ++i) {
70651
+ var error = $root.Error.verify(message.errors[i]);
70652
+ if (error)
70653
+ return "errors." + error;
70654
+ }
70655
+ }
70656
+ return null;
70657
+ };
70658
+
70659
+ /**
70660
+ * Creates a DeleteEventOrSeasonFeeResponse message from a plain object. Also converts values to their respective internal types.
70661
+ * @function fromObject
70662
+ * @memberof DeleteEventOrSeasonFeeResponse
70663
+ * @static
70664
+ * @param {Object.<string,*>} object Plain object
70665
+ * @returns {DeleteEventOrSeasonFeeResponse} DeleteEventOrSeasonFeeResponse
70666
+ */
70667
+ DeleteEventOrSeasonFeeResponse.fromObject = function fromObject(object) {
70668
+ if (object instanceof $root.DeleteEventOrSeasonFeeResponse)
70669
+ return object;
70670
+ var message = new $root.DeleteEventOrSeasonFeeResponse();
70671
+ switch (object.status) {
70672
+ case "UNKNOWN_CODE":
70673
+ case 0:
70674
+ message.status = 0;
70675
+ break;
70676
+ case "OK":
70677
+ case 200:
70678
+ message.status = 200;
70679
+ break;
70680
+ case "BAD_REQUEST":
70681
+ case 400:
70682
+ message.status = 400;
70683
+ break;
70684
+ case "UNAUTHORIZED":
70685
+ case 401:
70686
+ message.status = 401;
70687
+ break;
70688
+ case "FORBIDDEN":
70689
+ case 403:
70690
+ message.status = 403;
70691
+ break;
70692
+ case "UNPROCESSABLE_ENTITY":
70693
+ case 422:
70694
+ message.status = 422;
70695
+ break;
70696
+ case "INTERNAL_SERVER_ERROR":
70697
+ case 500:
70698
+ message.status = 500;
70699
+ break;
70700
+ case "GATEWAY_TIMEOUT":
70701
+ case 504:
70702
+ message.status = 504;
70703
+ break;
70704
+ }
70705
+ if (object.errors) {
70706
+ if (!Array.isArray(object.errors))
70707
+ throw TypeError(".DeleteEventOrSeasonFeeResponse.errors: array expected");
70708
+ message.errors = [];
70709
+ for (var i = 0; i < object.errors.length; ++i) {
70710
+ if (typeof object.errors[i] !== "object")
70711
+ throw TypeError(".DeleteEventOrSeasonFeeResponse.errors: object expected");
70712
+ message.errors[i] = $root.Error.fromObject(object.errors[i]);
70713
+ }
70714
+ }
70715
+ return message;
70716
+ };
70717
+
70718
+ /**
70719
+ * Creates a plain object from a DeleteEventOrSeasonFeeResponse message. Also converts values to other types if specified.
70720
+ * @function toObject
70721
+ * @memberof DeleteEventOrSeasonFeeResponse
70722
+ * @static
70723
+ * @param {DeleteEventOrSeasonFeeResponse} message DeleteEventOrSeasonFeeResponse
70724
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
70725
+ * @returns {Object.<string,*>} Plain object
70726
+ */
70727
+ DeleteEventOrSeasonFeeResponse.toObject = function toObject(message, options) {
70728
+ if (!options)
70729
+ options = {};
70730
+ var object = {};
70731
+ if (options.arrays || options.defaults)
70732
+ object.errors = [];
70733
+ if (options.defaults)
70734
+ object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
70735
+ if (message.status != null && message.hasOwnProperty("status"))
70736
+ object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
70737
+ if (message.errors && message.errors.length) {
70738
+ object.errors = [];
70739
+ for (var j = 0; j < message.errors.length; ++j)
70740
+ object.errors[j] = $root.Error.toObject(message.errors[j], options);
70741
+ }
70742
+ return object;
70743
+ };
70744
+
70745
+ /**
70746
+ * Converts this DeleteEventOrSeasonFeeResponse to JSON.
70747
+ * @function toJSON
70748
+ * @memberof DeleteEventOrSeasonFeeResponse
70749
+ * @instance
70750
+ * @returns {Object.<string,*>} JSON object
70751
+ */
70752
+ DeleteEventOrSeasonFeeResponse.prototype.toJSON = function toJSON() {
70753
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
70754
+ };
70755
+
70756
+ return DeleteEventOrSeasonFeeResponse;
70757
+ })();
70758
+
69790
70759
  $root.DeletePlatformFeeRequest = (function() {
69791
70760
 
69792
70761
  /**
@@ -70853,6 +71822,39 @@ $root.FeeService = (function() {
70853
71822
  * @variation 2
70854
71823
  */
70855
71824
 
71825
+ /**
71826
+ * Callback as used by {@link FeeService#createEventOrSeasonFee}.
71827
+ * @memberof FeeService
71828
+ * @typedef createEventOrSeasonFeeCallback
71829
+ * @type {function}
71830
+ * @param {Error|null} error Error, if any
71831
+ * @param {CreateFeeResponse} [response] CreateFeeResponse
71832
+ */
71833
+
71834
+ /**
71835
+ * Calls createEventOrSeasonFee.
71836
+ * @function createEventOrSeasonFee
71837
+ * @memberof FeeService
71838
+ * @instance
71839
+ * @param {ICreateFeeRequest} request CreateFeeRequest message or plain object
71840
+ * @param {FeeService.createEventOrSeasonFeeCallback} callback Node-style callback called with the error, if any, and CreateFeeResponse
71841
+ * @returns {undefined}
71842
+ * @variation 1
71843
+ */
71844
+ Object.defineProperty(FeeService.prototype.createEventOrSeasonFee = function createEventOrSeasonFee(request, callback) {
71845
+ return this.rpcCall(createEventOrSeasonFee, $root.CreateFeeRequest, $root.CreateFeeResponse, request, callback);
71846
+ }, "name", { value: "createEventOrSeasonFee" });
71847
+
71848
+ /**
71849
+ * Calls createEventOrSeasonFee.
71850
+ * @function createEventOrSeasonFee
71851
+ * @memberof FeeService
71852
+ * @instance
71853
+ * @param {ICreateFeeRequest} request CreateFeeRequest message or plain object
71854
+ * @returns {Promise<CreateFeeResponse>} Promise
71855
+ * @variation 2
71856
+ */
71857
+
70856
71858
  /**
70857
71859
  * Callback as used by {@link FeeService#createPlatformFee}.
70858
71860
  * @memberof FeeService
@@ -70985,6 +71987,39 @@ $root.FeeService = (function() {
70985
71987
  * @variation 2
70986
71988
  */
70987
71989
 
71990
+ /**
71991
+ * Callback as used by {@link FeeService#updateEventOrSeasonFee}.
71992
+ * @memberof FeeService
71993
+ * @typedef updateEventOrSeasonFeeCallback
71994
+ * @type {function}
71995
+ * @param {Error|null} error Error, if any
71996
+ * @param {UpdateFeeResponse} [response] UpdateFeeResponse
71997
+ */
71998
+
71999
+ /**
72000
+ * Calls updateEventOrSeasonFee.
72001
+ * @function updateEventOrSeasonFee
72002
+ * @memberof FeeService
72003
+ * @instance
72004
+ * @param {IUpdateFeeRequest} request UpdateFeeRequest message or plain object
72005
+ * @param {FeeService.updateEventOrSeasonFeeCallback} callback Node-style callback called with the error, if any, and UpdateFeeResponse
72006
+ * @returns {undefined}
72007
+ * @variation 1
72008
+ */
72009
+ Object.defineProperty(FeeService.prototype.updateEventOrSeasonFee = function updateEventOrSeasonFee(request, callback) {
72010
+ return this.rpcCall(updateEventOrSeasonFee, $root.UpdateFeeRequest, $root.UpdateFeeResponse, request, callback);
72011
+ }, "name", { value: "updateEventOrSeasonFee" });
72012
+
72013
+ /**
72014
+ * Calls updateEventOrSeasonFee.
72015
+ * @function updateEventOrSeasonFee
72016
+ * @memberof FeeService
72017
+ * @instance
72018
+ * @param {IUpdateFeeRequest} request UpdateFeeRequest message or plain object
72019
+ * @returns {Promise<UpdateFeeResponse>} Promise
72020
+ * @variation 2
72021
+ */
72022
+
70988
72023
  /**
70989
72024
  * Callback as used by {@link FeeService#updatePlatformFee}.
70990
72025
  * @memberof FeeService
@@ -71282,6 +72317,39 @@ $root.FeeService = (function() {
71282
72317
  * @variation 2
71283
72318
  */
71284
72319
 
72320
+ /**
72321
+ * Callback as used by {@link FeeService#deleteEventOrSeasonFee}.
72322
+ * @memberof FeeService
72323
+ * @typedef deleteEventOrSeasonFeeCallback
72324
+ * @type {function}
72325
+ * @param {Error|null} error Error, if any
72326
+ * @param {DeleteEventOrSeasonFeeResponse} [response] DeleteEventOrSeasonFeeResponse
72327
+ */
72328
+
72329
+ /**
72330
+ * Calls deleteEventOrSeasonFee.
72331
+ * @function deleteEventOrSeasonFee
72332
+ * @memberof FeeService
72333
+ * @instance
72334
+ * @param {IDeleteEventOrSeasonFeeRequest} request DeleteEventOrSeasonFeeRequest message or plain object
72335
+ * @param {FeeService.deleteEventOrSeasonFeeCallback} callback Node-style callback called with the error, if any, and DeleteEventOrSeasonFeeResponse
72336
+ * @returns {undefined}
72337
+ * @variation 1
72338
+ */
72339
+ Object.defineProperty(FeeService.prototype.deleteEventOrSeasonFee = function deleteEventOrSeasonFee(request, callback) {
72340
+ return this.rpcCall(deleteEventOrSeasonFee, $root.DeleteEventOrSeasonFeeRequest, $root.DeleteEventOrSeasonFeeResponse, request, callback);
72341
+ }, "name", { value: "deleteEventOrSeasonFee" });
72342
+
72343
+ /**
72344
+ * Calls deleteEventOrSeasonFee.
72345
+ * @function deleteEventOrSeasonFee
72346
+ * @memberof FeeService
72347
+ * @instance
72348
+ * @param {IDeleteEventOrSeasonFeeRequest} request DeleteEventOrSeasonFeeRequest message or plain object
72349
+ * @returns {Promise<DeleteEventOrSeasonFeeResponse>} Promise
72350
+ * @variation 2
72351
+ */
72352
+
71285
72353
  /**
71286
72354
  * Callback as used by {@link FeeService#deletePlatformFee}.
71287
72355
  * @memberof FeeService