@sellout/models 0.0.301 → 0.0.303
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/enums/PaymentMethodTypeEnum.d.ts +1 -1
- package/.dist/enums/PaymentMethodTypeEnum.js +1 -1
- package/.dist/enums/PaymentMethodTypeEnum.js.map +1 -1
- package/.dist/interfaces/IOrderIntegration.d.ts +5 -0
- package/.dist/interfaces/IOrderIntegration.js +3 -0
- package/.dist/interfaces/IOrderIntegration.js.map +1 -0
- package/.dist/interfaces/IOrganization.d.ts +2 -0
- package/.dist/interfaces/IOrganization.js.map +1 -1
- package/.dist/schemas/Organization.d.ts +15 -0
- package/.dist/schemas/Organization.js +16 -1
- package/.dist/schemas/Organization.js.map +1 -1
- package/.dist/sellout-proto.js +259 -0
- package/package.json +3 -3
- package/src/enums/PaymentMethodTypeEnum.ts +1 -1
- package/src/interfaces/IOrderIntegration.ts +5 -0
- package/src/interfaces/IOrganization.ts +2 -1
- package/src/proto/organization.proto +7 -1
- package/src/schemas/Organization.ts +16 -2
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PaymentMethodTypeEnum = void 0;
|
|
4
4
|
var PaymentMethodTypeEnum;
|
|
5
5
|
(function (PaymentMethodTypeEnum) {
|
|
6
|
-
PaymentMethodTypeEnum["CardEntry"] = "
|
|
6
|
+
PaymentMethodTypeEnum["CardEntry"] = "Card Entry";
|
|
7
7
|
PaymentMethodTypeEnum["CardReader"] = "Card Reader";
|
|
8
8
|
PaymentMethodTypeEnum["Cash"] = "Cash";
|
|
9
9
|
PaymentMethodTypeEnum["None"] = "None";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentMethodTypeEnum.js","sourceRoot":"","sources":["../../src/enums/PaymentMethodTypeEnum.ts"],"names":[],"mappings":";;;AAAA,IAAY,qBAMX;AAND,WAAY,qBAAqB;IAC/B,
|
|
1
|
+
{"version":3,"file":"PaymentMethodTypeEnum.js","sourceRoot":"","sources":["../../src/enums/PaymentMethodTypeEnum.ts"],"names":[],"mappings":";;;AAAA,IAAY,qBAMX;AAND,WAAY,qBAAqB;IAC/B,iDAAwB,CAAA;IACxB,mDAA0B,CAAA;IAC1B,sCAAa,CAAA;IACb,sCAAa,CAAA;IACb,wCAAe,CAAA;AACjB,CAAC,EANW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAMhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IOrderIntegration.js","sourceRoot":"","sources":["../../src/interfaces/IOrderIntegration.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import IAddress from "./IAddress";
|
|
2
|
+
import IOrderIntegration from "./IOrderIntegration";
|
|
2
3
|
export declare enum TicketFormatAsEnum {
|
|
3
4
|
Standard = "Standard",
|
|
4
5
|
RCSC = "RCSC"
|
|
@@ -27,4 +28,5 @@ export default interface IOrganization {
|
|
|
27
28
|
tegURL?: string;
|
|
28
29
|
ticketFormat?: string;
|
|
29
30
|
locationId?: string;
|
|
31
|
+
orderIntegration?: IOrderIntegration;
|
|
30
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IOrganization.js","sourceRoot":"","sources":["../../src/interfaces/IOrganization.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"IOrganization.js","sourceRoot":"","sources":["../../src/interfaces/IOrganization.ts"],"names":[],"mappings":";;;AAGA,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,2CAAqB,CAAA;IACrB,mCAAa,CAAA;AACf,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B"}
|
|
@@ -169,5 +169,20 @@ declare const _default: {
|
|
|
169
169
|
required: boolean;
|
|
170
170
|
default: boolean;
|
|
171
171
|
};
|
|
172
|
+
orderIntegration: {
|
|
173
|
+
apiURL: {
|
|
174
|
+
type: StringConstructor;
|
|
175
|
+
required: boolean;
|
|
176
|
+
default: boolean;
|
|
177
|
+
};
|
|
178
|
+
orderIntegrationMethod: {
|
|
179
|
+
type: StringConstructor;
|
|
180
|
+
required: boolean;
|
|
181
|
+
};
|
|
182
|
+
orderIntegrationAuthToken: {
|
|
183
|
+
type: StringConstructor;
|
|
184
|
+
required: boolean;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
172
187
|
};
|
|
173
188
|
export default _default;
|
|
@@ -6,6 +6,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const shortid_1 = __importDefault(require("shortid"));
|
|
7
7
|
const Address_1 = __importDefault(require("./Address"));
|
|
8
8
|
const IOrganization_1 = require("../interfaces/IOrganization");
|
|
9
|
+
const OrderIntegration = {
|
|
10
|
+
apiURL: {
|
|
11
|
+
type: String,
|
|
12
|
+
required: false,
|
|
13
|
+
default: false,
|
|
14
|
+
},
|
|
15
|
+
orderIntegrationMethod: {
|
|
16
|
+
type: String,
|
|
17
|
+
required: false,
|
|
18
|
+
},
|
|
19
|
+
orderIntegrationAuthToken: {
|
|
20
|
+
type: String,
|
|
21
|
+
required: false
|
|
22
|
+
}
|
|
23
|
+
};
|
|
9
24
|
exports.default = {
|
|
10
25
|
_id: {
|
|
11
26
|
type: String,
|
|
@@ -107,6 +122,6 @@ exports.default = {
|
|
|
107
122
|
type: String,
|
|
108
123
|
required: false,
|
|
109
124
|
default: false
|
|
110
|
-
}
|
|
125
|
+
}, orderIntegration: OrderIntegration
|
|
111
126
|
};
|
|
112
127
|
//# sourceMappingURL=Organization.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Organization.js","sourceRoot":"","sources":["../../src/schemas/Organization.ts"],"names":[],"mappings":";;;;;AAAA,sDAA8B;AAC9B,wDAAgC;AAChC,+DAAiE;
|
|
1
|
+
{"version":3,"file":"Organization.js","sourceRoot":"","sources":["../../src/schemas/Organization.ts"],"names":[],"mappings":";;;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
|
@@ -74700,6 +74700,7 @@ $root.Organization = (function() {
|
|
|
74700
74700
|
* @property {string|null} [ticketFormat] Organization ticketFormat
|
|
74701
74701
|
* @property {boolean|null} [validateMemberId] Organization validateMemberId
|
|
74702
74702
|
* @property {string|null} [locationId] Organization locationId
|
|
74703
|
+
* @property {IOrderIntegration|null} [orderIntegration] Organization orderIntegration
|
|
74703
74704
|
*/
|
|
74704
74705
|
|
|
74705
74706
|
/**
|
|
@@ -74902,6 +74903,14 @@ $root.Organization = (function() {
|
|
|
74902
74903
|
*/
|
|
74903
74904
|
Organization.prototype.locationId = "";
|
|
74904
74905
|
|
|
74906
|
+
/**
|
|
74907
|
+
* Organization orderIntegration.
|
|
74908
|
+
* @member {IOrderIntegration|null|undefined} orderIntegration
|
|
74909
|
+
* @memberof Organization
|
|
74910
|
+
* @instance
|
|
74911
|
+
*/
|
|
74912
|
+
Organization.prototype.orderIntegration = null;
|
|
74913
|
+
|
|
74905
74914
|
/**
|
|
74906
74915
|
* Creates a new Organization instance using the specified properties.
|
|
74907
74916
|
* @function create
|
|
@@ -74973,6 +74982,8 @@ $root.Organization = (function() {
|
|
|
74973
74982
|
writer.uint32(/* id 21, wireType 0 =*/168).bool(message.validateMemberId);
|
|
74974
74983
|
if (message.locationId != null && Object.hasOwnProperty.call(message, "locationId"))
|
|
74975
74984
|
writer.uint32(/* id 22, wireType 2 =*/178).string(message.locationId);
|
|
74985
|
+
if (message.orderIntegration != null && Object.hasOwnProperty.call(message, "orderIntegration"))
|
|
74986
|
+
$root.OrderIntegration.encode(message.orderIntegration, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
|
|
74976
74987
|
return writer;
|
|
74977
74988
|
};
|
|
74978
74989
|
|
|
@@ -75078,6 +75089,9 @@ $root.Organization = (function() {
|
|
|
75078
75089
|
case 22:
|
|
75079
75090
|
message.locationId = reader.string();
|
|
75080
75091
|
break;
|
|
75092
|
+
case 23:
|
|
75093
|
+
message.orderIntegration = $root.OrderIntegration.decode(reader, reader.uint32());
|
|
75094
|
+
break;
|
|
75081
75095
|
default:
|
|
75082
75096
|
reader.skipType(tag & 7);
|
|
75083
75097
|
break;
|
|
@@ -75188,6 +75202,11 @@ $root.Organization = (function() {
|
|
|
75188
75202
|
if (message.locationId != null && message.hasOwnProperty("locationId"))
|
|
75189
75203
|
if (!$util.isString(message.locationId))
|
|
75190
75204
|
return "locationId: string expected";
|
|
75205
|
+
if (message.orderIntegration != null && message.hasOwnProperty("orderIntegration")) {
|
|
75206
|
+
var error = $root.OrderIntegration.verify(message.orderIntegration);
|
|
75207
|
+
if (error)
|
|
75208
|
+
return "orderIntegration." + error;
|
|
75209
|
+
}
|
|
75191
75210
|
return null;
|
|
75192
75211
|
};
|
|
75193
75212
|
|
|
@@ -75257,6 +75276,11 @@ $root.Organization = (function() {
|
|
|
75257
75276
|
message.validateMemberId = Boolean(object.validateMemberId);
|
|
75258
75277
|
if (object.locationId != null)
|
|
75259
75278
|
message.locationId = String(object.locationId);
|
|
75279
|
+
if (object.orderIntegration != null) {
|
|
75280
|
+
if (typeof object.orderIntegration !== "object")
|
|
75281
|
+
throw TypeError(".Organization.orderIntegration: object expected");
|
|
75282
|
+
message.orderIntegration = $root.OrderIntegration.fromObject(object.orderIntegration);
|
|
75283
|
+
}
|
|
75260
75284
|
return message;
|
|
75261
75285
|
};
|
|
75262
75286
|
|
|
@@ -75298,6 +75322,7 @@ $root.Organization = (function() {
|
|
|
75298
75322
|
object.ticketFormat = "";
|
|
75299
75323
|
object.validateMemberId = false;
|
|
75300
75324
|
object.locationId = "";
|
|
75325
|
+
object.orderIntegration = null;
|
|
75301
75326
|
}
|
|
75302
75327
|
if (message._id != null && message.hasOwnProperty("_id"))
|
|
75303
75328
|
object._id = message._id;
|
|
@@ -75348,6 +75373,8 @@ $root.Organization = (function() {
|
|
|
75348
75373
|
object.validateMemberId = message.validateMemberId;
|
|
75349
75374
|
if (message.locationId != null && message.hasOwnProperty("locationId"))
|
|
75350
75375
|
object.locationId = message.locationId;
|
|
75376
|
+
if (message.orderIntegration != null && message.hasOwnProperty("orderIntegration"))
|
|
75377
|
+
object.orderIntegration = $root.OrderIntegration.toObject(message.orderIntegration, options);
|
|
75351
75378
|
return object;
|
|
75352
75379
|
};
|
|
75353
75380
|
|
|
@@ -75365,6 +75392,238 @@ $root.Organization = (function() {
|
|
|
75365
75392
|
return Organization;
|
|
75366
75393
|
})();
|
|
75367
75394
|
|
|
75395
|
+
$root.OrderIntegration = (function() {
|
|
75396
|
+
|
|
75397
|
+
/**
|
|
75398
|
+
* Properties of an OrderIntegration.
|
|
75399
|
+
* @exports IOrderIntegration
|
|
75400
|
+
* @interface IOrderIntegration
|
|
75401
|
+
* @property {string|null} [apiURL] OrderIntegration apiURL
|
|
75402
|
+
* @property {string|null} [orderIntegrationMethod] OrderIntegration orderIntegrationMethod
|
|
75403
|
+
* @property {string|null} [orderIntegrationAuthToken] OrderIntegration orderIntegrationAuthToken
|
|
75404
|
+
*/
|
|
75405
|
+
|
|
75406
|
+
/**
|
|
75407
|
+
* Constructs a new OrderIntegration.
|
|
75408
|
+
* @exports OrderIntegration
|
|
75409
|
+
* @classdesc Represents an OrderIntegration.
|
|
75410
|
+
* @implements IOrderIntegration
|
|
75411
|
+
* @constructor
|
|
75412
|
+
* @param {IOrderIntegration=} [properties] Properties to set
|
|
75413
|
+
*/
|
|
75414
|
+
function OrderIntegration(properties) {
|
|
75415
|
+
if (properties)
|
|
75416
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
75417
|
+
if (properties[keys[i]] != null)
|
|
75418
|
+
this[keys[i]] = properties[keys[i]];
|
|
75419
|
+
}
|
|
75420
|
+
|
|
75421
|
+
/**
|
|
75422
|
+
* OrderIntegration apiURL.
|
|
75423
|
+
* @member {string} apiURL
|
|
75424
|
+
* @memberof OrderIntegration
|
|
75425
|
+
* @instance
|
|
75426
|
+
*/
|
|
75427
|
+
OrderIntegration.prototype.apiURL = "";
|
|
75428
|
+
|
|
75429
|
+
/**
|
|
75430
|
+
* OrderIntegration orderIntegrationMethod.
|
|
75431
|
+
* @member {string} orderIntegrationMethod
|
|
75432
|
+
* @memberof OrderIntegration
|
|
75433
|
+
* @instance
|
|
75434
|
+
*/
|
|
75435
|
+
OrderIntegration.prototype.orderIntegrationMethod = "";
|
|
75436
|
+
|
|
75437
|
+
/**
|
|
75438
|
+
* OrderIntegration orderIntegrationAuthToken.
|
|
75439
|
+
* @member {string} orderIntegrationAuthToken
|
|
75440
|
+
* @memberof OrderIntegration
|
|
75441
|
+
* @instance
|
|
75442
|
+
*/
|
|
75443
|
+
OrderIntegration.prototype.orderIntegrationAuthToken = "";
|
|
75444
|
+
|
|
75445
|
+
/**
|
|
75446
|
+
* Creates a new OrderIntegration instance using the specified properties.
|
|
75447
|
+
* @function create
|
|
75448
|
+
* @memberof OrderIntegration
|
|
75449
|
+
* @static
|
|
75450
|
+
* @param {IOrderIntegration=} [properties] Properties to set
|
|
75451
|
+
* @returns {OrderIntegration} OrderIntegration instance
|
|
75452
|
+
*/
|
|
75453
|
+
OrderIntegration.create = function create(properties) {
|
|
75454
|
+
return new OrderIntegration(properties);
|
|
75455
|
+
};
|
|
75456
|
+
|
|
75457
|
+
/**
|
|
75458
|
+
* Encodes the specified OrderIntegration message. Does not implicitly {@link OrderIntegration.verify|verify} messages.
|
|
75459
|
+
* @function encode
|
|
75460
|
+
* @memberof OrderIntegration
|
|
75461
|
+
* @static
|
|
75462
|
+
* @param {IOrderIntegration} message OrderIntegration message or plain object to encode
|
|
75463
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
75464
|
+
* @returns {$protobuf.Writer} Writer
|
|
75465
|
+
*/
|
|
75466
|
+
OrderIntegration.encode = function encode(message, writer) {
|
|
75467
|
+
if (!writer)
|
|
75468
|
+
writer = $Writer.create();
|
|
75469
|
+
if (message.apiURL != null && Object.hasOwnProperty.call(message, "apiURL"))
|
|
75470
|
+
writer.uint32(/* id 0, wireType 2 =*/2).string(message.apiURL);
|
|
75471
|
+
if (message.orderIntegrationMethod != null && Object.hasOwnProperty.call(message, "orderIntegrationMethod"))
|
|
75472
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.orderIntegrationMethod);
|
|
75473
|
+
if (message.orderIntegrationAuthToken != null && Object.hasOwnProperty.call(message, "orderIntegrationAuthToken"))
|
|
75474
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.orderIntegrationAuthToken);
|
|
75475
|
+
return writer;
|
|
75476
|
+
};
|
|
75477
|
+
|
|
75478
|
+
/**
|
|
75479
|
+
* Encodes the specified OrderIntegration message, length delimited. Does not implicitly {@link OrderIntegration.verify|verify} messages.
|
|
75480
|
+
* @function encodeDelimited
|
|
75481
|
+
* @memberof OrderIntegration
|
|
75482
|
+
* @static
|
|
75483
|
+
* @param {IOrderIntegration} message OrderIntegration message or plain object to encode
|
|
75484
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
75485
|
+
* @returns {$protobuf.Writer} Writer
|
|
75486
|
+
*/
|
|
75487
|
+
OrderIntegration.encodeDelimited = function encodeDelimited(message, writer) {
|
|
75488
|
+
return this.encode(message, writer).ldelim();
|
|
75489
|
+
};
|
|
75490
|
+
|
|
75491
|
+
/**
|
|
75492
|
+
* Decodes an OrderIntegration message from the specified reader or buffer.
|
|
75493
|
+
* @function decode
|
|
75494
|
+
* @memberof OrderIntegration
|
|
75495
|
+
* @static
|
|
75496
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
75497
|
+
* @param {number} [length] Message length if known beforehand
|
|
75498
|
+
* @returns {OrderIntegration} OrderIntegration
|
|
75499
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
75500
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
75501
|
+
*/
|
|
75502
|
+
OrderIntegration.decode = function decode(reader, length) {
|
|
75503
|
+
if (!(reader instanceof $Reader))
|
|
75504
|
+
reader = $Reader.create(reader);
|
|
75505
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrderIntegration();
|
|
75506
|
+
while (reader.pos < end) {
|
|
75507
|
+
var tag = reader.uint32();
|
|
75508
|
+
switch (tag >>> 3) {
|
|
75509
|
+
case 0:
|
|
75510
|
+
message.apiURL = reader.string();
|
|
75511
|
+
break;
|
|
75512
|
+
case 1:
|
|
75513
|
+
message.orderIntegrationMethod = reader.string();
|
|
75514
|
+
break;
|
|
75515
|
+
case 2:
|
|
75516
|
+
message.orderIntegrationAuthToken = reader.string();
|
|
75517
|
+
break;
|
|
75518
|
+
default:
|
|
75519
|
+
reader.skipType(tag & 7);
|
|
75520
|
+
break;
|
|
75521
|
+
}
|
|
75522
|
+
}
|
|
75523
|
+
return message;
|
|
75524
|
+
};
|
|
75525
|
+
|
|
75526
|
+
/**
|
|
75527
|
+
* Decodes an OrderIntegration message from the specified reader or buffer, length delimited.
|
|
75528
|
+
* @function decodeDelimited
|
|
75529
|
+
* @memberof OrderIntegration
|
|
75530
|
+
* @static
|
|
75531
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
75532
|
+
* @returns {OrderIntegration} OrderIntegration
|
|
75533
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
75534
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
75535
|
+
*/
|
|
75536
|
+
OrderIntegration.decodeDelimited = function decodeDelimited(reader) {
|
|
75537
|
+
if (!(reader instanceof $Reader))
|
|
75538
|
+
reader = new $Reader(reader);
|
|
75539
|
+
return this.decode(reader, reader.uint32());
|
|
75540
|
+
};
|
|
75541
|
+
|
|
75542
|
+
/**
|
|
75543
|
+
* Verifies an OrderIntegration message.
|
|
75544
|
+
* @function verify
|
|
75545
|
+
* @memberof OrderIntegration
|
|
75546
|
+
* @static
|
|
75547
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
75548
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
75549
|
+
*/
|
|
75550
|
+
OrderIntegration.verify = function verify(message) {
|
|
75551
|
+
if (typeof message !== "object" || message === null)
|
|
75552
|
+
return "object expected";
|
|
75553
|
+
if (message.apiURL != null && message.hasOwnProperty("apiURL"))
|
|
75554
|
+
if (!$util.isString(message.apiURL))
|
|
75555
|
+
return "apiURL: string expected";
|
|
75556
|
+
if (message.orderIntegrationMethod != null && message.hasOwnProperty("orderIntegrationMethod"))
|
|
75557
|
+
if (!$util.isString(message.orderIntegrationMethod))
|
|
75558
|
+
return "orderIntegrationMethod: string expected";
|
|
75559
|
+
if (message.orderIntegrationAuthToken != null && message.hasOwnProperty("orderIntegrationAuthToken"))
|
|
75560
|
+
if (!$util.isString(message.orderIntegrationAuthToken))
|
|
75561
|
+
return "orderIntegrationAuthToken: string expected";
|
|
75562
|
+
return null;
|
|
75563
|
+
};
|
|
75564
|
+
|
|
75565
|
+
/**
|
|
75566
|
+
* Creates an OrderIntegration message from a plain object. Also converts values to their respective internal types.
|
|
75567
|
+
* @function fromObject
|
|
75568
|
+
* @memberof OrderIntegration
|
|
75569
|
+
* @static
|
|
75570
|
+
* @param {Object.<string,*>} object Plain object
|
|
75571
|
+
* @returns {OrderIntegration} OrderIntegration
|
|
75572
|
+
*/
|
|
75573
|
+
OrderIntegration.fromObject = function fromObject(object) {
|
|
75574
|
+
if (object instanceof $root.OrderIntegration)
|
|
75575
|
+
return object;
|
|
75576
|
+
var message = new $root.OrderIntegration();
|
|
75577
|
+
if (object.apiURL != null)
|
|
75578
|
+
message.apiURL = String(object.apiURL);
|
|
75579
|
+
if (object.orderIntegrationMethod != null)
|
|
75580
|
+
message.orderIntegrationMethod = String(object.orderIntegrationMethod);
|
|
75581
|
+
if (object.orderIntegrationAuthToken != null)
|
|
75582
|
+
message.orderIntegrationAuthToken = String(object.orderIntegrationAuthToken);
|
|
75583
|
+
return message;
|
|
75584
|
+
};
|
|
75585
|
+
|
|
75586
|
+
/**
|
|
75587
|
+
* Creates a plain object from an OrderIntegration message. Also converts values to other types if specified.
|
|
75588
|
+
* @function toObject
|
|
75589
|
+
* @memberof OrderIntegration
|
|
75590
|
+
* @static
|
|
75591
|
+
* @param {OrderIntegration} message OrderIntegration
|
|
75592
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
75593
|
+
* @returns {Object.<string,*>} Plain object
|
|
75594
|
+
*/
|
|
75595
|
+
OrderIntegration.toObject = function toObject(message, options) {
|
|
75596
|
+
if (!options)
|
|
75597
|
+
options = {};
|
|
75598
|
+
var object = {};
|
|
75599
|
+
if (options.defaults) {
|
|
75600
|
+
object.apiURL = "";
|
|
75601
|
+
object.orderIntegrationMethod = "";
|
|
75602
|
+
object.orderIntegrationAuthToken = "";
|
|
75603
|
+
}
|
|
75604
|
+
if (message.apiURL != null && message.hasOwnProperty("apiURL"))
|
|
75605
|
+
object.apiURL = message.apiURL;
|
|
75606
|
+
if (message.orderIntegrationMethod != null && message.hasOwnProperty("orderIntegrationMethod"))
|
|
75607
|
+
object.orderIntegrationMethod = message.orderIntegrationMethod;
|
|
75608
|
+
if (message.orderIntegrationAuthToken != null && message.hasOwnProperty("orderIntegrationAuthToken"))
|
|
75609
|
+
object.orderIntegrationAuthToken = message.orderIntegrationAuthToken;
|
|
75610
|
+
return object;
|
|
75611
|
+
};
|
|
75612
|
+
|
|
75613
|
+
/**
|
|
75614
|
+
* Converts this OrderIntegration to JSON.
|
|
75615
|
+
* @function toJSON
|
|
75616
|
+
* @memberof OrderIntegration
|
|
75617
|
+
* @instance
|
|
75618
|
+
* @returns {Object.<string,*>} JSON object
|
|
75619
|
+
*/
|
|
75620
|
+
OrderIntegration.prototype.toJSON = function toJSON() {
|
|
75621
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
75622
|
+
};
|
|
75623
|
+
|
|
75624
|
+
return OrderIntegration;
|
|
75625
|
+
})();
|
|
75626
|
+
|
|
75368
75627
|
$root.CreateOrganizationRequest = (function() {
|
|
75369
75628
|
|
|
75370
75629
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellout/models",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.303",
|
|
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.303",
|
|
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": "c71b91a1d20d4c64967decbf4075433f10a9dfe4"
|
|
36
36
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import IAddress from "./IAddress";
|
|
2
|
+
import IOrderIntegration from "./IOrderIntegration"
|
|
2
3
|
|
|
3
4
|
export enum TicketFormatAsEnum {
|
|
4
5
|
Standard = "Standard",
|
|
5
6
|
RCSC = "RCSC",
|
|
6
7
|
}
|
|
7
|
-
|
|
8
8
|
export default interface IOrganization {
|
|
9
9
|
_id?: string;
|
|
10
10
|
userId?: string;
|
|
@@ -29,4 +29,5 @@ export default interface IOrganization {
|
|
|
29
29
|
tegURL?: string;
|
|
30
30
|
ticketFormat?: string;
|
|
31
31
|
locationId?: string;
|
|
32
|
+
orderIntegration?: IOrderIntegration;
|
|
32
33
|
}
|
|
@@ -27,6 +27,13 @@ message Organization {
|
|
|
27
27
|
string ticketFormat = 20;
|
|
28
28
|
bool validateMemberId = 21;
|
|
29
29
|
string locationId = 22;
|
|
30
|
+
OrderIntegration orderIntegration = 23;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
message OrderIntegration {
|
|
34
|
+
string apiURL = 0;
|
|
35
|
+
string orderIntegrationMethod = 1;
|
|
36
|
+
string orderIntegrationAuthToken = 2;
|
|
30
37
|
}
|
|
31
38
|
|
|
32
39
|
// Create Organization
|
|
@@ -35,7 +42,6 @@ message CreateOrganizationRequest {
|
|
|
35
42
|
string userId = 1;
|
|
36
43
|
string orgName = 2;
|
|
37
44
|
}
|
|
38
|
-
|
|
39
45
|
message CreateOrganizationResponse {
|
|
40
46
|
StatusCode status = 0;
|
|
41
47
|
repeated Error errors = 1;
|
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
import shortid from 'shortid';
|
|
2
2
|
import Address from './Address';
|
|
3
3
|
import { TicketFormatAsEnum } from '../interfaces/IOrganization';
|
|
4
|
-
|
|
4
|
+
const OrderIntegration = {
|
|
5
|
+
apiURL: {
|
|
6
|
+
type: String,
|
|
7
|
+
required: false,
|
|
8
|
+
default: false,
|
|
9
|
+
},
|
|
10
|
+
orderIntegrationMethod: {
|
|
11
|
+
type: String,
|
|
12
|
+
required: false,
|
|
13
|
+
},
|
|
14
|
+
orderIntegrationAuthToken: {
|
|
15
|
+
type: String,
|
|
16
|
+
required: false
|
|
17
|
+
}
|
|
18
|
+
};
|
|
5
19
|
export default {
|
|
6
20
|
_id: {
|
|
7
21
|
type: String,
|
|
@@ -103,5 +117,5 @@ export default {
|
|
|
103
117
|
type: String,
|
|
104
118
|
required: false,
|
|
105
119
|
default: false
|
|
106
|
-
}
|
|
120
|
+
},orderIntegration: OrderIntegration
|
|
107
121
|
};
|