@bondsports/types 1.0.1 → 1.0.2
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/README.md +17 -17
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/dto/customer.dto.d.ts +5 -1
- package/dist/types/dto/customer.dto.js +4 -1
- package/dist/types/dto/customer.dto.js.map +1 -1
- package/dist/types/dto/index.d.ts +0 -1
- package/dist/types/dto/index.js +0 -1
- package/dist/types/dto/index.js.map +1 -1
- package/dist/types/dto/space.dto.d.ts +2 -2
- package/dist/types/entity/ColorCode.d.ts +11 -0
- package/dist/types/entity/ColorCode.js +8 -0
- package/dist/types/entity/ColorCode.js.map +1 -0
- package/dist/types/entity/Customer.d.ts +4 -2
- package/dist/types/entity/Customer.js.map +1 -1
- package/dist/types/entity/Invoice.d.ts +6 -1
- package/dist/types/entity/Invoice.js.map +1 -1
- package/dist/types/entity/index.d.ts +1 -0
- package/dist/types/entity/index.js +1 -0
- package/dist/types/entity/index.js.map +1 -1
- package/dist/types/fee/dto/fee.dto.d.ts +10 -1
- package/dist/types/fee/dto/fee.dto.js +11 -2
- package/dist/types/fee/dto/fee.dto.js.map +1 -1
- package/dist/types/fee/dto/index.d.ts +1 -0
- package/dist/types/fee/dto/index.js +1 -0
- package/dist/types/fee/dto/index.js.map +1 -1
- package/dist/types/fee/dto/payment-fee.dto.d.ts +17 -0
- package/dist/types/fee/dto/payment-fee.dto.js +7 -0
- package/dist/types/fee/dto/payment-fee.dto.js.map +1 -0
- package/dist/types/fee/entities/PaymentFee.d.ts +1 -1
- package/dist/types/fee/index.d.ts +1 -0
- package/dist/types/fee/index.js +1 -0
- package/dist/types/fee/index.js.map +1 -1
- package/dist/types/fee/interfaces/fee.d.ts +21 -0
- package/dist/types/fee/interfaces/fee.js +7 -0
- package/dist/types/fee/interfaces/fee.js.map +1 -0
- package/dist/types/fee/interfaces/index.d.ts +1 -0
- package/dist/types/fee/interfaces/index.js +18 -0
- package/dist/types/fee/interfaces/index.js.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/organization/dto/index.d.ts +1 -0
- package/dist/types/organization/dto/index.js +1 -0
- package/dist/types/organization/dto/index.js.map +1 -1
- package/dist/types/organization/dto/organization-payment-method.dto.d.ts +23 -0
- package/dist/types/organization/dto/organization-payment-method.dto.js +19 -0
- package/dist/types/organization/dto/organization-payment-method.dto.js.map +1 -0
- package/dist/types/organization/dto/organization.dto.d.ts +4 -0
- package/dist/types/organization/dto/organization.dto.js +4 -1
- package/dist/types/organization/dto/organization.dto.js.map +1 -1
- package/dist/types/organization/entities/Organization.d.ts +4 -0
- package/dist/types/organization/entities/Organization.js.map +1 -1
- package/dist/types/organization/entities/OrganizationPaymentMethod.d.ts +12 -0
- package/dist/types/organization/entities/OrganizationPaymentMethod.js +8 -0
- package/dist/types/organization/entities/OrganizationPaymentMethod.js.map +1 -0
- package/dist/types/organization/entities/index.d.ts +1 -0
- package/dist/types/organization/entities/index.js +1 -0
- package/dist/types/organization/entities/index.js.map +1 -1
- package/dist/types/organization/interfaces/organization.d.ts +2 -0
- package/dist/types/organization/interfaces/organization.js +3 -0
- package/dist/types/organization/interfaces/organization.js.map +1 -1
- package/dist/types/payment/dto/payment.dto.d.ts +10 -2
- package/dist/types/payment/dto/payment.dto.js +8 -1
- package/dist/types/payment/dto/payment.dto.js.map +1 -1
- package/dist/types/payment/entities/Payment.d.ts +3 -1
- package/dist/types/payment/entities/Payment.js.map +1 -1
- package/dist/types/payment/interfaces/payment.d.ts +17 -4
- package/dist/types/payment/interfaces/payment.js +7 -1
- package/dist/types/payment/interfaces/payment.js.map +1 -1
- package/dist/types/purchase/dto/index.d.ts +1 -0
- package/dist/types/purchase/dto/index.js +18 -0
- package/dist/types/purchase/dto/index.js.map +1 -0
- package/dist/types/{dto → purchase/dto}/purchase.dto.d.ts +12 -12
- package/dist/types/{dto → purchase/dto}/purchase.dto.js +1 -1
- package/dist/types/purchase/dto/purchase.dto.js.map +1 -0
- package/dist/types/purchase/index.d.ts +2 -0
- package/dist/types/purchase/index.js +19 -0
- package/dist/types/purchase/index.js.map +1 -0
- package/dist/types/purchase/interfaces/index.d.ts +1 -0
- package/dist/types/purchase/interfaces/index.js +18 -0
- package/dist/types/purchase/interfaces/index.js.map +1 -0
- package/dist/types/purchase/interfaces/purchase.d.ts +42 -0
- package/dist/types/purchase/interfaces/purchase.js +14 -0
- package/dist/types/purchase/interfaces/purchase.js.map +1 -0
- package/dist/types/reservations/dto/invoice.dto.d.ts +1 -0
- package/dist/types/reservations/dto/invoice.dto.js.map +1 -1
- package/dist/types/reservations/dto/reservation.dto.d.ts +14 -2
- package/dist/types/reservations/dto/reservation.dto.js +10 -1
- package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
- package/dist/types/reservations/dto/slot.dto.d.ts +5 -0
- package/dist/types/reservations/dto/slot.dto.js +4 -1
- package/dist/types/reservations/dto/slot.dto.js.map +1 -1
- package/dist/types/reservations/dto/v1.reservation.dto.d.ts +1 -1
- package/dist/types/reservations/entities/Slots.d.ts +3 -0
- package/dist/types/reservations/entities/Slots.js.map +1 -1
- package/dist/types/services/enums.service.d.ts +22 -3
- package/dist/types/services/enums.service.js +26 -4
- package/dist/types/services/enums.service.js.map +1 -1
- package/dist/types/services/interfaces.service.d.ts +3 -1
- package/package.json +2 -2
- package/LICENSE.md +0 -0
- package/dist/types/dto/purchase.dto.js.map +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PaginationQuery } from '../../dto/general.dto';
|
|
2
|
-
import {
|
|
2
|
+
import { UserIdDto } from '../../dto/user.dto';
|
|
3
3
|
import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
|
|
4
|
+
import { PurchaseProductDto } from '../../purchase/dto/purchase.dto';
|
|
4
5
|
import { PaymentMethodTypeEnum, PlatformsEnum, ResourceNameTypeEnum, SubPaymentMethodTypeEnum } from '../../services/enums.service';
|
|
5
6
|
export declare class CustomerIdDto {
|
|
6
7
|
customerId: number;
|
|
@@ -17,6 +18,12 @@ export declare class InvoiceIdDto {
|
|
|
17
18
|
export declare class ByInvoiceDto extends ByOrganizationIdDto {
|
|
18
19
|
invoiceId: number;
|
|
19
20
|
}
|
|
21
|
+
export declare class ByInvoiceAndCustomerDto extends ByInvoiceDto {
|
|
22
|
+
customerId: number;
|
|
23
|
+
}
|
|
24
|
+
export declare class InvoiceIdAndUserIdDto extends UserIdDto {
|
|
25
|
+
invoiceId: number;
|
|
26
|
+
}
|
|
20
27
|
export declare class GetInvoicesQueryDto {
|
|
21
28
|
extended?: boolean;
|
|
22
29
|
}
|
|
@@ -77,7 +84,8 @@ export declare class PaymentIntentDto {
|
|
|
77
84
|
currency: string;
|
|
78
85
|
capture_method: string;
|
|
79
86
|
payment_method_types: string[];
|
|
80
|
-
|
|
87
|
+
platform: PlatformsEnum;
|
|
88
|
+
organizationId?: number;
|
|
81
89
|
creatorId?: number;
|
|
82
90
|
payment_method?: string;
|
|
83
91
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetPaymentMethodsDto = exports.SendRequestDto = exports.RemoveResourceDto = exports.RevertMetaDto = exports.NotePrivacyDto = exports.UpdateNoteContentDto = exports.CreateNoteDto = exports.AddToInvoiceDto = exports.CalcPaymentPlanDto = exports.PaymentPlanDto = exports.PaymentPlanSchduleDto = exports.SendReceiptDataDto = exports.PaymentDataDto = exports.PaymentIntentDto = exports.StationsDto = exports.UpdateScheduledPaymentsDto = exports.FutureInstallmentsIdsDto = exports.ScheduledPaymentDto = exports.CreateScheduledPaymentsDto = exports.BasicInstallmentDataDto = exports.FindPayments = exports.ByPaymentFilter = exports.LineItemIdDto = exports.DiscountDto = exports.PaymentViaInvoiceHashDto = exports.GetPaymentsQueryDto = exports.GetInvoicesQueryDto = exports.ByInvoiceDto = exports.InvoiceIdDto = exports.ByPaymentDto = exports.PaymentIdDto = exports.CustomerIdDto = void 0;
|
|
3
|
+
exports.GetPaymentMethodsDto = exports.SendRequestDto = exports.RemoveResourceDto = exports.RevertMetaDto = exports.NotePrivacyDto = exports.UpdateNoteContentDto = exports.CreateNoteDto = exports.AddToInvoiceDto = exports.CalcPaymentPlanDto = exports.PaymentPlanDto = exports.PaymentPlanSchduleDto = exports.SendReceiptDataDto = exports.PaymentDataDto = exports.PaymentIntentDto = exports.StationsDto = exports.UpdateScheduledPaymentsDto = exports.FutureInstallmentsIdsDto = exports.ScheduledPaymentDto = exports.CreateScheduledPaymentsDto = exports.BasicInstallmentDataDto = exports.FindPayments = exports.ByPaymentFilter = exports.LineItemIdDto = exports.DiscountDto = exports.PaymentViaInvoiceHashDto = exports.GetPaymentsQueryDto = exports.GetInvoicesQueryDto = exports.InvoiceIdAndUserIdDto = exports.ByInvoiceAndCustomerDto = exports.ByInvoiceDto = exports.InvoiceIdDto = exports.ByPaymentDto = exports.PaymentIdDto = exports.CustomerIdDto = void 0;
|
|
4
4
|
const general_dto_1 = require("../../dto/general.dto");
|
|
5
|
+
const user_dto_1 = require("../../dto/user.dto");
|
|
5
6
|
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
|
6
7
|
class CustomerIdDto {
|
|
7
8
|
}
|
|
@@ -18,6 +19,12 @@ exports.InvoiceIdDto = InvoiceIdDto;
|
|
|
18
19
|
class ByInvoiceDto extends organization_dto_1.ByOrganizationIdDto {
|
|
19
20
|
}
|
|
20
21
|
exports.ByInvoiceDto = ByInvoiceDto;
|
|
22
|
+
class ByInvoiceAndCustomerDto extends ByInvoiceDto {
|
|
23
|
+
}
|
|
24
|
+
exports.ByInvoiceAndCustomerDto = ByInvoiceAndCustomerDto;
|
|
25
|
+
class InvoiceIdAndUserIdDto extends user_dto_1.UserIdDto {
|
|
26
|
+
}
|
|
27
|
+
exports.InvoiceIdAndUserIdDto = InvoiceIdAndUserIdDto;
|
|
21
28
|
class GetInvoicesQueryDto {
|
|
22
29
|
}
|
|
23
30
|
exports.GetInvoicesQueryDto = GetInvoicesQueryDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/payment.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAwD;
|
|
1
|
+
{"version":3,"file":"payment.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/payment.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAwD;AACxD,iDAA+C;AAC/C,8EAA8E;AAS9E,MAAa,aAAa;CAEzB;AAFD,sCAEC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,YAAa,SAAQ,sCAAmB;CAEpD;AAFD,oCAEC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,YAAa,SAAQ,sCAAmB;CAEpD;AAFD,oCAEC;AAED,MAAa,uBAAwB,SAAQ,YAAY;CAExD;AAFD,0DAEC;AAED,MAAa,qBAAsB,SAAQ,oBAAS;CAEnD;AAFD,sDAEC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,WAAW;CAQvB;AARD,kCAQC;AAED,MAAa,aAAa;CAEzB;AAFD,sCAEC;AAED,MAAa,eAAgB,SAAQ,6BAAe;CAGnD;AAHD,0CAGC;AAED,MAAa,YAAa,SAAQ,eAAe;CAGhD;AAHD,oCAGC;AAED,MAAa,uBAAwB,SAAQ,YAAY;CAExD;AAFD,0DAEC;AAED,MAAa,0BAA2B,SAAQ,uBAAuB;CAMtE;AAND,gEAMC;AAED,MAAa,mBAAmB;CAM/B;AAND,kDAMC;AAED,MAAa,wBAAwB;CAEpC;AAFD,4DAEC;AAED,MAAa,0BAA0B;CAQtC;AARD,gEAQC;AAGD,MAAa,WAAW;CAIvB;AAJD,kCAIC;AAED,MAAa,gBAAgB;CAkB5B;AAlBD,4CAkBC;AAED,MAAa,cAAc;CAI1B;AAJD,wCAIC;AAED,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAED,MAAa,qBAAqB;CAIjC;AAJD,sDAIC;AACD,MAAa,cAAc;CAM1B;AAND,wCAMC;AACD,MAAa,kBAAmB,SAAQ,cAAc;CAErD;AAFD,gDAEC;AAED,MAAa,eAAgB,SAAQ,YAAY;CAMhD;AAND,0CAMC;AAED,MAAa,aAAa;CAIzB;AAJD,sCAIC;AAED,MAAa,oBAAqB,SAAQ,aAAa;CAEtD;AAFD,oDAEC;AAED,MAAa,cAAc;CAE1B;AAFD,wCAEC;AAED,MAAa,aAAa;CAEzB;AAFD,sCAEC;AAED,MAAa,iBAAiB;CAM7B;AAND,8CAMC;AAED,MAAa,cAAe,SAAQ,YAAY;CAM/C;AAND,wCAMC;AAED,MAAa,oBAAoB;CAMhC;AAND,oDAMC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { InvoiceToPayment } from '../../entity/InvoiceToPayment';
|
|
2
2
|
import { LineItemHistory } from '../../entity/LineItemHistory';
|
|
3
3
|
import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
|
|
4
|
+
import { PaymentFeeDto } from '../../fee/dto/payment-fee.dto';
|
|
4
5
|
import { PaymentFee } from '../../fee/entities/PaymentFee';
|
|
5
6
|
import { CurrencyEnum, PaymentMethodTypeEnum, PaymentStatusEnum, PlatformsEnum } from '../../services/enums.service';
|
|
6
7
|
import { PaymentNote } from './PaymentNote';
|
|
@@ -30,5 +31,6 @@ export declare class Payment extends OrganizationConnectionBaseEntity {
|
|
|
30
31
|
parentInvoiceId?: number;
|
|
31
32
|
refundReasonId?: number;
|
|
32
33
|
refundNote?: string;
|
|
33
|
-
paymentFees: PaymentFee[];
|
|
34
|
+
paymentFees: PaymentFee[] | PaymentFeeDto[];
|
|
35
|
+
totalFeesAmount?: number;
|
|
34
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payment.js","sourceRoot":"","sources":["../../../../src/types/payment/entities/Payment.ts"],"names":[],"mappings":";;;AAIA,oGAAiG;
|
|
1
|
+
{"version":3,"file":"Payment.js","sourceRoot":"","sources":["../../../../src/types/payment/entities/Payment.ts"],"names":[],"mappings":";;;AAIA,oGAAiG;AAMjG,MAAa,OAAQ,SAAQ,mEAAgC;CAuD5D;AAvDD,0BAuDC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Stripe } from 'stripe';
|
|
2
2
|
import { LineItems } from '../../entity/LineItems';
|
|
3
3
|
import { FeeDto } from '../../fee/dto/fee.dto';
|
|
4
|
-
import { PaymentMethodTypeEnum, SubPaymentMethodTypeEnum } from '../../services/enums.service';
|
|
4
|
+
import { PaymentMethodTypeEnum, PlatformsEnum, PaymentStatusEnum, SubPaymentMethodTypeEnum } from '../../services/enums.service';
|
|
5
|
+
export declare const ALLOWED_PAYMENT_STATUS: PaymentStatusEnum[];
|
|
5
6
|
export interface PaymentResult {
|
|
6
7
|
paymentMethodId: string;
|
|
7
8
|
paymentMethodType: PaymentMethodTypeEnum;
|
|
@@ -15,9 +16,9 @@ export interface PaymentsResults {
|
|
|
15
16
|
success: PaymentResult[];
|
|
16
17
|
failed: PaymentResult[];
|
|
17
18
|
}
|
|
18
|
-
export interface
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
export interface InvoicePriceSum {
|
|
20
|
+
totalPrice: number;
|
|
21
|
+
totalPaid: number;
|
|
21
22
|
}
|
|
22
23
|
export interface ExtendedLineItems {
|
|
23
24
|
memberships: LineItems[];
|
|
@@ -27,9 +28,21 @@ export interface ExtendedLineItems {
|
|
|
27
28
|
products: LineItems[];
|
|
28
29
|
events: LineItems[];
|
|
29
30
|
}
|
|
31
|
+
export interface GetPaymentMethodsOfUserFilters {
|
|
32
|
+
organizationId: number;
|
|
33
|
+
platform: PlatformsEnum;
|
|
34
|
+
}
|
|
30
35
|
export declare class PaymentMethodOption {
|
|
31
36
|
paymentMethodType: PaymentMethodTypeEnum;
|
|
32
37
|
subPaymentMethodType?: SubPaymentMethodTypeEnum;
|
|
33
38
|
fee?: FeeDto;
|
|
34
39
|
options?: Stripe.PaymentMethod[];
|
|
35
40
|
}
|
|
41
|
+
export interface GetExtendedInvoice {
|
|
42
|
+
invoiceId: number;
|
|
43
|
+
organizationId?: number;
|
|
44
|
+
userId?: number;
|
|
45
|
+
extendedData?: boolean;
|
|
46
|
+
onlyPublicNotes?: boolean;
|
|
47
|
+
includeCustomer?: boolean;
|
|
48
|
+
}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PaymentMethodOption = void 0;
|
|
3
|
+
exports.PaymentMethodOption = exports.ALLOWED_PAYMENT_STATUS = void 0;
|
|
4
|
+
const enums_service_1 = require("../../services/enums.service");
|
|
5
|
+
exports.ALLOWED_PAYMENT_STATUS = [
|
|
6
|
+
null,
|
|
7
|
+
enums_service_1.PaymentStatusEnum.FULLY_PAID,
|
|
8
|
+
enums_service_1.PaymentStatusEnum.REFUNDED,
|
|
9
|
+
];
|
|
4
10
|
class PaymentMethodOption {
|
|
5
11
|
}
|
|
6
12
|
exports.PaymentMethodOption = PaymentMethodOption;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment.js","sourceRoot":"","sources":["../../../../src/types/payment/interfaces/payment.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"payment.js","sourceRoot":"","sources":["../../../../src/types/payment/interfaces/payment.ts"],"names":[],"mappings":";;;AAIA,gEAAiI;AAEpH,QAAA,sBAAsB,GAAwB;IAC1D,IAAI;IACJ,iCAAiB,CAAC,UAAU;IAC5B,iCAAiB,CAAC,QAAQ;CAC1B,CAAC;AAoCF,MAAa,mBAAmB;CAQ/B;AARD,kDAQC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './purchase.dto';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./purchase.dto"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { ResourceDto } from './resource.dto';
|
|
1
|
+
import { UserAnswersDto } from '../../dto/application.dto';
|
|
2
|
+
import { ResourceDto } from '../../dto/resource.dto';
|
|
3
|
+
import { ScheduledPaymentDto } from '../../payment/dto/payment.dto';
|
|
4
|
+
import { PaymentMethodTypeEnum, PaymentStatusEnum, PlatformsEnum, ResourceNameTypeEnum } from '../../services/enums.service';
|
|
6
5
|
export declare class PurchasePaymentDto {
|
|
7
6
|
token: string;
|
|
8
7
|
type: PaymentMethodTypeEnum;
|
|
@@ -22,7 +21,8 @@ export declare class PurchaseRequestDto {
|
|
|
22
21
|
purchasingUserId: number;
|
|
23
22
|
customerId?: number;
|
|
24
23
|
products: PurchaseProductDto[];
|
|
25
|
-
paymentData
|
|
24
|
+
paymentData?: PurchasePaymentDto;
|
|
25
|
+
platform: PlatformsEnum;
|
|
26
26
|
answers: UserAnswersDto[];
|
|
27
27
|
amountToPay: number;
|
|
28
28
|
parentPurchasedType?: ResourceNameTypeEnum;
|
|
@@ -32,7 +32,6 @@ export declare class PurchaseRequestDto {
|
|
|
32
32
|
installments?: ScheduledPaymentDto[];
|
|
33
33
|
shiftId?: number;
|
|
34
34
|
invoiceId?: number;
|
|
35
|
-
platform?: PlatformsEnum;
|
|
36
35
|
}
|
|
37
36
|
export declare class PurchaseResourceDto extends ResourceDto {
|
|
38
37
|
}
|
|
@@ -52,6 +51,7 @@ export declare class PartialPaymentRequestDto {
|
|
|
52
51
|
organizationId: number;
|
|
53
52
|
payingUserId: number;
|
|
54
53
|
paymentMethodData: PurchasePaymentDto;
|
|
54
|
+
platform: PlatformsEnum;
|
|
55
55
|
shiftId?: number;
|
|
56
56
|
installmentId?: number;
|
|
57
57
|
}
|
|
@@ -67,11 +67,11 @@ export declare class AddItemsDto {
|
|
|
67
67
|
skipMail: boolean;
|
|
68
68
|
}
|
|
69
69
|
export declare class PartialPaymentAsUserDto {
|
|
70
|
-
invoiceId:
|
|
71
|
-
organizationId:
|
|
72
|
-
amountToPay:
|
|
73
|
-
paymentMethodData:
|
|
74
|
-
platform
|
|
70
|
+
invoiceId: number;
|
|
71
|
+
organizationId: number;
|
|
72
|
+
amountToPay: number;
|
|
73
|
+
paymentMethodData: PurchasePaymentDto;
|
|
74
|
+
platform: PlatformsEnum;
|
|
75
75
|
}
|
|
76
76
|
export declare class ValidateParticipantDto {
|
|
77
77
|
products: PurchaseProductDto[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ValidateParticipantDto = exports.PartialPaymentAsUserDto = exports.AddItemsDto = exports.RedeemPunchCardRequestDto = exports.PartialPaymentRequestDto = exports.PurchaseProductDto = exports.PurchaseResourceDto = exports.PurchaseRequestDto = exports.ChargeRentalsReuqestDto = exports.PurchasePaymentDto = void 0;
|
|
4
|
-
const resource_dto_1 = require("
|
|
4
|
+
const resource_dto_1 = require("../../dto/resource.dto");
|
|
5
5
|
class PurchasePaymentDto {
|
|
6
6
|
}
|
|
7
7
|
exports.PurchasePaymentDto = PurchasePaymentDto;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;AACA,yDAAqD;AASrD,MAAa,kBAAkB;CAK9B;AALD,gDAKC;AAED,MAAa,uBAAuB;CAkBnC;AAlBD,0DAkBC;AAED,MAAa,kBAAkB;CA4B9B;AA5BD,gDA4BC;AAED,MAAa,mBAAoB,SAAQ,0BAAW;CAAG;AAAvD,kDAAuD;AAEvD,MAAa,kBAAkB;CAgB9B;AAhBD,gDAgBC;AAED,MAAa,wBAAwB;CAgBpC;AAhBD,4DAgBC;AAED,MAAa,yBAAyB;CAQrC;AARD,8DAQC;AAED,MAAa,WAAW;IAAxB;QAGC,qBAAgB,GAAG,KAAK,CAAC;QAEzB,aAAQ,GAAG,KAAK,CAAC;IAClB,CAAC;CAAA;AAND,kCAMC;AAED,MAAa,uBAAuB;CAUnC;AAVD,0DAUC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./dto"), exports);
|
|
18
|
+
__exportStar(require("./interfaces"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/purchase/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,+CAA6B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './purchase';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./purchase"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/purchase/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Customer } from '../../entity/Customer';
|
|
2
|
+
import { Invoice } from '../../entity/Invoice';
|
|
3
|
+
import { Product } from '../../entity/Product';
|
|
4
|
+
import { ProductsUsers } from '../../entity/ProductsUsers';
|
|
5
|
+
import { Payment } from '../../payment/entities/Payment';
|
|
6
|
+
import { CurrencyEnum, LineItemsStatusEnum, PaymentMethodTypeEnum, PaymentStatusEnum, ProductSubTypesEnum, ProductTypesEnum } from '../../services/enums.service';
|
|
7
|
+
export type UserCount = {
|
|
8
|
+
male: number;
|
|
9
|
+
female: number;
|
|
10
|
+
other: number;
|
|
11
|
+
};
|
|
12
|
+
export declare const USER_COUNT_BY_GENDER_DEFAULT: UserCount;
|
|
13
|
+
export declare const CONSUMER_ALLOWED_PAYMENT_METHODS: PaymentMethodTypeEnum[];
|
|
14
|
+
export declare class PurchaseResult {
|
|
15
|
+
status: PaymentStatusEnum;
|
|
16
|
+
productUsers: ProductsUsers[];
|
|
17
|
+
invoice: Invoice;
|
|
18
|
+
payment?: Payment;
|
|
19
|
+
customer?: Customer;
|
|
20
|
+
}
|
|
21
|
+
export interface ILineItem {
|
|
22
|
+
id?: number;
|
|
23
|
+
product?: Product;
|
|
24
|
+
invoiceId?: number;
|
|
25
|
+
type: LineItemsStatusEnum;
|
|
26
|
+
productType: ProductTypesEnum;
|
|
27
|
+
productId: number;
|
|
28
|
+
userId?: number;
|
|
29
|
+
paymentProcessorId?: string;
|
|
30
|
+
ordinal?: number;
|
|
31
|
+
currency: CurrencyEnum;
|
|
32
|
+
originalPrice?: number;
|
|
33
|
+
price: number;
|
|
34
|
+
productSubType?: ProductSubTypesEnum;
|
|
35
|
+
organizationId: number;
|
|
36
|
+
entitlementGroupId?: number;
|
|
37
|
+
parentLineItemId?: number;
|
|
38
|
+
isTaxInclusive?: boolean;
|
|
39
|
+
taxPrecent?: number;
|
|
40
|
+
quantity: number;
|
|
41
|
+
totalPrice?: number;
|
|
42
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PurchaseResult = exports.CONSUMER_ALLOWED_PAYMENT_METHODS = exports.USER_COUNT_BY_GENDER_DEFAULT = void 0;
|
|
4
|
+
const enums_service_1 = require("../../services/enums.service");
|
|
5
|
+
exports.USER_COUNT_BY_GENDER_DEFAULT = { male: 0, female: 0, other: 1 };
|
|
6
|
+
exports.CONSUMER_ALLOWED_PAYMENT_METHODS = [
|
|
7
|
+
enums_service_1.PaymentMethodTypeEnum.ACH,
|
|
8
|
+
enums_service_1.PaymentMethodTypeEnum.CARD,
|
|
9
|
+
enums_service_1.PaymentMethodTypeEnum.BALANCE,
|
|
10
|
+
];
|
|
11
|
+
class PurchaseResult {
|
|
12
|
+
}
|
|
13
|
+
exports.PurchaseResult = PurchaseResult;
|
|
14
|
+
//# sourceMappingURL=purchase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"purchase.js","sourceRoot":"","sources":["../../../../src/types/purchase/interfaces/purchase.ts"],"names":[],"mappings":";;;AAKA,gEAOsC;AAQzB,QAAA,4BAA4B,GAAc,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;AAE3E,QAAA,gCAAgC,GAAG;IAC/C,qCAAqB,CAAC,GAAG;IACzB,qCAAqB,CAAC,IAAI;IAC1B,qCAAqB,CAAC,OAAO;CAC7B,CAAC;AAEF,MAAa,cAAc;CAU1B;AAVD,wCAUC"}
|
|
@@ -33,6 +33,7 @@ export declare class UpdateInvoiceDto extends UpdateInvoiceOptionsDto {
|
|
|
33
33
|
export declare class InvoiceReservationItemsDto extends UpdateInvoiceOptionsDto {
|
|
34
34
|
slotsIds?: number[];
|
|
35
35
|
addonsIds?: number[];
|
|
36
|
+
purchasingUserId?: number;
|
|
36
37
|
}
|
|
37
38
|
export declare class AddSlotsDto extends UpdateInvoiceDto {
|
|
38
39
|
slots: SlotDto[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoice.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/invoice.dto.ts"],"names":[],"mappings":";;;AAEA,uDAA6D;AAI7D,MAAa,UAAU;CAsBtB;AAtBD,gCAsBC;AAED,MAAa,cAAc;CAI1B;AAJD,wCAIC;AAED,MAAa,yBAA0B,SAAQ,0CAAwB;CAEtE;AAFD,8DAEC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,gBAAiB,SAAQ,uBAAuB;CAE5D;AAFD,4CAEC;AAED,MAAa,0BAA2B,SAAQ,uBAAuB;
|
|
1
|
+
{"version":3,"file":"invoice.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/invoice.dto.ts"],"names":[],"mappings":";;;AAEA,uDAA6D;AAI7D,MAAa,UAAU;CAsBtB;AAtBD,gCAsBC;AAED,MAAa,cAAc;CAI1B;AAJD,wCAIC;AAED,MAAa,yBAA0B,SAAQ,0CAAwB;CAEtE;AAFD,8DAEC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,gBAAiB,SAAQ,uBAAuB;CAE5D;AAFD,4CAEC;AAED,MAAa,0BAA2B,SAAQ,uBAAuB;CAMtE;AAND,gEAMC;AAED,MAAa,WAAY,SAAQ,gBAAgB;CAEhD;AAFD,kCAEC;AAED,MAAa,cAAe,SAAQ,gBAAgB;CAEnD;AAFD,wCAEC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PaginationQuery } from '../../dto/general.dto';
|
|
2
|
-
import { PurchasePaymentDto } from '../../dto/purchase.dto';
|
|
2
|
+
import { PurchasePaymentDto } from '../../purchase/dto/purchase.dto';
|
|
3
3
|
import { Product } from '../../entity/Product';
|
|
4
4
|
import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
|
|
5
5
|
import { PaymentMethodDto, RefundLineItemAmountDto } from '../../payment/dto/refund.dto';
|
|
@@ -7,7 +7,7 @@ import { NotifyMethodEnum, PlatformsEnum, ProgramTypesEnum, ReservationPaymentSt
|
|
|
7
7
|
import { AddonDto } from './addon.dto';
|
|
8
8
|
import { SegmentDto } from './segment.dto';
|
|
9
9
|
import { SeriesDto } from './series.dto';
|
|
10
|
-
import { SlotDto } from './slot.dto';
|
|
10
|
+
import { SlotDto, UpdateSlotsColorsDto } from './slot.dto';
|
|
11
11
|
export declare class ReservationDto {
|
|
12
12
|
id?: number;
|
|
13
13
|
organizationId?: number;
|
|
@@ -30,6 +30,8 @@ export declare class ReservationDto {
|
|
|
30
30
|
userId?: number;
|
|
31
31
|
overrideProductsPrice?: ProductPricesDto[];
|
|
32
32
|
targetGlobalPrice?: number;
|
|
33
|
+
colorCodeId?: number;
|
|
34
|
+
purchasingUserId?: number;
|
|
33
35
|
}
|
|
34
36
|
export declare class SaveReservationDto {
|
|
35
37
|
reservation: ReservationDto;
|
|
@@ -161,4 +163,14 @@ export declare class UpdateReservationInvoiceDto {
|
|
|
161
163
|
updateAddons?: boolean;
|
|
162
164
|
updateMaintenance?: boolean;
|
|
163
165
|
}
|
|
166
|
+
export declare class UpdateReservationSlotsColorsDto {
|
|
167
|
+
slots?: UpdateSlotsColorsDto[];
|
|
168
|
+
colorCodeId?: number;
|
|
169
|
+
}
|
|
170
|
+
export declare class UpdateCustomerSlotsColorsDto {
|
|
171
|
+
futureOnly?: boolean;
|
|
172
|
+
}
|
|
173
|
+
export declare class ReservationSuccessResponseDto {
|
|
174
|
+
data: string;
|
|
175
|
+
}
|
|
164
176
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateReservationInvoiceDto = exports.ReservationNotifyDto = exports.ValidateEditSlotsDto = exports.EditReservationDetailsDto = exports.EditSlotsDto = exports.EditItemsRefundMetaDto = exports.UpdateSlotsDto = exports.AddSlotToSegmenResultDto = exports.AddSlotToSegmentDto = exports.FindBySlotDto = exports.UpdateReservationStatusDto = exports.FindBySegmentDto = exports.FindByFacilityDto = exports.FindByReservationDto = exports.getSlotFQueryParamsDto = exports.getSlotsSlotCardDto = exports.FindSlotsByFacilityIdFiltersDto = exports.FindReservationsByOrganizationIdFiltersDto = exports.BookingDto = exports.BookingData = exports.UpdateSlotsPricesDto = exports.UpdateReservationPriceDto = exports.ProductPricesDto = exports.CategoryPricesDto = exports.SingleReservationIncludesDto = exports.SaveReservationDto = exports.ReservationDto = void 0;
|
|
3
|
+
exports.ReservationSuccessResponseDto = exports.UpdateCustomerSlotsColorsDto = exports.UpdateReservationSlotsColorsDto = exports.UpdateReservationInvoiceDto = exports.ReservationNotifyDto = exports.ValidateEditSlotsDto = exports.EditReservationDetailsDto = exports.EditSlotsDto = exports.EditItemsRefundMetaDto = exports.UpdateSlotsDto = exports.AddSlotToSegmenResultDto = exports.AddSlotToSegmentDto = exports.FindBySlotDto = exports.UpdateReservationStatusDto = exports.FindBySegmentDto = exports.FindByFacilityDto = exports.FindByReservationDto = exports.getSlotFQueryParamsDto = exports.getSlotsSlotCardDto = exports.FindSlotsByFacilityIdFiltersDto = exports.FindReservationsByOrganizationIdFiltersDto = exports.BookingDto = exports.BookingData = exports.UpdateSlotsPricesDto = exports.UpdateReservationPriceDto = exports.ProductPricesDto = exports.CategoryPricesDto = exports.SingleReservationIncludesDto = exports.SaveReservationDto = exports.ReservationDto = void 0;
|
|
4
4
|
const general_dto_1 = require("../../dto/general.dto");
|
|
5
5
|
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
|
6
6
|
const MAX_SLOTS_REQUEST_LIMIT = 5000;
|
|
@@ -90,4 +90,13 @@ exports.ReservationNotifyDto = ReservationNotifyDto;
|
|
|
90
90
|
class UpdateReservationInvoiceDto {
|
|
91
91
|
}
|
|
92
92
|
exports.UpdateReservationInvoiceDto = UpdateReservationInvoiceDto;
|
|
93
|
+
class UpdateReservationSlotsColorsDto {
|
|
94
|
+
}
|
|
95
|
+
exports.UpdateReservationSlotsColorsDto = UpdateReservationSlotsColorsDto;
|
|
96
|
+
class UpdateCustomerSlotsColorsDto {
|
|
97
|
+
}
|
|
98
|
+
exports.UpdateCustomerSlotsColorsDto = UpdateCustomerSlotsColorsDto;
|
|
99
|
+
class ReservationSuccessResponseDto {
|
|
100
|
+
}
|
|
101
|
+
exports.ReservationSuccessResponseDto = ReservationSuccessResponseDto;
|
|
93
102
|
//# sourceMappingURL=reservation.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAwD;AAGxD,8EAA8E;AAqB9E,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC,MAAa,cAAc;
|
|
1
|
+
{"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAwD;AAGxD,8EAA8E;AAqB9E,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC,MAAa,cAAc;CAqD1B;AArDD,wCAqDC;AAED,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAED,MAAa,4BAA4B;CAcxC;AAdD,oEAcC;AAED,MAAa,iBAAiB;CAI7B;AAJD,8CAIC;AAED,MAAa,gBAAgB;CAU5B;AAVD,4CAUC;AAED,MAAM,cAAc;CAQnB;AAED,MAAa,yBAA0B,SAAQ,cAAc;CAE5D;AAFD,8DAEC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAIvD;AAJD,oDAIC;AAED,MAAa,WAAW;CAYvB;AAZD,kCAYC;AAED,MAAa,UAAW,SAAQ,WAAW;CAI1C;AAJD,gCAIC;AAED,MAAa,0CAA2C,SAAQ,6BAAe;CAY9E;AAZD,gGAYC;AAED,MAAa,+BAA+B;IAA5C;QAKC,UAAK,GAAW,uBAAuB,CAAC;IAqBzC,CAAC;CAAA;AA1BD,0EA0BC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,iBAAkB,SAAQ,oBAAoB;CAE1D;AAFD,8CAEC;AAED,MAAa,gBAAiB,SAAQ,iBAAiB;CAEtD;AAFD,4CAEC;AAED,MAAa,0BAA2B,SAAQ,oBAAoB;CAEnE;AAFD,gEAEC;AAED,MAAa,aAAc,SAAQ,oBAAoB;CAEtD;AAFD,sCAEC;AAED,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AAED,MAAa,wBAAwB;CAQpC;AARD,4DAQC;AAED,MAAa,cAAc;CAE1B;AAFD,wCAEC;AAED,MAAa,sBAAsB;CAMlC;AAND,wDAMC;AAED,MAAa,YAAa,SAAQ,cAAc;CAE/C;AAFD,oCAEC;AAED,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAIvD;AAJD,oDAIC;AACD,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,2BAA2B;CAIvC;AAJD,kEAIC;AAED,MAAa,+BAA+B;CAI3C;AAJD,0EAIC;AAED,MAAa,4BAA4B;CAExC;AAFD,oEAEC;AAED,MAAa,6BAA6B;CAEzC;AAFD,sEAEC"}
|
|
@@ -49,6 +49,7 @@ export declare class SlotDto extends SlotDateTimeAndSpace {
|
|
|
49
49
|
slotDurationType: SlotDurationTypeEnum;
|
|
50
50
|
addons?: AddonDto[];
|
|
51
51
|
addonsIds?: number[];
|
|
52
|
+
colorCodeId?: number;
|
|
52
53
|
}
|
|
53
54
|
export declare class TimeSlotDto {
|
|
54
55
|
id?: number;
|
|
@@ -65,3 +66,7 @@ export declare class TimeSlotsDto {
|
|
|
65
66
|
export declare class SlotsIdsDto {
|
|
66
67
|
slotsIds: number[];
|
|
67
68
|
}
|
|
69
|
+
export declare class UpdateSlotsColorsDto {
|
|
70
|
+
slotId: number;
|
|
71
|
+
colorCodeId: number;
|
|
72
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SlotsIdsDto = exports.TimeSlotsDto = exports.TimeSlotDto = exports.SlotDto = exports.SlotDateTimeAndSpace = void 0;
|
|
3
|
+
exports.UpdateSlotsColorsDto = exports.SlotsIdsDto = exports.TimeSlotsDto = exports.TimeSlotDto = exports.SlotDto = exports.SlotDateTimeAndSpace = void 0;
|
|
4
4
|
class SlotDateTimeAndSpace {
|
|
5
5
|
}
|
|
6
6
|
exports.SlotDateTimeAndSpace = SlotDateTimeAndSpace;
|
|
@@ -16,4 +16,7 @@ exports.TimeSlotsDto = TimeSlotsDto;
|
|
|
16
16
|
class SlotsIdsDto {
|
|
17
17
|
}
|
|
18
18
|
exports.SlotsIdsDto = SlotsIdsDto;
|
|
19
|
+
class UpdateSlotsColorsDto {
|
|
20
|
+
}
|
|
21
|
+
exports.UpdateSlotsColorsDto = UpdateSlotsColorsDto;
|
|
19
22
|
//# sourceMappingURL=slot.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;AAaA,MAAa,oBAAoB;CAUhC;AAVD,oDAUC;AAED,MAAa,OAAQ,SAAQ,oBAAoB;
|
|
1
|
+
{"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;AAaA,MAAa,oBAAoB;CAUhC;AAVD,oDAUC;AAED,MAAa,OAAQ,SAAQ,oBAAoB;CAuFhD;AAvFD,0BAuFC;AAED,MAAa,WAAW;CAevB;AAfD,kCAeC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,WAAW;CAEvB;AAFD,kCAEC;AAED,MAAa,oBAAoB;CAIhC;AAJD,oDAIC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PurchasePaymentDto } from '
|
|
1
|
+
import { PurchasePaymentDto } from '../../purchase/dto/purchase.dto';
|
|
2
2
|
import { SportsEnum } from '../../services/enums.service';
|
|
3
3
|
import { QuestionAnswersDto } from '../../dto/application.dto';
|
|
4
4
|
export declare class BookedSessionDto {
|
|
@@ -10,6 +10,7 @@ import { Addon } from './Addon';
|
|
|
10
10
|
import { Reservation } from './Reservations';
|
|
11
11
|
import { Segment } from './Segments';
|
|
12
12
|
import { Series } from './Series';
|
|
13
|
+
import { ColorCode } from '../../entity/ColorCode';
|
|
13
14
|
export declare class Slot extends OrganizationConnectionBaseEntity {
|
|
14
15
|
isReverted: boolean;
|
|
15
16
|
reservationId: number;
|
|
@@ -68,6 +69,8 @@ export declare class Slot extends OrganizationConnectionBaseEntity {
|
|
|
68
69
|
};
|
|
69
70
|
slotDurationType: string;
|
|
70
71
|
previousProductUsersIds?: number[];
|
|
72
|
+
colorCodeId: number | null;
|
|
73
|
+
colorCode: ColorCode | null;
|
|
71
74
|
previousProductUsers?: ProductsUsers[];
|
|
72
75
|
conflictsCount?: number;
|
|
73
76
|
conflicts?: Slot[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slots.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/Slots.ts"],"names":[],"mappings":";;;AAIA,oGAAiG;
|
|
1
|
+
{"version":3,"file":"Slots.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/Slots.ts"],"names":[],"mappings":";;;AAIA,oGAAiG;AAiBjG,MAAa,IAAK,SAAQ,mEAAgC;CA0HzD;AA1HD,oBA0HC"}
|
|
@@ -252,9 +252,15 @@ export declare enum PaymentMethodTypeEnum {
|
|
|
252
252
|
VOID = "void",
|
|
253
253
|
GIFT_CARD = "gift-card"
|
|
254
254
|
}
|
|
255
|
+
export declare enum PaymentProcessorEnum {
|
|
256
|
+
STRIPE = "stripe",
|
|
257
|
+
OTHER = "other"
|
|
258
|
+
}
|
|
255
259
|
export declare enum SubPaymentMethodTypeEnum {
|
|
256
|
-
|
|
257
|
-
|
|
260
|
+
CREDIT = "credit",
|
|
261
|
+
DEBIT = "debit",
|
|
262
|
+
PREPAID = "prepaid",
|
|
263
|
+
UNKNOWN = "unknown"
|
|
258
264
|
}
|
|
259
265
|
export declare enum RefundTypeEnum {
|
|
260
266
|
LEAVE_BALANCE = "leave_balance",
|
|
@@ -412,6 +418,7 @@ export declare enum RegistrationWindowStatusEnum {
|
|
|
412
418
|
}
|
|
413
419
|
export declare enum RegistrationValidationStatusEnum {
|
|
414
420
|
FULL = "full",
|
|
421
|
+
OVER_REGISTERED = "over registered",
|
|
415
422
|
ALREADY_REGISTERED = "registered",
|
|
416
423
|
AVAILABLE = "available",
|
|
417
424
|
NOT_OPEN_YET = "not opened",
|
|
@@ -445,7 +452,8 @@ export declare enum PlatformsEnum {
|
|
|
445
452
|
BO = "backoffice",
|
|
446
453
|
MOBILE = "mobile",
|
|
447
454
|
CRON = "cron",
|
|
448
|
-
IMPORT = "import"
|
|
455
|
+
IMPORT = "import",
|
|
456
|
+
OTHER = "other"
|
|
449
457
|
}
|
|
450
458
|
export declare enum ShiftStatusEnum {
|
|
451
459
|
OPEN = "open",
|
|
@@ -575,3 +583,14 @@ export declare enum ActivityEnum {
|
|
|
575
583
|
ACTIVE = "active",
|
|
576
584
|
INACTIVE = "inactive"
|
|
577
585
|
}
|
|
586
|
+
export declare enum PromiseStatusEnum {
|
|
587
|
+
FULFILLED = "fulfilled",
|
|
588
|
+
REJECTED = "rejected"
|
|
589
|
+
}
|
|
590
|
+
export declare enum PriceFieldEnum {
|
|
591
|
+
PRICE = "price",
|
|
592
|
+
TOTAL_PRICE = "totalPrice",
|
|
593
|
+
AMOUNT = "amount",
|
|
594
|
+
PAID_AMOUNT = "paidAmount",
|
|
595
|
+
FEE_AMOUNT = "feeAmount"
|
|
596
|
+
}
|