@sellout/models 0.0.74 → 0.0.76
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/PaymentMethodEnum.d.ts +5 -0
- package/.dist/enums/PaymentMethodEnum.js +10 -0
- package/.dist/enums/PaymentMethodEnum.js.map +1 -0
- package/.dist/graphql/mutations/{setUserOrgContextId.js → createStripeSetupIntent.js} +3 -5
- package/.dist/graphql/mutations/createStripeSetupIntent.js.map +1 -0
- package/.dist/graphql/mutations/listStripeTerminalReaders.mutation.js +21 -0
- package/.dist/graphql/mutations/listStripeTerminalReaders.mutation.js.map +1 -0
- package/.dist/graphql/mutations/listStripeTerminalReaders.query.d.ts +2 -0
- package/.dist/graphql/mutations/listStripeTerminalReaders.query.js +21 -0
- package/.dist/graphql/mutations/listStripeTerminalReaders.query.js.map +1 -0
- package/.dist/graphql/mutations/registerStripeTermainlReader.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/registerStripeTermainlReader.mutation.js +13 -0
- package/.dist/graphql/mutations/registerStripeTermainlReader.mutation.js.map +1 -0
- package/.dist/graphql/mutations/registerStripeTerminalReader.d.ts +2 -0
- package/.dist/graphql/mutations/{resetPasswordInApp.mutation.js → registerStripeTerminalReader.js} +3 -3
- package/.dist/graphql/mutations/registerStripeTerminalReader.js.map +1 -0
- package/.dist/graphql/mutations/verifyPhoneAuthentication.mutation.js +15 -0
- package/.dist/graphql/mutations/verifyPhoneAuthentication.mutation.js.map +1 -0
- package/.dist/graphql/mutations/verifyUserPhoneAuthentication.js +15 -0
- package/.dist/graphql/mutations/verifyUserPhoneAuthentication.js.map +1 -0
- package/.dist/graphql/queries/metrics.query.js +29 -0
- package/.dist/graphql/queries/metrics.query.js.map +1 -0
- package/.dist/graphql/queries/metricsData.query.d.ts +2 -0
- package/.dist/graphql/queries/metricsData.query.js +29 -0
- package/.dist/graphql/queries/metricsData.query.js.map +1 -0
- package/.dist/interfaces/IEventUpgrade.d.ts +1 -0
- package/.dist/interfaces/IMetricData.d.ts +57 -0
- package/.dist/interfaces/IMetricData.js +70 -0
- package/.dist/interfaces/IMetricData.js.map +1 -0
- package/.dist/interfaces/IStripe.d.ts +9 -0
- package/.dist/interfaces/{ISecondaryEmail.js → IStripe.js} +1 -1
- package/.dist/interfaces/IStripe.js.map +1 -0
- package/.dist/interfaces/IStripeSource.d.ts +1 -1
- package/.dist/interfaces/ITicketType.d.ts +1 -0
- package/.dist/utils/MetricsUtil.d.ts +7 -0
- package/.dist/utils/MetricsUtil.js +29 -0
- package/.dist/utils/MetricsUtil.js.map +1 -0
- package/.dist/utils/PaymentUtil.d.ts +10 -3
- package/.dist/utils/PaymentUtil.js +54 -3
- package/.dist/utils/PaymentUtil.js.map +1 -1
- package/.dist/utils/fee-util-broken-but-why.d.ts +8 -0
- package/.dist/utils/fee-util-broken-but-why.js +38 -0
- package/.dist/utils/fee-util-broken-but-why.js.map +1 -0
- package/package.json +4 -4
- package/src/interfaces/IEventUpgrade.ts +1 -0
- package/src/interfaces/ITicketType.ts +1 -0
- package/src/utils/PaymentUtil.ts +73 -3
- package/.dist/graphql/mutations/resetPasswordInApp.mutation.js.map +0 -1
- package/.dist/graphql/mutations/setUserOrgContextId.js.map +0 -1
- package/.dist/graphql/queries/customerProfile.js +0 -42
- package/.dist/graphql/queries/customerProfile.js.map +0 -1
- package/.dist/graphql/queries/organization.query.js +0 -49
- package/.dist/graphql/queries/organization.query.js.map +0 -1
- package/.dist/graphql/queries/organizations.js +0 -49
- package/.dist/graphql/queries/organizations.js.map +0 -1
- package/.dist/interfaces/ISecondaryEmail.d.ts +0 -4
- package/.dist/interfaces/ISecondaryEmail.js.map +0 -1
- package/.dist/schemas/SecondaryEmail.d.ts +0 -12
- package/.dist/schemas/SecondaryEmail.js +0 -14
- package/.dist/schemas/SecondaryEmail.js.map +0 -1
- /package/.dist/graphql/mutations/{resetPasswordInApp.mutation.d.ts → createStripeSetupIntent.d.ts} +0 -0
- /package/.dist/graphql/mutations/{setUserOrgContextId.d.ts → listStripeTerminalReaders.mutation.d.ts} +0 -0
- /package/.dist/graphql/{queries/customerProfile.d.ts → mutations/verifyPhoneAuthentication.mutation.d.ts} +0 -0
- /package/.dist/graphql/{queries/organization.query.d.ts → mutations/verifyUserPhoneAuthentication.d.ts} +0 -0
- /package/.dist/graphql/queries/{organizations.d.ts → metrics.query.d.ts} +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaymentMethodEnum = void 0;
|
|
4
|
+
var PaymentMethodEnum;
|
|
5
|
+
(function (PaymentMethodEnum) {
|
|
6
|
+
PaymentMethodEnum["CardEntry"] = "Card Entry";
|
|
7
|
+
PaymentMethodEnum["CardReader"] = "Card Reader";
|
|
8
|
+
PaymentMethodEnum["Cash"] = "Cash";
|
|
9
|
+
})(PaymentMethodEnum = exports.PaymentMethodEnum || (exports.PaymentMethodEnum = {}));
|
|
10
|
+
//# sourceMappingURL=PaymentMethodEnum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaymentMethodEnum.js","sourceRoot":"","sources":["../../src/enums/PaymentMethodEnum.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,6CAAwB,CAAA;IACxB,+CAA0B,CAAA;IAC1B,kCAAa,CAAA;AACf,CAAC,EAJW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAI5B"}
|
|
@@ -5,11 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
7
7
|
const mutation = graphql_tag_1.default `
|
|
8
|
-
mutation
|
|
9
|
-
|
|
10
|
-
token
|
|
11
|
-
}
|
|
8
|
+
mutation createStripeSetupIntent {
|
|
9
|
+
createStripeSetupIntent
|
|
12
10
|
}
|
|
13
11
|
`;
|
|
14
12
|
exports.default = mutation;
|
|
15
|
-
//# sourceMappingURL=
|
|
13
|
+
//# sourceMappingURL=createStripeSetupIntent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createStripeSetupIntent.js","sourceRoot":"","sources":["../../../src/graphql/mutations/createStripeSetupIntent.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,QAAQ,GAAG,qBAAG,CAAA;;;;CAInB,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
7
|
+
const mutation = graphql_tag_1.default `
|
|
8
|
+
mutation listStripeTerminalReaders {
|
|
9
|
+
listStripeTerminalReaders {
|
|
10
|
+
id
|
|
11
|
+
label
|
|
12
|
+
type
|
|
13
|
+
location
|
|
14
|
+
serialNumber
|
|
15
|
+
status
|
|
16
|
+
ipAddress
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
`;
|
|
20
|
+
exports.default = mutation;
|
|
21
|
+
//# sourceMappingURL=listStripeTerminalReaders.mutation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listStripeTerminalReaders.mutation.js","sourceRoot":"","sources":["../../../src/graphql/mutations/listStripeTerminalReaders.mutation.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,QAAQ,GAAG,qBAAG,CAAA;;;;;;;;;;;;CAYnB,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
7
|
+
const mutation = graphql_tag_1.default `
|
|
8
|
+
mutation listStripeTerminalReaders {
|
|
9
|
+
listStripeTerminalReaders {
|
|
10
|
+
id
|
|
11
|
+
label
|
|
12
|
+
type
|
|
13
|
+
location
|
|
14
|
+
serialNumber
|
|
15
|
+
status
|
|
16
|
+
ipAddress
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
`;
|
|
20
|
+
exports.default = mutation;
|
|
21
|
+
//# sourceMappingURL=listStripeTerminalReaders.query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listStripeTerminalReaders.query.js","sourceRoot":"","sources":["../../../src/graphql/mutations/listStripeTerminalReaders.query.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,QAAQ,GAAG,qBAAG,CAAA;;;;;;;;;;;;CAYnB,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
7
|
+
const mutation = graphql_tag_1.default `
|
|
8
|
+
mutation registerStripeTerminalReader(label: String, registrationCode: String) {
|
|
9
|
+
registerStripeTerminalReader(label: $label, registrationCode: $registrationCode)
|
|
10
|
+
}
|
|
11
|
+
`;
|
|
12
|
+
exports.default = mutation;
|
|
13
|
+
//# sourceMappingURL=registerStripeTermainlReader.mutation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registerStripeTermainlReader.mutation.js","sourceRoot":"","sources":["../../../src/graphql/mutations/registerStripeTermainlReader.mutation.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,QAAQ,GAAG,qBAAG,CAAA;;;;CAInB,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
package/.dist/graphql/mutations/{resetPasswordInApp.mutation.js → registerStripeTerminalReader.js}
RENAMED
|
@@ -5,9 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
7
7
|
const mutation = graphql_tag_1.default `
|
|
8
|
-
mutation
|
|
9
|
-
|
|
8
|
+
mutation registerStripeTerminalReader(label: String, registrationCode: String) {
|
|
9
|
+
registerStripeTerminalReader(label: $label, registrationCode: $registrationCode)
|
|
10
10
|
}
|
|
11
11
|
`;
|
|
12
12
|
exports.default = mutation;
|
|
13
|
-
//# sourceMappingURL=
|
|
13
|
+
//# sourceMappingURL=registerStripeTerminalReader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registerStripeTerminalReader.js","sourceRoot":"","sources":["../../../src/graphql/mutations/registerStripeTerminalReader.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,QAAQ,GAAG,qBAAG,CAAA;;;;CAInB,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
7
|
+
const query = graphql_tag_1.default `
|
|
8
|
+
mutation verifyUserPhoneAuthentication($email: String, $phoneNumber: String, $phoneVerificationToken: String!){
|
|
9
|
+
verifyUserPhoneAuthentication(email: $email, phoneNumber: $phoneNumber, phoneVerificationToken: $phoneVerificationToken) {
|
|
10
|
+
token
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
`;
|
|
14
|
+
exports.default = query;
|
|
15
|
+
//# sourceMappingURL=verifyPhoneAuthentication.mutation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verifyPhoneAuthentication.mutation.js","sourceRoot":"","sources":["../../../src/graphql/mutations/verifyPhoneAuthentication.mutation.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,KAAK,GAAG,qBAAG,CAAA;;;;;;CAMhB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
7
|
+
const query = graphql_tag_1.default `
|
|
8
|
+
mutation verifyUserPhoneAuthentication($email: String, $phoneNumber: String, $phoneVerificationToken: String!){
|
|
9
|
+
verifyUserPhoneAuthentication(email: $email, phoneNumber: $phoneNumber, phoneVerificationToken: $phoneVerificationToken) {
|
|
10
|
+
token
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
`;
|
|
14
|
+
exports.default = query;
|
|
15
|
+
//# sourceMappingURL=verifyUserPhoneAuthentication.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verifyUserPhoneAuthentication.js","sourceRoot":"","sources":["../../../src/graphql/mutations/verifyUserPhoneAuthentication.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,KAAK,GAAG,qBAAG,CAAA;;;;;;CAMhB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
7
|
+
const query = graphql_tag_1.default `
|
|
8
|
+
query metrics($params: MetricParamsInput!) {
|
|
9
|
+
metrics(params: $params) {
|
|
10
|
+
label
|
|
11
|
+
type
|
|
12
|
+
interval
|
|
13
|
+
coordinates {
|
|
14
|
+
x
|
|
15
|
+
y
|
|
16
|
+
}
|
|
17
|
+
segments {
|
|
18
|
+
label
|
|
19
|
+
type
|
|
20
|
+
coordinates {
|
|
21
|
+
x
|
|
22
|
+
y
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
`;
|
|
28
|
+
exports.default = query;
|
|
29
|
+
//# sourceMappingURL=metrics.query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metrics.query.js","sourceRoot":"","sources":["../../../src/graphql/queries/metrics.query.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,KAAK,GAAG,qBAAG,CAAA;;;;;;;;;;;;;;;;;;;;CAoBhB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
7
|
+
const query = graphql_tag_1.default `
|
|
8
|
+
query Analytics($params: MetricParamsInput!) {
|
|
9
|
+
analytics(params: $params) {
|
|
10
|
+
label
|
|
11
|
+
type
|
|
12
|
+
interval
|
|
13
|
+
coordinates {
|
|
14
|
+
x
|
|
15
|
+
y
|
|
16
|
+
}
|
|
17
|
+
segments {
|
|
18
|
+
label
|
|
19
|
+
type
|
|
20
|
+
coordinates {
|
|
21
|
+
x
|
|
22
|
+
y
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
`;
|
|
28
|
+
exports.default = query;
|
|
29
|
+
//# sourceMappingURL=metricsData.query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metricsData.query.js","sourceRoot":"","sources":["../../../src/graphql/queries/metricsData.query.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,KAAK,GAAG,qBAAG,CAAA;;;;;;;;;;;;;;;;;;;;CAoBhB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
declare enum MetricDataIntervalEnum {
|
|
2
|
+
Hour = "Hour",
|
|
3
|
+
Day = "Day",
|
|
4
|
+
Week = "Week",
|
|
5
|
+
Month = "Month",
|
|
6
|
+
Year = "Year"
|
|
7
|
+
}
|
|
8
|
+
declare enum MetricDataDurationEnum {
|
|
9
|
+
AllTime = "All Time",
|
|
10
|
+
Today = "Today",
|
|
11
|
+
OneWeek = "One Week",
|
|
12
|
+
OneMonth = "One Month",
|
|
13
|
+
MonthToDate = "MTD",
|
|
14
|
+
YearToDate = "YTD",
|
|
15
|
+
OneYear = "One Year",
|
|
16
|
+
Custom = "Custom"
|
|
17
|
+
}
|
|
18
|
+
declare enum MetricDataCardTypeEnum {
|
|
19
|
+
TicketSales = "Ticket Sales",
|
|
20
|
+
UpgradeSales = "Upgrades Sales",
|
|
21
|
+
ExtraFeeRevenue = "Extra Fee Revenue",
|
|
22
|
+
TicketsSold = "Tickets Sold",
|
|
23
|
+
TotalOrders = "Total Orders",
|
|
24
|
+
Promotions = "Promotioins",
|
|
25
|
+
TicketComps = "Ticket Comps",
|
|
26
|
+
UpgradeComps = "Upgrade Comps",
|
|
27
|
+
OnlineSessions = "Online Sessions",
|
|
28
|
+
OnlineConversationRate = "Online Converstation Rate",
|
|
29
|
+
AvgOrderValue = "Avg. Order Value"
|
|
30
|
+
}
|
|
31
|
+
declare enum MetricDataValueTypeEnum {
|
|
32
|
+
Quantity = "Quantity",
|
|
33
|
+
Currency = "Currency",
|
|
34
|
+
Percent = "Percent"
|
|
35
|
+
}
|
|
36
|
+
interface IMetricDataParams {
|
|
37
|
+
eventId?: string;
|
|
38
|
+
venueId?: string;
|
|
39
|
+
artistId?: string;
|
|
40
|
+
startAt?: number;
|
|
41
|
+
endAt?: number;
|
|
42
|
+
interval?: MetricDataIntervalEnum;
|
|
43
|
+
types: MetricDataCardTypeEnum[];
|
|
44
|
+
}
|
|
45
|
+
interface Coordinate {
|
|
46
|
+
x: number;
|
|
47
|
+
y: number;
|
|
48
|
+
}
|
|
49
|
+
interface DataPoint {
|
|
50
|
+
label: string;
|
|
51
|
+
interval?: MetricDataIntervalEnum;
|
|
52
|
+
coordinates?: Coordinate[];
|
|
53
|
+
segments?: DataPoint[];
|
|
54
|
+
type: MetricDataValueTypeEnum;
|
|
55
|
+
totalValue?: number;
|
|
56
|
+
}
|
|
57
|
+
declare const TicketSalesCard: DataPoint;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
var MetricDataIntervalEnum;
|
|
2
|
+
(function (MetricDataIntervalEnum) {
|
|
3
|
+
MetricDataIntervalEnum["Hour"] = "Hour";
|
|
4
|
+
MetricDataIntervalEnum["Day"] = "Day";
|
|
5
|
+
MetricDataIntervalEnum["Week"] = "Week";
|
|
6
|
+
MetricDataIntervalEnum["Month"] = "Month";
|
|
7
|
+
MetricDataIntervalEnum["Year"] = "Year";
|
|
8
|
+
})(MetricDataIntervalEnum || (MetricDataIntervalEnum = {}));
|
|
9
|
+
var MetricDataDurationEnum;
|
|
10
|
+
(function (MetricDataDurationEnum) {
|
|
11
|
+
MetricDataDurationEnum["AllTime"] = "All Time";
|
|
12
|
+
MetricDataDurationEnum["Today"] = "Today";
|
|
13
|
+
MetricDataDurationEnum["OneWeek"] = "One Week";
|
|
14
|
+
MetricDataDurationEnum["OneMonth"] = "One Month";
|
|
15
|
+
MetricDataDurationEnum["MonthToDate"] = "MTD";
|
|
16
|
+
MetricDataDurationEnum["YearToDate"] = "YTD";
|
|
17
|
+
MetricDataDurationEnum["OneYear"] = "One Year";
|
|
18
|
+
MetricDataDurationEnum["Custom"] = "Custom";
|
|
19
|
+
})(MetricDataDurationEnum || (MetricDataDurationEnum = {}));
|
|
20
|
+
;
|
|
21
|
+
var MetricDataCardTypeEnum;
|
|
22
|
+
(function (MetricDataCardTypeEnum) {
|
|
23
|
+
MetricDataCardTypeEnum["TicketSales"] = "Ticket Sales";
|
|
24
|
+
MetricDataCardTypeEnum["UpgradeSales"] = "Upgrades Sales";
|
|
25
|
+
MetricDataCardTypeEnum["ExtraFeeRevenue"] = "Extra Fee Revenue";
|
|
26
|
+
MetricDataCardTypeEnum["TicketsSold"] = "Tickets Sold";
|
|
27
|
+
MetricDataCardTypeEnum["TotalOrders"] = "Total Orders";
|
|
28
|
+
MetricDataCardTypeEnum["Promotions"] = "Promotioins";
|
|
29
|
+
MetricDataCardTypeEnum["TicketComps"] = "Ticket Comps";
|
|
30
|
+
MetricDataCardTypeEnum["UpgradeComps"] = "Upgrade Comps";
|
|
31
|
+
MetricDataCardTypeEnum["OnlineSessions"] = "Online Sessions";
|
|
32
|
+
MetricDataCardTypeEnum["OnlineConversationRate"] = "Online Converstation Rate";
|
|
33
|
+
MetricDataCardTypeEnum["AvgOrderValue"] = "Avg. Order Value";
|
|
34
|
+
})(MetricDataCardTypeEnum || (MetricDataCardTypeEnum = {}));
|
|
35
|
+
var MetricDataValueTypeEnum;
|
|
36
|
+
(function (MetricDataValueTypeEnum) {
|
|
37
|
+
MetricDataValueTypeEnum["Quantity"] = "Quantity";
|
|
38
|
+
MetricDataValueTypeEnum["Currency"] = "Currency";
|
|
39
|
+
MetricDataValueTypeEnum["Percent"] = "Percent";
|
|
40
|
+
})(MetricDataValueTypeEnum || (MetricDataValueTypeEnum = {}));
|
|
41
|
+
const TicketSalesCard = {
|
|
42
|
+
label: MetricDataCardTypeEnum.TicketSales,
|
|
43
|
+
type: MetricDataValueTypeEnum.Currency,
|
|
44
|
+
interval: MetricDataIntervalEnum.Hour,
|
|
45
|
+
totalValue: 1000,
|
|
46
|
+
coordinates: [
|
|
47
|
+
{
|
|
48
|
+
x: 1,
|
|
49
|
+
y: 1,
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
segments: [
|
|
53
|
+
{
|
|
54
|
+
label: 'General Admission',
|
|
55
|
+
type: MetricDataValueTypeEnum.Currency,
|
|
56
|
+
totalValue: 300,
|
|
57
|
+
coordinates: [
|
|
58
|
+
{
|
|
59
|
+
x: 1,
|
|
60
|
+
y: 1,
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
x: 2,
|
|
64
|
+
y: 1,
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=IMetricData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IMetricData.js","sourceRoot":"","sources":["../../src/interfaces/IMetricData.ts"],"names":[],"mappings":"AAAA,IAAK,sBAMJ;AAND,WAAK,sBAAsB;IACzB,uCAAa,CAAA;IACb,qCAAW,CAAA;IACX,uCAAa,CAAA;IACb,yCAAe,CAAA;IACf,uCAAa,CAAA;AACf,CAAC,EANI,sBAAsB,KAAtB,sBAAsB,QAM1B;AAED,IAAK,sBASJ;AATD,WAAK,sBAAsB;IACzB,8CAAoB,CAAA;IACpB,yCAAe,CAAA;IACf,8CAAoB,CAAA;IACpB,gDAAsB,CAAA;IACtB,6CAAmB,CAAA;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
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = {
|
|
4
|
+
// Returns start and end date
|
|
5
|
+
const: getMetricsTimespan = {
|
|
6
|
+
[MetricTimespanEnum.AllTime]: () => null,
|
|
7
|
+
[MetricTimespanEnum.Today]: () => null,
|
|
8
|
+
[MetricTimespanEnum.OneWeek]: () => null,
|
|
9
|
+
[MetricTimespanEnum.OneMonth]: () => null,
|
|
10
|
+
[MetricTimespanEnum.MonthToDate]: () => null,
|
|
11
|
+
[MetricTimespanEnum.YearToDate]: () => null,
|
|
12
|
+
[MetricTimespanEnum.OneYear]: () => null,
|
|
13
|
+
[MetricTimespanEnum.Custom]: () => null,
|
|
14
|
+
},
|
|
15
|
+
// Returns available intervals
|
|
16
|
+
timeSpanIntervals(interval) {
|
|
17
|
+
const intervals = {
|
|
18
|
+
[MetricTimespanEnum.AllTime]: () => [],
|
|
19
|
+
[MetricTimespanEnum.Today]: () => [],
|
|
20
|
+
[MetricTimespanEnum.OneWeek]: () => [],
|
|
21
|
+
[MetricTimespanEnum.OneMonth]: () => [],
|
|
22
|
+
[MetricTimespanEnum.MonthToDate]: () => [],
|
|
23
|
+
[MetricTimespanEnum.YearToDate]: () => [],
|
|
24
|
+
[MetricTimespanEnum.OneYear]: () => [],
|
|
25
|
+
[MetricTimespanEnum.Custom]: () => [],
|
|
26
|
+
};
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=MetricsUtil.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MetricsUtil.js","sourceRoot":"","sources":["../../src/utils/MetricsUtil.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACb,6BAA6B;IAC/B,KAAK,EAAC,kBAAkB,GAAG;QACzB,CAAC,kBAAkB,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC,IAAI;QACxC,CAAC,kBAAkB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PaymentMethodTypeEnum;
|
|
9
9
|
}
|
|
10
|
-
declare
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
declare class PaymentUtil {
|
|
11
|
+
calculatePaymentTotal(params: IPaymentCalculatorParams): number;
|
|
12
|
+
calculatePaymentSubtotal(params: IPaymentCalculatorParams): number;
|
|
13
|
+
calculateFee(params: IPaymentCalculatorParams): number;
|
|
14
|
+
calculateOrganizationFee(params: IPaymentCalculatorParams): number;
|
|
15
|
+
calculatePlatformFee(params: IPaymentCalculatorParams): number;
|
|
16
|
+
calculateStripeFee(params: IPaymentCalculatorParams): number;
|
|
17
|
+
calculateProcessingFee(params: IPaymentCalculatorParams): number;
|
|
18
|
+
}
|
|
19
|
+
declare const _default: PaymentUtil;
|
|
13
20
|
export default _default;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const FeeUtil_1 = __importDefault(require("./FeeUtil"));
|
|
3
7
|
const IFee_1 = require("../interfaces/IFee");
|
|
4
8
|
const PaymentMethodTypeEnum_1 = require("../enums/PaymentMethodTypeEnum");
|
|
5
9
|
// interface IOrderItems {
|
|
6
10
|
// tickets: ICreateOrderTicketParams[];
|
|
7
11
|
// upgrades: ICreateOrderUpgradeParams[];
|
|
8
12
|
// }
|
|
9
|
-
|
|
13
|
+
class PaymentUtil {
|
|
10
14
|
// DOES NOT WORK! Work in Progress :)
|
|
11
15
|
// calculateOrderItemPrices(params: IPaymentCalculatorParams): IOrderItems {
|
|
12
16
|
// let {
|
|
@@ -98,7 +102,7 @@ exports.default = {
|
|
|
98
102
|
// upgrades,
|
|
99
103
|
// };
|
|
100
104
|
// },
|
|
101
|
-
|
|
105
|
+
calculatePaymentTotal(params) {
|
|
102
106
|
let { tickets = [], upgrades = [], fees = [], paymentMethodType, } = params;
|
|
103
107
|
// No items, total is always 0
|
|
104
108
|
if (!tickets.length && !upgrades.length)
|
|
@@ -194,5 +198,52 @@ exports.default = {
|
|
|
194
198
|
// console.log(`Order Total`, orderTotal);
|
|
195
199
|
return orderTotal;
|
|
196
200
|
}
|
|
197
|
-
|
|
201
|
+
calculatePaymentSubtotal(params) {
|
|
202
|
+
let { tickets = [], upgrades = [], paymentMethodType, } = params;
|
|
203
|
+
if (paymentMethodType === PaymentMethodTypeEnum_1.PaymentMethodTypeEnum.None)
|
|
204
|
+
return 0;
|
|
205
|
+
const ticketTotal = tickets.reduce((cur, ticket) => cur + ticket.price, 0);
|
|
206
|
+
const upgradeTotal = upgrades.reduce((cur, upgrade) => cur + upgrade.price, 0);
|
|
207
|
+
return ticketTotal + upgradeTotal;
|
|
208
|
+
}
|
|
209
|
+
calculateFee(params) {
|
|
210
|
+
const total = this.calculatePaymentTotal(params);
|
|
211
|
+
const subtotal = this.calculatePaymentSubtotal(params);
|
|
212
|
+
return total - subtotal;
|
|
213
|
+
}
|
|
214
|
+
calculateOrganizationFee(params) {
|
|
215
|
+
let { tickets = [], upgrades = [], fees = [], paymentMethodType, } = params;
|
|
216
|
+
fees = FeeUtil_1.default.promoterFees(fees);
|
|
217
|
+
return this.calculateFee({
|
|
218
|
+
tickets,
|
|
219
|
+
upgrades,
|
|
220
|
+
fees,
|
|
221
|
+
paymentMethodType,
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
calculatePlatformFee(params) {
|
|
225
|
+
let { tickets = [], upgrades = [], fees = [], paymentMethodType, } = params;
|
|
226
|
+
fees = FeeUtil_1.default.selloutFees(fees);
|
|
227
|
+
return this.calculateFee({
|
|
228
|
+
tickets,
|
|
229
|
+
upgrades,
|
|
230
|
+
fees,
|
|
231
|
+
paymentMethodType,
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
calculateStripeFee(params) {
|
|
235
|
+
const total = this.calculatePaymentTotal(params);
|
|
236
|
+
const subtotal = this.calculatePaymentSubtotal(params);
|
|
237
|
+
const platformFees = this.calculatePlatformFee(params);
|
|
238
|
+
const organizationFee = this.calculateOrganizationFee(params);
|
|
239
|
+
return total - subtotal - platformFees - organizationFee;
|
|
240
|
+
}
|
|
241
|
+
calculateProcessingFee(params) {
|
|
242
|
+
const total = this.calculatePaymentTotal(params);
|
|
243
|
+
const subtotal = this.calculatePaymentSubtotal(params);
|
|
244
|
+
const organizationFee = this.calculateOrganizationFee(params);
|
|
245
|
+
return total - subtotal - organizationFee;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
exports.default = new PaymentUtil();
|
|
198
249
|
//# sourceMappingURL=PaymentUtil.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentUtil.js","sourceRoot":"","sources":["../../src/utils/PaymentUtil.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PaymentUtil.js","sourceRoot":"","sources":["../../src/utils/PaymentUtil.ts"],"names":[],"mappings":";;;;;AAAA,wDAAgC;AAEhC,6CAAyF;AACzF,0EAAuE;AAYvE,0BAA0B;AAC1B,yCAAyC;AACzC,2CAA2C;AAC3C,IAAI;AAEJ,MAAM,WAAW;IACf,qCAAqC;IACrC,4EAA4E;IAE5E,UAAU;IACV,qBAAqB;IACrB,qBAAqB;IACrB,iBAAiB;IACjB,yBAAyB;IACzB,gBAAgB;IAGhB,mBAAmB;IACnB,wCAAwC;IACxC,8DAA8D;IAC9D,sIAAsI;IACtI,sBAAsB;IACtB,QAAQ;IAER,4DAA4D;IAC5D,oIAAoI;IACpI,sBAAsB;IACtB,QAAQ;IAER,mBAAmB;IACnB,QAAQ;IAER,iFAAiF;IACjF,4BAA4B;IAC5B,kDAAkD;IAClD,uBAAuB;IACvB,UAAU;IACV,oFAAoF;IACpF,mFAAmF;IACnF,+EAA+E;IAC/E,0BAA0B;IAC1B,mDAAmD;IACnD,qBAAqB;IACrB,OAAO;IACP,kBAAkB;IACl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CAEF;AAED,kBAAe,IAAI,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const IFee__1 = require("../interfaces/IFee\";");
|
|
4
|
+
exports.default = {
|
|
5
|
+
processingFees(fees) {
|
|
6
|
+
return fees.filter((fee) => {
|
|
7
|
+
if (fee.appliedBy === IFee__1.FeeAppliedByEnum.Sellout || fee.appliedBy === IFee__1.FeeAppliedByEnum.Stripe) {
|
|
8
|
+
return true;
|
|
9
|
+
}
|
|
10
|
+
return false;
|
|
11
|
+
});
|
|
12
|
+
},
|
|
13
|
+
selloutFees(fees) {
|
|
14
|
+
return fees.filter((fee) => {
|
|
15
|
+
if (fee.appliedBy === IFee__1.FeeAppliedByEnum.Sellout) {
|
|
16
|
+
return true;
|
|
17
|
+
}
|
|
18
|
+
return false;
|
|
19
|
+
});
|
|
20
|
+
},
|
|
21
|
+
stripeFees(fees) {
|
|
22
|
+
return fees.filter((fee) => {
|
|
23
|
+
if (fee.appliedBy === IFee__1.FeeAppliedByEnum.Stripe) {
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
return true;
|
|
27
|
+
});
|
|
28
|
+
},
|
|
29
|
+
promoterFees(fees) {
|
|
30
|
+
return fees.filter((fee) => {
|
|
31
|
+
if (fee.appliedBy === IFee__1.FeeAppliedByEnum.Sellout || fee.appliedBy === IFee__1.FeeAppliedByEnum.Stripe) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
return true;
|
|
35
|
+
});
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=fee-util-broken-but-why.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fee-util-broken-but-why.js","sourceRoot":"","sources":["../../src/utils/fee-util-broken-but-why.ts"],"names":[],"mappings":";;AAAA,iDAA4D;AAE5D,kBAAe;IACb,cAAc,CAAC,IAAY;QACzB,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,GAAS,EAAE,EAAE;YAC/B,IAAI,GAAG,CAAC,SAAS,KAAK,wBAAgB,CAAC,OAAO,IAAI,GAAG,CAAC,SAAS,KAAK,wBAAgB,CAAC,MAAM,EAAE;gBAC3F,OAAO,IAAI,CAAC;aACb;YACD,OAAO,KAAK,CAAC;QACf,CAAC,CAAC,CAAC;IACL,CAAC;IACD,WAAW,CAAC,IAAY;QACtB,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,GAAS,EAAE,EAAE;YAC/B,IAAI,GAAG,CAAC,SAAS,KAAK,wBAAgB,CAAC,OAAO,EAAE;gBAC9C,OAAO,IAAI,CAAC;aACb;YACD,OAAO,KAAK,CAAC;QACf,CAAC,CAAC,CAAC;IACL,CAAC;IACD,UAAU,CAAC,IAAY;QACrB,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,GAAS,EAAE,EAAE;YAC/B,IAAI,GAAG,CAAC,SAAS,KAAK,wBAAgB,CAAC,MAAM,EAAE;gBAC7C,OAAO,KAAK,CAAC;aACd;YACD,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,CAAC;IACL,CAAC;IACD,YAAY,CAAC,IAAY;QACvB,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,GAAS,EAAE,EAAE;YAC/B,IAAI,GAAG,CAAC,SAAS,KAAK,wBAAgB,CAAC,OAAO,IAAI,GAAG,CAAC,SAAS,KAAK,wBAAgB,CAAC,MAAM,EAAE;gBAC3F,OAAO,KAAK,CAAC;aACd;YACD,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellout/models",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.76",
|
|
4
4
|
"description": "Sellout.io models",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"author": "samheutmaker@gmail.com",
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@sellout/service": "^0.0.
|
|
20
|
-
"@sellout/utils": "^0.0.
|
|
19
|
+
"@sellout/service": "^0.0.76",
|
|
20
|
+
"@sellout/utils": "^0.0.76",
|
|
21
21
|
"@types/shortid": "0.0.29",
|
|
22
22
|
"apollo-link-debounce": "^2.1.0",
|
|
23
23
|
"graphql": "^14.6.0",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"protobufjs": "~6.10.1",
|
|
31
31
|
"typescript": "^3.8.3"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "b6e0423e648738902bffe0b3570e7630822fc7f7"
|
|
34
34
|
}
|
package/src/utils/PaymentUtil.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import FeeUtil from './FeeUtil';
|
|
1
2
|
import { ICreateOrderTicketParams, ICreateOrderUpgradeParams } from '../interfaces/ICreateOrderParams';
|
|
2
3
|
import IFee, { FeeAppliedToEnum, FeeFiltersEnum, FeeTypeEnum } from '../interfaces/IFee';
|
|
3
4
|
import { PaymentMethodTypeEnum } from '../enums/PaymentMethodTypeEnum';
|
|
5
|
+
// import IPayment from 'src/interfaces/IPayment';
|
|
6
|
+
// import IPayment from 'src/interfaces/IPayment';
|
|
4
7
|
// import { OrderTypeEnum } from 'src/interfaces/IOrderType';
|
|
5
8
|
|
|
6
9
|
interface IPaymentCalculatorParams {
|
|
@@ -15,7 +18,7 @@ interface IPaymentCalculatorParams {
|
|
|
15
18
|
// upgrades: ICreateOrderUpgradeParams[];
|
|
16
19
|
// }
|
|
17
20
|
|
|
18
|
-
|
|
21
|
+
class PaymentUtil {
|
|
19
22
|
// DOES NOT WORK! Work in Progress :)
|
|
20
23
|
// calculateOrderItemPrices(params: IPaymentCalculatorParams): IOrderItems {
|
|
21
24
|
|
|
@@ -129,7 +132,7 @@ export default {
|
|
|
129
132
|
// upgrades,
|
|
130
133
|
// };
|
|
131
134
|
// },
|
|
132
|
-
|
|
135
|
+
calculatePaymentTotal(params: IPaymentCalculatorParams): number {
|
|
133
136
|
let {
|
|
134
137
|
tickets = [],
|
|
135
138
|
upgrades = [],
|
|
@@ -243,4 +246,71 @@ export default {
|
|
|
243
246
|
|
|
244
247
|
return orderTotal;
|
|
245
248
|
}
|
|
246
|
-
|
|
249
|
+
calculatePaymentSubtotal(params: IPaymentCalculatorParams): number {
|
|
250
|
+
let {
|
|
251
|
+
tickets = [],
|
|
252
|
+
upgrades = [],
|
|
253
|
+
paymentMethodType,
|
|
254
|
+
} = params;
|
|
255
|
+
|
|
256
|
+
if(paymentMethodType === PaymentMethodTypeEnum.None) return 0;
|
|
257
|
+
const ticketTotal = tickets.reduce((cur, ticket) => cur + ticket.price, 0);
|
|
258
|
+
const upgradeTotal = upgrades.reduce((cur, upgrade) => cur + upgrade.price, 0);
|
|
259
|
+
return ticketTotal + upgradeTotal;
|
|
260
|
+
}
|
|
261
|
+
calculateFee(params: IPaymentCalculatorParams): number {
|
|
262
|
+
const total = this.calculatePaymentTotal(params);
|
|
263
|
+
const subtotal = this.calculatePaymentSubtotal(params);
|
|
264
|
+
return total - subtotal;
|
|
265
|
+
}
|
|
266
|
+
calculateOrganizationFee(params: IPaymentCalculatorParams): number {
|
|
267
|
+
let {
|
|
268
|
+
tickets = [],
|
|
269
|
+
upgrades = [],
|
|
270
|
+
fees = [],
|
|
271
|
+
paymentMethodType,
|
|
272
|
+
} = params;
|
|
273
|
+
|
|
274
|
+
fees = FeeUtil.promoterFees(fees);
|
|
275
|
+
|
|
276
|
+
return this.calculateFee({
|
|
277
|
+
tickets,
|
|
278
|
+
upgrades,
|
|
279
|
+
fees,
|
|
280
|
+
paymentMethodType,
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
calculatePlatformFee(params: IPaymentCalculatorParams): number {
|
|
284
|
+
let {
|
|
285
|
+
tickets = [],
|
|
286
|
+
upgrades = [],
|
|
287
|
+
fees = [],
|
|
288
|
+
paymentMethodType,
|
|
289
|
+
} = params;
|
|
290
|
+
|
|
291
|
+
fees = FeeUtil.selloutFees(fees);
|
|
292
|
+
|
|
293
|
+
return this.calculateFee({
|
|
294
|
+
tickets,
|
|
295
|
+
upgrades,
|
|
296
|
+
fees,
|
|
297
|
+
paymentMethodType,
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
calculateStripeFee(params: IPaymentCalculatorParams): number {
|
|
301
|
+
const total = this.calculatePaymentTotal(params);
|
|
302
|
+
const subtotal = this.calculatePaymentSubtotal(params);
|
|
303
|
+
const platformFees = this.calculatePlatformFee(params);
|
|
304
|
+
const organizationFee = this.calculateOrganizationFee(params);
|
|
305
|
+
return total - subtotal - platformFees - organizationFee;
|
|
306
|
+
}
|
|
307
|
+
calculateProcessingFee(params: IPaymentCalculatorParams): number {
|
|
308
|
+
const total = this.calculatePaymentTotal(params);
|
|
309
|
+
const subtotal = this.calculatePaymentSubtotal(params);
|
|
310
|
+
const organizationFee = this.calculateOrganizationFee(params);
|
|
311
|
+
return total - subtotal - organizationFee;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
export default new PaymentUtil();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resetPasswordInApp.mutation.js","sourceRoot":"","sources":["../../../src/graphql/mutations/resetPasswordInApp.mutation.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,QAAQ,GAAG,qBAAG,CAAA;;;;CAInB,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setUserOrgContextId.js","sourceRoot":"","sources":["../../../src/graphql/mutations/setUserOrgContextId.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,QAAQ,GAAG,qBAAG,CAAA;;;;;;CAMnB,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
7
|
-
const query = graphql_tag_1.default `
|
|
8
|
-
query userProfiles($query: UserProfileQueryInput) {
|
|
9
|
-
userProfiles(query: $query) {
|
|
10
|
-
_id
|
|
11
|
-
imageUrl
|
|
12
|
-
user {
|
|
13
|
-
_id
|
|
14
|
-
email
|
|
15
|
-
firstName
|
|
16
|
-
lastName
|
|
17
|
-
phoneNumber
|
|
18
|
-
phoneNumberVerifiedAt
|
|
19
|
-
}
|
|
20
|
-
metrics {
|
|
21
|
-
orgId
|
|
22
|
-
yearToDateValue
|
|
23
|
-
lifeTimeValue
|
|
24
|
-
createdAt
|
|
25
|
-
lifeTimeTicketsPurchased
|
|
26
|
-
lifeTimeUpgradesPurchased
|
|
27
|
-
}
|
|
28
|
-
stripeCustomerId
|
|
29
|
-
address {
|
|
30
|
-
address1
|
|
31
|
-
address2
|
|
32
|
-
city
|
|
33
|
-
state
|
|
34
|
-
zip
|
|
35
|
-
country
|
|
36
|
-
phone
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
`;
|
|
41
|
-
exports.default = query;
|
|
42
|
-
//# sourceMappingURL=customerProfile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"customerProfile.js","sourceRoot":"","sources":["../../../src/graphql/queries/customerProfile.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,KAAK,GAAG,qBAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiChB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
7
|
-
const query = graphql_tag_1.default `
|
|
8
|
-
query organizations {
|
|
9
|
-
organizations {
|
|
10
|
-
_id
|
|
11
|
-
orgName
|
|
12
|
-
orgUrls
|
|
13
|
-
orgLogoUrl
|
|
14
|
-
createdAt
|
|
15
|
-
address {
|
|
16
|
-
address1
|
|
17
|
-
address2
|
|
18
|
-
city
|
|
19
|
-
state
|
|
20
|
-
zip
|
|
21
|
-
country
|
|
22
|
-
}
|
|
23
|
-
user {
|
|
24
|
-
email
|
|
25
|
-
}
|
|
26
|
-
seating {
|
|
27
|
-
publicKey
|
|
28
|
-
secretKey
|
|
29
|
-
designerKey
|
|
30
|
-
}
|
|
31
|
-
webFlow {
|
|
32
|
-
sites {
|
|
33
|
-
name
|
|
34
|
-
webFlowId
|
|
35
|
-
enabled
|
|
36
|
-
createdAt
|
|
37
|
-
updatedAt
|
|
38
|
-
previewUrl
|
|
39
|
-
domains {
|
|
40
|
-
lastPublishedAt
|
|
41
|
-
name
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
`;
|
|
48
|
-
exports.default = query;
|
|
49
|
-
//# sourceMappingURL=organization.query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"organization.query.js","sourceRoot":"","sources":["../../../src/graphql/queries/organization.query.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,KAAK,GAAG,qBAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwChB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
7
|
-
const query = graphql_tag_1.default `
|
|
8
|
-
query organizations {
|
|
9
|
-
organizations {
|
|
10
|
-
_id
|
|
11
|
-
orgName
|
|
12
|
-
orgUrls
|
|
13
|
-
orgLogoUrl
|
|
14
|
-
createdAt
|
|
15
|
-
address {
|
|
16
|
-
address1
|
|
17
|
-
address2
|
|
18
|
-
city
|
|
19
|
-
state
|
|
20
|
-
zip
|
|
21
|
-
country
|
|
22
|
-
}
|
|
23
|
-
user {
|
|
24
|
-
email
|
|
25
|
-
}
|
|
26
|
-
seating {
|
|
27
|
-
publicKey
|
|
28
|
-
secretKey
|
|
29
|
-
designerKey
|
|
30
|
-
}
|
|
31
|
-
webFlow {
|
|
32
|
-
sites {
|
|
33
|
-
name
|
|
34
|
-
webFlowId
|
|
35
|
-
enabled
|
|
36
|
-
createdAt
|
|
37
|
-
updatedAt
|
|
38
|
-
previewUrl
|
|
39
|
-
domains {
|
|
40
|
-
lastPublishedAt
|
|
41
|
-
name
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
`;
|
|
48
|
-
exports.default = query;
|
|
49
|
-
//# sourceMappingURL=organizations.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.js","sourceRoot":"","sources":["../../../src/graphql/queries/organizations.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,KAAK,GAAG,qBAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwChB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ISecondaryEmail.js","sourceRoot":"","sources":["../../src/interfaces/ISecondaryEmail.ts"],"names":[],"mappings":""}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = {
|
|
4
|
-
email: {
|
|
5
|
-
type: String,
|
|
6
|
-
required: true,
|
|
7
|
-
},
|
|
8
|
-
verifiedAt: {
|
|
9
|
-
type: Number,
|
|
10
|
-
required: false,
|
|
11
|
-
default: 0,
|
|
12
|
-
},
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=SecondaryEmail.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SecondaryEmail.js","sourceRoot":"","sources":["../../src/schemas/SecondaryEmail.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACb,KAAK,EAAE;QACL,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACf;IACD,UAAU,EAAE;QACV,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,CAAC;KACX;CACF,CAAC"}
|
/package/.dist/graphql/mutations/{resetPasswordInApp.mutation.d.ts → createStripeSetupIntent.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|