@sellout/models 0.0.188-alpha.0 → 0.0.188
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dist/graphql/mutations/generateActivityReport.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/generateActivityReport.mutation.js +18 -0
- package/.dist/graphql/mutations/generateActivityReport.mutation.js.map +1 -0
- package/.dist/graphql/mutations/sendSeasonOrderReceiptEmail.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/sendSeasonOrderReceiptEmail.mutation.js +13 -0
- package/.dist/graphql/mutations/sendSeasonOrderReceiptEmail.mutation.js.map +1 -0
- package/.dist/graphql/queries/order.query.js +1 -0
- package/.dist/graphql/queries/order.query.js.map +1 -1
- package/.dist/graphql/queries/orders.query.js +1 -0
- package/.dist/graphql/queries/orders.query.js.map +1 -1
- package/.dist/graphql/queries/userProfilesAdmin.query.js +2 -5
- package/.dist/graphql/queries/userProfilesAdmin.query.js.map +1 -1
- package/.dist/interfaces/ICreateOrderParams.d.ts +2 -0
- package/.dist/interfaces/IFee.d.ts +1 -0
- package/.dist/interfaces/IOrder.d.ts +2 -1
- package/.dist/interfaces/IOrder.js.map +1 -1
- package/.dist/interfaces/IOrderSummary.d.ts +1 -0
- package/.dist/interfaces/IPagination.d.ts +1 -2
- package/.dist/interfaces/IPagination.js +0 -1
- package/.dist/interfaces/IPagination.js.map +1 -1
- package/.dist/schemas/Order.d.ts +81 -0
- package/.dist/schemas/Order.js +81 -0
- package/.dist/schemas/Order.js.map +1 -1
- package/.dist/sellout-proto.js +1014 -118
- package/.dist/utils/OrderUtil.js +111 -195
- package/.dist/utils/OrderUtil.js.map +1 -1
- package/.dist/utils/PaymentUtil.d.ts +2 -2
- package/.dist/utils/PaymentUtil.js +190 -198
- package/.dist/utils/PaymentUtil.js.map +1 -1
- package/package.json +3 -3
- package/src/graphql/mutations/generateActivityReport.mutation.ts +14 -0
- package/src/graphql/mutations/sendSeasonOrderReceiptEmail.mutation.ts +9 -0
- package/src/graphql/queries/order.query.ts +1 -0
- package/src/graphql/queries/orders.query.ts +1 -0
- package/src/graphql/queries/userProfilesAdmin.query.ts +2 -5
- package/src/interfaces/ICreateOrderParams.ts +2 -0
- package/src/interfaces/IFee.ts +2 -0
- package/src/interfaces/IOrder.ts +2 -1
- package/src/interfaces/IOrderSummary.ts +1 -0
- package/src/interfaces/IPagination.ts +6 -7
- package/src/proto/email.proto +0 -2
- package/src/proto/event.proto +0 -3
- package/src/proto/fee.proto +1 -0
- package/src/proto/order.proto +35 -1
- package/src/schemas/Order.ts +81 -0
- package/src/utils/OrderUtil.ts +128 -219
- package/src/utils/PaymentUtil.ts +243 -269
package/.dist/sellout-proto.js
CHANGED
|
@@ -13009,6 +13009,7 @@ $root.Order = (function() {
|
|
|
13009
13009
|
* @property {boolean|null} [hidden] Order hidden
|
|
13010
13010
|
* @property {boolean|null} [printed] Order printed
|
|
13011
13011
|
* @property {string|null} [parentSeasonOrderId] Order parentSeasonOrderId
|
|
13012
|
+
* @property {Array.<IorderFees>|null} [fees] Order fees
|
|
13012
13013
|
*/
|
|
13013
13014
|
|
|
13014
13015
|
/**
|
|
@@ -13028,6 +13029,7 @@ $root.Order = (function() {
|
|
|
13028
13029
|
this.recipientEmails = [];
|
|
13029
13030
|
this.customFields = [];
|
|
13030
13031
|
this.payments = [];
|
|
13032
|
+
this.fees = [];
|
|
13031
13033
|
if (properties)
|
|
13032
13034
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
13033
13035
|
if (properties[keys[i]] != null)
|
|
@@ -13282,6 +13284,14 @@ $root.Order = (function() {
|
|
|
13282
13284
|
*/
|
|
13283
13285
|
Order.prototype.parentSeasonOrderId = "";
|
|
13284
13286
|
|
|
13287
|
+
/**
|
|
13288
|
+
* Order fees.
|
|
13289
|
+
* @member {Array.<IorderFees>} fees
|
|
13290
|
+
* @memberof Order
|
|
13291
|
+
* @instance
|
|
13292
|
+
*/
|
|
13293
|
+
Order.prototype.fees = $util.emptyArray;
|
|
13294
|
+
|
|
13285
13295
|
/**
|
|
13286
13296
|
* Creates a new Order instance using the specified properties.
|
|
13287
13297
|
* @function create
|
|
@@ -13376,6 +13386,9 @@ $root.Order = (function() {
|
|
|
13376
13386
|
writer.uint32(/* id 29, wireType 0 =*/232).bool(message.printed);
|
|
13377
13387
|
if (message.parentSeasonOrderId != null && Object.hasOwnProperty.call(message, "parentSeasonOrderId"))
|
|
13378
13388
|
writer.uint32(/* id 30, wireType 2 =*/242).string(message.parentSeasonOrderId);
|
|
13389
|
+
if (message.fees != null && message.fees.length)
|
|
13390
|
+
for (var i = 0; i < message.fees.length; ++i)
|
|
13391
|
+
$root.orderFees.encode(message.fees[i], writer.uint32(/* id 31, wireType 2 =*/250).fork()).ldelim();
|
|
13379
13392
|
return writer;
|
|
13380
13393
|
};
|
|
13381
13394
|
|
|
@@ -13519,6 +13532,11 @@ $root.Order = (function() {
|
|
|
13519
13532
|
case 30:
|
|
13520
13533
|
message.parentSeasonOrderId = reader.string();
|
|
13521
13534
|
break;
|
|
13535
|
+
case 31:
|
|
13536
|
+
if (!(message.fees && message.fees.length))
|
|
13537
|
+
message.fees = [];
|
|
13538
|
+
message.fees.push($root.orderFees.decode(reader, reader.uint32()));
|
|
13539
|
+
break;
|
|
13522
13540
|
default:
|
|
13523
13541
|
reader.skipType(tag & 7);
|
|
13524
13542
|
break;
|
|
@@ -13691,6 +13709,15 @@ $root.Order = (function() {
|
|
|
13691
13709
|
if (message.parentSeasonOrderId != null && message.hasOwnProperty("parentSeasonOrderId"))
|
|
13692
13710
|
if (!$util.isString(message.parentSeasonOrderId))
|
|
13693
13711
|
return "parentSeasonOrderId: string expected";
|
|
13712
|
+
if (message.fees != null && message.hasOwnProperty("fees")) {
|
|
13713
|
+
if (!Array.isArray(message.fees))
|
|
13714
|
+
return "fees: array expected";
|
|
13715
|
+
for (var i = 0; i < message.fees.length; ++i) {
|
|
13716
|
+
var error = $root.orderFees.verify(message.fees[i]);
|
|
13717
|
+
if (error)
|
|
13718
|
+
return "fees." + error;
|
|
13719
|
+
}
|
|
13720
|
+
}
|
|
13694
13721
|
return null;
|
|
13695
13722
|
};
|
|
13696
13723
|
|
|
@@ -13826,6 +13853,16 @@ $root.Order = (function() {
|
|
|
13826
13853
|
message.printed = Boolean(object.printed);
|
|
13827
13854
|
if (object.parentSeasonOrderId != null)
|
|
13828
13855
|
message.parentSeasonOrderId = String(object.parentSeasonOrderId);
|
|
13856
|
+
if (object.fees) {
|
|
13857
|
+
if (!Array.isArray(object.fees))
|
|
13858
|
+
throw TypeError(".Order.fees: array expected");
|
|
13859
|
+
message.fees = [];
|
|
13860
|
+
for (var i = 0; i < object.fees.length; ++i) {
|
|
13861
|
+
if (typeof object.fees[i] !== "object")
|
|
13862
|
+
throw TypeError(".Order.fees: object expected");
|
|
13863
|
+
message.fees[i] = $root.orderFees.fromObject(object.fees[i]);
|
|
13864
|
+
}
|
|
13865
|
+
}
|
|
13829
13866
|
return message;
|
|
13830
13867
|
};
|
|
13831
13868
|
|
|
@@ -13851,6 +13888,7 @@ $root.Order = (function() {
|
|
|
13851
13888
|
object.recipientEmails = [];
|
|
13852
13889
|
object.customFields = [];
|
|
13853
13890
|
object.payments = [];
|
|
13891
|
+
object.fees = [];
|
|
13854
13892
|
}
|
|
13855
13893
|
if (options.defaults) {
|
|
13856
13894
|
object._id = "";
|
|
@@ -13963,6 +14001,11 @@ $root.Order = (function() {
|
|
|
13963
14001
|
object.printed = message.printed;
|
|
13964
14002
|
if (message.parentSeasonOrderId != null && message.hasOwnProperty("parentSeasonOrderId"))
|
|
13965
14003
|
object.parentSeasonOrderId = message.parentSeasonOrderId;
|
|
14004
|
+
if (message.fees && message.fees.length) {
|
|
14005
|
+
object.fees = [];
|
|
14006
|
+
for (var j = 0; j < message.fees.length; ++j)
|
|
14007
|
+
object.fees[j] = $root.orderFees.toObject(message.fees[j], options);
|
|
14008
|
+
}
|
|
13966
14009
|
return object;
|
|
13967
14010
|
};
|
|
13968
14011
|
|
|
@@ -14828,6 +14871,585 @@ $root.OrderTicket = (function() {
|
|
|
14828
14871
|
return OrderTicket;
|
|
14829
14872
|
})();
|
|
14830
14873
|
|
|
14874
|
+
$root.orderFees = (function() {
|
|
14875
|
+
|
|
14876
|
+
/**
|
|
14877
|
+
* Properties of an orderFees.
|
|
14878
|
+
* @exports IorderFees
|
|
14879
|
+
* @interface IorderFees
|
|
14880
|
+
* @property {string|null} [_id] orderFees _id
|
|
14881
|
+
* @property {string|null} [name] orderFees name
|
|
14882
|
+
* @property {string|null} [orgId] orderFees orgId
|
|
14883
|
+
* @property {string|null} [eventId] orderFees eventId
|
|
14884
|
+
* @property {string|null} [type] orderFees type
|
|
14885
|
+
* @property {number|null} [value] orderFees value
|
|
14886
|
+
* @property {string|null} [appliedTo] orderFees appliedTo
|
|
14887
|
+
* @property {string|null} [appliedBy] orderFees appliedBy
|
|
14888
|
+
* @property {number|null} [minAppliedToPrice] orderFees minAppliedToPrice
|
|
14889
|
+
* @property {number|null} [maxAppliedToPrice] orderFees maxAppliedToPrice
|
|
14890
|
+
* @property {Array.<string>|null} [filters] orderFees filters
|
|
14891
|
+
* @property {string|null} [createdBy] orderFees createdBy
|
|
14892
|
+
* @property {number|null} [createdAt] orderFees createdAt
|
|
14893
|
+
* @property {string|null} [updatedBy] orderFees updatedBy
|
|
14894
|
+
* @property {number|null} [updatedAt] orderFees updatedAt
|
|
14895
|
+
* @property {boolean|null} [disabled] orderFees disabled
|
|
14896
|
+
* @property {string|null} [seasonId] orderFees seasonId
|
|
14897
|
+
* @property {string|null} [amount] orderFees amount
|
|
14898
|
+
*/
|
|
14899
|
+
|
|
14900
|
+
/**
|
|
14901
|
+
* Constructs a new orderFees.
|
|
14902
|
+
* @exports orderFees
|
|
14903
|
+
* @classdesc Represents an orderFees.
|
|
14904
|
+
* @implements IorderFees
|
|
14905
|
+
* @constructor
|
|
14906
|
+
* @param {IorderFees=} [properties] Properties to set
|
|
14907
|
+
*/
|
|
14908
|
+
function orderFees(properties) {
|
|
14909
|
+
this.filters = [];
|
|
14910
|
+
if (properties)
|
|
14911
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
14912
|
+
if (properties[keys[i]] != null)
|
|
14913
|
+
this[keys[i]] = properties[keys[i]];
|
|
14914
|
+
}
|
|
14915
|
+
|
|
14916
|
+
/**
|
|
14917
|
+
* orderFees _id.
|
|
14918
|
+
* @member {string} _id
|
|
14919
|
+
* @memberof orderFees
|
|
14920
|
+
* @instance
|
|
14921
|
+
*/
|
|
14922
|
+
orderFees.prototype._id = "";
|
|
14923
|
+
|
|
14924
|
+
/**
|
|
14925
|
+
* orderFees name.
|
|
14926
|
+
* @member {string} name
|
|
14927
|
+
* @memberof orderFees
|
|
14928
|
+
* @instance
|
|
14929
|
+
*/
|
|
14930
|
+
orderFees.prototype.name = "";
|
|
14931
|
+
|
|
14932
|
+
/**
|
|
14933
|
+
* orderFees orgId.
|
|
14934
|
+
* @member {string} orgId
|
|
14935
|
+
* @memberof orderFees
|
|
14936
|
+
* @instance
|
|
14937
|
+
*/
|
|
14938
|
+
orderFees.prototype.orgId = "";
|
|
14939
|
+
|
|
14940
|
+
/**
|
|
14941
|
+
* orderFees eventId.
|
|
14942
|
+
* @member {string} eventId
|
|
14943
|
+
* @memberof orderFees
|
|
14944
|
+
* @instance
|
|
14945
|
+
*/
|
|
14946
|
+
orderFees.prototype.eventId = "";
|
|
14947
|
+
|
|
14948
|
+
/**
|
|
14949
|
+
* orderFees type.
|
|
14950
|
+
* @member {string} type
|
|
14951
|
+
* @memberof orderFees
|
|
14952
|
+
* @instance
|
|
14953
|
+
*/
|
|
14954
|
+
orderFees.prototype.type = "";
|
|
14955
|
+
|
|
14956
|
+
/**
|
|
14957
|
+
* orderFees value.
|
|
14958
|
+
* @member {number} value
|
|
14959
|
+
* @memberof orderFees
|
|
14960
|
+
* @instance
|
|
14961
|
+
*/
|
|
14962
|
+
orderFees.prototype.value = 0;
|
|
14963
|
+
|
|
14964
|
+
/**
|
|
14965
|
+
* orderFees appliedTo.
|
|
14966
|
+
* @member {string} appliedTo
|
|
14967
|
+
* @memberof orderFees
|
|
14968
|
+
* @instance
|
|
14969
|
+
*/
|
|
14970
|
+
orderFees.prototype.appliedTo = "";
|
|
14971
|
+
|
|
14972
|
+
/**
|
|
14973
|
+
* orderFees appliedBy.
|
|
14974
|
+
* @member {string} appliedBy
|
|
14975
|
+
* @memberof orderFees
|
|
14976
|
+
* @instance
|
|
14977
|
+
*/
|
|
14978
|
+
orderFees.prototype.appliedBy = "";
|
|
14979
|
+
|
|
14980
|
+
/**
|
|
14981
|
+
* orderFees minAppliedToPrice.
|
|
14982
|
+
* @member {number} minAppliedToPrice
|
|
14983
|
+
* @memberof orderFees
|
|
14984
|
+
* @instance
|
|
14985
|
+
*/
|
|
14986
|
+
orderFees.prototype.minAppliedToPrice = 0;
|
|
14987
|
+
|
|
14988
|
+
/**
|
|
14989
|
+
* orderFees maxAppliedToPrice.
|
|
14990
|
+
* @member {number} maxAppliedToPrice
|
|
14991
|
+
* @memberof orderFees
|
|
14992
|
+
* @instance
|
|
14993
|
+
*/
|
|
14994
|
+
orderFees.prototype.maxAppliedToPrice = 0;
|
|
14995
|
+
|
|
14996
|
+
/**
|
|
14997
|
+
* orderFees filters.
|
|
14998
|
+
* @member {Array.<string>} filters
|
|
14999
|
+
* @memberof orderFees
|
|
15000
|
+
* @instance
|
|
15001
|
+
*/
|
|
15002
|
+
orderFees.prototype.filters = $util.emptyArray;
|
|
15003
|
+
|
|
15004
|
+
/**
|
|
15005
|
+
* orderFees createdBy.
|
|
15006
|
+
* @member {string} createdBy
|
|
15007
|
+
* @memberof orderFees
|
|
15008
|
+
* @instance
|
|
15009
|
+
*/
|
|
15010
|
+
orderFees.prototype.createdBy = "";
|
|
15011
|
+
|
|
15012
|
+
/**
|
|
15013
|
+
* orderFees createdAt.
|
|
15014
|
+
* @member {number} createdAt
|
|
15015
|
+
* @memberof orderFees
|
|
15016
|
+
* @instance
|
|
15017
|
+
*/
|
|
15018
|
+
orderFees.prototype.createdAt = 0;
|
|
15019
|
+
|
|
15020
|
+
/**
|
|
15021
|
+
* orderFees updatedBy.
|
|
15022
|
+
* @member {string} updatedBy
|
|
15023
|
+
* @memberof orderFees
|
|
15024
|
+
* @instance
|
|
15025
|
+
*/
|
|
15026
|
+
orderFees.prototype.updatedBy = "";
|
|
15027
|
+
|
|
15028
|
+
/**
|
|
15029
|
+
* orderFees updatedAt.
|
|
15030
|
+
* @member {number} updatedAt
|
|
15031
|
+
* @memberof orderFees
|
|
15032
|
+
* @instance
|
|
15033
|
+
*/
|
|
15034
|
+
orderFees.prototype.updatedAt = 0;
|
|
15035
|
+
|
|
15036
|
+
/**
|
|
15037
|
+
* orderFees disabled.
|
|
15038
|
+
* @member {boolean} disabled
|
|
15039
|
+
* @memberof orderFees
|
|
15040
|
+
* @instance
|
|
15041
|
+
*/
|
|
15042
|
+
orderFees.prototype.disabled = false;
|
|
15043
|
+
|
|
15044
|
+
/**
|
|
15045
|
+
* orderFees seasonId.
|
|
15046
|
+
* @member {string} seasonId
|
|
15047
|
+
* @memberof orderFees
|
|
15048
|
+
* @instance
|
|
15049
|
+
*/
|
|
15050
|
+
orderFees.prototype.seasonId = "";
|
|
15051
|
+
|
|
15052
|
+
/**
|
|
15053
|
+
* orderFees amount.
|
|
15054
|
+
* @member {string} amount
|
|
15055
|
+
* @memberof orderFees
|
|
15056
|
+
* @instance
|
|
15057
|
+
*/
|
|
15058
|
+
orderFees.prototype.amount = "";
|
|
15059
|
+
|
|
15060
|
+
/**
|
|
15061
|
+
* Creates a new orderFees instance using the specified properties.
|
|
15062
|
+
* @function create
|
|
15063
|
+
* @memberof orderFees
|
|
15064
|
+
* @static
|
|
15065
|
+
* @param {IorderFees=} [properties] Properties to set
|
|
15066
|
+
* @returns {orderFees} orderFees instance
|
|
15067
|
+
*/
|
|
15068
|
+
orderFees.create = function create(properties) {
|
|
15069
|
+
return new orderFees(properties);
|
|
15070
|
+
};
|
|
15071
|
+
|
|
15072
|
+
/**
|
|
15073
|
+
* Encodes the specified orderFees message. Does not implicitly {@link orderFees.verify|verify} messages.
|
|
15074
|
+
* @function encode
|
|
15075
|
+
* @memberof orderFees
|
|
15076
|
+
* @static
|
|
15077
|
+
* @param {IorderFees} message orderFees message or plain object to encode
|
|
15078
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15079
|
+
* @returns {$protobuf.Writer} Writer
|
|
15080
|
+
*/
|
|
15081
|
+
orderFees.encode = function encode(message, writer) {
|
|
15082
|
+
if (!writer)
|
|
15083
|
+
writer = $Writer.create();
|
|
15084
|
+
if (message._id != null && Object.hasOwnProperty.call(message, "_id"))
|
|
15085
|
+
writer.uint32(/* id 0, wireType 2 =*/2).string(message._id);
|
|
15086
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
15087
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
15088
|
+
if (message.orgId != null && Object.hasOwnProperty.call(message, "orgId"))
|
|
15089
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.orgId);
|
|
15090
|
+
if (message.eventId != null && Object.hasOwnProperty.call(message, "eventId"))
|
|
15091
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.eventId);
|
|
15092
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
15093
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.type);
|
|
15094
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
15095
|
+
writer.uint32(/* id 5, wireType 1 =*/41).double(message.value);
|
|
15096
|
+
if (message.appliedTo != null && Object.hasOwnProperty.call(message, "appliedTo"))
|
|
15097
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.appliedTo);
|
|
15098
|
+
if (message.appliedBy != null && Object.hasOwnProperty.call(message, "appliedBy"))
|
|
15099
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.appliedBy);
|
|
15100
|
+
if (message.minAppliedToPrice != null && Object.hasOwnProperty.call(message, "minAppliedToPrice"))
|
|
15101
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.minAppliedToPrice);
|
|
15102
|
+
if (message.maxAppliedToPrice != null && Object.hasOwnProperty.call(message, "maxAppliedToPrice"))
|
|
15103
|
+
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.maxAppliedToPrice);
|
|
15104
|
+
if (message.filters != null && message.filters.length)
|
|
15105
|
+
for (var i = 0; i < message.filters.length; ++i)
|
|
15106
|
+
writer.uint32(/* id 10, wireType 2 =*/82).string(message.filters[i]);
|
|
15107
|
+
if (message.createdBy != null && Object.hasOwnProperty.call(message, "createdBy"))
|
|
15108
|
+
writer.uint32(/* id 11, wireType 2 =*/90).string(message.createdBy);
|
|
15109
|
+
if (message.createdAt != null && Object.hasOwnProperty.call(message, "createdAt"))
|
|
15110
|
+
writer.uint32(/* id 12, wireType 0 =*/96).int32(message.createdAt);
|
|
15111
|
+
if (message.updatedBy != null && Object.hasOwnProperty.call(message, "updatedBy"))
|
|
15112
|
+
writer.uint32(/* id 13, wireType 2 =*/106).string(message.updatedBy);
|
|
15113
|
+
if (message.updatedAt != null && Object.hasOwnProperty.call(message, "updatedAt"))
|
|
15114
|
+
writer.uint32(/* id 14, wireType 0 =*/112).int32(message.updatedAt);
|
|
15115
|
+
if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled"))
|
|
15116
|
+
writer.uint32(/* id 15, wireType 0 =*/120).bool(message.disabled);
|
|
15117
|
+
if (message.seasonId != null && Object.hasOwnProperty.call(message, "seasonId"))
|
|
15118
|
+
writer.uint32(/* id 16, wireType 2 =*/130).string(message.seasonId);
|
|
15119
|
+
if (message.amount != null && Object.hasOwnProperty.call(message, "amount"))
|
|
15120
|
+
writer.uint32(/* id 17, wireType 2 =*/138).string(message.amount);
|
|
15121
|
+
return writer;
|
|
15122
|
+
};
|
|
15123
|
+
|
|
15124
|
+
/**
|
|
15125
|
+
* Encodes the specified orderFees message, length delimited. Does not implicitly {@link orderFees.verify|verify} messages.
|
|
15126
|
+
* @function encodeDelimited
|
|
15127
|
+
* @memberof orderFees
|
|
15128
|
+
* @static
|
|
15129
|
+
* @param {IorderFees} message orderFees message or plain object to encode
|
|
15130
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15131
|
+
* @returns {$protobuf.Writer} Writer
|
|
15132
|
+
*/
|
|
15133
|
+
orderFees.encodeDelimited = function encodeDelimited(message, writer) {
|
|
15134
|
+
return this.encode(message, writer).ldelim();
|
|
15135
|
+
};
|
|
15136
|
+
|
|
15137
|
+
/**
|
|
15138
|
+
* Decodes an orderFees message from the specified reader or buffer.
|
|
15139
|
+
* @function decode
|
|
15140
|
+
* @memberof orderFees
|
|
15141
|
+
* @static
|
|
15142
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15143
|
+
* @param {number} [length] Message length if known beforehand
|
|
15144
|
+
* @returns {orderFees} orderFees
|
|
15145
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15146
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15147
|
+
*/
|
|
15148
|
+
orderFees.decode = function decode(reader, length) {
|
|
15149
|
+
if (!(reader instanceof $Reader))
|
|
15150
|
+
reader = $Reader.create(reader);
|
|
15151
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.orderFees();
|
|
15152
|
+
while (reader.pos < end) {
|
|
15153
|
+
var tag = reader.uint32();
|
|
15154
|
+
switch (tag >>> 3) {
|
|
15155
|
+
case 0:
|
|
15156
|
+
message._id = reader.string();
|
|
15157
|
+
break;
|
|
15158
|
+
case 1:
|
|
15159
|
+
message.name = reader.string();
|
|
15160
|
+
break;
|
|
15161
|
+
case 2:
|
|
15162
|
+
message.orgId = reader.string();
|
|
15163
|
+
break;
|
|
15164
|
+
case 3:
|
|
15165
|
+
message.eventId = reader.string();
|
|
15166
|
+
break;
|
|
15167
|
+
case 4:
|
|
15168
|
+
message.type = reader.string();
|
|
15169
|
+
break;
|
|
15170
|
+
case 5:
|
|
15171
|
+
message.value = reader.double();
|
|
15172
|
+
break;
|
|
15173
|
+
case 6:
|
|
15174
|
+
message.appliedTo = reader.string();
|
|
15175
|
+
break;
|
|
15176
|
+
case 7:
|
|
15177
|
+
message.appliedBy = reader.string();
|
|
15178
|
+
break;
|
|
15179
|
+
case 8:
|
|
15180
|
+
message.minAppliedToPrice = reader.int32();
|
|
15181
|
+
break;
|
|
15182
|
+
case 9:
|
|
15183
|
+
message.maxAppliedToPrice = reader.int32();
|
|
15184
|
+
break;
|
|
15185
|
+
case 10:
|
|
15186
|
+
if (!(message.filters && message.filters.length))
|
|
15187
|
+
message.filters = [];
|
|
15188
|
+
message.filters.push(reader.string());
|
|
15189
|
+
break;
|
|
15190
|
+
case 11:
|
|
15191
|
+
message.createdBy = reader.string();
|
|
15192
|
+
break;
|
|
15193
|
+
case 12:
|
|
15194
|
+
message.createdAt = reader.int32();
|
|
15195
|
+
break;
|
|
15196
|
+
case 13:
|
|
15197
|
+
message.updatedBy = reader.string();
|
|
15198
|
+
break;
|
|
15199
|
+
case 14:
|
|
15200
|
+
message.updatedAt = reader.int32();
|
|
15201
|
+
break;
|
|
15202
|
+
case 15:
|
|
15203
|
+
message.disabled = reader.bool();
|
|
15204
|
+
break;
|
|
15205
|
+
case 16:
|
|
15206
|
+
message.seasonId = reader.string();
|
|
15207
|
+
break;
|
|
15208
|
+
case 17:
|
|
15209
|
+
message.amount = reader.string();
|
|
15210
|
+
break;
|
|
15211
|
+
default:
|
|
15212
|
+
reader.skipType(tag & 7);
|
|
15213
|
+
break;
|
|
15214
|
+
}
|
|
15215
|
+
}
|
|
15216
|
+
return message;
|
|
15217
|
+
};
|
|
15218
|
+
|
|
15219
|
+
/**
|
|
15220
|
+
* Decodes an orderFees message from the specified reader or buffer, length delimited.
|
|
15221
|
+
* @function decodeDelimited
|
|
15222
|
+
* @memberof orderFees
|
|
15223
|
+
* @static
|
|
15224
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15225
|
+
* @returns {orderFees} orderFees
|
|
15226
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15227
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15228
|
+
*/
|
|
15229
|
+
orderFees.decodeDelimited = function decodeDelimited(reader) {
|
|
15230
|
+
if (!(reader instanceof $Reader))
|
|
15231
|
+
reader = new $Reader(reader);
|
|
15232
|
+
return this.decode(reader, reader.uint32());
|
|
15233
|
+
};
|
|
15234
|
+
|
|
15235
|
+
/**
|
|
15236
|
+
* Verifies an orderFees message.
|
|
15237
|
+
* @function verify
|
|
15238
|
+
* @memberof orderFees
|
|
15239
|
+
* @static
|
|
15240
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
15241
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
15242
|
+
*/
|
|
15243
|
+
orderFees.verify = function verify(message) {
|
|
15244
|
+
if (typeof message !== "object" || message === null)
|
|
15245
|
+
return "object expected";
|
|
15246
|
+
if (message._id != null && message.hasOwnProperty("_id"))
|
|
15247
|
+
if (!$util.isString(message._id))
|
|
15248
|
+
return "_id: string expected";
|
|
15249
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
15250
|
+
if (!$util.isString(message.name))
|
|
15251
|
+
return "name: string expected";
|
|
15252
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
15253
|
+
if (!$util.isString(message.orgId))
|
|
15254
|
+
return "orgId: string expected";
|
|
15255
|
+
if (message.eventId != null && message.hasOwnProperty("eventId"))
|
|
15256
|
+
if (!$util.isString(message.eventId))
|
|
15257
|
+
return "eventId: string expected";
|
|
15258
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
15259
|
+
if (!$util.isString(message.type))
|
|
15260
|
+
return "type: string expected";
|
|
15261
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
15262
|
+
if (typeof message.value !== "number")
|
|
15263
|
+
return "value: number expected";
|
|
15264
|
+
if (message.appliedTo != null && message.hasOwnProperty("appliedTo"))
|
|
15265
|
+
if (!$util.isString(message.appliedTo))
|
|
15266
|
+
return "appliedTo: string expected";
|
|
15267
|
+
if (message.appliedBy != null && message.hasOwnProperty("appliedBy"))
|
|
15268
|
+
if (!$util.isString(message.appliedBy))
|
|
15269
|
+
return "appliedBy: string expected";
|
|
15270
|
+
if (message.minAppliedToPrice != null && message.hasOwnProperty("minAppliedToPrice"))
|
|
15271
|
+
if (!$util.isInteger(message.minAppliedToPrice))
|
|
15272
|
+
return "minAppliedToPrice: integer expected";
|
|
15273
|
+
if (message.maxAppliedToPrice != null && message.hasOwnProperty("maxAppliedToPrice"))
|
|
15274
|
+
if (!$util.isInteger(message.maxAppliedToPrice))
|
|
15275
|
+
return "maxAppliedToPrice: integer expected";
|
|
15276
|
+
if (message.filters != null && message.hasOwnProperty("filters")) {
|
|
15277
|
+
if (!Array.isArray(message.filters))
|
|
15278
|
+
return "filters: array expected";
|
|
15279
|
+
for (var i = 0; i < message.filters.length; ++i)
|
|
15280
|
+
if (!$util.isString(message.filters[i]))
|
|
15281
|
+
return "filters: string[] expected";
|
|
15282
|
+
}
|
|
15283
|
+
if (message.createdBy != null && message.hasOwnProperty("createdBy"))
|
|
15284
|
+
if (!$util.isString(message.createdBy))
|
|
15285
|
+
return "createdBy: string expected";
|
|
15286
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
15287
|
+
if (!$util.isInteger(message.createdAt))
|
|
15288
|
+
return "createdAt: integer expected";
|
|
15289
|
+
if (message.updatedBy != null && message.hasOwnProperty("updatedBy"))
|
|
15290
|
+
if (!$util.isString(message.updatedBy))
|
|
15291
|
+
return "updatedBy: string expected";
|
|
15292
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
15293
|
+
if (!$util.isInteger(message.updatedAt))
|
|
15294
|
+
return "updatedAt: integer expected";
|
|
15295
|
+
if (message.disabled != null && message.hasOwnProperty("disabled"))
|
|
15296
|
+
if (typeof message.disabled !== "boolean")
|
|
15297
|
+
return "disabled: boolean expected";
|
|
15298
|
+
if (message.seasonId != null && message.hasOwnProperty("seasonId"))
|
|
15299
|
+
if (!$util.isString(message.seasonId))
|
|
15300
|
+
return "seasonId: string expected";
|
|
15301
|
+
if (message.amount != null && message.hasOwnProperty("amount"))
|
|
15302
|
+
if (!$util.isString(message.amount))
|
|
15303
|
+
return "amount: string expected";
|
|
15304
|
+
return null;
|
|
15305
|
+
};
|
|
15306
|
+
|
|
15307
|
+
/**
|
|
15308
|
+
* Creates an orderFees message from a plain object. Also converts values to their respective internal types.
|
|
15309
|
+
* @function fromObject
|
|
15310
|
+
* @memberof orderFees
|
|
15311
|
+
* @static
|
|
15312
|
+
* @param {Object.<string,*>} object Plain object
|
|
15313
|
+
* @returns {orderFees} orderFees
|
|
15314
|
+
*/
|
|
15315
|
+
orderFees.fromObject = function fromObject(object) {
|
|
15316
|
+
if (object instanceof $root.orderFees)
|
|
15317
|
+
return object;
|
|
15318
|
+
var message = new $root.orderFees();
|
|
15319
|
+
if (object._id != null)
|
|
15320
|
+
message._id = String(object._id);
|
|
15321
|
+
if (object.name != null)
|
|
15322
|
+
message.name = String(object.name);
|
|
15323
|
+
if (object.orgId != null)
|
|
15324
|
+
message.orgId = String(object.orgId);
|
|
15325
|
+
if (object.eventId != null)
|
|
15326
|
+
message.eventId = String(object.eventId);
|
|
15327
|
+
if (object.type != null)
|
|
15328
|
+
message.type = String(object.type);
|
|
15329
|
+
if (object.value != null)
|
|
15330
|
+
message.value = Number(object.value);
|
|
15331
|
+
if (object.appliedTo != null)
|
|
15332
|
+
message.appliedTo = String(object.appliedTo);
|
|
15333
|
+
if (object.appliedBy != null)
|
|
15334
|
+
message.appliedBy = String(object.appliedBy);
|
|
15335
|
+
if (object.minAppliedToPrice != null)
|
|
15336
|
+
message.minAppliedToPrice = object.minAppliedToPrice | 0;
|
|
15337
|
+
if (object.maxAppliedToPrice != null)
|
|
15338
|
+
message.maxAppliedToPrice = object.maxAppliedToPrice | 0;
|
|
15339
|
+
if (object.filters) {
|
|
15340
|
+
if (!Array.isArray(object.filters))
|
|
15341
|
+
throw TypeError(".orderFees.filters: array expected");
|
|
15342
|
+
message.filters = [];
|
|
15343
|
+
for (var i = 0; i < object.filters.length; ++i)
|
|
15344
|
+
message.filters[i] = String(object.filters[i]);
|
|
15345
|
+
}
|
|
15346
|
+
if (object.createdBy != null)
|
|
15347
|
+
message.createdBy = String(object.createdBy);
|
|
15348
|
+
if (object.createdAt != null)
|
|
15349
|
+
message.createdAt = object.createdAt | 0;
|
|
15350
|
+
if (object.updatedBy != null)
|
|
15351
|
+
message.updatedBy = String(object.updatedBy);
|
|
15352
|
+
if (object.updatedAt != null)
|
|
15353
|
+
message.updatedAt = object.updatedAt | 0;
|
|
15354
|
+
if (object.disabled != null)
|
|
15355
|
+
message.disabled = Boolean(object.disabled);
|
|
15356
|
+
if (object.seasonId != null)
|
|
15357
|
+
message.seasonId = String(object.seasonId);
|
|
15358
|
+
if (object.amount != null)
|
|
15359
|
+
message.amount = String(object.amount);
|
|
15360
|
+
return message;
|
|
15361
|
+
};
|
|
15362
|
+
|
|
15363
|
+
/**
|
|
15364
|
+
* Creates a plain object from an orderFees message. Also converts values to other types if specified.
|
|
15365
|
+
* @function toObject
|
|
15366
|
+
* @memberof orderFees
|
|
15367
|
+
* @static
|
|
15368
|
+
* @param {orderFees} message orderFees
|
|
15369
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
15370
|
+
* @returns {Object.<string,*>} Plain object
|
|
15371
|
+
*/
|
|
15372
|
+
orderFees.toObject = function toObject(message, options) {
|
|
15373
|
+
if (!options)
|
|
15374
|
+
options = {};
|
|
15375
|
+
var object = {};
|
|
15376
|
+
if (options.arrays || options.defaults)
|
|
15377
|
+
object.filters = [];
|
|
15378
|
+
if (options.defaults) {
|
|
15379
|
+
object._id = "";
|
|
15380
|
+
object.name = "";
|
|
15381
|
+
object.orgId = "";
|
|
15382
|
+
object.eventId = "";
|
|
15383
|
+
object.type = "";
|
|
15384
|
+
object.value = 0;
|
|
15385
|
+
object.appliedTo = "";
|
|
15386
|
+
object.appliedBy = "";
|
|
15387
|
+
object.minAppliedToPrice = 0;
|
|
15388
|
+
object.maxAppliedToPrice = 0;
|
|
15389
|
+
object.createdBy = "";
|
|
15390
|
+
object.createdAt = 0;
|
|
15391
|
+
object.updatedBy = "";
|
|
15392
|
+
object.updatedAt = 0;
|
|
15393
|
+
object.disabled = false;
|
|
15394
|
+
object.seasonId = "";
|
|
15395
|
+
object.amount = "";
|
|
15396
|
+
}
|
|
15397
|
+
if (message._id != null && message.hasOwnProperty("_id"))
|
|
15398
|
+
object._id = message._id;
|
|
15399
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
15400
|
+
object.name = message.name;
|
|
15401
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
15402
|
+
object.orgId = message.orgId;
|
|
15403
|
+
if (message.eventId != null && message.hasOwnProperty("eventId"))
|
|
15404
|
+
object.eventId = message.eventId;
|
|
15405
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
15406
|
+
object.type = message.type;
|
|
15407
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
15408
|
+
object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value;
|
|
15409
|
+
if (message.appliedTo != null && message.hasOwnProperty("appliedTo"))
|
|
15410
|
+
object.appliedTo = message.appliedTo;
|
|
15411
|
+
if (message.appliedBy != null && message.hasOwnProperty("appliedBy"))
|
|
15412
|
+
object.appliedBy = message.appliedBy;
|
|
15413
|
+
if (message.minAppliedToPrice != null && message.hasOwnProperty("minAppliedToPrice"))
|
|
15414
|
+
object.minAppliedToPrice = message.minAppliedToPrice;
|
|
15415
|
+
if (message.maxAppliedToPrice != null && message.hasOwnProperty("maxAppliedToPrice"))
|
|
15416
|
+
object.maxAppliedToPrice = message.maxAppliedToPrice;
|
|
15417
|
+
if (message.filters && message.filters.length) {
|
|
15418
|
+
object.filters = [];
|
|
15419
|
+
for (var j = 0; j < message.filters.length; ++j)
|
|
15420
|
+
object.filters[j] = message.filters[j];
|
|
15421
|
+
}
|
|
15422
|
+
if (message.createdBy != null && message.hasOwnProperty("createdBy"))
|
|
15423
|
+
object.createdBy = message.createdBy;
|
|
15424
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
15425
|
+
object.createdAt = message.createdAt;
|
|
15426
|
+
if (message.updatedBy != null && message.hasOwnProperty("updatedBy"))
|
|
15427
|
+
object.updatedBy = message.updatedBy;
|
|
15428
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
15429
|
+
object.updatedAt = message.updatedAt;
|
|
15430
|
+
if (message.disabled != null && message.hasOwnProperty("disabled"))
|
|
15431
|
+
object.disabled = message.disabled;
|
|
15432
|
+
if (message.seasonId != null && message.hasOwnProperty("seasonId"))
|
|
15433
|
+
object.seasonId = message.seasonId;
|
|
15434
|
+
if (message.amount != null && message.hasOwnProperty("amount"))
|
|
15435
|
+
object.amount = message.amount;
|
|
15436
|
+
return object;
|
|
15437
|
+
};
|
|
15438
|
+
|
|
15439
|
+
/**
|
|
15440
|
+
* Converts this orderFees to JSON.
|
|
15441
|
+
* @function toJSON
|
|
15442
|
+
* @memberof orderFees
|
|
15443
|
+
* @instance
|
|
15444
|
+
* @returns {Object.<string,*>} JSON object
|
|
15445
|
+
*/
|
|
15446
|
+
orderFees.prototype.toJSON = function toJSON() {
|
|
15447
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
15448
|
+
};
|
|
15449
|
+
|
|
15450
|
+
return orderFees;
|
|
15451
|
+
})();
|
|
15452
|
+
|
|
14831
15453
|
$root.TeiMemberInfoParams = (function() {
|
|
14832
15454
|
|
|
14833
15455
|
/**
|
|
@@ -28877,6 +29499,303 @@ $root.FindOrderByEventIdResponse = (function() {
|
|
|
28877
29499
|
return FindOrderByEventIdResponse;
|
|
28878
29500
|
})();
|
|
28879
29501
|
|
|
29502
|
+
$root.FindEventOrderCountResponse = (function() {
|
|
29503
|
+
|
|
29504
|
+
/**
|
|
29505
|
+
* Properties of a FindEventOrderCountResponse.
|
|
29506
|
+
* @exports IFindEventOrderCountResponse
|
|
29507
|
+
* @interface IFindEventOrderCountResponse
|
|
29508
|
+
* @property {StatusCode|null} [status] FindEventOrderCountResponse status
|
|
29509
|
+
* @property {Array.<IError>|null} [errors] FindEventOrderCountResponse errors
|
|
29510
|
+
* @property {number|null} [eventOrderCount] FindEventOrderCountResponse eventOrderCount
|
|
29511
|
+
*/
|
|
29512
|
+
|
|
29513
|
+
/**
|
|
29514
|
+
* Constructs a new FindEventOrderCountResponse.
|
|
29515
|
+
* @exports FindEventOrderCountResponse
|
|
29516
|
+
* @classdesc Represents a FindEventOrderCountResponse.
|
|
29517
|
+
* @implements IFindEventOrderCountResponse
|
|
29518
|
+
* @constructor
|
|
29519
|
+
* @param {IFindEventOrderCountResponse=} [properties] Properties to set
|
|
29520
|
+
*/
|
|
29521
|
+
function FindEventOrderCountResponse(properties) {
|
|
29522
|
+
this.errors = [];
|
|
29523
|
+
if (properties)
|
|
29524
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
29525
|
+
if (properties[keys[i]] != null)
|
|
29526
|
+
this[keys[i]] = properties[keys[i]];
|
|
29527
|
+
}
|
|
29528
|
+
|
|
29529
|
+
/**
|
|
29530
|
+
* FindEventOrderCountResponse status.
|
|
29531
|
+
* @member {StatusCode} status
|
|
29532
|
+
* @memberof FindEventOrderCountResponse
|
|
29533
|
+
* @instance
|
|
29534
|
+
*/
|
|
29535
|
+
FindEventOrderCountResponse.prototype.status = 0;
|
|
29536
|
+
|
|
29537
|
+
/**
|
|
29538
|
+
* FindEventOrderCountResponse errors.
|
|
29539
|
+
* @member {Array.<IError>} errors
|
|
29540
|
+
* @memberof FindEventOrderCountResponse
|
|
29541
|
+
* @instance
|
|
29542
|
+
*/
|
|
29543
|
+
FindEventOrderCountResponse.prototype.errors = $util.emptyArray;
|
|
29544
|
+
|
|
29545
|
+
/**
|
|
29546
|
+
* FindEventOrderCountResponse eventOrderCount.
|
|
29547
|
+
* @member {number} eventOrderCount
|
|
29548
|
+
* @memberof FindEventOrderCountResponse
|
|
29549
|
+
* @instance
|
|
29550
|
+
*/
|
|
29551
|
+
FindEventOrderCountResponse.prototype.eventOrderCount = 0;
|
|
29552
|
+
|
|
29553
|
+
/**
|
|
29554
|
+
* Creates a new FindEventOrderCountResponse instance using the specified properties.
|
|
29555
|
+
* @function create
|
|
29556
|
+
* @memberof FindEventOrderCountResponse
|
|
29557
|
+
* @static
|
|
29558
|
+
* @param {IFindEventOrderCountResponse=} [properties] Properties to set
|
|
29559
|
+
* @returns {FindEventOrderCountResponse} FindEventOrderCountResponse instance
|
|
29560
|
+
*/
|
|
29561
|
+
FindEventOrderCountResponse.create = function create(properties) {
|
|
29562
|
+
return new FindEventOrderCountResponse(properties);
|
|
29563
|
+
};
|
|
29564
|
+
|
|
29565
|
+
/**
|
|
29566
|
+
* Encodes the specified FindEventOrderCountResponse message. Does not implicitly {@link FindEventOrderCountResponse.verify|verify} messages.
|
|
29567
|
+
* @function encode
|
|
29568
|
+
* @memberof FindEventOrderCountResponse
|
|
29569
|
+
* @static
|
|
29570
|
+
* @param {IFindEventOrderCountResponse} message FindEventOrderCountResponse message or plain object to encode
|
|
29571
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
29572
|
+
* @returns {$protobuf.Writer} Writer
|
|
29573
|
+
*/
|
|
29574
|
+
FindEventOrderCountResponse.encode = function encode(message, writer) {
|
|
29575
|
+
if (!writer)
|
|
29576
|
+
writer = $Writer.create();
|
|
29577
|
+
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
29578
|
+
writer.uint32(/* id 0, wireType 0 =*/0).int32(message.status);
|
|
29579
|
+
if (message.errors != null && message.errors.length)
|
|
29580
|
+
for (var i = 0; i < message.errors.length; ++i)
|
|
29581
|
+
$root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
29582
|
+
if (message.eventOrderCount != null && Object.hasOwnProperty.call(message, "eventOrderCount"))
|
|
29583
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.eventOrderCount);
|
|
29584
|
+
return writer;
|
|
29585
|
+
};
|
|
29586
|
+
|
|
29587
|
+
/**
|
|
29588
|
+
* Encodes the specified FindEventOrderCountResponse message, length delimited. Does not implicitly {@link FindEventOrderCountResponse.verify|verify} messages.
|
|
29589
|
+
* @function encodeDelimited
|
|
29590
|
+
* @memberof FindEventOrderCountResponse
|
|
29591
|
+
* @static
|
|
29592
|
+
* @param {IFindEventOrderCountResponse} message FindEventOrderCountResponse message or plain object to encode
|
|
29593
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
29594
|
+
* @returns {$protobuf.Writer} Writer
|
|
29595
|
+
*/
|
|
29596
|
+
FindEventOrderCountResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
29597
|
+
return this.encode(message, writer).ldelim();
|
|
29598
|
+
};
|
|
29599
|
+
|
|
29600
|
+
/**
|
|
29601
|
+
* Decodes a FindEventOrderCountResponse message from the specified reader or buffer.
|
|
29602
|
+
* @function decode
|
|
29603
|
+
* @memberof FindEventOrderCountResponse
|
|
29604
|
+
* @static
|
|
29605
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
29606
|
+
* @param {number} [length] Message length if known beforehand
|
|
29607
|
+
* @returns {FindEventOrderCountResponse} FindEventOrderCountResponse
|
|
29608
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
29609
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
29610
|
+
*/
|
|
29611
|
+
FindEventOrderCountResponse.decode = function decode(reader, length) {
|
|
29612
|
+
if (!(reader instanceof $Reader))
|
|
29613
|
+
reader = $Reader.create(reader);
|
|
29614
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.FindEventOrderCountResponse();
|
|
29615
|
+
while (reader.pos < end) {
|
|
29616
|
+
var tag = reader.uint32();
|
|
29617
|
+
switch (tag >>> 3) {
|
|
29618
|
+
case 0:
|
|
29619
|
+
message.status = reader.int32();
|
|
29620
|
+
break;
|
|
29621
|
+
case 1:
|
|
29622
|
+
if (!(message.errors && message.errors.length))
|
|
29623
|
+
message.errors = [];
|
|
29624
|
+
message.errors.push($root.Error.decode(reader, reader.uint32()));
|
|
29625
|
+
break;
|
|
29626
|
+
case 2:
|
|
29627
|
+
message.eventOrderCount = reader.int32();
|
|
29628
|
+
break;
|
|
29629
|
+
default:
|
|
29630
|
+
reader.skipType(tag & 7);
|
|
29631
|
+
break;
|
|
29632
|
+
}
|
|
29633
|
+
}
|
|
29634
|
+
return message;
|
|
29635
|
+
};
|
|
29636
|
+
|
|
29637
|
+
/**
|
|
29638
|
+
* Decodes a FindEventOrderCountResponse message from the specified reader or buffer, length delimited.
|
|
29639
|
+
* @function decodeDelimited
|
|
29640
|
+
* @memberof FindEventOrderCountResponse
|
|
29641
|
+
* @static
|
|
29642
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
29643
|
+
* @returns {FindEventOrderCountResponse} FindEventOrderCountResponse
|
|
29644
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
29645
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
29646
|
+
*/
|
|
29647
|
+
FindEventOrderCountResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
29648
|
+
if (!(reader instanceof $Reader))
|
|
29649
|
+
reader = new $Reader(reader);
|
|
29650
|
+
return this.decode(reader, reader.uint32());
|
|
29651
|
+
};
|
|
29652
|
+
|
|
29653
|
+
/**
|
|
29654
|
+
* Verifies a FindEventOrderCountResponse message.
|
|
29655
|
+
* @function verify
|
|
29656
|
+
* @memberof FindEventOrderCountResponse
|
|
29657
|
+
* @static
|
|
29658
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
29659
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
29660
|
+
*/
|
|
29661
|
+
FindEventOrderCountResponse.verify = function verify(message) {
|
|
29662
|
+
if (typeof message !== "object" || message === null)
|
|
29663
|
+
return "object expected";
|
|
29664
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
29665
|
+
switch (message.status) {
|
|
29666
|
+
default:
|
|
29667
|
+
return "status: enum value expected";
|
|
29668
|
+
case 0:
|
|
29669
|
+
case 200:
|
|
29670
|
+
case 400:
|
|
29671
|
+
case 401:
|
|
29672
|
+
case 403:
|
|
29673
|
+
case 422:
|
|
29674
|
+
case 500:
|
|
29675
|
+
case 504:
|
|
29676
|
+
break;
|
|
29677
|
+
}
|
|
29678
|
+
if (message.errors != null && message.hasOwnProperty("errors")) {
|
|
29679
|
+
if (!Array.isArray(message.errors))
|
|
29680
|
+
return "errors: array expected";
|
|
29681
|
+
for (var i = 0; i < message.errors.length; ++i) {
|
|
29682
|
+
var error = $root.Error.verify(message.errors[i]);
|
|
29683
|
+
if (error)
|
|
29684
|
+
return "errors." + error;
|
|
29685
|
+
}
|
|
29686
|
+
}
|
|
29687
|
+
if (message.eventOrderCount != null && message.hasOwnProperty("eventOrderCount"))
|
|
29688
|
+
if (!$util.isInteger(message.eventOrderCount))
|
|
29689
|
+
return "eventOrderCount: integer expected";
|
|
29690
|
+
return null;
|
|
29691
|
+
};
|
|
29692
|
+
|
|
29693
|
+
/**
|
|
29694
|
+
* Creates a FindEventOrderCountResponse message from a plain object. Also converts values to their respective internal types.
|
|
29695
|
+
* @function fromObject
|
|
29696
|
+
* @memberof FindEventOrderCountResponse
|
|
29697
|
+
* @static
|
|
29698
|
+
* @param {Object.<string,*>} object Plain object
|
|
29699
|
+
* @returns {FindEventOrderCountResponse} FindEventOrderCountResponse
|
|
29700
|
+
*/
|
|
29701
|
+
FindEventOrderCountResponse.fromObject = function fromObject(object) {
|
|
29702
|
+
if (object instanceof $root.FindEventOrderCountResponse)
|
|
29703
|
+
return object;
|
|
29704
|
+
var message = new $root.FindEventOrderCountResponse();
|
|
29705
|
+
switch (object.status) {
|
|
29706
|
+
case "UNKNOWN_CODE":
|
|
29707
|
+
case 0:
|
|
29708
|
+
message.status = 0;
|
|
29709
|
+
break;
|
|
29710
|
+
case "OK":
|
|
29711
|
+
case 200:
|
|
29712
|
+
message.status = 200;
|
|
29713
|
+
break;
|
|
29714
|
+
case "BAD_REQUEST":
|
|
29715
|
+
case 400:
|
|
29716
|
+
message.status = 400;
|
|
29717
|
+
break;
|
|
29718
|
+
case "UNAUTHORIZED":
|
|
29719
|
+
case 401:
|
|
29720
|
+
message.status = 401;
|
|
29721
|
+
break;
|
|
29722
|
+
case "FORBIDDEN":
|
|
29723
|
+
case 403:
|
|
29724
|
+
message.status = 403;
|
|
29725
|
+
break;
|
|
29726
|
+
case "UNPROCESSABLE_ENTITY":
|
|
29727
|
+
case 422:
|
|
29728
|
+
message.status = 422;
|
|
29729
|
+
break;
|
|
29730
|
+
case "INTERNAL_SERVER_ERROR":
|
|
29731
|
+
case 500:
|
|
29732
|
+
message.status = 500;
|
|
29733
|
+
break;
|
|
29734
|
+
case "GATEWAY_TIMEOUT":
|
|
29735
|
+
case 504:
|
|
29736
|
+
message.status = 504;
|
|
29737
|
+
break;
|
|
29738
|
+
}
|
|
29739
|
+
if (object.errors) {
|
|
29740
|
+
if (!Array.isArray(object.errors))
|
|
29741
|
+
throw TypeError(".FindEventOrderCountResponse.errors: array expected");
|
|
29742
|
+
message.errors = [];
|
|
29743
|
+
for (var i = 0; i < object.errors.length; ++i) {
|
|
29744
|
+
if (typeof object.errors[i] !== "object")
|
|
29745
|
+
throw TypeError(".FindEventOrderCountResponse.errors: object expected");
|
|
29746
|
+
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
29747
|
+
}
|
|
29748
|
+
}
|
|
29749
|
+
if (object.eventOrderCount != null)
|
|
29750
|
+
message.eventOrderCount = object.eventOrderCount | 0;
|
|
29751
|
+
return message;
|
|
29752
|
+
};
|
|
29753
|
+
|
|
29754
|
+
/**
|
|
29755
|
+
* Creates a plain object from a FindEventOrderCountResponse message. Also converts values to other types if specified.
|
|
29756
|
+
* @function toObject
|
|
29757
|
+
* @memberof FindEventOrderCountResponse
|
|
29758
|
+
* @static
|
|
29759
|
+
* @param {FindEventOrderCountResponse} message FindEventOrderCountResponse
|
|
29760
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
29761
|
+
* @returns {Object.<string,*>} Plain object
|
|
29762
|
+
*/
|
|
29763
|
+
FindEventOrderCountResponse.toObject = function toObject(message, options) {
|
|
29764
|
+
if (!options)
|
|
29765
|
+
options = {};
|
|
29766
|
+
var object = {};
|
|
29767
|
+
if (options.arrays || options.defaults)
|
|
29768
|
+
object.errors = [];
|
|
29769
|
+
if (options.defaults) {
|
|
29770
|
+
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
29771
|
+
object.eventOrderCount = 0;
|
|
29772
|
+
}
|
|
29773
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
29774
|
+
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
29775
|
+
if (message.errors && message.errors.length) {
|
|
29776
|
+
object.errors = [];
|
|
29777
|
+
for (var j = 0; j < message.errors.length; ++j)
|
|
29778
|
+
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
29779
|
+
}
|
|
29780
|
+
if (message.eventOrderCount != null && message.hasOwnProperty("eventOrderCount"))
|
|
29781
|
+
object.eventOrderCount = message.eventOrderCount;
|
|
29782
|
+
return object;
|
|
29783
|
+
};
|
|
29784
|
+
|
|
29785
|
+
/**
|
|
29786
|
+
* Converts this FindEventOrderCountResponse to JSON.
|
|
29787
|
+
* @function toJSON
|
|
29788
|
+
* @memberof FindEventOrderCountResponse
|
|
29789
|
+
* @instance
|
|
29790
|
+
* @returns {Object.<string,*>} JSON object
|
|
29791
|
+
*/
|
|
29792
|
+
FindEventOrderCountResponse.prototype.toJSON = function toJSON() {
|
|
29793
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
29794
|
+
};
|
|
29795
|
+
|
|
29796
|
+
return FindEventOrderCountResponse;
|
|
29797
|
+
})();
|
|
29798
|
+
|
|
28880
29799
|
$root.FindOrderByFeeIdRequest = (function() {
|
|
28881
29800
|
|
|
28882
29801
|
/**
|
|
@@ -34563,7 +35482,7 @@ $root.OrderService = (function() {
|
|
|
34563
35482
|
* @typedef sendSeasonOrderReceiptEmailCallback
|
|
34564
35483
|
* @type {function}
|
|
34565
35484
|
* @param {Error|null} error Error, if any
|
|
34566
|
-
* @param {
|
|
35485
|
+
* @param {SendOrderReceiptEmailResponse} [response] SendOrderReceiptEmailResponse
|
|
34567
35486
|
*/
|
|
34568
35487
|
|
|
34569
35488
|
/**
|
|
@@ -34571,13 +35490,13 @@ $root.OrderService = (function() {
|
|
|
34571
35490
|
* @function sendSeasonOrderReceiptEmail
|
|
34572
35491
|
* @memberof OrderService
|
|
34573
35492
|
* @instance
|
|
34574
|
-
* @param {
|
|
34575
|
-
* @param {OrderService.sendSeasonOrderReceiptEmailCallback} callback Node-style callback called with the error, if any, and
|
|
35493
|
+
* @param {ISendOrderReceiptEmailRequest} request SendOrderReceiptEmailRequest message or plain object
|
|
35494
|
+
* @param {OrderService.sendSeasonOrderReceiptEmailCallback} callback Node-style callback called with the error, if any, and SendOrderReceiptEmailResponse
|
|
34576
35495
|
* @returns {undefined}
|
|
34577
35496
|
* @variation 1
|
|
34578
35497
|
*/
|
|
34579
35498
|
Object.defineProperty(OrderService.prototype.sendSeasonOrderReceiptEmail = function sendSeasonOrderReceiptEmail(request, callback) {
|
|
34580
|
-
return this.rpcCall(sendSeasonOrderReceiptEmail, $root.
|
|
35499
|
+
return this.rpcCall(sendSeasonOrderReceiptEmail, $root.SendOrderReceiptEmailRequest, $root.SendOrderReceiptEmailResponse, request, callback);
|
|
34581
35500
|
}, "name", { value: "sendSeasonOrderReceiptEmail" });
|
|
34582
35501
|
|
|
34583
35502
|
/**
|
|
@@ -34585,8 +35504,8 @@ $root.OrderService = (function() {
|
|
|
34585
35504
|
* @function sendSeasonOrderReceiptEmail
|
|
34586
35505
|
* @memberof OrderService
|
|
34587
35506
|
* @instance
|
|
34588
|
-
* @param {
|
|
34589
|
-
* @returns {Promise<
|
|
35507
|
+
* @param {ISendOrderReceiptEmailRequest} request SendOrderReceiptEmailRequest message or plain object
|
|
35508
|
+
* @returns {Promise<SendOrderReceiptEmailResponse>} Promise
|
|
34590
35509
|
* @variation 2
|
|
34591
35510
|
*/
|
|
34592
35511
|
|
|
@@ -35052,6 +35971,39 @@ $root.OrderService = (function() {
|
|
|
35052
35971
|
* @variation 2
|
|
35053
35972
|
*/
|
|
35054
35973
|
|
|
35974
|
+
/**
|
|
35975
|
+
* Callback as used by {@link OrderService#generateActivityReport}.
|
|
35976
|
+
* @memberof OrderService
|
|
35977
|
+
* @typedef generateActivityReportCallback
|
|
35978
|
+
* @type {function}
|
|
35979
|
+
* @param {Error|null} error Error, if any
|
|
35980
|
+
* @param {GenerateOrderReportResponse} [response] GenerateOrderReportResponse
|
|
35981
|
+
*/
|
|
35982
|
+
|
|
35983
|
+
/**
|
|
35984
|
+
* Calls generateActivityReport.
|
|
35985
|
+
* @function generateActivityReport
|
|
35986
|
+
* @memberof OrderService
|
|
35987
|
+
* @instance
|
|
35988
|
+
* @param {IGenerateOrderReportRequest} request GenerateOrderReportRequest message or plain object
|
|
35989
|
+
* @param {OrderService.generateActivityReportCallback} callback Node-style callback called with the error, if any, and GenerateOrderReportResponse
|
|
35990
|
+
* @returns {undefined}
|
|
35991
|
+
* @variation 1
|
|
35992
|
+
*/
|
|
35993
|
+
Object.defineProperty(OrderService.prototype.generateActivityReport = function generateActivityReport(request, callback) {
|
|
35994
|
+
return this.rpcCall(generateActivityReport, $root.GenerateOrderReportRequest, $root.GenerateOrderReportResponse, request, callback);
|
|
35995
|
+
}, "name", { value: "generateActivityReport" });
|
|
35996
|
+
|
|
35997
|
+
/**
|
|
35998
|
+
* Calls generateActivityReport.
|
|
35999
|
+
* @function generateActivityReport
|
|
36000
|
+
* @memberof OrderService
|
|
36001
|
+
* @instance
|
|
36002
|
+
* @param {IGenerateOrderReportRequest} request GenerateOrderReportRequest message or plain object
|
|
36003
|
+
* @returns {Promise<GenerateOrderReportResponse>} Promise
|
|
36004
|
+
* @variation 2
|
|
36005
|
+
*/
|
|
36006
|
+
|
|
35055
36007
|
/**
|
|
35056
36008
|
* Callback as used by {@link OrderService#queryOrders}.
|
|
35057
36009
|
* @memberof OrderService
|
|
@@ -35151,6 +36103,39 @@ $root.OrderService = (function() {
|
|
|
35151
36103
|
* @variation 2
|
|
35152
36104
|
*/
|
|
35153
36105
|
|
|
36106
|
+
/**
|
|
36107
|
+
* Callback as used by {@link OrderService#eventOrderCount}.
|
|
36108
|
+
* @memberof OrderService
|
|
36109
|
+
* @typedef eventOrderCountCallback
|
|
36110
|
+
* @type {function}
|
|
36111
|
+
* @param {Error|null} error Error, if any
|
|
36112
|
+
* @param {FindEventOrderCountResponse} [response] FindEventOrderCountResponse
|
|
36113
|
+
*/
|
|
36114
|
+
|
|
36115
|
+
/**
|
|
36116
|
+
* Calls eventOrderCount.
|
|
36117
|
+
* @function eventOrderCount
|
|
36118
|
+
* @memberof OrderService
|
|
36119
|
+
* @instance
|
|
36120
|
+
* @param {IFindOrderByEventIdRequest} request FindOrderByEventIdRequest message or plain object
|
|
36121
|
+
* @param {OrderService.eventOrderCountCallback} callback Node-style callback called with the error, if any, and FindEventOrderCountResponse
|
|
36122
|
+
* @returns {undefined}
|
|
36123
|
+
* @variation 1
|
|
36124
|
+
*/
|
|
36125
|
+
Object.defineProperty(OrderService.prototype.eventOrderCount = function eventOrderCount(request, callback) {
|
|
36126
|
+
return this.rpcCall(eventOrderCount, $root.FindOrderByEventIdRequest, $root.FindEventOrderCountResponse, request, callback);
|
|
36127
|
+
}, "name", { value: "eventOrderCount" });
|
|
36128
|
+
|
|
36129
|
+
/**
|
|
36130
|
+
* Calls eventOrderCount.
|
|
36131
|
+
* @function eventOrderCount
|
|
36132
|
+
* @memberof OrderService
|
|
36133
|
+
* @instance
|
|
36134
|
+
* @param {IFindOrderByEventIdRequest} request FindOrderByEventIdRequest message or plain object
|
|
36135
|
+
* @returns {Promise<FindEventOrderCountResponse>} Promise
|
|
36136
|
+
* @variation 2
|
|
36137
|
+
*/
|
|
36138
|
+
|
|
35154
36139
|
/**
|
|
35155
36140
|
* Callback as used by {@link OrderService#findOrderByFeeId}.
|
|
35156
36141
|
* @memberof OrderService
|
|
@@ -40835,7 +41820,6 @@ $root.QueueOrderRefundEmailRequest = (function() {
|
|
|
40835
41820
|
* @property {string|null} [refundReason] QueueOrderRefundEmailRequest refundReason
|
|
40836
41821
|
* @property {Array.<IdayIdsTimeObj>|null} [dayIdsTime] QueueOrderRefundEmailRequest dayIdsTime
|
|
40837
41822
|
* @property {Array.<IdayIdsTimeObj>|null} [dayIdsTimeCalendar] QueueOrderRefundEmailRequest dayIdsTimeCalendar
|
|
40838
|
-
* @property {string|null} [timezone] QueueOrderRefundEmailRequest timezone
|
|
40839
41823
|
*/
|
|
40840
41824
|
|
|
40841
41825
|
/**
|
|
@@ -41096,14 +42080,6 @@ $root.QueueOrderRefundEmailRequest = (function() {
|
|
|
41096
42080
|
*/
|
|
41097
42081
|
QueueOrderRefundEmailRequest.prototype.dayIdsTimeCalendar = $util.emptyArray;
|
|
41098
42082
|
|
|
41099
|
-
/**
|
|
41100
|
-
* QueueOrderRefundEmailRequest timezone.
|
|
41101
|
-
* @member {string} timezone
|
|
41102
|
-
* @memberof QueueOrderRefundEmailRequest
|
|
41103
|
-
* @instance
|
|
41104
|
-
*/
|
|
41105
|
-
QueueOrderRefundEmailRequest.prototype.timezone = "";
|
|
41106
|
-
|
|
41107
42083
|
/**
|
|
41108
42084
|
* Creates a new QueueOrderRefundEmailRequest instance using the specified properties.
|
|
41109
42085
|
* @function create
|
|
@@ -41191,8 +42167,6 @@ $root.QueueOrderRefundEmailRequest = (function() {
|
|
|
41191
42167
|
if (message.dayIdsTimeCalendar != null && message.dayIdsTimeCalendar.length)
|
|
41192
42168
|
for (var i = 0; i < message.dayIdsTimeCalendar.length; ++i)
|
|
41193
42169
|
$root.dayIdsTimeObj.encode(message.dayIdsTimeCalendar[i], writer.uint32(/* id 29, wireType 2 =*/234).fork()).ldelim();
|
|
41194
|
-
if (message.timezone != null && Object.hasOwnProperty.call(message, "timezone"))
|
|
41195
|
-
writer.uint32(/* id 30, wireType 2 =*/242).string(message.timezone);
|
|
41196
42170
|
return writer;
|
|
41197
42171
|
};
|
|
41198
42172
|
|
|
@@ -41323,9 +42297,6 @@ $root.QueueOrderRefundEmailRequest = (function() {
|
|
|
41323
42297
|
message.dayIdsTimeCalendar = [];
|
|
41324
42298
|
message.dayIdsTimeCalendar.push($root.dayIdsTimeObj.decode(reader, reader.uint32()));
|
|
41325
42299
|
break;
|
|
41326
|
-
case 30:
|
|
41327
|
-
message.timezone = reader.string();
|
|
41328
|
-
break;
|
|
41329
42300
|
default:
|
|
41330
42301
|
reader.skipType(tag & 7);
|
|
41331
42302
|
break;
|
|
@@ -41469,9 +42440,6 @@ $root.QueueOrderRefundEmailRequest = (function() {
|
|
|
41469
42440
|
return "dayIdsTimeCalendar." + error;
|
|
41470
42441
|
}
|
|
41471
42442
|
}
|
|
41472
|
-
if (message.timezone != null && message.hasOwnProperty("timezone"))
|
|
41473
|
-
if (!$util.isString(message.timezone))
|
|
41474
|
-
return "timezone: string expected";
|
|
41475
42443
|
return null;
|
|
41476
42444
|
};
|
|
41477
42445
|
|
|
@@ -41571,8 +42539,6 @@ $root.QueueOrderRefundEmailRequest = (function() {
|
|
|
41571
42539
|
message.dayIdsTimeCalendar[i] = $root.dayIdsTimeObj.fromObject(object.dayIdsTimeCalendar[i]);
|
|
41572
42540
|
}
|
|
41573
42541
|
}
|
|
41574
|
-
if (object.timezone != null)
|
|
41575
|
-
message.timezone = String(object.timezone);
|
|
41576
42542
|
return message;
|
|
41577
42543
|
};
|
|
41578
42544
|
|
|
@@ -41622,7 +42588,6 @@ $root.QueueOrderRefundEmailRequest = (function() {
|
|
|
41622
42588
|
object.orderFeesRefunded = "";
|
|
41623
42589
|
object.orderTotalRefunded = "";
|
|
41624
42590
|
object.refundReason = "";
|
|
41625
|
-
object.timezone = "";
|
|
41626
42591
|
}
|
|
41627
42592
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
41628
42593
|
object.spanContext = message.spanContext;
|
|
@@ -41693,8 +42658,6 @@ $root.QueueOrderRefundEmailRequest = (function() {
|
|
|
41693
42658
|
for (var j = 0; j < message.dayIdsTimeCalendar.length; ++j)
|
|
41694
42659
|
object.dayIdsTimeCalendar[j] = $root.dayIdsTimeObj.toObject(message.dayIdsTimeCalendar[j], options);
|
|
41695
42660
|
}
|
|
41696
|
-
if (message.timezone != null && message.hasOwnProperty("timezone"))
|
|
41697
|
-
object.timezone = message.timezone;
|
|
41698
42661
|
return object;
|
|
41699
42662
|
};
|
|
41700
42663
|
|
|
@@ -41748,7 +42711,6 @@ $root.QueueOrderCanceledEmailRequest = (function() {
|
|
|
41748
42711
|
* @property {string|null} [refundReason] QueueOrderCanceledEmailRequest refundReason
|
|
41749
42712
|
* @property {Array.<IdayIdsTimeObj>|null} [dayIdsTime] QueueOrderCanceledEmailRequest dayIdsTime
|
|
41750
42713
|
* @property {Array.<IdayIdsTimeObj>|null} [dayIdsTimeCalendar] QueueOrderCanceledEmailRequest dayIdsTimeCalendar
|
|
41751
|
-
* @property {string|null} [timezone] QueueOrderCanceledEmailRequest timezone
|
|
41752
42714
|
*/
|
|
41753
42715
|
|
|
41754
42716
|
/**
|
|
@@ -42009,14 +42971,6 @@ $root.QueueOrderCanceledEmailRequest = (function() {
|
|
|
42009
42971
|
*/
|
|
42010
42972
|
QueueOrderCanceledEmailRequest.prototype.dayIdsTimeCalendar = $util.emptyArray;
|
|
42011
42973
|
|
|
42012
|
-
/**
|
|
42013
|
-
* QueueOrderCanceledEmailRequest timezone.
|
|
42014
|
-
* @member {string} timezone
|
|
42015
|
-
* @memberof QueueOrderCanceledEmailRequest
|
|
42016
|
-
* @instance
|
|
42017
|
-
*/
|
|
42018
|
-
QueueOrderCanceledEmailRequest.prototype.timezone = "";
|
|
42019
|
-
|
|
42020
42974
|
/**
|
|
42021
42975
|
* Creates a new QueueOrderCanceledEmailRequest instance using the specified properties.
|
|
42022
42976
|
* @function create
|
|
@@ -42104,8 +43058,6 @@ $root.QueueOrderCanceledEmailRequest = (function() {
|
|
|
42104
43058
|
if (message.dayIdsTimeCalendar != null && message.dayIdsTimeCalendar.length)
|
|
42105
43059
|
for (var i = 0; i < message.dayIdsTimeCalendar.length; ++i)
|
|
42106
43060
|
$root.dayIdsTimeObj.encode(message.dayIdsTimeCalendar[i], writer.uint32(/* id 29, wireType 2 =*/234).fork()).ldelim();
|
|
42107
|
-
if (message.timezone != null && Object.hasOwnProperty.call(message, "timezone"))
|
|
42108
|
-
writer.uint32(/* id 30, wireType 2 =*/242).string(message.timezone);
|
|
42109
43061
|
return writer;
|
|
42110
43062
|
};
|
|
42111
43063
|
|
|
@@ -42236,9 +43188,6 @@ $root.QueueOrderCanceledEmailRequest = (function() {
|
|
|
42236
43188
|
message.dayIdsTimeCalendar = [];
|
|
42237
43189
|
message.dayIdsTimeCalendar.push($root.dayIdsTimeObj.decode(reader, reader.uint32()));
|
|
42238
43190
|
break;
|
|
42239
|
-
case 30:
|
|
42240
|
-
message.timezone = reader.string();
|
|
42241
|
-
break;
|
|
42242
43191
|
default:
|
|
42243
43192
|
reader.skipType(tag & 7);
|
|
42244
43193
|
break;
|
|
@@ -42382,9 +43331,6 @@ $root.QueueOrderCanceledEmailRequest = (function() {
|
|
|
42382
43331
|
return "dayIdsTimeCalendar." + error;
|
|
42383
43332
|
}
|
|
42384
43333
|
}
|
|
42385
|
-
if (message.timezone != null && message.hasOwnProperty("timezone"))
|
|
42386
|
-
if (!$util.isString(message.timezone))
|
|
42387
|
-
return "timezone: string expected";
|
|
42388
43334
|
return null;
|
|
42389
43335
|
};
|
|
42390
43336
|
|
|
@@ -42484,8 +43430,6 @@ $root.QueueOrderCanceledEmailRequest = (function() {
|
|
|
42484
43430
|
message.dayIdsTimeCalendar[i] = $root.dayIdsTimeObj.fromObject(object.dayIdsTimeCalendar[i]);
|
|
42485
43431
|
}
|
|
42486
43432
|
}
|
|
42487
|
-
if (object.timezone != null)
|
|
42488
|
-
message.timezone = String(object.timezone);
|
|
42489
43433
|
return message;
|
|
42490
43434
|
};
|
|
42491
43435
|
|
|
@@ -42535,7 +43479,6 @@ $root.QueueOrderCanceledEmailRequest = (function() {
|
|
|
42535
43479
|
object.orderFeesRefunded = "";
|
|
42536
43480
|
object.orderTotalRefunded = "";
|
|
42537
43481
|
object.refundReason = "";
|
|
42538
|
-
object.timezone = "";
|
|
42539
43482
|
}
|
|
42540
43483
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
42541
43484
|
object.spanContext = message.spanContext;
|
|
@@ -42606,8 +43549,6 @@ $root.QueueOrderCanceledEmailRequest = (function() {
|
|
|
42606
43549
|
for (var j = 0; j < message.dayIdsTimeCalendar.length; ++j)
|
|
42607
43550
|
object.dayIdsTimeCalendar[j] = $root.dayIdsTimeObj.toObject(message.dayIdsTimeCalendar[j], options);
|
|
42608
43551
|
}
|
|
42609
|
-
if (message.timezone != null && message.hasOwnProperty("timezone"))
|
|
42610
|
-
object.timezone = message.timezone;
|
|
42611
43552
|
return object;
|
|
42612
43553
|
};
|
|
42613
43554
|
|
|
@@ -44523,8 +45464,6 @@ $root.PublicEvent = (function() {
|
|
|
44523
45464
|
* @property {number|null} [endsAt] PublicEvent endsAt
|
|
44524
45465
|
* @property {string|null} [venue] PublicEvent venue
|
|
44525
45466
|
* @property {string|null} [status] PublicEvent status
|
|
44526
|
-
* @property {string|null} [venueTimezone] PublicEvent venueTimezone
|
|
44527
|
-
* @property {number|null} [announceAt] PublicEvent announceAt
|
|
44528
45467
|
*/
|
|
44529
45468
|
|
|
44530
45469
|
/**
|
|
@@ -44742,22 +45681,6 @@ $root.PublicEvent = (function() {
|
|
|
44742
45681
|
*/
|
|
44743
45682
|
PublicEvent.prototype.status = "";
|
|
44744
45683
|
|
|
44745
|
-
/**
|
|
44746
|
-
* PublicEvent venueTimezone.
|
|
44747
|
-
* @member {string} venueTimezone
|
|
44748
|
-
* @memberof PublicEvent
|
|
44749
|
-
* @instance
|
|
44750
|
-
*/
|
|
44751
|
-
PublicEvent.prototype.venueTimezone = "";
|
|
44752
|
-
|
|
44753
|
-
/**
|
|
44754
|
-
* PublicEvent announceAt.
|
|
44755
|
-
* @member {number} announceAt
|
|
44756
|
-
* @memberof PublicEvent
|
|
44757
|
-
* @instance
|
|
44758
|
-
*/
|
|
44759
|
-
PublicEvent.prototype.announceAt = 0;
|
|
44760
|
-
|
|
44761
45684
|
/**
|
|
44762
45685
|
* Creates a new PublicEvent instance using the specified properties.
|
|
44763
45686
|
* @function create
|
|
@@ -44832,10 +45755,6 @@ $root.PublicEvent = (function() {
|
|
|
44832
45755
|
writer.uint32(/* id 24, wireType 2 =*/194).string(message.venue);
|
|
44833
45756
|
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
44834
45757
|
writer.uint32(/* id 25, wireType 2 =*/202).string(message.status);
|
|
44835
|
-
if (message.venueTimezone != null && Object.hasOwnProperty.call(message, "venueTimezone"))
|
|
44836
|
-
writer.uint32(/* id 26, wireType 2 =*/210).string(message.venueTimezone);
|
|
44837
|
-
if (message.announceAt != null && Object.hasOwnProperty.call(message, "announceAt"))
|
|
44838
|
-
writer.uint32(/* id 27, wireType 0 =*/216).int32(message.announceAt);
|
|
44839
45758
|
return writer;
|
|
44840
45759
|
};
|
|
44841
45760
|
|
|
@@ -44945,12 +45864,6 @@ $root.PublicEvent = (function() {
|
|
|
44945
45864
|
case 25:
|
|
44946
45865
|
message.status = reader.string();
|
|
44947
45866
|
break;
|
|
44948
|
-
case 26:
|
|
44949
|
-
message.venueTimezone = reader.string();
|
|
44950
|
-
break;
|
|
44951
|
-
case 27:
|
|
44952
|
-
message.announceAt = reader.int32();
|
|
44953
|
-
break;
|
|
44954
45867
|
default:
|
|
44955
45868
|
reader.skipType(tag & 7);
|
|
44956
45869
|
break;
|
|
@@ -45063,12 +45976,6 @@ $root.PublicEvent = (function() {
|
|
|
45063
45976
|
if (message.status != null && message.hasOwnProperty("status"))
|
|
45064
45977
|
if (!$util.isString(message.status))
|
|
45065
45978
|
return "status: string expected";
|
|
45066
|
-
if (message.venueTimezone != null && message.hasOwnProperty("venueTimezone"))
|
|
45067
|
-
if (!$util.isString(message.venueTimezone))
|
|
45068
|
-
return "venueTimezone: string expected";
|
|
45069
|
-
if (message.announceAt != null && message.hasOwnProperty("announceAt"))
|
|
45070
|
-
if (!$util.isInteger(message.announceAt))
|
|
45071
|
-
return "announceAt: integer expected";
|
|
45072
45979
|
return null;
|
|
45073
45980
|
};
|
|
45074
45981
|
|
|
@@ -45137,10 +46044,6 @@ $root.PublicEvent = (function() {
|
|
|
45137
46044
|
message.venue = String(object.venue);
|
|
45138
46045
|
if (object.status != null)
|
|
45139
46046
|
message.status = String(object.status);
|
|
45140
|
-
if (object.venueTimezone != null)
|
|
45141
|
-
message.venueTimezone = String(object.venueTimezone);
|
|
45142
|
-
if (object.announceAt != null)
|
|
45143
|
-
message.announceAt = object.announceAt | 0;
|
|
45144
46047
|
return message;
|
|
45145
46048
|
};
|
|
45146
46049
|
|
|
@@ -45183,8 +46086,6 @@ $root.PublicEvent = (function() {
|
|
|
45183
46086
|
object.endsAt = 0;
|
|
45184
46087
|
object.venue = "";
|
|
45185
46088
|
object.status = "";
|
|
45186
|
-
object.venueTimezone = "";
|
|
45187
|
-
object.announceAt = 0;
|
|
45188
46089
|
}
|
|
45189
46090
|
if (message._id != null && message.hasOwnProperty("_id"))
|
|
45190
46091
|
object._id = message._id;
|
|
@@ -45236,10 +46137,6 @@ $root.PublicEvent = (function() {
|
|
|
45236
46137
|
object.venue = message.venue;
|
|
45237
46138
|
if (message.status != null && message.hasOwnProperty("status"))
|
|
45238
46139
|
object.status = message.status;
|
|
45239
|
-
if (message.venueTimezone != null && message.hasOwnProperty("venueTimezone"))
|
|
45240
|
-
object.venueTimezone = message.venueTimezone;
|
|
45241
|
-
if (message.announceAt != null && message.hasOwnProperty("announceAt"))
|
|
45242
|
-
object.announceAt = message.announceAt;
|
|
45243
46140
|
return object;
|
|
45244
46141
|
};
|
|
45245
46142
|
|
|
@@ -52838,7 +53735,6 @@ $root.QueryEventsListRequest = (function() {
|
|
|
52838
53735
|
* @exports IQueryEventsListRequest
|
|
52839
53736
|
* @interface IQueryEventsListRequest
|
|
52840
53737
|
* @property {string|null} [spanContext] QueryEventsListRequest spanContext
|
|
52841
|
-
* @property {string|null} [orgId] QueryEventsListRequest orgId
|
|
52842
53738
|
*/
|
|
52843
53739
|
|
|
52844
53740
|
/**
|
|
@@ -52864,14 +53760,6 @@ $root.QueryEventsListRequest = (function() {
|
|
|
52864
53760
|
*/
|
|
52865
53761
|
QueryEventsListRequest.prototype.spanContext = "";
|
|
52866
53762
|
|
|
52867
|
-
/**
|
|
52868
|
-
* QueryEventsListRequest orgId.
|
|
52869
|
-
* @member {string} orgId
|
|
52870
|
-
* @memberof QueryEventsListRequest
|
|
52871
|
-
* @instance
|
|
52872
|
-
*/
|
|
52873
|
-
QueryEventsListRequest.prototype.orgId = "";
|
|
52874
|
-
|
|
52875
53763
|
/**
|
|
52876
53764
|
* Creates a new QueryEventsListRequest instance using the specified properties.
|
|
52877
53765
|
* @function create
|
|
@@ -52898,8 +53786,6 @@ $root.QueryEventsListRequest = (function() {
|
|
|
52898
53786
|
writer = $Writer.create();
|
|
52899
53787
|
if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
|
|
52900
53788
|
writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
|
|
52901
|
-
if (message.orgId != null && Object.hasOwnProperty.call(message, "orgId"))
|
|
52902
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.orgId);
|
|
52903
53789
|
return writer;
|
|
52904
53790
|
};
|
|
52905
53791
|
|
|
@@ -52937,9 +53823,6 @@ $root.QueryEventsListRequest = (function() {
|
|
|
52937
53823
|
case 0:
|
|
52938
53824
|
message.spanContext = reader.string();
|
|
52939
53825
|
break;
|
|
52940
|
-
case 1:
|
|
52941
|
-
message.orgId = reader.string();
|
|
52942
|
-
break;
|
|
52943
53826
|
default:
|
|
52944
53827
|
reader.skipType(tag & 7);
|
|
52945
53828
|
break;
|
|
@@ -52978,9 +53861,6 @@ $root.QueryEventsListRequest = (function() {
|
|
|
52978
53861
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
52979
53862
|
if (!$util.isString(message.spanContext))
|
|
52980
53863
|
return "spanContext: string expected";
|
|
52981
|
-
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
52982
|
-
if (!$util.isString(message.orgId))
|
|
52983
|
-
return "orgId: string expected";
|
|
52984
53864
|
return null;
|
|
52985
53865
|
};
|
|
52986
53866
|
|
|
@@ -52998,8 +53878,6 @@ $root.QueryEventsListRequest = (function() {
|
|
|
52998
53878
|
var message = new $root.QueryEventsListRequest();
|
|
52999
53879
|
if (object.spanContext != null)
|
|
53000
53880
|
message.spanContext = String(object.spanContext);
|
|
53001
|
-
if (object.orgId != null)
|
|
53002
|
-
message.orgId = String(object.orgId);
|
|
53003
53881
|
return message;
|
|
53004
53882
|
};
|
|
53005
53883
|
|
|
@@ -53016,14 +53894,10 @@ $root.QueryEventsListRequest = (function() {
|
|
|
53016
53894
|
if (!options)
|
|
53017
53895
|
options = {};
|
|
53018
53896
|
var object = {};
|
|
53019
|
-
if (options.defaults)
|
|
53897
|
+
if (options.defaults)
|
|
53020
53898
|
object.spanContext = "";
|
|
53021
|
-
object.orgId = "";
|
|
53022
|
-
}
|
|
53023
53899
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
53024
53900
|
object.spanContext = message.spanContext;
|
|
53025
|
-
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
53026
|
-
object.orgId = message.orgId;
|
|
53027
53901
|
return object;
|
|
53028
53902
|
};
|
|
53029
53903
|
|
|
@@ -67748,6 +68622,7 @@ $root.Fee = (function() {
|
|
|
67748
68622
|
* @property {number|null} [updatedAt] Fee updatedAt
|
|
67749
68623
|
* @property {boolean|null} [disabled] Fee disabled
|
|
67750
68624
|
* @property {string|null} [seasonId] Fee seasonId
|
|
68625
|
+
* @property {string|null} [amount] Fee amount
|
|
67751
68626
|
*/
|
|
67752
68627
|
|
|
67753
68628
|
/**
|
|
@@ -67902,6 +68777,14 @@ $root.Fee = (function() {
|
|
|
67902
68777
|
*/
|
|
67903
68778
|
Fee.prototype.seasonId = "";
|
|
67904
68779
|
|
|
68780
|
+
/**
|
|
68781
|
+
* Fee amount.
|
|
68782
|
+
* @member {string} amount
|
|
68783
|
+
* @memberof Fee
|
|
68784
|
+
* @instance
|
|
68785
|
+
*/
|
|
68786
|
+
Fee.prototype.amount = "";
|
|
68787
|
+
|
|
67905
68788
|
/**
|
|
67906
68789
|
* Creates a new Fee instance using the specified properties.
|
|
67907
68790
|
* @function create
|
|
@@ -67961,6 +68844,8 @@ $root.Fee = (function() {
|
|
|
67961
68844
|
writer.uint32(/* id 15, wireType 0 =*/120).bool(message.disabled);
|
|
67962
68845
|
if (message.seasonId != null && Object.hasOwnProperty.call(message, "seasonId"))
|
|
67963
68846
|
writer.uint32(/* id 16, wireType 2 =*/130).string(message.seasonId);
|
|
68847
|
+
if (message.amount != null && Object.hasOwnProperty.call(message, "amount"))
|
|
68848
|
+
writer.uint32(/* id 17, wireType 2 =*/138).string(message.amount);
|
|
67964
68849
|
return writer;
|
|
67965
68850
|
};
|
|
67966
68851
|
|
|
@@ -68048,6 +68933,9 @@ $root.Fee = (function() {
|
|
|
68048
68933
|
case 16:
|
|
68049
68934
|
message.seasonId = reader.string();
|
|
68050
68935
|
break;
|
|
68936
|
+
case 17:
|
|
68937
|
+
message.amount = reader.string();
|
|
68938
|
+
break;
|
|
68051
68939
|
default:
|
|
68052
68940
|
reader.skipType(tag & 7);
|
|
68053
68941
|
break;
|
|
@@ -68138,6 +69026,9 @@ $root.Fee = (function() {
|
|
|
68138
69026
|
if (message.seasonId != null && message.hasOwnProperty("seasonId"))
|
|
68139
69027
|
if (!$util.isString(message.seasonId))
|
|
68140
69028
|
return "seasonId: string expected";
|
|
69029
|
+
if (message.amount != null && message.hasOwnProperty("amount"))
|
|
69030
|
+
if (!$util.isString(message.amount))
|
|
69031
|
+
return "amount: string expected";
|
|
68141
69032
|
return null;
|
|
68142
69033
|
};
|
|
68143
69034
|
|
|
@@ -68192,6 +69083,8 @@ $root.Fee = (function() {
|
|
|
68192
69083
|
message.disabled = Boolean(object.disabled);
|
|
68193
69084
|
if (object.seasonId != null)
|
|
68194
69085
|
message.seasonId = String(object.seasonId);
|
|
69086
|
+
if (object.amount != null)
|
|
69087
|
+
message.amount = String(object.amount);
|
|
68195
69088
|
return message;
|
|
68196
69089
|
};
|
|
68197
69090
|
|
|
@@ -68227,6 +69120,7 @@ $root.Fee = (function() {
|
|
|
68227
69120
|
object.updatedAt = 0;
|
|
68228
69121
|
object.disabled = false;
|
|
68229
69122
|
object.seasonId = "";
|
|
69123
|
+
object.amount = "";
|
|
68230
69124
|
}
|
|
68231
69125
|
if (message._id != null && message.hasOwnProperty("_id"))
|
|
68232
69126
|
object._id = message._id;
|
|
@@ -68265,6 +69159,8 @@ $root.Fee = (function() {
|
|
|
68265
69159
|
object.disabled = message.disabled;
|
|
68266
69160
|
if (message.seasonId != null && message.hasOwnProperty("seasonId"))
|
|
68267
69161
|
object.seasonId = message.seasonId;
|
|
69162
|
+
if (message.amount != null && message.hasOwnProperty("amount"))
|
|
69163
|
+
object.amount = message.amount;
|
|
68268
69164
|
return object;
|
|
68269
69165
|
};
|
|
68270
69166
|
|