@bondsports/types 2.1.67 → 2.1.69
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/dto/index.d.ts +1 -0
- package/dist/types/dto/index.js +1 -0
- package/dist/types/dto/index.js.map +1 -1
- package/dist/types/dto/userPaymentMethod.dto.d.ts +7 -0
- package/dist/types/dto/userPaymentMethod.dto.js +8 -0
- package/dist/types/dto/userPaymentMethod.dto.js.map +1 -0
- package/dist/types/entity/ProductPackage.d.ts +0 -1
- package/dist/types/entity/ProductPackage.js.map +1 -1
- package/dist/types/payment/dto/payment.dto.d.ts +48 -3
- package/dist/types/payment/dto/payment.dto.js +2 -2
- package/dist/types/payment/dto/payment.dto.js.map +1 -1
- package/dist/types/payment/entities/Payment.d.ts +1 -4
- package/dist/types/payment/entities/Payment.js.map +1 -1
- package/dist/types/product-pricing/entities/Product.d.ts +4 -2
- package/dist/types/product-pricing/entities/Product.js.map +1 -1
- package/dist/types/product-pricing/types/enums/index.d.ts +1 -0
- package/dist/types/product-pricing/types/enums/index.js +18 -0
- package/dist/types/product-pricing/types/enums/index.js.map +1 -0
- package/dist/types/product-pricing/types/enums/product.enums.d.ts +4 -0
- package/dist/types/product-pricing/types/enums/product.enums.js +9 -0
- package/dist/types/product-pricing/types/enums/product.enums.js.map +1 -0
- package/dist/types/product-pricing/types/index.d.ts +1 -0
- package/dist/types/product-pricing/types/index.js +1 -0
- package/dist/types/product-pricing/types/index.js.map +1 -1
- package/dist/types/reservations/interfaces/reservation.d.ts +2 -2
- package/package.json +1 -1
package/dist/types/dto/index.js
CHANGED
@@ -33,4 +33,5 @@ __exportStar(require("./rental.dto"), exports);
|
|
33
33
|
__exportStar(require("./response.dto"), exports);
|
34
34
|
__exportStar(require("./slots.dto"), exports);
|
35
35
|
__exportStar(require("./stripe.dto"), exports);
|
36
|
+
__exportStar(require("./userPaymentMethod.dto"), exports);
|
36
37
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,oDAAkC;AAClC,2DAAyC;AACzC,sDAAoC;AACpC,iDAA+B;AAC/B,+CAA6B;AAC7B,+CAA6B;AAC7B,mDAAiC;AACjC,gDAA8B;AAC9B,wDAAsC;AACtC,mDAAiC;AACjC,gDAA8B;AAC9B,iDAA+B;AAC/B,yDAAuC;AACvC,qDAAmC;AACnC,+CAA6B;AAC7B,iDAA+B;AAC/B,8CAA4B;AAC5B,+CAA6B"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,oDAAkC;AAClC,2DAAyC;AACzC,sDAAoC;AACpC,iDAA+B;AAC/B,+CAA6B;AAC7B,+CAA6B;AAC7B,mDAAiC;AACjC,gDAA8B;AAC9B,wDAAsC;AACtC,mDAAiC;AACjC,gDAA8B;AAC9B,iDAA+B;AAC/B,yDAAuC;AACvC,qDAAmC;AACnC,+CAA6B;AAC7B,iDAA+B;AAC/B,8CAA4B;AAC5B,+CAA6B;AAC7B,0DAAwC"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { SubPaymentMethodTypeEnum } from '../payment/types/enums/payment.enums';
|
2
|
+
import { OrganizationConnectionBaseEntity } from '../entity/OrganizationConnectionBaseEntity';
|
3
|
+
export declare class BasePaymentMethodFieldsDto extends OrganizationConnectionBaseEntity {
|
4
|
+
ccLast4?: string;
|
5
|
+
ccBrand?: string;
|
6
|
+
subPaymentMethodType?: SubPaymentMethodTypeEnum;
|
7
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.BasePaymentMethodFieldsDto = void 0;
|
4
|
+
const OrganizationConnectionBaseEntity_1 = require("../entity/OrganizationConnectionBaseEntity");
|
5
|
+
class BasePaymentMethodFieldsDto extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
|
6
|
+
}
|
7
|
+
exports.BasePaymentMethodFieldsDto = BasePaymentMethodFieldsDto;
|
8
|
+
//# sourceMappingURL=userPaymentMethod.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"userPaymentMethod.dto.js","sourceRoot":"","sources":["../../../src/types/dto/userPaymentMethod.dto.ts"],"names":[],"mappings":";;;AACA,iGAA8F;AAE9F,MAAa,0BAA2B,SAAQ,mEAAgC;CAM/E;AAND,gEAMC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ProductPackage.js","sourceRoot":"","sources":["../../../src/types/entity/ProductPackage.ts"],"names":[],"mappings":";;;AAKA,yFAAsF;AAKtF,MAAa,cAAe,SAAQ,mEAAgC;
|
1
|
+
{"version":3,"file":"ProductPackage.js","sourceRoot":"","sources":["../../../src/types/entity/ProductPackage.ts"],"names":[],"mappings":";;;AAKA,yFAAsF;AAKtF,MAAa,cAAe,SAAQ,mEAAgC;CA2BnE;AA3BD,wCA2BC"}
|
@@ -1,11 +1,22 @@
|
|
1
1
|
import { PaginationQuery } from '../../dto/general.dto';
|
2
2
|
import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
|
3
3
|
import { PurchaseProductDto } from '../../purchase/dto/purchase.dto';
|
4
|
-
import { MonthsEnum, OrderByEnum, PaymentSettingStatusEnum, PlatformsEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../../services/enums.service';
|
5
|
-
import { Payment } from '../entities/Payment';
|
4
|
+
import { CurrencyEnum, MonthsEnum, OrderByEnum, PaymentSettingStatusEnum, PlatformsEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../../services/enums.service';
|
6
5
|
import { LinkedAccountStatus } from '../types/enums/linked-account.enums';
|
7
6
|
import { FuturePaymentStatusEnum, PaymentFilterByEnum, PaymentMethodTypeEnum, PaymentStatusEnum, SubPaymentMethodTypeEnum } from '../types/enums/payment.enums';
|
8
7
|
import { CustomerDto } from '../../dto/customer.dto';
|
8
|
+
import { BasePaymentMethodFieldsDto } from '../../dto/userPaymentMethod.dto';
|
9
|
+
import { FutureInstallment } from '../entities/FutureInstallment';
|
10
|
+
import { Reason } from '../../organization/entities/Reason';
|
11
|
+
import { User } from '../../user/entities/User';
|
12
|
+
import { Invoice } from '../../entity/Invoice';
|
13
|
+
import { InvoiceToPayment } from '../../entity/InvoiceToPayment';
|
14
|
+
import { LineItemHistory } from '../../entity/LineItemHistory';
|
15
|
+
import { LineItems } from '../../entity/LineItems';
|
16
|
+
import { PaymentFeeDto } from '../../fee/dto/payment-fee.dto';
|
17
|
+
import { PaymentFee } from '../../fee/entities/PaymentFee';
|
18
|
+
import { Discount } from '../entities/Discount';
|
19
|
+
import { PaymentNote } from '../entities/PaymentNote';
|
9
20
|
export declare class CustomerIdDto {
|
10
21
|
customerId: number;
|
11
22
|
}
|
@@ -127,9 +138,43 @@ export declare class GetPaymentMethodsDto {
|
|
127
138
|
paymentMethodTypes?: PaymentMethodTypeEnum[];
|
128
139
|
subPaymentMethodTypes?: SubPaymentMethodTypeEnum[];
|
129
140
|
}
|
130
|
-
export declare class PaymentDto extends
|
141
|
+
export declare class PaymentDto extends BasePaymentMethodFieldsDto {
|
131
142
|
customer?: CustomerDto;
|
132
143
|
priceWithoutFee?: number;
|
144
|
+
price: number;
|
145
|
+
paymentProcessorId: string;
|
146
|
+
paymentStatus: PaymentStatusEnum;
|
147
|
+
bondFee?: number;
|
148
|
+
stripeFee?: number;
|
149
|
+
currency: CurrencyEnum;
|
150
|
+
payingUserId?: number;
|
151
|
+
payingUser?: User;
|
152
|
+
paymentMethodId?: number;
|
153
|
+
paymentType?: PaymentMethodTypeEnum;
|
154
|
+
status: FuturePaymentStatusEnum;
|
155
|
+
fundLeft: number;
|
156
|
+
notes?: string;
|
157
|
+
isRefunded: boolean;
|
158
|
+
lineItemHistory: LineItemHistory[];
|
159
|
+
receiptUrl?: string;
|
160
|
+
paymentProcessorTransactionId?: string;
|
161
|
+
creatingUserId?: number;
|
162
|
+
shiftId?: number;
|
163
|
+
platform?: PlatformsEnum;
|
164
|
+
paymentNotes: PaymentNote[];
|
165
|
+
parentPaymentId?: number;
|
166
|
+
reasonId?: number;
|
167
|
+
reason?: Reason;
|
168
|
+
note?: string;
|
169
|
+
discountId?: number;
|
170
|
+
installmentId?: number;
|
171
|
+
discount?: Discount;
|
172
|
+
paymentFees: PaymentFee[] | PaymentFeeDto[];
|
173
|
+
invoices: Invoice[];
|
174
|
+
installments?: FutureInstallment[];
|
175
|
+
totalFeesAmount?: number;
|
176
|
+
lineItems: LineItems[];
|
177
|
+
invoiceToPayments: InvoiceToPayment[];
|
133
178
|
stripePaymentMethodId?: string;
|
134
179
|
}
|
135
180
|
export declare class PaymentSettingsDto {
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StripeAccountStatusDto = exports.PaymentSettingsDto = exports.PaymentDto = exports.GetPaymentMethodsDto = exports.SendPaymentRequestDto = exports.RevertMetaDto = exports.RemoveResourceDto = exports.NotePrivacyDto = exports.UpdateNoteContentDto = exports.CreateNoteDto = exports.AddToInvoiceDto = exports.SendReceiptDataDto = exports.PaymentDataDto = exports.PaymentIntentDto = exports.StationsDto = exports.FindPayments = exports.ByPaymentFilter = exports.PaymentViaInvoiceHashDto = exports.GetPaymentsQueryDto = exports.GetInvoicesQueryDto = exports.InvoiceIdAndUserIdDto = exports.ByInvoiceAndCustomerDto = exports.ByInvoiceDto = exports.InvoiceIdDto = exports.GetPaymentByCustomerDeprecatedDto = exports.GetPaymentByUserDto = exports.ByPaymentDto = exports.GetPaymentDto = exports.ByPaymentAndCustomerDto = exports.PaymentIdDto = exports.CustomerIdDto = void 0;
|
4
4
|
const general_dto_1 = require("../../dto/general.dto");
|
5
5
|
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
6
|
-
const
|
6
|
+
const userPaymentMethod_dto_1 = require("../../dto/userPaymentMethod.dto");
|
7
7
|
class CustomerIdDto {
|
8
8
|
}
|
9
9
|
exports.CustomerIdDto = CustomerIdDto;
|
@@ -89,7 +89,7 @@ class GetPaymentMethodsDto {
|
|
89
89
|
}
|
90
90
|
exports.GetPaymentMethodsDto = GetPaymentMethodsDto;
|
91
91
|
// TODO: change it to real dto with profile
|
92
|
-
class PaymentDto extends
|
92
|
+
class PaymentDto extends userPaymentMethod_dto_1.BasePaymentMethodFieldsDto {
|
93
93
|
}
|
94
94
|
exports.PaymentDto = PaymentDto;
|
95
95
|
class PaymentSettingsDto {
|
@@ -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,8EAA8E;AAoB9E,2EAA6E;AAc7E,MAAa,aAAa;CAEzB;AAFD,sCAEC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,uBAAwB,SAAQ,YAAY;CAExD;AAFD,0DAEC;AAED,MAAa,aAAc,SAAQ,YAAY;CAE9C;AAFD,sCAEC;AAED,MAAa,YAAa,SAAQ,sCAAmB;CAEpD;AAFD,oCAEC;AAED,MAAa,mBAAoB,SAAQ,YAAY;CAEpD;AAFD,kDAEC;AAED,MAAa,iCAAkC,SAAQ,YAAY;CAElE;AAFD,8EAEC;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,YAAY;CAEtD;AAFD,sDAEC;AAED,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AAED,MAAa,mBAAmB;CAM/B;AAND,kDAMC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,eAAgB,SAAQ,6BAAe;CAkBnD;AAlBD,0CAkBC;AAED,MAAa,YAAa,SAAQ,eAAe;CAQhD;AARD,oCAQC;AACD,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,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,iBAAiB;CAM7B;AAND,8CAMC;AAED,MAAa,aAAa;CAEzB;AAFD,sCAEC;AAED,MAAa,qBAAsB,SAAQ,YAAY;CAMtD;AAND,sDAMC;AAED,MAAa,oBAAoB;CAMhC;AAND,oDAMC;AAED,2CAA2C;AAC3C,MAAa,UAAW,SAAQ,kDAA0B;CA0EzD;AA1ED,gCA0EC;AAED,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAED,MAAa,sBAAsB;CAYlC;AAZD,wDAYC"}
|
@@ -8,7 +8,7 @@ import { PaymentFee } from '../../fee/entities/PaymentFee';
|
|
8
8
|
import { Reason } from '../../organization/entities/Reason';
|
9
9
|
import { CurrencyEnum, PlatformsEnum } from '../../services/enums.service';
|
10
10
|
import { User } from '../../user/entities/User';
|
11
|
-
import { FuturePaymentStatusEnum, PaymentMethodTypeEnum, PaymentStatusEnum
|
11
|
+
import { FuturePaymentStatusEnum, PaymentMethodTypeEnum, PaymentStatusEnum } from '../types/enums/payment.enums';
|
12
12
|
import { Discount } from './Discount';
|
13
13
|
import { FutureInstallment } from './FutureInstallment';
|
14
14
|
import { PaymentNote } from './PaymentNote';
|
@@ -27,7 +27,6 @@ export declare class Payment extends OrganizationConnectionBaseEntity {
|
|
27
27
|
paymentMethod?: UserPaymentMethod;
|
28
28
|
token?: string;
|
29
29
|
paymentType?: PaymentMethodTypeEnum;
|
30
|
-
subPaymentMethodType?: SubPaymentMethodTypeEnum;
|
31
30
|
status: FuturePaymentStatusEnum;
|
32
31
|
fundLeft: number;
|
33
32
|
notes?: string;
|
@@ -38,8 +37,6 @@ export declare class Payment extends OrganizationConnectionBaseEntity {
|
|
38
37
|
creatingUserId?: number;
|
39
38
|
shiftId?: number;
|
40
39
|
platform?: PlatformsEnum;
|
41
|
-
ccLast4?: string;
|
42
|
-
ccBrand?: string;
|
43
40
|
paymentNotes: PaymentNote[];
|
44
41
|
parentPaymentId?: number;
|
45
42
|
reasonId?: number;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Payment.js","sourceRoot":"","sources":["../../../../src/types/payment/entities/Payment.ts"],"names":[],"mappings":";;;AAKA,oGAAiG;
|
1
|
+
{"version":3,"file":"Payment.js","sourceRoot":"","sources":["../../../../src/types/payment/entities/Payment.ts"],"names":[],"mappings":";;;AAKA,oGAAiG;AAYjG,MAAa,OAAQ,SAAQ,mEAAgC;CAyE5D;AAzED,0BAyEC"}
|
@@ -15,10 +15,11 @@ import { ResourceGlDto } from '../../gl-codes/dto/resource-to-gl.dto';
|
|
15
15
|
import { ProductPaymentPlan } from '../../payment/entities/ProductPaymentPlan';
|
16
16
|
import { Price } from '../../pricing/entities/Price';
|
17
17
|
import { ResourceSetting } from '../../resource-settings/entities/resource-setting.entity';
|
18
|
-
import { AddonTimePeriodEnum, ProductSubTypesEnum, ProductTypesEnum } from '../../services/enums.service';
|
18
|
+
import { ActivityEnum, AddonTimePeriodEnum, ProductSubTypesEnum, ProductTypesEnum } from '../../services/enums.service';
|
19
19
|
import { IChildProduct, IResourcesAvailability } from '../../services/interfaces.service';
|
20
20
|
import { ProductResourceDto } from '../dto/product-resource.dto';
|
21
21
|
import { Facility } from '../../entity/Facility';
|
22
|
+
import { ProductStateEnum } from '../types/enums/product.enums';
|
22
23
|
export declare class Product extends OrganizationConnectionBaseEntity {
|
23
24
|
name: string;
|
24
25
|
quantity: number;
|
@@ -63,7 +64,8 @@ export declare class Product extends OrganizationConnectionBaseEntity {
|
|
63
64
|
durationMinutes?: number;
|
64
65
|
durationDays?: number;
|
65
66
|
forms?: number[] | null;
|
66
|
-
|
67
|
+
status: ActivityEnum;
|
68
|
+
state: ProductStateEnum;
|
67
69
|
isForAllCustomers?: boolean;
|
68
70
|
productsReservedForCustomers: ProductsReservedForCustomers[];
|
69
71
|
reservedForCustomers: Customer[];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Product.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/Product.ts"],"names":[],"mappings":";;;AAiBA,oGAAiG;
|
1
|
+
{"version":3,"file":"Product.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/Product.ts"],"names":[],"mappings":";;;AAiBA,oGAAiG;AAmBjG,MAAa,OAAQ,SAAQ,mEAAgC;CAsH5D;AAtHD,0BAsHC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './product.enums';
|
@@ -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("./product.enums"), exports);
|
18
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ProductStateEnum = void 0;
|
4
|
+
var ProductStateEnum;
|
5
|
+
(function (ProductStateEnum) {
|
6
|
+
ProductStateEnum["VALID"] = "valid";
|
7
|
+
ProductStateEnum["IN_PROGRESS"] = "in_progress";
|
8
|
+
})(ProductStateEnum = exports.ProductStateEnum || (exports.ProductStateEnum = {}));
|
9
|
+
//# sourceMappingURL=product.enums.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"product.enums.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/enums/product.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC3B,mCAAe,CAAA;IACf,+CAA2B,CAAA;AAC5B,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B"}
|
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./enums"), exports);
|
17
18
|
__exportStar(require("./interfaces"), exports);
|
18
19
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,+CAA6B"}
|
@@ -3,7 +3,6 @@ import { Answer } from '../../questionnaires/entities/Answer';
|
|
3
3
|
import { Customer } from '../../entity/Customer';
|
4
4
|
import { Invoice } from '../../entity/Invoice';
|
5
5
|
import { Product } from '../../product-pricing/entities/Product';
|
6
|
-
import { Payment } from '../../payment/entities/Payment';
|
7
6
|
import { PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
|
8
7
|
import { RefundResult } from '../../payment/types/interfaces/refund.interfaces';
|
9
8
|
import { FinancialStepEnum, ReservationStatusEnum, ReservationTypeEnum } from '../../services/enums.service';
|
@@ -21,6 +20,7 @@ import { Segment } from '../entities/Segments';
|
|
21
20
|
import { Series } from '../entities/Series';
|
22
21
|
import { Slot } from '../entities/Slots';
|
23
22
|
import * as moment from 'moment';
|
23
|
+
import { PaymentDto } from '../../payment/dto/payment.dto';
|
24
24
|
export declare const RESOURCE_TOTAL_FIELD = "totalPrice";
|
25
25
|
export declare const DEFAULT_ADDON_QUANTITY = 1;
|
26
26
|
export declare const PUBLIC_NOTES_LIMIT = 500;
|
@@ -157,7 +157,7 @@ export interface CalendarSlotCard extends Slot {
|
|
157
157
|
slotIndexInSeries?: number;
|
158
158
|
}
|
159
159
|
type IPartialInvoice = Pick<Invoice, 'id' | 'createdAt' | 'price' | 'paymentStatus' | 'paidAmount' | 'payingUserId'>;
|
160
|
-
export type IPartialPayment = Pick<
|
160
|
+
export type IPartialPayment = Pick<PaymentDto, 'id' | 'createdAt' | 'price' | 'paymentStatus' | 'status' | 'paymentType' | 'ccBrand' | 'ccLast4'>;
|
161
161
|
export interface IInvoice extends IPartialInvoice {
|
162
162
|
lineItemsCount: number;
|
163
163
|
}
|