@sellout/models 0.0.186 → 0.0.187-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dist/graphql/queries/order.query.js +0 -1
- package/.dist/graphql/queries/order.query.js.map +1 -1
- package/.dist/graphql/queries/orders.query.js +0 -1
- package/.dist/graphql/queries/orders.query.js.map +1 -1
- package/.dist/interfaces/ICreateOrderParams.d.ts +0 -2
- package/.dist/interfaces/IFee.d.ts +0 -1
- package/.dist/interfaces/IOrder.d.ts +1 -2
- package/.dist/interfaces/IOrder.js.map +1 -1
- package/.dist/interfaces/IOrderSummary.d.ts +0 -1
- package/.dist/schemas/Order.d.ts +0 -81
- package/.dist/schemas/Order.js +0 -81
- package/.dist/schemas/Order.js.map +1 -1
- package/.dist/sellout-proto.js +118 -1014
- package/.dist/utils/OrderUtil.js +195 -111
- package/.dist/utils/OrderUtil.js.map +1 -1
- package/.dist/utils/PaymentUtil.d.ts +2 -2
- package/.dist/utils/PaymentUtil.js +198 -190
- package/.dist/utils/PaymentUtil.js.map +1 -1
- package/package.json +3 -3
- package/src/graphql/queries/order.query.ts +0 -1
- package/src/graphql/queries/orders.query.ts +0 -1
- package/src/interfaces/ICreateOrderParams.ts +0 -2
- package/src/interfaces/IFee.ts +0 -2
- package/src/interfaces/IOrder.ts +1 -2
- package/src/interfaces/IOrderSummary.ts +0 -1
- package/src/proto/email.proto +2 -0
- package/src/proto/event.proto +3 -0
- package/src/proto/fee.proto +0 -1
- package/src/proto/order.proto +1 -35
- package/src/schemas/Order.ts +0 -81
- package/src/utils/OrderUtil.ts +219 -128
- package/src/utils/PaymentUtil.ts +269 -243
- package/.dist/graphql/mutations/sendSeasonOrderReceiptEmail.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/sendSeasonOrderReceiptEmail.mutation.js +0 -13
- package/.dist/graphql/mutations/sendSeasonOrderReceiptEmail.mutation.js.map +0 -1
- package/src/graphql/mutations/sendSeasonOrderReceiptEmail.mutation.ts +0 -9
package/.dist/sellout-proto.js
CHANGED
|
@@ -13009,7 +13009,6 @@ $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
|
|
13013
13012
|
*/
|
|
13014
13013
|
|
|
13015
13014
|
/**
|
|
@@ -13029,7 +13028,6 @@ $root.Order = (function() {
|
|
|
13029
13028
|
this.recipientEmails = [];
|
|
13030
13029
|
this.customFields = [];
|
|
13031
13030
|
this.payments = [];
|
|
13032
|
-
this.fees = [];
|
|
13033
13031
|
if (properties)
|
|
13034
13032
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
13035
13033
|
if (properties[keys[i]] != null)
|
|
@@ -13284,14 +13282,6 @@ $root.Order = (function() {
|
|
|
13284
13282
|
*/
|
|
13285
13283
|
Order.prototype.parentSeasonOrderId = "";
|
|
13286
13284
|
|
|
13287
|
-
/**
|
|
13288
|
-
* Order fees.
|
|
13289
|
-
* @member {Array.<IorderFees>} fees
|
|
13290
|
-
* @memberof Order
|
|
13291
|
-
* @instance
|
|
13292
|
-
*/
|
|
13293
|
-
Order.prototype.fees = $util.emptyArray;
|
|
13294
|
-
|
|
13295
13285
|
/**
|
|
13296
13286
|
* Creates a new Order instance using the specified properties.
|
|
13297
13287
|
* @function create
|
|
@@ -13386,9 +13376,6 @@ $root.Order = (function() {
|
|
|
13386
13376
|
writer.uint32(/* id 29, wireType 0 =*/232).bool(message.printed);
|
|
13387
13377
|
if (message.parentSeasonOrderId != null && Object.hasOwnProperty.call(message, "parentSeasonOrderId"))
|
|
13388
13378
|
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();
|
|
13392
13379
|
return writer;
|
|
13393
13380
|
};
|
|
13394
13381
|
|
|
@@ -13532,11 +13519,6 @@ $root.Order = (function() {
|
|
|
13532
13519
|
case 30:
|
|
13533
13520
|
message.parentSeasonOrderId = reader.string();
|
|
13534
13521
|
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;
|
|
13540
13522
|
default:
|
|
13541
13523
|
reader.skipType(tag & 7);
|
|
13542
13524
|
break;
|
|
@@ -13709,15 +13691,6 @@ $root.Order = (function() {
|
|
|
13709
13691
|
if (message.parentSeasonOrderId != null && message.hasOwnProperty("parentSeasonOrderId"))
|
|
13710
13692
|
if (!$util.isString(message.parentSeasonOrderId))
|
|
13711
13693
|
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
|
-
}
|
|
13721
13694
|
return null;
|
|
13722
13695
|
};
|
|
13723
13696
|
|
|
@@ -13853,16 +13826,6 @@ $root.Order = (function() {
|
|
|
13853
13826
|
message.printed = Boolean(object.printed);
|
|
13854
13827
|
if (object.parentSeasonOrderId != null)
|
|
13855
13828
|
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
|
-
}
|
|
13866
13829
|
return message;
|
|
13867
13830
|
};
|
|
13868
13831
|
|
|
@@ -13888,7 +13851,6 @@ $root.Order = (function() {
|
|
|
13888
13851
|
object.recipientEmails = [];
|
|
13889
13852
|
object.customFields = [];
|
|
13890
13853
|
object.payments = [];
|
|
13891
|
-
object.fees = [];
|
|
13892
13854
|
}
|
|
13893
13855
|
if (options.defaults) {
|
|
13894
13856
|
object._id = "";
|
|
@@ -14001,11 +13963,6 @@ $root.Order = (function() {
|
|
|
14001
13963
|
object.printed = message.printed;
|
|
14002
13964
|
if (message.parentSeasonOrderId != null && message.hasOwnProperty("parentSeasonOrderId"))
|
|
14003
13965
|
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
|
-
}
|
|
14009
13966
|
return object;
|
|
14010
13967
|
};
|
|
14011
13968
|
|
|
@@ -14871,585 +14828,6 @@ $root.OrderTicket = (function() {
|
|
|
14871
14828
|
return OrderTicket;
|
|
14872
14829
|
})();
|
|
14873
14830
|
|
|
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
|
-
|
|
15453
14831
|
$root.TeiMemberInfoParams = (function() {
|
|
15454
14832
|
|
|
15455
14833
|
/**
|
|
@@ -29499,303 +28877,6 @@ $root.FindOrderByEventIdResponse = (function() {
|
|
|
29499
28877
|
return FindOrderByEventIdResponse;
|
|
29500
28878
|
})();
|
|
29501
28879
|
|
|
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
|
-
|
|
29799
28880
|
$root.FindOrderByFeeIdRequest = (function() {
|
|
29800
28881
|
|
|
29801
28882
|
/**
|
|
@@ -35482,7 +34563,7 @@ $root.OrderService = (function() {
|
|
|
35482
34563
|
* @typedef sendSeasonOrderReceiptEmailCallback
|
|
35483
34564
|
* @type {function}
|
|
35484
34565
|
* @param {Error|null} error Error, if any
|
|
35485
|
-
* @param {
|
|
34566
|
+
* @param {SendOrderQRCodeEmailResponse} [response] SendOrderQRCodeEmailResponse
|
|
35486
34567
|
*/
|
|
35487
34568
|
|
|
35488
34569
|
/**
|
|
@@ -35490,13 +34571,13 @@ $root.OrderService = (function() {
|
|
|
35490
34571
|
* @function sendSeasonOrderReceiptEmail
|
|
35491
34572
|
* @memberof OrderService
|
|
35492
34573
|
* @instance
|
|
35493
|
-
* @param {
|
|
35494
|
-
* @param {OrderService.sendSeasonOrderReceiptEmailCallback} callback Node-style callback called with the error, if any, and
|
|
34574
|
+
* @param {ISendOrderQRCodeEmailRequest} request SendOrderQRCodeEmailRequest message or plain object
|
|
34575
|
+
* @param {OrderService.sendSeasonOrderReceiptEmailCallback} callback Node-style callback called with the error, if any, and SendOrderQRCodeEmailResponse
|
|
35495
34576
|
* @returns {undefined}
|
|
35496
34577
|
* @variation 1
|
|
35497
34578
|
*/
|
|
35498
34579
|
Object.defineProperty(OrderService.prototype.sendSeasonOrderReceiptEmail = function sendSeasonOrderReceiptEmail(request, callback) {
|
|
35499
|
-
return this.rpcCall(sendSeasonOrderReceiptEmail, $root.
|
|
34580
|
+
return this.rpcCall(sendSeasonOrderReceiptEmail, $root.SendOrderQRCodeEmailRequest, $root.SendOrderQRCodeEmailResponse, request, callback);
|
|
35500
34581
|
}, "name", { value: "sendSeasonOrderReceiptEmail" });
|
|
35501
34582
|
|
|
35502
34583
|
/**
|
|
@@ -35504,8 +34585,8 @@ $root.OrderService = (function() {
|
|
|
35504
34585
|
* @function sendSeasonOrderReceiptEmail
|
|
35505
34586
|
* @memberof OrderService
|
|
35506
34587
|
* @instance
|
|
35507
|
-
* @param {
|
|
35508
|
-
* @returns {Promise<
|
|
34588
|
+
* @param {ISendOrderQRCodeEmailRequest} request SendOrderQRCodeEmailRequest message or plain object
|
|
34589
|
+
* @returns {Promise<SendOrderQRCodeEmailResponse>} Promise
|
|
35509
34590
|
* @variation 2
|
|
35510
34591
|
*/
|
|
35511
34592
|
|
|
@@ -35971,39 +35052,6 @@ $root.OrderService = (function() {
|
|
|
35971
35052
|
* @variation 2
|
|
35972
35053
|
*/
|
|
35973
35054
|
|
|
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
|
-
|
|
36007
35055
|
/**
|
|
36008
35056
|
* Callback as used by {@link OrderService#queryOrders}.
|
|
36009
35057
|
* @memberof OrderService
|
|
@@ -36103,39 +35151,6 @@ $root.OrderService = (function() {
|
|
|
36103
35151
|
* @variation 2
|
|
36104
35152
|
*/
|
|
36105
35153
|
|
|
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
|
-
|
|
36139
35154
|
/**
|
|
36140
35155
|
* Callback as used by {@link OrderService#findOrderByFeeId}.
|
|
36141
35156
|
* @memberof OrderService
|
|
@@ -41820,6 +40835,7 @@ $root.QueueOrderRefundEmailRequest = (function() {
|
|
|
41820
40835
|
* @property {string|null} [refundReason] QueueOrderRefundEmailRequest refundReason
|
|
41821
40836
|
* @property {Array.<IdayIdsTimeObj>|null} [dayIdsTime] QueueOrderRefundEmailRequest dayIdsTime
|
|
41822
40837
|
* @property {Array.<IdayIdsTimeObj>|null} [dayIdsTimeCalendar] QueueOrderRefundEmailRequest dayIdsTimeCalendar
|
|
40838
|
+
* @property {string|null} [timezone] QueueOrderRefundEmailRequest timezone
|
|
41823
40839
|
*/
|
|
41824
40840
|
|
|
41825
40841
|
/**
|
|
@@ -42080,6 +41096,14 @@ $root.QueueOrderRefundEmailRequest = (function() {
|
|
|
42080
41096
|
*/
|
|
42081
41097
|
QueueOrderRefundEmailRequest.prototype.dayIdsTimeCalendar = $util.emptyArray;
|
|
42082
41098
|
|
|
41099
|
+
/**
|
|
41100
|
+
* QueueOrderRefundEmailRequest timezone.
|
|
41101
|
+
* @member {string} timezone
|
|
41102
|
+
* @memberof QueueOrderRefundEmailRequest
|
|
41103
|
+
* @instance
|
|
41104
|
+
*/
|
|
41105
|
+
QueueOrderRefundEmailRequest.prototype.timezone = "";
|
|
41106
|
+
|
|
42083
41107
|
/**
|
|
42084
41108
|
* Creates a new QueueOrderRefundEmailRequest instance using the specified properties.
|
|
42085
41109
|
* @function create
|
|
@@ -42167,6 +41191,8 @@ $root.QueueOrderRefundEmailRequest = (function() {
|
|
|
42167
41191
|
if (message.dayIdsTimeCalendar != null && message.dayIdsTimeCalendar.length)
|
|
42168
41192
|
for (var i = 0; i < message.dayIdsTimeCalendar.length; ++i)
|
|
42169
41193
|
$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);
|
|
42170
41196
|
return writer;
|
|
42171
41197
|
};
|
|
42172
41198
|
|
|
@@ -42297,6 +41323,9 @@ $root.QueueOrderRefundEmailRequest = (function() {
|
|
|
42297
41323
|
message.dayIdsTimeCalendar = [];
|
|
42298
41324
|
message.dayIdsTimeCalendar.push($root.dayIdsTimeObj.decode(reader, reader.uint32()));
|
|
42299
41325
|
break;
|
|
41326
|
+
case 30:
|
|
41327
|
+
message.timezone = reader.string();
|
|
41328
|
+
break;
|
|
42300
41329
|
default:
|
|
42301
41330
|
reader.skipType(tag & 7);
|
|
42302
41331
|
break;
|
|
@@ -42440,6 +41469,9 @@ $root.QueueOrderRefundEmailRequest = (function() {
|
|
|
42440
41469
|
return "dayIdsTimeCalendar." + error;
|
|
42441
41470
|
}
|
|
42442
41471
|
}
|
|
41472
|
+
if (message.timezone != null && message.hasOwnProperty("timezone"))
|
|
41473
|
+
if (!$util.isString(message.timezone))
|
|
41474
|
+
return "timezone: string expected";
|
|
42443
41475
|
return null;
|
|
42444
41476
|
};
|
|
42445
41477
|
|
|
@@ -42539,6 +41571,8 @@ $root.QueueOrderRefundEmailRequest = (function() {
|
|
|
42539
41571
|
message.dayIdsTimeCalendar[i] = $root.dayIdsTimeObj.fromObject(object.dayIdsTimeCalendar[i]);
|
|
42540
41572
|
}
|
|
42541
41573
|
}
|
|
41574
|
+
if (object.timezone != null)
|
|
41575
|
+
message.timezone = String(object.timezone);
|
|
42542
41576
|
return message;
|
|
42543
41577
|
};
|
|
42544
41578
|
|
|
@@ -42588,6 +41622,7 @@ $root.QueueOrderRefundEmailRequest = (function() {
|
|
|
42588
41622
|
object.orderFeesRefunded = "";
|
|
42589
41623
|
object.orderTotalRefunded = "";
|
|
42590
41624
|
object.refundReason = "";
|
|
41625
|
+
object.timezone = "";
|
|
42591
41626
|
}
|
|
42592
41627
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
42593
41628
|
object.spanContext = message.spanContext;
|
|
@@ -42658,6 +41693,8 @@ $root.QueueOrderRefundEmailRequest = (function() {
|
|
|
42658
41693
|
for (var j = 0; j < message.dayIdsTimeCalendar.length; ++j)
|
|
42659
41694
|
object.dayIdsTimeCalendar[j] = $root.dayIdsTimeObj.toObject(message.dayIdsTimeCalendar[j], options);
|
|
42660
41695
|
}
|
|
41696
|
+
if (message.timezone != null && message.hasOwnProperty("timezone"))
|
|
41697
|
+
object.timezone = message.timezone;
|
|
42661
41698
|
return object;
|
|
42662
41699
|
};
|
|
42663
41700
|
|
|
@@ -42711,6 +41748,7 @@ $root.QueueOrderCanceledEmailRequest = (function() {
|
|
|
42711
41748
|
* @property {string|null} [refundReason] QueueOrderCanceledEmailRequest refundReason
|
|
42712
41749
|
* @property {Array.<IdayIdsTimeObj>|null} [dayIdsTime] QueueOrderCanceledEmailRequest dayIdsTime
|
|
42713
41750
|
* @property {Array.<IdayIdsTimeObj>|null} [dayIdsTimeCalendar] QueueOrderCanceledEmailRequest dayIdsTimeCalendar
|
|
41751
|
+
* @property {string|null} [timezone] QueueOrderCanceledEmailRequest timezone
|
|
42714
41752
|
*/
|
|
42715
41753
|
|
|
42716
41754
|
/**
|
|
@@ -42971,6 +42009,14 @@ $root.QueueOrderCanceledEmailRequest = (function() {
|
|
|
42971
42009
|
*/
|
|
42972
42010
|
QueueOrderCanceledEmailRequest.prototype.dayIdsTimeCalendar = $util.emptyArray;
|
|
42973
42011
|
|
|
42012
|
+
/**
|
|
42013
|
+
* QueueOrderCanceledEmailRequest timezone.
|
|
42014
|
+
* @member {string} timezone
|
|
42015
|
+
* @memberof QueueOrderCanceledEmailRequest
|
|
42016
|
+
* @instance
|
|
42017
|
+
*/
|
|
42018
|
+
QueueOrderCanceledEmailRequest.prototype.timezone = "";
|
|
42019
|
+
|
|
42974
42020
|
/**
|
|
42975
42021
|
* Creates a new QueueOrderCanceledEmailRequest instance using the specified properties.
|
|
42976
42022
|
* @function create
|
|
@@ -43058,6 +42104,8 @@ $root.QueueOrderCanceledEmailRequest = (function() {
|
|
|
43058
42104
|
if (message.dayIdsTimeCalendar != null && message.dayIdsTimeCalendar.length)
|
|
43059
42105
|
for (var i = 0; i < message.dayIdsTimeCalendar.length; ++i)
|
|
43060
42106
|
$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);
|
|
43061
42109
|
return writer;
|
|
43062
42110
|
};
|
|
43063
42111
|
|
|
@@ -43188,6 +42236,9 @@ $root.QueueOrderCanceledEmailRequest = (function() {
|
|
|
43188
42236
|
message.dayIdsTimeCalendar = [];
|
|
43189
42237
|
message.dayIdsTimeCalendar.push($root.dayIdsTimeObj.decode(reader, reader.uint32()));
|
|
43190
42238
|
break;
|
|
42239
|
+
case 30:
|
|
42240
|
+
message.timezone = reader.string();
|
|
42241
|
+
break;
|
|
43191
42242
|
default:
|
|
43192
42243
|
reader.skipType(tag & 7);
|
|
43193
42244
|
break;
|
|
@@ -43331,6 +42382,9 @@ $root.QueueOrderCanceledEmailRequest = (function() {
|
|
|
43331
42382
|
return "dayIdsTimeCalendar." + error;
|
|
43332
42383
|
}
|
|
43333
42384
|
}
|
|
42385
|
+
if (message.timezone != null && message.hasOwnProperty("timezone"))
|
|
42386
|
+
if (!$util.isString(message.timezone))
|
|
42387
|
+
return "timezone: string expected";
|
|
43334
42388
|
return null;
|
|
43335
42389
|
};
|
|
43336
42390
|
|
|
@@ -43430,6 +42484,8 @@ $root.QueueOrderCanceledEmailRequest = (function() {
|
|
|
43430
42484
|
message.dayIdsTimeCalendar[i] = $root.dayIdsTimeObj.fromObject(object.dayIdsTimeCalendar[i]);
|
|
43431
42485
|
}
|
|
43432
42486
|
}
|
|
42487
|
+
if (object.timezone != null)
|
|
42488
|
+
message.timezone = String(object.timezone);
|
|
43433
42489
|
return message;
|
|
43434
42490
|
};
|
|
43435
42491
|
|
|
@@ -43479,6 +42535,7 @@ $root.QueueOrderCanceledEmailRequest = (function() {
|
|
|
43479
42535
|
object.orderFeesRefunded = "";
|
|
43480
42536
|
object.orderTotalRefunded = "";
|
|
43481
42537
|
object.refundReason = "";
|
|
42538
|
+
object.timezone = "";
|
|
43482
42539
|
}
|
|
43483
42540
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
43484
42541
|
object.spanContext = message.spanContext;
|
|
@@ -43549,6 +42606,8 @@ $root.QueueOrderCanceledEmailRequest = (function() {
|
|
|
43549
42606
|
for (var j = 0; j < message.dayIdsTimeCalendar.length; ++j)
|
|
43550
42607
|
object.dayIdsTimeCalendar[j] = $root.dayIdsTimeObj.toObject(message.dayIdsTimeCalendar[j], options);
|
|
43551
42608
|
}
|
|
42609
|
+
if (message.timezone != null && message.hasOwnProperty("timezone"))
|
|
42610
|
+
object.timezone = message.timezone;
|
|
43552
42611
|
return object;
|
|
43553
42612
|
};
|
|
43554
42613
|
|
|
@@ -45464,6 +44523,8 @@ $root.PublicEvent = (function() {
|
|
|
45464
44523
|
* @property {number|null} [endsAt] PublicEvent endsAt
|
|
45465
44524
|
* @property {string|null} [venue] PublicEvent venue
|
|
45466
44525
|
* @property {string|null} [status] PublicEvent status
|
|
44526
|
+
* @property {string|null} [venueTimezone] PublicEvent venueTimezone
|
|
44527
|
+
* @property {number|null} [announceAt] PublicEvent announceAt
|
|
45467
44528
|
*/
|
|
45468
44529
|
|
|
45469
44530
|
/**
|
|
@@ -45681,6 +44742,22 @@ $root.PublicEvent = (function() {
|
|
|
45681
44742
|
*/
|
|
45682
44743
|
PublicEvent.prototype.status = "";
|
|
45683
44744
|
|
|
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
|
+
|
|
45684
44761
|
/**
|
|
45685
44762
|
* Creates a new PublicEvent instance using the specified properties.
|
|
45686
44763
|
* @function create
|
|
@@ -45755,6 +44832,10 @@ $root.PublicEvent = (function() {
|
|
|
45755
44832
|
writer.uint32(/* id 24, wireType 2 =*/194).string(message.venue);
|
|
45756
44833
|
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
45757
44834
|
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);
|
|
45758
44839
|
return writer;
|
|
45759
44840
|
};
|
|
45760
44841
|
|
|
@@ -45864,6 +44945,12 @@ $root.PublicEvent = (function() {
|
|
|
45864
44945
|
case 25:
|
|
45865
44946
|
message.status = reader.string();
|
|
45866
44947
|
break;
|
|
44948
|
+
case 26:
|
|
44949
|
+
message.venueTimezone = reader.string();
|
|
44950
|
+
break;
|
|
44951
|
+
case 27:
|
|
44952
|
+
message.announceAt = reader.int32();
|
|
44953
|
+
break;
|
|
45867
44954
|
default:
|
|
45868
44955
|
reader.skipType(tag & 7);
|
|
45869
44956
|
break;
|
|
@@ -45976,6 +45063,12 @@ $root.PublicEvent = (function() {
|
|
|
45976
45063
|
if (message.status != null && message.hasOwnProperty("status"))
|
|
45977
45064
|
if (!$util.isString(message.status))
|
|
45978
45065
|
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";
|
|
45979
45072
|
return null;
|
|
45980
45073
|
};
|
|
45981
45074
|
|
|
@@ -46044,6 +45137,10 @@ $root.PublicEvent = (function() {
|
|
|
46044
45137
|
message.venue = String(object.venue);
|
|
46045
45138
|
if (object.status != null)
|
|
46046
45139
|
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;
|
|
46047
45144
|
return message;
|
|
46048
45145
|
};
|
|
46049
45146
|
|
|
@@ -46086,6 +45183,8 @@ $root.PublicEvent = (function() {
|
|
|
46086
45183
|
object.endsAt = 0;
|
|
46087
45184
|
object.venue = "";
|
|
46088
45185
|
object.status = "";
|
|
45186
|
+
object.venueTimezone = "";
|
|
45187
|
+
object.announceAt = 0;
|
|
46089
45188
|
}
|
|
46090
45189
|
if (message._id != null && message.hasOwnProperty("_id"))
|
|
46091
45190
|
object._id = message._id;
|
|
@@ -46137,6 +45236,10 @@ $root.PublicEvent = (function() {
|
|
|
46137
45236
|
object.venue = message.venue;
|
|
46138
45237
|
if (message.status != null && message.hasOwnProperty("status"))
|
|
46139
45238
|
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;
|
|
46140
45243
|
return object;
|
|
46141
45244
|
};
|
|
46142
45245
|
|
|
@@ -53735,6 +52838,7 @@ $root.QueryEventsListRequest = (function() {
|
|
|
53735
52838
|
* @exports IQueryEventsListRequest
|
|
53736
52839
|
* @interface IQueryEventsListRequest
|
|
53737
52840
|
* @property {string|null} [spanContext] QueryEventsListRequest spanContext
|
|
52841
|
+
* @property {string|null} [orgId] QueryEventsListRequest orgId
|
|
53738
52842
|
*/
|
|
53739
52843
|
|
|
53740
52844
|
/**
|
|
@@ -53760,6 +52864,14 @@ $root.QueryEventsListRequest = (function() {
|
|
|
53760
52864
|
*/
|
|
53761
52865
|
QueryEventsListRequest.prototype.spanContext = "";
|
|
53762
52866
|
|
|
52867
|
+
/**
|
|
52868
|
+
* QueryEventsListRequest orgId.
|
|
52869
|
+
* @member {string} orgId
|
|
52870
|
+
* @memberof QueryEventsListRequest
|
|
52871
|
+
* @instance
|
|
52872
|
+
*/
|
|
52873
|
+
QueryEventsListRequest.prototype.orgId = "";
|
|
52874
|
+
|
|
53763
52875
|
/**
|
|
53764
52876
|
* Creates a new QueryEventsListRequest instance using the specified properties.
|
|
53765
52877
|
* @function create
|
|
@@ -53786,6 +52898,8 @@ $root.QueryEventsListRequest = (function() {
|
|
|
53786
52898
|
writer = $Writer.create();
|
|
53787
52899
|
if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
|
|
53788
52900
|
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);
|
|
53789
52903
|
return writer;
|
|
53790
52904
|
};
|
|
53791
52905
|
|
|
@@ -53823,6 +52937,9 @@ $root.QueryEventsListRequest = (function() {
|
|
|
53823
52937
|
case 0:
|
|
53824
52938
|
message.spanContext = reader.string();
|
|
53825
52939
|
break;
|
|
52940
|
+
case 1:
|
|
52941
|
+
message.orgId = reader.string();
|
|
52942
|
+
break;
|
|
53826
52943
|
default:
|
|
53827
52944
|
reader.skipType(tag & 7);
|
|
53828
52945
|
break;
|
|
@@ -53861,6 +52978,9 @@ $root.QueryEventsListRequest = (function() {
|
|
|
53861
52978
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
53862
52979
|
if (!$util.isString(message.spanContext))
|
|
53863
52980
|
return "spanContext: string expected";
|
|
52981
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
52982
|
+
if (!$util.isString(message.orgId))
|
|
52983
|
+
return "orgId: string expected";
|
|
53864
52984
|
return null;
|
|
53865
52985
|
};
|
|
53866
52986
|
|
|
@@ -53878,6 +52998,8 @@ $root.QueryEventsListRequest = (function() {
|
|
|
53878
52998
|
var message = new $root.QueryEventsListRequest();
|
|
53879
52999
|
if (object.spanContext != null)
|
|
53880
53000
|
message.spanContext = String(object.spanContext);
|
|
53001
|
+
if (object.orgId != null)
|
|
53002
|
+
message.orgId = String(object.orgId);
|
|
53881
53003
|
return message;
|
|
53882
53004
|
};
|
|
53883
53005
|
|
|
@@ -53894,10 +53016,14 @@ $root.QueryEventsListRequest = (function() {
|
|
|
53894
53016
|
if (!options)
|
|
53895
53017
|
options = {};
|
|
53896
53018
|
var object = {};
|
|
53897
|
-
if (options.defaults)
|
|
53019
|
+
if (options.defaults) {
|
|
53898
53020
|
object.spanContext = "";
|
|
53021
|
+
object.orgId = "";
|
|
53022
|
+
}
|
|
53899
53023
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
53900
53024
|
object.spanContext = message.spanContext;
|
|
53025
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
53026
|
+
object.orgId = message.orgId;
|
|
53901
53027
|
return object;
|
|
53902
53028
|
};
|
|
53903
53029
|
|
|
@@ -68622,7 +67748,6 @@ $root.Fee = (function() {
|
|
|
68622
67748
|
* @property {number|null} [updatedAt] Fee updatedAt
|
|
68623
67749
|
* @property {boolean|null} [disabled] Fee disabled
|
|
68624
67750
|
* @property {string|null} [seasonId] Fee seasonId
|
|
68625
|
-
* @property {string|null} [amount] Fee amount
|
|
68626
67751
|
*/
|
|
68627
67752
|
|
|
68628
67753
|
/**
|
|
@@ -68777,14 +67902,6 @@ $root.Fee = (function() {
|
|
|
68777
67902
|
*/
|
|
68778
67903
|
Fee.prototype.seasonId = "";
|
|
68779
67904
|
|
|
68780
|
-
/**
|
|
68781
|
-
* Fee amount.
|
|
68782
|
-
* @member {string} amount
|
|
68783
|
-
* @memberof Fee
|
|
68784
|
-
* @instance
|
|
68785
|
-
*/
|
|
68786
|
-
Fee.prototype.amount = "";
|
|
68787
|
-
|
|
68788
67905
|
/**
|
|
68789
67906
|
* Creates a new Fee instance using the specified properties.
|
|
68790
67907
|
* @function create
|
|
@@ -68844,8 +67961,6 @@ $root.Fee = (function() {
|
|
|
68844
67961
|
writer.uint32(/* id 15, wireType 0 =*/120).bool(message.disabled);
|
|
68845
67962
|
if (message.seasonId != null && Object.hasOwnProperty.call(message, "seasonId"))
|
|
68846
67963
|
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);
|
|
68849
67964
|
return writer;
|
|
68850
67965
|
};
|
|
68851
67966
|
|
|
@@ -68933,9 +68048,6 @@ $root.Fee = (function() {
|
|
|
68933
68048
|
case 16:
|
|
68934
68049
|
message.seasonId = reader.string();
|
|
68935
68050
|
break;
|
|
68936
|
-
case 17:
|
|
68937
|
-
message.amount = reader.string();
|
|
68938
|
-
break;
|
|
68939
68051
|
default:
|
|
68940
68052
|
reader.skipType(tag & 7);
|
|
68941
68053
|
break;
|
|
@@ -69026,9 +68138,6 @@ $root.Fee = (function() {
|
|
|
69026
68138
|
if (message.seasonId != null && message.hasOwnProperty("seasonId"))
|
|
69027
68139
|
if (!$util.isString(message.seasonId))
|
|
69028
68140
|
return "seasonId: string expected";
|
|
69029
|
-
if (message.amount != null && message.hasOwnProperty("amount"))
|
|
69030
|
-
if (!$util.isString(message.amount))
|
|
69031
|
-
return "amount: string expected";
|
|
69032
68141
|
return null;
|
|
69033
68142
|
};
|
|
69034
68143
|
|
|
@@ -69083,8 +68192,6 @@ $root.Fee = (function() {
|
|
|
69083
68192
|
message.disabled = Boolean(object.disabled);
|
|
69084
68193
|
if (object.seasonId != null)
|
|
69085
68194
|
message.seasonId = String(object.seasonId);
|
|
69086
|
-
if (object.amount != null)
|
|
69087
|
-
message.amount = String(object.amount);
|
|
69088
68195
|
return message;
|
|
69089
68196
|
};
|
|
69090
68197
|
|
|
@@ -69120,7 +68227,6 @@ $root.Fee = (function() {
|
|
|
69120
68227
|
object.updatedAt = 0;
|
|
69121
68228
|
object.disabled = false;
|
|
69122
68229
|
object.seasonId = "";
|
|
69123
|
-
object.amount = "";
|
|
69124
68230
|
}
|
|
69125
68231
|
if (message._id != null && message.hasOwnProperty("_id"))
|
|
69126
68232
|
object._id = message._id;
|
|
@@ -69159,8 +68265,6 @@ $root.Fee = (function() {
|
|
|
69159
68265
|
object.disabled = message.disabled;
|
|
69160
68266
|
if (message.seasonId != null && message.hasOwnProperty("seasonId"))
|
|
69161
68267
|
object.seasonId = message.seasonId;
|
|
69162
|
-
if (message.amount != null && message.hasOwnProperty("amount"))
|
|
69163
|
-
object.amount = message.amount;
|
|
69164
68268
|
return object;
|
|
69165
68269
|
};
|
|
69166
68270
|
|