@bondsports/types 1.19.63 → 1.19.64
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/types/interfaces/payment.interfaces.d.ts +8 -0
- package/dist/types/payment/types/interfaces/payment.interfaces.js.map +1 -1
- package/dist/types/purchase/dto/purchase.dto.d.ts +1 -2
- package/dist/types/purchase/dto/purchase.dto.js.map +1 -1
- package/dist/types/purchase/types/consts/purchase.consts.d.ts +1 -1
- package/dist/types/purchase/types/consts/purchase.consts.js.map +1 -1
- package/dist/types/purchase/types/interfaces/purchase.interfaces.d.ts +3 -8
- package/dist/types/purchase/types/interfaces/purchase.interfaces.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,6 +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 { PurchasePaymentDto } from '../../../purchase/dto/purchase.dto';
|
|
5
6
|
import { PaymentMethodTypeEnum, PlatformsEnum, SubPaymentMethodTypeEnum } from '../../../services/enums.service';
|
|
6
7
|
export declare class PaymentResult {
|
|
7
8
|
paymentMethodId: string;
|
|
@@ -67,3 +68,10 @@ export interface PaymentResult {
|
|
|
67
68
|
paidStripePaymentIntent?: Stripe.PaymentIntent;
|
|
68
69
|
customer?: Customer;
|
|
69
70
|
}
|
|
71
|
+
export interface SaveInovicePayment {
|
|
72
|
+
purchasingUserId?: number;
|
|
73
|
+
paymentData?: PurchasePaymentDto;
|
|
74
|
+
platform?: PlatformsEnum;
|
|
75
|
+
shiftId?: number;
|
|
76
|
+
installmentId?: number;
|
|
77
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/interfaces/payment.interfaces.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"payment.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/payment/types/interfaces/payment.interfaces.ts"],"names":[],"mappings":";;;AAOA,MAAa,aAAa;CAczB;AAdD,sCAcC;AAED,MAAa,eAAe;CAI3B;AAJD,0CAIC;AAqBD,MAAa,mBAAmB;CAQ/B;AARD,kDAQC"}
|
|
@@ -3,7 +3,7 @@ import { ScheduledPaymentDto } from '../../payment/dto/payment-plan.dto';
|
|
|
3
3
|
import { ResourceDto } from '../../spaces/dto/resource.dto';
|
|
4
4
|
import { PaymentMethodTypeEnum, PaymentStatusEnum, PlatformsEnum, ResourceNameTypeEnum } from '../../services/enums.service';
|
|
5
5
|
export declare class PurchasePaymentDto {
|
|
6
|
-
token
|
|
6
|
+
token?: string;
|
|
7
7
|
type: PaymentMethodTypeEnum;
|
|
8
8
|
}
|
|
9
9
|
export declare class ChargeRentalsReuqestDto {
|
|
@@ -27,7 +27,6 @@ export declare class PurchaseRequestDto {
|
|
|
27
27
|
amountToPay: number;
|
|
28
28
|
parentPurchasedType?: ResourceNameTypeEnum;
|
|
29
29
|
parentPurchasedId?: number;
|
|
30
|
-
isPartialPayment: boolean;
|
|
31
30
|
existingInvoiceToken?: string;
|
|
32
31
|
installments?: ScheduledPaymentDto[];
|
|
33
32
|
shiftId?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;AAEA,gEAA4D;AAQ5D,MAAa,kBAAkB;CAK9B;AALD,gDAKC;AAED,MAAa,uBAAuB;CAkBnC;AAlBD,0DAkBC;AAED,MAAa,kBAAkB;
|
|
1
|
+
{"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;AAEA,gEAA4D;AAQ5D,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;CA0B9B;AA1BD,gDA0BC;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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UserCount } from '../interfaces/purchase.interfaces';
|
|
2
1
|
import { PaymentMethodTypeEnum } from '../../../services/enums.service';
|
|
2
|
+
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[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"purchase.consts.js","sourceRoot":"","sources":["../../../../../src/types/purchase/types/consts/purchase.consts.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"purchase.consts.js","sourceRoot":"","sources":["../../../../../src/types/purchase/types/consts/purchase.consts.ts"],"names":[],"mappings":";;;AAAA,mEAAwE;AAG3D,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"}
|
|
@@ -3,9 +3,9 @@ import { Invoice } from '../../../entity/Invoice';
|
|
|
3
3
|
import { Product } from '../../../entity/Product';
|
|
4
4
|
import { ProductsUsers } from '../../../entity/ProductsUsers';
|
|
5
5
|
import { Payment } from '../../../payment/entities/Payment';
|
|
6
|
-
import {
|
|
6
|
+
import { SaveInovicePayment } from '../../../payment/types/interfaces/payment.interfaces';
|
|
7
|
+
import { CurrencyEnum, LineItemsStatusEnum, PaymentStatusEnum, ProductSubTypesEnum, ProductTypesEnum } from '../../../services/enums.service';
|
|
7
8
|
import { IPricesOfProductsResults } from '../../../services/interfaces.service';
|
|
8
|
-
import { PurchasePaymentDto } from '../../dto/purchase.dto';
|
|
9
9
|
export type UserCount = {
|
|
10
10
|
male: number;
|
|
11
11
|
female: number;
|
|
@@ -44,11 +44,6 @@ export interface IValidateCartResult {
|
|
|
44
44
|
currentPrices: IPricesOfProductsResults[];
|
|
45
45
|
productsData: Product[];
|
|
46
46
|
}
|
|
47
|
-
export interface ChargeInvoice {
|
|
48
|
-
purchasingUserId: number;
|
|
47
|
+
export interface ChargeInvoice extends SaveInovicePayment {
|
|
49
48
|
amountToPay: number;
|
|
50
|
-
platform: PlatformsEnum;
|
|
51
|
-
paymentData?: PurchasePaymentDto;
|
|
52
|
-
shiftId?: number;
|
|
53
|
-
installmentId?: number;
|
|
54
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"purchase.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/purchase/types/interfaces/purchase.interfaces.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"purchase.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/purchase/types/interfaces/purchase.interfaces.ts"],"names":[],"mappings":";;;AAqBA,MAAa,cAAc;CAU1B;AAVD,wCAUC"}
|