@bondsports/types 2.0.19 → 2.0.21
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/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/payment/dto/discount.dto.d.ts +1 -0
- package/dist/types/payment/dto/discount.dto.js.map +1 -1
- package/dist/types/payment/dto/payment.dto.d.ts +17 -0
- package/dist/types/payment/dto/payment.dto.js +18 -1
- package/dist/types/payment/dto/payment.dto.js.map +1 -1
- package/dist/types/payment/entities/Payment.js.map +1 -1
- package/dist/types/payment/types/interfaces/payment.interfaces.d.ts +5 -0
- package/package.json +1 -1
|
@@ -101,6 +101,7 @@ export declare class ItemDiscountDto extends OrganizationBaseEntityDto {
|
|
|
101
101
|
discountPercentage: number;
|
|
102
102
|
discountOn: DiscountOnEnum;
|
|
103
103
|
currency: CurrencyEnum;
|
|
104
|
+
quantity?: number;
|
|
104
105
|
discountAmount: number;
|
|
105
106
|
price: number;
|
|
106
107
|
unitPrice: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discount.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/discount.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAwD;AAExD,8EAAoF;AAKpF,MAAM,iBAAiB;CA8BtB;AAED,MAAa,WAAY,SAAQ,iBAAiB;CAYjD;AAZD,kCAYC;AAED,MAAa,iBAAkB,SAAQ,4CAAyB;CAQ/D;AARD,8CAQC;AAED,MAAa,eAAgB,SAAQ,6BAAe;CAMnD;AAND,0CAMC;AAED,MAAa,iBAAkB,SAAQ,iBAAiB;CAUvD;AAVD,8CAUC;AAED,MAAa,iBAAiB;CA4B7B;AA5BD,8CA4BC;AAED,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,cAAc;CAQ1B;AARD,wCAQC;AAED,MAAa,eAAe;CAQ3B;AARD,0CAQC;AAED,MAAa,iBAAiB;CAI7B;AAJD,8CAIC;AAED,MAAa,kBAAkB;CAM9B;AAND,gDAMC;AAED,MAAa,eAAgB,SAAQ,4CAAyB;
|
|
1
|
+
{"version":3,"file":"discount.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/discount.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAwD;AAExD,8EAAoF;AAKpF,MAAM,iBAAiB;CA8BtB;AAED,MAAa,WAAY,SAAQ,iBAAiB;CAYjD;AAZD,kCAYC;AAED,MAAa,iBAAkB,SAAQ,4CAAyB;CAQ/D;AARD,8CAQC;AAED,MAAa,eAAgB,SAAQ,6BAAe;CAMnD;AAND,0CAMC;AAED,MAAa,iBAAkB,SAAQ,iBAAiB;CAUvD;AAVD,8CAUC;AAED,MAAa,iBAAiB;CA4B7B;AA5BD,8CA4BC;AAED,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,cAAc;CAQ1B;AARD,wCAQC;AAED,MAAa,eAAe;CAQ3B;AARD,0CAQC;AAED,MAAa,iBAAiB;CAI7B;AAJD,8CAIC;AAED,MAAa,kBAAkB;CAM9B;AAND,gDAMC;AAED,MAAa,eAAgB,SAAQ,4CAAyB;CA4B7D;AA5BD,0CA4BC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { PaginationQuery } from '../../dto/general.dto';
|
|
2
|
+
import { Customer } from '../../entity/Customer';
|
|
2
3
|
import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
|
|
3
4
|
import { PurchaseProductDto } from '../../purchase/dto/purchase.dto';
|
|
4
5
|
import { OrderByEnum, PlatformsEnum, ResourceNameTypeEnum } from '../../services/enums.service';
|
|
6
|
+
import { Payment } from '../entities/Payment';
|
|
5
7
|
import { FuturePaymentStatusEnum, PaymentFilterByEnum, PaymentMethodTypeEnum, PaymentStatusEnum, SubPaymentMethodTypeEnum } from '../types/enums/payment.enums';
|
|
6
8
|
export declare class CustomerIdDto {
|
|
7
9
|
customerId: number;
|
|
@@ -9,9 +11,21 @@ export declare class CustomerIdDto {
|
|
|
9
11
|
export declare class PaymentIdDto {
|
|
10
12
|
paymentId: number;
|
|
11
13
|
}
|
|
14
|
+
export declare class ByPaymentAndCustomerDto extends PaymentIdDto {
|
|
15
|
+
customerId: number;
|
|
16
|
+
}
|
|
17
|
+
export declare class GetPaymentDto extends PaymentIdDto {
|
|
18
|
+
userId: number;
|
|
19
|
+
}
|
|
12
20
|
export declare class ByPaymentDto extends ByOrganizationIdDto {
|
|
13
21
|
paymentId: number;
|
|
14
22
|
}
|
|
23
|
+
export declare class GetPaymentByUserDto extends ByPaymentDto {
|
|
24
|
+
userId: number;
|
|
25
|
+
}
|
|
26
|
+
export declare class GetPaymentByCustomerDto extends ByPaymentDto {
|
|
27
|
+
customerId: number;
|
|
28
|
+
}
|
|
15
29
|
export declare class InvoiceIdDto {
|
|
16
30
|
invoiceId: number;
|
|
17
31
|
}
|
|
@@ -106,3 +120,6 @@ export declare class GetPaymentMethodsDto {
|
|
|
106
120
|
paymentMethodTypes?: PaymentMethodTypeEnum[];
|
|
107
121
|
subPaymentMethodTypes?: SubPaymentMethodTypeEnum[];
|
|
108
122
|
}
|
|
123
|
+
export declare class PaymentDto extends Payment {
|
|
124
|
+
customer?: Customer;
|
|
125
|
+
}
|
|
@@ -1,17 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
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.ByPaymentDto = exports.PaymentIdDto = exports.CustomerIdDto = void 0;
|
|
3
|
+
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.GetPaymentByCustomerDto = 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 Payment_1 = require("../entities/Payment");
|
|
6
7
|
class CustomerIdDto {
|
|
7
8
|
}
|
|
8
9
|
exports.CustomerIdDto = CustomerIdDto;
|
|
9
10
|
class PaymentIdDto {
|
|
10
11
|
}
|
|
11
12
|
exports.PaymentIdDto = PaymentIdDto;
|
|
13
|
+
class ByPaymentAndCustomerDto extends PaymentIdDto {
|
|
14
|
+
}
|
|
15
|
+
exports.ByPaymentAndCustomerDto = ByPaymentAndCustomerDto;
|
|
16
|
+
class GetPaymentDto extends PaymentIdDto {
|
|
17
|
+
}
|
|
18
|
+
exports.GetPaymentDto = GetPaymentDto;
|
|
12
19
|
class ByPaymentDto extends organization_dto_1.ByOrganizationIdDto {
|
|
13
20
|
}
|
|
14
21
|
exports.ByPaymentDto = ByPaymentDto;
|
|
22
|
+
class GetPaymentByUserDto extends ByPaymentDto {
|
|
23
|
+
}
|
|
24
|
+
exports.GetPaymentByUserDto = GetPaymentByUserDto;
|
|
25
|
+
class GetPaymentByCustomerDto extends ByPaymentDto {
|
|
26
|
+
}
|
|
27
|
+
exports.GetPaymentByCustomerDto = GetPaymentByCustomerDto;
|
|
15
28
|
class InvoiceIdDto {
|
|
16
29
|
}
|
|
17
30
|
exports.InvoiceIdDto = InvoiceIdDto;
|
|
@@ -76,4 +89,8 @@ exports.SendPaymentRequestDto = SendPaymentRequestDto;
|
|
|
76
89
|
class GetPaymentMethodsDto {
|
|
77
90
|
}
|
|
78
91
|
exports.GetPaymentMethodsDto = GetPaymentMethodsDto;
|
|
92
|
+
// TODO: change it to real dto with profile
|
|
93
|
+
class PaymentDto extends Payment_1.Payment {
|
|
94
|
+
}
|
|
95
|
+
exports.PaymentDto = PaymentDto;
|
|
79
96
|
//# sourceMappingURL=payment.dto.js.map
|
|
@@ -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;AAExD,8EAA8E;AAG9E,iDAA8C;AAS9C,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,uBAAwB,SAAQ,YAAY;CAExD;AAFD,0DAEC;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;CAI/B;AAJD,kDAIC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,eAAgB,SAAQ,6BAAe;CAQnD;AARD,0CAQC;AAED,MAAa,YAAa,SAAQ,eAAe;CAQhD;AARD,oCAQC;AAED,qEAAqE;AACrE,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,iBAAO;CAEtC;AAFD,gCAEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payment.js","sourceRoot":"","sources":["../../../../src/types/payment/entities/Payment.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Payment.js","sourceRoot":"","sources":["../../../../src/types/payment/entities/Payment.ts"],"names":[],"mappings":";;;AAMA,oGAAiG;AAiBjG,MAAa,OAAQ,SAAQ,mEAAgC;CA2E5D;AA3ED,0BA2EC"}
|