@bondsports/types 2.0.67 → 2.0.68
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/payment-plan.dto.d.ts +1 -1
- package/dist/types/payment/types/interfaces/payment.interfaces.d.ts +2 -2
- package/dist/types/purchase/dto/purchase.dto.d.ts +11 -3
- package/dist/types/purchase/dto/purchase.dto.js +4 -1
- package/dist/types/purchase/dto/purchase.dto.js.map +1 -1
- package/dist/types/purchase/types/consts/purchase.consts.d.ts +1 -0
- package/dist/types/purchase/types/consts/purchase.consts.js +11 -1
- package/dist/types/purchase/types/consts/purchase.consts.js.map +1 -1
- package/dist/types/purchase/types/interfaces/purchase.interfaces.d.ts +6 -1
- package/package.json +1 -1
|
@@ -30,9 +30,9 @@ export declare class CreateScheduledPaymentsDto extends BasicInstallmentDataDto
|
|
|
30
30
|
payemntMethodId: string;
|
|
31
31
|
}
|
|
32
32
|
export declare class ScheduledPaymentDto {
|
|
33
|
+
price: number;
|
|
33
34
|
plannedDate: Date;
|
|
34
35
|
originalPlannedDate?: Date;
|
|
35
|
-
price: number;
|
|
36
36
|
}
|
|
37
37
|
export declare class FutureInstallmentsIdsDto {
|
|
38
38
|
paymentsIds: number[];
|
|
@@ -2,7 +2,7 @@ import { Stripe } from 'stripe';
|
|
|
2
2
|
import { Customer } from '../../../entity/Customer';
|
|
3
3
|
import { LineItems } from '../../../entity/LineItems';
|
|
4
4
|
import { FeeDto } from '../../../fee/dto/fee.dto';
|
|
5
|
-
import {
|
|
5
|
+
import { IPurchasePayment } from '../../../purchase/types/interfaces/purchase.interfaces';
|
|
6
6
|
import { PlatformsEnum } from '../../../services/enums.service';
|
|
7
7
|
import { CreateNoteDto } from '../../dto/payment.dto';
|
|
8
8
|
import { Payment } from '../../entities/Payment';
|
|
@@ -73,7 +73,7 @@ export interface PayPaymentResult {
|
|
|
73
73
|
}
|
|
74
74
|
export interface SaveInvoicePayment {
|
|
75
75
|
purchasingUserId?: number;
|
|
76
|
-
paymentData?:
|
|
76
|
+
paymentData?: IPurchasePayment;
|
|
77
77
|
platform?: PlatformsEnum;
|
|
78
78
|
shiftId?: number;
|
|
79
79
|
installmentId?: number;
|
|
@@ -4,13 +4,12 @@ import { Invoice } from '../../entity/Invoice';
|
|
|
4
4
|
import { ProductsUsers } from '../../entity/ProductsUsers';
|
|
5
5
|
import { ScheduledPaymentDto } from '../../payment/dto/payment-plan.dto';
|
|
6
6
|
import { Payment } from '../../payment/entities/Payment';
|
|
7
|
-
import { FuturePaymentStatusEnum, PaymentMethodTypeEnum, PaymentStatusEnum
|
|
7
|
+
import { FuturePaymentStatusEnum, PaymentMethodTypeEnum, PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
|
|
8
8
|
import { PlatformsEnum, ResourceNameTypeEnum } from '../../services/enums.service';
|
|
9
9
|
import { ResourceDto } from '../../spaces/dto/resource.dto';
|
|
10
10
|
export declare class PurchasePaymentDto {
|
|
11
|
-
token?: string;
|
|
12
11
|
type: PaymentMethodTypeEnum;
|
|
13
|
-
|
|
12
|
+
token?: string;
|
|
14
13
|
}
|
|
15
14
|
export declare class ChargeRentalsReuqestDto {
|
|
16
15
|
organizationId: number;
|
|
@@ -94,3 +93,12 @@ export declare class PurchaseResultDto {
|
|
|
94
93
|
customer?: Customer;
|
|
95
94
|
productUsers?: ProductsUsers[];
|
|
96
95
|
}
|
|
96
|
+
export declare class PurchaseCartDto {
|
|
97
|
+
paymentInfo?: PurchasePaymentDto;
|
|
98
|
+
amountToPay?: number;
|
|
99
|
+
existingInvoiceId?: number;
|
|
100
|
+
existingInvoiceToken?: string;
|
|
101
|
+
installments?: ScheduledPaymentDto[];
|
|
102
|
+
parentPurchasedId?: number;
|
|
103
|
+
parentPurchasedType?: ResourceNameTypeEnum;
|
|
104
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PurchaseResultDto = exports.ValidateParticipantDto = exports.PartialPaymentAsUserDto = exports.AddItemsDto = exports.RedeemPunchCardRequestDto = exports.PartialPaymentRequestDto = exports.PurchaseProductDto = exports.PurchaseResourceDto = exports.PurchaseRequestDto = exports.ChargeRentalsReuqestDto = exports.PurchasePaymentDto = void 0;
|
|
3
|
+
exports.PurchaseCartDto = exports.PurchaseResultDto = exports.ValidateParticipantDto = exports.PartialPaymentAsUserDto = exports.AddItemsDto = exports.RedeemPunchCardRequestDto = exports.PartialPaymentRequestDto = exports.PurchaseProductDto = exports.PurchaseResourceDto = exports.PurchaseRequestDto = exports.ChargeRentalsReuqestDto = exports.PurchasePaymentDto = void 0;
|
|
4
4
|
const resource_dto_1 = require("../../spaces/dto/resource.dto");
|
|
5
5
|
class PurchasePaymentDto {
|
|
6
6
|
}
|
|
@@ -39,4 +39,7 @@ exports.ValidateParticipantDto = ValidateParticipantDto;
|
|
|
39
39
|
class PurchaseResultDto {
|
|
40
40
|
}
|
|
41
41
|
exports.PurchaseResultDto = PurchaseResultDto;
|
|
42
|
+
class PurchaseCartDto {
|
|
43
|
+
}
|
|
44
|
+
exports.PurchaseCartDto = PurchaseCartDto;
|
|
42
45
|
//# sourceMappingURL=purchase.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;AAYA,gEAA4D;AAG5D,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAED,MAAa,uBAAuB;CAkBnC;AAlBD,0DAkBC;AAED,MAAa,kBAAkB;CA4B9B;AA5BD,gDA4BC;AAED,MAAa,mBAAoB,SAAQ,0BAAW;CAAG;AAAvD,kDAAuD;AAEvD,MAAa,kBAAkB;CA2B9B;AA3BD,gDA2BC;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;AAED,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AAED,MAAa,eAAe;CAc3B;AAdD,0CAcC"}
|
|
@@ -3,3 +3,4 @@ import { UserCount } from '../interfaces/purchase.interfaces';
|
|
|
3
3
|
export declare const ALLOWED_PAYMENT_INTENT_STATUSES: string[];
|
|
4
4
|
export declare const USER_COUNT_BY_GENDER_DEFAULT: UserCount;
|
|
5
5
|
export declare const CONSUMER_ALLOWED_PAYMENT_METHODS: PaymentMethodTypeEnum[];
|
|
6
|
+
export declare const ALLOWED_PAYMENT_METHODS: PaymentMethodTypeEnum[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CONSUMER_ALLOWED_PAYMENT_METHODS = exports.USER_COUNT_BY_GENDER_DEFAULT = exports.ALLOWED_PAYMENT_INTENT_STATUSES = void 0;
|
|
3
|
+
exports.ALLOWED_PAYMENT_METHODS = exports.CONSUMER_ALLOWED_PAYMENT_METHODS = exports.USER_COUNT_BY_GENDER_DEFAULT = exports.ALLOWED_PAYMENT_INTENT_STATUSES = void 0;
|
|
4
4
|
const payment_enums_1 = require("../../../payment/types/enums/payment.enums");
|
|
5
5
|
exports.ALLOWED_PAYMENT_INTENT_STATUSES = ['processing', 'succeeded'];
|
|
6
6
|
exports.USER_COUNT_BY_GENDER_DEFAULT = { male: 0, female: 0, other: 1 };
|
|
@@ -9,4 +9,14 @@ exports.CONSUMER_ALLOWED_PAYMENT_METHODS = [
|
|
|
9
9
|
payment_enums_1.PaymentMethodTypeEnum.CARD,
|
|
10
10
|
payment_enums_1.PaymentMethodTypeEnum.BALANCE,
|
|
11
11
|
];
|
|
12
|
+
exports.ALLOWED_PAYMENT_METHODS = [
|
|
13
|
+
payment_enums_1.PaymentMethodTypeEnum.CARD,
|
|
14
|
+
payment_enums_1.PaymentMethodTypeEnum.ACH,
|
|
15
|
+
payment_enums_1.PaymentMethodTypeEnum.CASH,
|
|
16
|
+
payment_enums_1.PaymentMethodTypeEnum.CHECK,
|
|
17
|
+
payment_enums_1.PaymentMethodTypeEnum.BALANCE,
|
|
18
|
+
payment_enums_1.PaymentMethodTypeEnum.CARD_ON_TERMINAL,
|
|
19
|
+
payment_enums_1.PaymentMethodTypeEnum.GIFT_CARD,
|
|
20
|
+
payment_enums_1.PaymentMethodTypeEnum.OTHER,
|
|
21
|
+
];
|
|
12
22
|
//# sourceMappingURL=purchase.consts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"purchase.consts.js","sourceRoot":"","sources":["../../../../../src/types/purchase/types/consts/purchase.consts.ts"],"names":[],"mappings":";;;AAAA,8EAAmF;AAGtE,QAAA,+BAA+B,GAAG,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;AAE9D,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"}
|
|
1
|
+
{"version":3,"file":"purchase.consts.js","sourceRoot":"","sources":["../../../../../src/types/purchase/types/consts/purchase.consts.ts"],"names":[],"mappings":";;;AAAA,8EAAmF;AAGtE,QAAA,+BAA+B,GAAG,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;AAE9D,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;AAEW,QAAA,uBAAuB,GAAG;IACtC,qCAAqB,CAAC,IAAI;IAC1B,qCAAqB,CAAC,GAAG;IACzB,qCAAqB,CAAC,IAAI;IAC1B,qCAAqB,CAAC,KAAK;IAC3B,qCAAqB,CAAC,OAAO;IAC7B,qCAAqB,CAAC,gBAAgB;IACtC,qCAAqB,CAAC,SAAS;IAC/B,qCAAqB,CAAC,KAAK;CAC3B,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { Customer } from '../../../entity/Customer';
|
|
|
2
2
|
import { Invoice } from '../../../entity/Invoice';
|
|
3
3
|
import { Product } from '../../../entity/Product';
|
|
4
4
|
import { Payment } from '../../../payment/entities/Payment';
|
|
5
|
-
import { FuturePaymentStatusEnum } from '../../../payment/types/enums/payment.enums';
|
|
5
|
+
import { FuturePaymentStatusEnum, PaymentMethodTypeEnum, SubPaymentMethodTypeEnum } from '../../../payment/types/enums/payment.enums';
|
|
6
6
|
import { SaveInvoicePayment } from '../../../payment/types/interfaces/payment.interfaces';
|
|
7
7
|
import { CurrencyEnum, LineItemsStatusEnum, ProductSubTypesEnum, ProductTypesEnum } from '../../../services/enums.service';
|
|
8
8
|
export type UserCount = {
|
|
@@ -47,3 +47,8 @@ export interface IPurchaseInfo {
|
|
|
47
47
|
isImport?: boolean;
|
|
48
48
|
overrideQuantity?: number;
|
|
49
49
|
}
|
|
50
|
+
export interface IPurchasePayment {
|
|
51
|
+
type: PaymentMethodTypeEnum;
|
|
52
|
+
subType?: SubPaymentMethodTypeEnum;
|
|
53
|
+
token?: string;
|
|
54
|
+
}
|