@sellout/models 0.0.282 → 0.0.284
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/sellout-proto.js +87 -0
- package/package.json +3 -3
- package/src/proto/email.proto +3 -0
package/.dist/sellout-proto.js
CHANGED
|
@@ -40704,6 +40704,9 @@ $root.QueueOrderReceiptEmailRequest = (function() {
|
|
|
40704
40704
|
* @property {string|null} [physicalDeliveryInstructions] QueueOrderReceiptEmailRequest physicalDeliveryInstructions
|
|
40705
40705
|
* @property {string|null} [promoterFee] QueueOrderReceiptEmailRequest promoterFee
|
|
40706
40706
|
* @property {string|null} [processingFee] QueueOrderReceiptEmailRequest processingFee
|
|
40707
|
+
* @property {string|null} [serviceFee] QueueOrderReceiptEmailRequest serviceFee
|
|
40708
|
+
* @property {Array.<IPromoterFeeObj>|null} [promoterFeeList] QueueOrderReceiptEmailRequest promoterFeeList
|
|
40709
|
+
* @property {string|null} [discount] QueueOrderReceiptEmailRequest discount
|
|
40707
40710
|
*/
|
|
40708
40711
|
|
|
40709
40712
|
/**
|
|
@@ -40719,6 +40722,7 @@ $root.QueueOrderReceiptEmailRequest = (function() {
|
|
|
40719
40722
|
this.dayIds = [];
|
|
40720
40723
|
this.dayIdsTime = [];
|
|
40721
40724
|
this.dayIdsTimeCalendar = [];
|
|
40725
|
+
this.promoterFeeList = [];
|
|
40722
40726
|
if (properties)
|
|
40723
40727
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
40724
40728
|
if (properties[keys[i]] != null)
|
|
@@ -41029,6 +41033,30 @@ $root.QueueOrderReceiptEmailRequest = (function() {
|
|
|
41029
41033
|
*/
|
|
41030
41034
|
QueueOrderReceiptEmailRequest.prototype.processingFee = "";
|
|
41031
41035
|
|
|
41036
|
+
/**
|
|
41037
|
+
* QueueOrderReceiptEmailRequest serviceFee.
|
|
41038
|
+
* @member {string} serviceFee
|
|
41039
|
+
* @memberof QueueOrderReceiptEmailRequest
|
|
41040
|
+
* @instance
|
|
41041
|
+
*/
|
|
41042
|
+
QueueOrderReceiptEmailRequest.prototype.serviceFee = "";
|
|
41043
|
+
|
|
41044
|
+
/**
|
|
41045
|
+
* QueueOrderReceiptEmailRequest promoterFeeList.
|
|
41046
|
+
* @member {Array.<IPromoterFeeObj>} promoterFeeList
|
|
41047
|
+
* @memberof QueueOrderReceiptEmailRequest
|
|
41048
|
+
* @instance
|
|
41049
|
+
*/
|
|
41050
|
+
QueueOrderReceiptEmailRequest.prototype.promoterFeeList = $util.emptyArray;
|
|
41051
|
+
|
|
41052
|
+
/**
|
|
41053
|
+
* QueueOrderReceiptEmailRequest discount.
|
|
41054
|
+
* @member {string} discount
|
|
41055
|
+
* @memberof QueueOrderReceiptEmailRequest
|
|
41056
|
+
* @instance
|
|
41057
|
+
*/
|
|
41058
|
+
QueueOrderReceiptEmailRequest.prototype.discount = "";
|
|
41059
|
+
|
|
41032
41060
|
/**
|
|
41033
41061
|
* Creates a new QueueOrderReceiptEmailRequest instance using the specified properties.
|
|
41034
41062
|
* @function create
|
|
@@ -41133,6 +41161,13 @@ $root.QueueOrderReceiptEmailRequest = (function() {
|
|
|
41133
41161
|
writer.uint32(/* id 37, wireType 2 =*/298).string(message.promoterFee);
|
|
41134
41162
|
if (message.processingFee != null && Object.hasOwnProperty.call(message, "processingFee"))
|
|
41135
41163
|
writer.uint32(/* id 38, wireType 2 =*/306).string(message.processingFee);
|
|
41164
|
+
if (message.serviceFee != null && Object.hasOwnProperty.call(message, "serviceFee"))
|
|
41165
|
+
writer.uint32(/* id 39, wireType 2 =*/314).string(message.serviceFee);
|
|
41166
|
+
if (message.promoterFeeList != null && message.promoterFeeList.length)
|
|
41167
|
+
for (var i = 0; i < message.promoterFeeList.length; ++i)
|
|
41168
|
+
$root.PromoterFeeObj.encode(message.promoterFeeList[i], writer.uint32(/* id 40, wireType 2 =*/322).fork()).ldelim();
|
|
41169
|
+
if (message.discount != null && Object.hasOwnProperty.call(message, "discount"))
|
|
41170
|
+
writer.uint32(/* id 41, wireType 2 =*/330).string(message.discount);
|
|
41136
41171
|
return writer;
|
|
41137
41172
|
};
|
|
41138
41173
|
|
|
@@ -41289,6 +41324,17 @@ $root.QueueOrderReceiptEmailRequest = (function() {
|
|
|
41289
41324
|
case 38:
|
|
41290
41325
|
message.processingFee = reader.string();
|
|
41291
41326
|
break;
|
|
41327
|
+
case 39:
|
|
41328
|
+
message.serviceFee = reader.string();
|
|
41329
|
+
break;
|
|
41330
|
+
case 40:
|
|
41331
|
+
if (!(message.promoterFeeList && message.promoterFeeList.length))
|
|
41332
|
+
message.promoterFeeList = [];
|
|
41333
|
+
message.promoterFeeList.push($root.PromoterFeeObj.decode(reader, reader.uint32()));
|
|
41334
|
+
break;
|
|
41335
|
+
case 41:
|
|
41336
|
+
message.discount = reader.string();
|
|
41337
|
+
break;
|
|
41292
41338
|
default:
|
|
41293
41339
|
reader.skipType(tag & 7);
|
|
41294
41340
|
break;
|
|
@@ -41460,6 +41506,21 @@ $root.QueueOrderReceiptEmailRequest = (function() {
|
|
|
41460
41506
|
if (message.processingFee != null && message.hasOwnProperty("processingFee"))
|
|
41461
41507
|
if (!$util.isString(message.processingFee))
|
|
41462
41508
|
return "processingFee: string expected";
|
|
41509
|
+
if (message.serviceFee != null && message.hasOwnProperty("serviceFee"))
|
|
41510
|
+
if (!$util.isString(message.serviceFee))
|
|
41511
|
+
return "serviceFee: string expected";
|
|
41512
|
+
if (message.promoterFeeList != null && message.hasOwnProperty("promoterFeeList")) {
|
|
41513
|
+
if (!Array.isArray(message.promoterFeeList))
|
|
41514
|
+
return "promoterFeeList: array expected";
|
|
41515
|
+
for (var i = 0; i < message.promoterFeeList.length; ++i) {
|
|
41516
|
+
var error = $root.PromoterFeeObj.verify(message.promoterFeeList[i]);
|
|
41517
|
+
if (error)
|
|
41518
|
+
return "promoterFeeList." + error;
|
|
41519
|
+
}
|
|
41520
|
+
}
|
|
41521
|
+
if (message.discount != null && message.hasOwnProperty("discount"))
|
|
41522
|
+
if (!$util.isString(message.discount))
|
|
41523
|
+
return "discount: string expected";
|
|
41463
41524
|
return null;
|
|
41464
41525
|
};
|
|
41465
41526
|
|
|
@@ -41580,6 +41641,20 @@ $root.QueueOrderReceiptEmailRequest = (function() {
|
|
|
41580
41641
|
message.promoterFee = String(object.promoterFee);
|
|
41581
41642
|
if (object.processingFee != null)
|
|
41582
41643
|
message.processingFee = String(object.processingFee);
|
|
41644
|
+
if (object.serviceFee != null)
|
|
41645
|
+
message.serviceFee = String(object.serviceFee);
|
|
41646
|
+
if (object.promoterFeeList) {
|
|
41647
|
+
if (!Array.isArray(object.promoterFeeList))
|
|
41648
|
+
throw TypeError(".QueueOrderReceiptEmailRequest.promoterFeeList: array expected");
|
|
41649
|
+
message.promoterFeeList = [];
|
|
41650
|
+
for (var i = 0; i < object.promoterFeeList.length; ++i) {
|
|
41651
|
+
if (typeof object.promoterFeeList[i] !== "object")
|
|
41652
|
+
throw TypeError(".QueueOrderReceiptEmailRequest.promoterFeeList: object expected");
|
|
41653
|
+
message.promoterFeeList[i] = $root.PromoterFeeObj.fromObject(object.promoterFeeList[i]);
|
|
41654
|
+
}
|
|
41655
|
+
}
|
|
41656
|
+
if (object.discount != null)
|
|
41657
|
+
message.discount = String(object.discount);
|
|
41583
41658
|
return message;
|
|
41584
41659
|
};
|
|
41585
41660
|
|
|
@@ -41601,6 +41676,7 @@ $root.QueueOrderReceiptEmailRequest = (function() {
|
|
|
41601
41676
|
object.dayIds = [];
|
|
41602
41677
|
object.dayIdsTime = [];
|
|
41603
41678
|
object.dayIdsTimeCalendar = [];
|
|
41679
|
+
object.promoterFeeList = [];
|
|
41604
41680
|
}
|
|
41605
41681
|
if (options.defaults) {
|
|
41606
41682
|
object.spanContext = "";
|
|
@@ -41637,6 +41713,8 @@ $root.QueueOrderReceiptEmailRequest = (function() {
|
|
|
41637
41713
|
object.physicalDeliveryInstructions = "";
|
|
41638
41714
|
object.promoterFee = "";
|
|
41639
41715
|
object.processingFee = "";
|
|
41716
|
+
object.serviceFee = "";
|
|
41717
|
+
object.discount = "";
|
|
41640
41718
|
}
|
|
41641
41719
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
41642
41720
|
object.spanContext = message.spanContext;
|
|
@@ -41726,6 +41804,15 @@ $root.QueueOrderReceiptEmailRequest = (function() {
|
|
|
41726
41804
|
object.promoterFee = message.promoterFee;
|
|
41727
41805
|
if (message.processingFee != null && message.hasOwnProperty("processingFee"))
|
|
41728
41806
|
object.processingFee = message.processingFee;
|
|
41807
|
+
if (message.serviceFee != null && message.hasOwnProperty("serviceFee"))
|
|
41808
|
+
object.serviceFee = message.serviceFee;
|
|
41809
|
+
if (message.promoterFeeList && message.promoterFeeList.length) {
|
|
41810
|
+
object.promoterFeeList = [];
|
|
41811
|
+
for (var j = 0; j < message.promoterFeeList.length; ++j)
|
|
41812
|
+
object.promoterFeeList[j] = $root.PromoterFeeObj.toObject(message.promoterFeeList[j], options);
|
|
41813
|
+
}
|
|
41814
|
+
if (message.discount != null && message.hasOwnProperty("discount"))
|
|
41815
|
+
object.discount = message.discount;
|
|
41729
41816
|
return object;
|
|
41730
41817
|
};
|
|
41731
41818
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellout/models",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.284",
|
|
4
4
|
"description": "Sellout.io models",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@apollo/client": "^3.9.6",
|
|
20
20
|
"@hapi/joi": "^17.1.1",
|
|
21
|
-
"@sellout/utils": "^0.0.
|
|
21
|
+
"@sellout/utils": "^0.0.284",
|
|
22
22
|
"@types/hapi__joi": "^16.0.1",
|
|
23
23
|
"@types/shortid": "^0.0.29",
|
|
24
24
|
"@types/zen-observable": "^0.8.7",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"protobufjs": "^6.11.2",
|
|
33
33
|
"typescript": "^4.9.5"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "6bb05c85a5cf21b42d8c6ca8a6179f7e5cfa29cf"
|
|
36
36
|
}
|
package/src/proto/email.proto
CHANGED
|
@@ -134,6 +134,9 @@ message QueueOrderReceiptEmailRequest {
|
|
|
134
134
|
string physicalDeliveryInstructions = 36;
|
|
135
135
|
string promoterFee = 37;
|
|
136
136
|
string processingFee = 38;
|
|
137
|
+
string serviceFee = 39;
|
|
138
|
+
repeated PromoterFeeObj promoterFeeList = 40;
|
|
139
|
+
string discount = 41;
|
|
137
140
|
}
|
|
138
141
|
|
|
139
142
|
message QueueOrderQRCodeEmailRequest {
|