@bondsports/types 2.2.11 → 2.2.13
Sign up to get free protection for your applications and to get access to all the features.
@@ -4,6 +4,7 @@ import { ItemDiscountDto } from '../payment/dto/discount.dto';
|
|
4
4
|
import { FutureInstallment } from '../payment/entities/FutureInstallment';
|
5
5
|
import { Payment } from '../payment/entities/Payment';
|
6
6
|
import { PaymentMethodTypeEnum, PaymentStatusEnum } from '../payment/types/enums/payment.enums';
|
7
|
+
import { Addon } from '../reservations/entities/Addon';
|
7
8
|
import { Reservation } from '../reservations/entities/Reservations';
|
8
9
|
import { Slot } from '../reservations/entities/Slots';
|
9
10
|
import { CurrencyEnum, InvoiceStatusEnum, PlatformsEnum } from '../services/enums.service';
|
@@ -42,6 +43,7 @@ export declare class Invoice extends BondBaseEntity {
|
|
42
43
|
isPublic?: boolean;
|
43
44
|
invoiceNotes: InvoiceNote[];
|
44
45
|
slots: Slot[];
|
46
|
+
addons: Addon[];
|
45
47
|
paymentsFees: PaymentFee[] | PaymentFeeDto[];
|
46
48
|
installments?: FutureInstallment[];
|
47
49
|
itemsAmount?: number;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Invoice.js","sourceRoot":"","sources":["../../../src/types/entity/Invoice.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"Invoice.js","sourceRoot":"","sources":["../../../src/types/entity/Invoice.ts"],"names":[],"mappings":";;;AAgBA,qDAAkD;AAOlD,MAAa,OAAQ,SAAQ,+BAAc;CAyF1C;AAzFD,0BAyFC"}
|
@@ -10,6 +10,9 @@ import { Product } from '../../../product-pricing/entities/Product';
|
|
10
10
|
import { ResourceDto } from '../../../resources/dto/resource.dto';
|
11
11
|
import { CurrencyEnum, LineItemsStatusEnum, ProductSubTypesEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../../../services/enums.service';
|
12
12
|
import { PurchasePaymentDto } from '../../dto/purchase.dto';
|
13
|
+
import { User } from '../../../user/entities/User';
|
14
|
+
import { Organization } from '../../../organization/entities/Organization';
|
15
|
+
import { UserPaymentMethod } from '../../../entity/user-payment-method';
|
13
16
|
export type UserCount = {
|
14
17
|
male: number;
|
15
18
|
female: number;
|
@@ -35,6 +38,11 @@ export interface ILineItem {
|
|
35
38
|
quantity: number;
|
36
39
|
totalPrice?: number;
|
37
40
|
}
|
41
|
+
export interface ChargeInstallmentDataMap {
|
42
|
+
usersMap: Map<number, User>;
|
43
|
+
organizationsMap: Map<number, Organization>;
|
44
|
+
userPaymentMethodMap: Map<number, UserPaymentMethod>;
|
45
|
+
}
|
38
46
|
export interface IChargeInvoice extends ISaveInvoicePayment {
|
39
47
|
amountToPay?: number;
|
40
48
|
resources?: ResourceDto[];
|